/* Scoped to the Elementor single template. JetEngine remains the content source. */
body.single-destinos .elementor-location-single {
  --ct-ink: #173b32;
  --ct-muted: #526b60;
  --ct-green: #176b50;
  --ct-border: #dce9df;
  --ct-paper: #fffdf8;
  color: var(--ct-ink);
  overflow: clip;
}

body.single-destinos .elementor-location-single :is(h1, h2, h3, h4, h5) {
  text-wrap: balance;
}

body.single-destinos .elementor-location-single :is(a, button, input):focus-visible {
  outline: 3px solid #e5a942;
  outline-offset: 3px;
}

body.single-destinos .elementor-location-single .e-con-inner,
body.single-destinos .elementor-location-single .elementor-widget,
body.single-destinos .elementor-location-single .jet-listing-dynamic-field__content {
  min-width: 0;
}

/* Hero: keep the existing featured image and dynamic title. */
body.single-destinos .ct-destination-hero-v2 {
  min-height: clamp(390px, 52vw, 650px);
  padding-inline: clamp(18px, 4vw, 64px);
}

body.single-destinos .ct-destination-hero-v2 h1 {
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

body.single-destinos .ct-destination-hero-v2 .jet-listing-dynamic-field__content {
  max-width: 62ch;
}

/* Four quick facts; the original Elementor icon and JetEngine value stay intact. */
body.single-destinos .elementor-location-single .ct-destination-facts-v2 {
  --margin-top: -78px;
  --margin-bottom: -18px;
  --z-index: 10;
  margin-top: -78px;
  margin-bottom: -18px;
  padding: 0 clamp(16px, 3vw, 36px);
  position: relative;
  z-index: 10;
  background: transparent !important;
  background-image: none !important;
}

body.single-destinos .elementor-location-single .ct-destination-facts-v2::before,
body.single-destinos .elementor-location-single .ct-destination-facts-v2 > .elementor-motion-effects-container,
body.single-destinos .elementor-location-single .ct-destination-facts-v2 > .e-con-inner,
body.single-destinos .elementor-location-single .ct-destination-facts-v2 > .e-con-inner::before,
body.single-destinos .elementor-location-single .ct-destination-facts-v2 > .e-con-inner > .elementor-motion-effects-container,
body.single-destinos .elementor-location-single .ct-destination-facts-v2 > .e-con-inner > .elementor-motion-effects-container::before,
body.single-destinos .elementor-location-single .ct-destination-facts-v2 > .e-con-inner > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body.single-destinos .elementor-location-single .ct-destination-facts-v2 > .e-con-inner > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
  background: transparent !important;
  background-image: none !important;
}

body.single-destinos .elementor-location-single .ct-destination-facts-v2,
body.single-destinos .elementor-location-single .ct-destination-facts-v2 > .e-con-inner,
body.single-destinos .elementor-location-single .ct-destination-facts-inner,
body.single-destinos .elementor-location-single .ct-destination-facts-inner > .e-con-inner {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.single-destinos .elementor-location-single .ct-destination-facts-v2::after,
body.single-destinos .elementor-location-single .ct-destination-facts-v2 > .e-con-inner::after,
body.single-destinos .elementor-location-single .ct-destination-facts-inner::before,
body.single-destinos .elementor-location-single .ct-destination-facts-inner::after,
body.single-destinos .elementor-location-single .ct-destination-facts-inner > .e-con-inner::before,
body.single-destinos .elementor-location-single .ct-destination-facts-inner > .e-con-inner::after {
  content: none !important;
  display: none !important;
}

body.single-destinos .ct-destination-facts-inner {
  --e-con-grid-template-columns: repeat(4, minmax(0, 1fr));
  --e-con-grid-template-rows: auto;
  gap: 14px;
  width: min(100%, 1200px);
}

body.single-destinos .ct-destination-facts-inner > .e-con-inner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 14px;
}

body.single-destinos .ct-destination-facts-inner > .e-con-inner > .e-con {
  width: 100%;
  min-height: 160px;
  box-sizing: border-box;
  padding: 20px 18px;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--ct-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(25 66 46 / 14%);
}

body.single-destinos .ct-destination-facts-inner .elementor-widget-icon {
  flex: 0 0 36px;
}

body.single-destinos .ct-destination-facts-inner .elementor-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #e4f2e8;
  color: var(--ct-green);
}

body.single-destinos .ct-destination-facts-inner .elementor-icon svg {
  width: 18px;
  height: 18px;
}

body.single-destinos .ct-destination-facts-inner h5 {
  min-height: 2.6em;
  margin: 0 0 7px;
  color: var(--ct-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

body.single-destinos .ct-destination-facts-inner .jet-listing-dynamic-field__content,
body.single-destinos .ct-destination-facts-inner .jet-listing-dynamic-field__content p {
  margin: 0;
  color: var(--ct-ink);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  font-weight: 600;
  line-height: 1.45;
}

/* Editorial copy stays readable; the route planner remains a separate section. */
body.single-destinos .ct-destination-overview-v2 {
  padding-block: clamp(48px, 6vw, 88px);
  background: #fff !important;
  background-image: none !important;
}

body.single-destinos .ct-destination-overview-v2 [data-id="bb24cc25"] .jet-listing-dynamic-field__content {
  max-width: 78ch;
  margin-inline: auto;
  color: #334c41;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
}

body.single-destinos .ct-destination-overview-v2 [data-id="bb24cc25"] p {
  margin: 0 0 1.1em;
}

body.single-destinos .ct-destination-overview-v2 [data-id="bb24cc25"] .jet-listing-dynamic-field__content.ct-summary-enhanced {
  max-width: min(100%, 1100px);
}

body.single-destinos .ct-summary-lead {
  max-width: 76ch;
  margin: 0 auto clamp(24px, 3vw, 38px) !important;
  padding: 8px 0 8px clamp(20px, 2.5vw, 32px);
  border-left: 4px solid #e9a42e;
  color: var(--ct-ink);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  line-height: 1.65;
}

body.single-destinos .ct-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.single-destinos .ct-summary-card {
  min-width: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--ct-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(25 66 46 / 6%);
}

body.single-destinos .ct-summary-card:nth-child(3n + 2) {
  background: #f4faf5;
}

body.single-destinos .ct-summary-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #e4f2e8;
  color: var(--ct-green);
  font: 700 0.8rem/1 Sora, sans-serif;
}

body.single-destinos .ct-summary-card p {
  margin: 0 !important;
  color: #334c41;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.68;
}

body.single-destinos .elementor-location-single #como-llegar {
  width: min(100%, 1160px);
  margin: clamp(48px, 6vw, 82px) auto;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--ct-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgb(25 66 46 / 7%);
  scroll-margin-top: 150px;
}

body.single-destinos .elementor-location-single #como-llegar h3 {
  max-width: 38ch;
  line-height: 1.25;
}

body.single-destinos .elementor-location-single #como-llegar :is(.rp4u-map, .rp4u-form, .rp4u-map-canvas) {
  max-width: 100%;
  min-width: 0;
}

body.single-destinos .elementor-location-single #como-llegar .rp4u-map-canvas {
  height: clamp(300px, 38vw, 500px) !important;
  border-radius: 14px;
}

body.single-destinos .elementor-location-single #como-llegar .rp4u-line-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.single-destinos .elementor-location-single #como-llegar .rp4u-field {
  flex: 1 1 220px;
  min-width: 0;
}

/* The gallery widgets keep their original images and lightbox behavior. */
body.single-destinos .elementor-location-single [data-id="c5e6f7a8"] {
  padding-block: clamp(48px, 6vw, 78px);
}

body.single-destinos .elementor-location-single [data-id="a9c0d1e2"] img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Rich-text h4 + paragraph pairs become cards only when enhanced by JS. */
body.single-destinos .ct-enhanced-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

body.single-destinos .ct-enhanced-cards .ct-info-card {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--ct-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(25 66 46 / 6%);
}

body.single-destinos .ct-attraction-cards .ct-info-card {
  padding-top: 68px;
}

body.single-destinos .ct-attraction-cards .ct-info-card::before {
  content: counter(ct-attraction, decimal-leading-zero);
  counter-increment: ct-attraction;
  position: absolute;
  top: 21px;
  left: clamp(20px, 2.2vw, 28px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e4f2e8;
  color: var(--ct-green);
  font: 700 0.8rem/1 Sora, sans-serif;
}

body.single-destinos .ct-attraction-cards {
  counter-reset: ct-attraction;
}

body.single-destinos .ct-enhanced-cards .ct-info-card h4 {
  margin: 0 0 10px;
  color: var(--ct-ink);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.3;
}

body.single-destinos .ct-enhanced-cards .ct-info-card p {
  margin: 0;
  color: var(--ct-muted);
  font-size: 1rem;
  line-height: 1.65;
}

body.single-destinos .elementor-location-single [data-id="d4b5c6e7"] ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-destinos .elementor-location-single [data-id="d4b5c6e7"] li {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 22px 22px 22px 66px;
  border: 1px solid var(--ct-border);
  border-radius: 18px;
  background: #fff;
  color: var(--ct-muted);
  font-size: 1rem;
  line-height: 1.6;
}

body.single-destinos .elementor-location-single [data-id="d4b5c6e7"] li::before {
  content: "✦";
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e4f2e8;
  color: var(--ct-green);
  font-size: 1rem;
}

body.single-destinos .elementor-location-single [data-id="d4b5c6e7"] li strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ct-ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

body.single-destinos .ct-faq-cards .ct-info-card {
  background: var(--ct-paper);
}

body.single-destinos .elementor-location-single [data-id="c6f7a8b9"],
body.single-destinos .elementor-location-single [data-id="c7a8b9c0"],
body.single-destinos .elementor-location-single [data-id="c8b9c0d1"] {
  padding-block: clamp(48px, 6vw, 78px);
  padding-inline: clamp(16px, 3vw, 32px);
}

body.single-destinos .elementor-location-single [data-id="c6f7a8b9"] > .e-con-inner,
body.single-destinos .elementor-location-single [data-id="c7a8b9c0"] > .e-con-inner,
body.single-destinos .elementor-location-single [data-id="c8b9c0d1"] > .e-con-inner {
  width: min(100%, 1200px);
}

body.single-destinos .elementor-location-single .elementor-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

@media (max-width: 900px) {
  body.single-destinos .ct-destination-facts-inner {
    --e-con-grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.single-destinos .ct-destination-facts-inner > .e-con-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.single-destinos .ct-destination-hero-v2 {
    min-height: 390px;
    padding-inline: 18px;
  }
  body.single-destinos .ct-destination-hero-v2 [data-id="8181453"] {
    width: 100%;
    max-width: 100%;
    --container-widget-width: 100%;
  }
  body.single-destinos .ct-destination-hero-v2 [data-id="8181453"] .jet-listing-dynamic-field__content {
    max-width: 40ch;
  }
  body.single-destinos .ct-destination-facts-inner,
  body.single-destinos .ct-destination-facts-inner > .e-con-inner,
  body.single-destinos .ct-enhanced-cards,
  body.single-destinos .elementor-location-single [data-id="d4b5c6e7"] ul {
    --e-con-grid-template-columns: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
  }
  body.single-destinos .ct-destination-facts-inner > .e-con-inner > .e-con {
    min-height: 0;
    padding: 16px;
  }
  body.single-destinos .elementor-location-single .ct-destination-facts-v2 {
    --margin-top: -52px;
    --margin-bottom: -8px;
    margin-top: -52px;
    margin-bottom: -8px;
    padding-inline: 12px;
  }
  body.single-destinos .ct-destination-facts-inner h5 {
    min-height: 0;
  }
  body.single-destinos .ct-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.single-destinos .elementor-location-single #como-llegar {
    border-radius: 18px;
    margin-inline: 16px;
    width: calc(100% - 32px);
  }
  body.single-destinos .elementor-location-single #como-llegar .rp4u-map-canvas {
    height: 320px !important;
  }
  body.single-destinos .elementor-location-single [data-id="d4b5c6e7"] li {
    padding: 18px 18px 18px 60px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.single-destinos .ct-enhanced-cards .ct-info-card,
  body.single-destinos .elementor-location-single [data-id="d4b5c6e7"] li {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
  body.single-destinos .ct-enhanced-cards .ct-info-card:hover,
  body.single-destinos .elementor-location-single [data-id="d4b5c6e7"] li:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 34px rgb(25 66 46 / 10%);
  }
}
