/* GabiTours: reversible layout trial, October 2026. */
/* Match the home section titles without changing heading semantics. */
body.page-id-31 #post-31 .gt-home-intro h1,
body.page-id-31 #post-31 .gt-home-intro h2,
body.home.page-id-31 #pwmainwrapper > .row > .col-md-12 > .row > .container > .col-12 h2 {
  font-size: clamp(24px, 2.4vw, 32px) !important;
  line-height: 1.25;
  font-weight: 500;
}
body.page-id-31 #post-31 .gt-home-intro > p:first-child { margin: 0; }
body.page-id-31 #post-31 .gt-home-intro > p:first-child > img { display: block; margin: 0; }
body.page-id-31 #post-31 .gt-home-intro h1 { margin: 24px 0 16px; }
body.page-id-31 #post-31 .gt-home-community h2 { margin: 0 0 16px; }
body.page-id-31 #post-31 .gt-community-photo-crop { margin-bottom: 0 !important; }

/* Full-width destination content; keep tour tools above the content. */
body.single-destinations .gt-destination-layout > .row { margin-inline: 0; }
body.single-destinations .gt-destination-tools,
body.single-destinations .gt-destination-content {
  width: 100%;
  float: none;
  padding-inline: 0;
}
body.single-destinations .gt-destination-tools #tools_2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 12px;
  margin: 0 0 24px;
}
body.single-destinations .gt-destination-tools #tools_2 > li { margin: 0; }
body.single-destinations .gt-destination-tools #tools_2 > li:empty { display: none; }
body.single-destinations .gt-destination-content > .box_style_general {
  padding: 24px;
}
body.single-destinations .gt-destination-content > .box_style_general > .row {
  margin-inline: -12px;
}
body.single-destinations .gt-destination-content > .box_style_general > .row > [class*="col-"] {
  padding-inline: 12px;
}
body.single-destinations .gt-destination-content img { max-width: 100%; height: auto; }
/* Readable prose; headings, controls and short facts keep their alignment. */
body.page-id-31 #post-31 .gt-home-intro > p,
body.page-id-31 #post-31 .gt-home-community p,
body.page-id-31 #pwmainwrapper > .row > .col-md-12 > .row > .container > .col-12 > p,
body.single-destinations .gt-destination-content > .box_style_general > p {
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
}
/* Remove legacy nested list indents around tour stops. */
body.single-destinations .gt-destination-content ul:not(.cbp_tmtimeline):has(.cbp_tmtimeline),
body.single-destinations .gt-destination-content li:has(ul.cbp_tmtimeline) {
  padding: 0;
  margin: 0;
  list-style: none;
}
body.single-destinations .gt-destination-content .cbp_tmtimeline { margin: 24px 0; padding: 0; }
body.single-destinations .gt-destination-content .cbp_tmtimeline::before,
body.single-destinations .gt-destination-content .cbp_tmlabel::after { display: none; }
body.single-destinations .gt-destination-content .cbp_tmtimeline > li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin: 0 0 20px;
}
body.single-destinations .gt-destination-content .cbp_tmicon {
  position: static;
  float: none;
  margin: 0;
  left: auto;
  top: auto;
}
body.single-destinations .gt-destination-content .cbp_tmlabel {
  min-width: 0;
  margin: 0;
  padding: 16px;
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  body.page-id-31 #post-31 .gt-home-community h2 { margin-top: 24px; }
  body.home.page-id-31 #post-31 { padding-inline: 12px; }
  body.home.page-id-31 #post-31 > .post { padding: 12px; }
  body.single-destinations .gt-destination-layout { padding: 32px 12px; }
  body.single-destinations .gt-destination-content > .box_style_general { padding: 12px; }
  body.single-destinations .gt-destination-content .box_info { padding-inline: 12px; }
  body.single-destinations .gt-destination-content .box_info > h3 { margin-inline: -12px; }
  body.single-destinations .gt-destination-content .cbp_tmtimeline > li { display: block; margin-bottom: 24px; }
  body.single-destinations .gt-destination-content .cbp_tmicon { margin: 0 auto 12px; }
  body.single-destinations .gt-destination-content .cbp_tmlabel { padding: 12px; }
  body.single-destinations .gt-destination-content > .box_style_general > .row { margin-inline: 0; }
  body.single-destinations .gt-destination-content > .box_style_general > .row > [class*="col-"] { padding-inline: 0; }
}
