/*
  Gen 3 Destinations (Dynamic) — Scaffolding
  - Scope to main.modernpage so legacy Bootstrap pages are unaffected.
  - Keep this file small; extract reusable components into public/css/modern-base.css when needed.
*/

/*
  Hero / Banner (top of page)
  - Legacy partials (slider2/videoslider/banner_map) are shared across the site.
  - Gen 3 destination views wrap them in .destination-hero so we can safely restyle
    without affecting legacy Bootstrap pages.
*/
.destination-hero {
  --dest-hero-height: clamp(280px, 38vw, 520px);
}

@media (max-width: 767.98px) {
  .destination-hero {
    --dest-hero-height: clamp(240px, 60vw, 420px);
  }
}

/*
  Gen 3: Tollfree footer (new partial only)
  - Legacy .tollfreebg is shared; scope parallax to the Gen 3 pages + the new class.
  - Desktop uses background-attachment: fixed (simple parallax illusion).
  - Mobile falls back to scroll for performance / iOS compatibility.
*/
main.destination-city.modernpage .tollfreebg--parallax,
main.destination-country.modernpage .tollfreebg--parallax {
  /* destinations.css lives in /css/pages; use an absolute path to /public/images */
  background-image: url('/images/roombg.jpg');
  background-color: var(--color-dark);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  isolation: isolate;
}

/* Soft shadow/overlay for readability on photo background */
main.destination-city.modernpage .tollfreebg--parallax::before,
main.destination-country.modernpage .tollfreebg--parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.68) 100%
  );
}

main.destination-city.modernpage .tollfreebg--parallax > .container,
main.destination-country.modernpage .tollfreebg--parallax > .container {
  position: relative;
  z-index: 1;
}

main.destination-city.modernpage .tollfreebg--parallax h2,
main.destination-country.modernpage .tollfreebg--parallax h2,
main.destination-city.modernpage .tollfreebg--parallax p,
main.destination-country.modernpage .tollfreebg--parallax p,
main.destination-city.modernpage .tollfreebg--parallax a,
main.destination-country.modernpage .tollfreebg--parallax a {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

/* Center phone blocks (override legacy float-based .tollfreebg styles) */
main.destination-city.modernpage .tollfreebg--parallax ul,
main.destination-country.modernpage .tollfreebg--parallax ul {
  width: auto;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3rem);
}

main.destination-city.modernpage .tollfreebg--parallax ul li,
main.destination-country.modernpage .tollfreebg--parallax ul li {
  float: none;
  margin: 0;
}

main.destination-city.modernpage .tollfreebg--parallax ul li p,
main.destination-country.modernpage .tollfreebg--parallax ul li p {
  text-align: center;
}

@media (max-width: 575.98px) {
  main.destination-city.modernpage .tollfreebg--parallax ul,
  main.destination-country.modernpage .tollfreebg--parallax ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  main.destination-city.modernpage .tollfreebg--parallax,
  main.destination-country.modernpage .tollfreebg--parallax {
    background-image: none;
    background-attachment: scroll;
    clip-path: inset(0);
  }

  /* Fixed pseudo-element for mobile parallax (works on iOS Safari) */
  main.destination-city.modernpage .tollfreebg--parallax::after,
  main.destination-country.modernpage .tollfreebg--parallax::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('/images/roombg.jpg');
    background-size: cover;
    background-position: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

.destination-hero .bannerSlider {
  position: relative;
  background: var(--color-dark);
}

.destination-hero .carousel.slide {
  position: relative;
}

.destination-hero .carousel.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.destination-hero .carousel-inner {
  height: var(--dest-hero-height);
  overflow: hidden;
  contain: content;            /* rendering perf: isolate paint / layout */
}

.destination-hero .carousel-item {
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.destination-hero .carousel-item > img,
.destination-hero .carousel-item img.d-block,
.destination-hero .carousel-item > video,
.destination-hero .carousel-item video.media {
  display: block;              /* replaces BS .d-block removed in Gen 3 slider */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.destination-hero .carousel-control-prev,
.destination-hero .carousel-control-next {
  width: 4rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  border: 0;
  background: none;
  cursor: pointer;
}

.destination-hero .carousel:hover .carousel-control-prev,
.destination-hero .carousel:hover .carousel-control-next,
.destination-hero .carousel-control-prev:focus-visible,
.destination-hero .carousel-control-next:focus-visible {
  opacity: 1;
}

.destination-hero .carousel-control-prev-icon,
.destination-hero .carousel-control-next-icon {
  filter: invert(1);
}

/* ─── City Hero Video (slider2-new with video) ─── */
.dest-city-video-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 90px);          /* 90px = fixed header height */
  overflow: hidden;
  background: var(--color-dark);
}

.dest-city-video-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.45) 100%
  );
}

.dest-city-video-hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dest-city-video-hero__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .dest-city-video-hero__video {
    display: none;
  }
  .dest-city-video-hero__poster {
    z-index: 1;
  }
}

/* Mobile: cap video hero for a balanced, elegant look */
@media (max-width: 767.98px) {
  .dest-city-video-hero {
    height: clamp(280px, 55vh, 400px);   /* immersive but not overwhelming */
  }
}

/* ─── Hero Text Overlay (shared: video hero + carousel) ─── */
.dest-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem 2rem 8%;
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.dest-hero-overlay__title {
  font-family: var(--dest-heading-font, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 16px rgba(0,0,0,0.55),
    0 4px 32px rgba(0,0,0,0.3),
    0 1px 3px rgba(0,0,0,0.4);
}

.dest-hero-overlay__tagline {
  font-family: var(--dest-heading-font, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  margin: 0;
  color: #fff;
  text-shadow:
    0 1px 12px rgba(0,0,0,0.5),
    0 2px 20px rgba(0,0,0,0.25),
    0 1px 2px rgba(0,0,0,0.35);
  max-width: 680px;
}

@media (max-width: 767.98px) {
  .dest-hero-overlay {
    padding: 1.5rem 1.25rem;
  }
  .dest-hero-overlay__title {
    font-size: 2rem;
  }
  .dest-hero-overlay__tagline {
    font-size: 1rem;
  }
}

/* Ensure carousel gradient sits behind overlay text */
.destination-hero .carousel.slide::after {
  z-index: 5;
}

.destination-map-hero .map-section .main-div {
  position: relative;
  min-height: calc(100vh - 80px);      /* 80px = fixed header height */
  background-size: cover;
  background-position: center;
}

/* Mobile: cap map hero to fit below smaller header */
@media (max-width: 767.98px) {
  .destination-map-hero .map-section .main-div {
    min-height: calc(100vh - 60px);    /* 60px = mobile header height */
  }
}

.destination-map-hero .map-section .main-div::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}

.destination-map-hero .map-section .main-div .dest-map-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Video hero: hide poster image once video plays */
.destination-map-hero .map-section .main-div .dest-map-hero-bg--video {
  z-index: 1; /* above fallback poster */
}

.destination-map-hero .map-section .main-div .dest-map-hero-bg--poster {
  z-index: 0; /* behind video, visible while loading */
}

/* Respect prefers-reduced-motion: pause video, show poster */
@media (prefers-reduced-motion: reduce) {
  .destination-map-hero .map-section .main-div .dest-map-hero-bg--video {
    display: none;
  }
  .destination-map-hero .map-section .main-div .dest-map-hero-bg--poster {
    z-index: 1;
  }
}

.destination-map-hero .map-section .main-div > *:not(.dest-map-hero-bg):not(.dest-map-hero-bg--video):not(.dest-map-hero-bg--poster) {
  position: relative;
  z-index: 3;
}

.destination-map-hero .map-section .svg-map {
  display: flex;
  align-items: center;
  justify-content: center;
}

.destination-map-hero .map-section .svg-map svg.style_svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.35));
}

.destination-map-hero .banner-map-hero-title {
  top: clamp(0.75rem, 3.25vw, 2.25rem);
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}

.destination-map-hero .banner-map-hero-title__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.destination-map-hero .banner-map-hero-title__text {
  margin: 0;
  color: var(--color-bg-light);
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.2vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-shadow: 1px 1px 3px #000, 0 0 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.4);
}

.destination-map-hero .banner-map-hero-title__text > span {
  display: inline-block;
  font-weight: 500;
  opacity: 0.92;
}

.destination-map-hero .banner-map-hero-title__subtext {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 400;
  margin: 10px auto 0;
  max-width: 600px;
  line-height: 1.5;
  text-shadow: 1px 1px 3px #000, 0 0 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
}

.destination-map-hero .banner-map-hero-title__arrow {
  display: block;
  width: clamp(5.25rem, 10vw, 7.25rem);
  margin: 0.9rem auto 0;
  opacity: 0.85;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.destination-map-hero .banner-map-search {
  align-items: center;
  /* Bootstrap .row adds negative margins via gutters; neutralize so width caps correctly */
  --bs-gutter-x: 0;
  max-width: clamp(520px, 52vw, 640px);
  margin-left: auto;
  margin-right: auto;
}

.destination-map-hero .banner-map-search__input {
  width: 100%;
  height: 56px;
  border-radius: var(--radius-none);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-right: 0;
  background: var(--color-bg-light);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);

  color: var(--color-dark);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;

  padding: 12px 18px;
  outline: none;
}

.destination-map-hero .banner-map-search__input::placeholder {
  color: rgba(0, 0, 0, 0.5);
  text-align: left;
}

.destination-map-hero .banner-map-search__input:focus {
  border-color: rgba(255, 255, 255, 0.92);
}

.destination-map-hero .banner-map-search__btnwrap {
  height: 56px;
  border-radius: var(--radius-none);
  background: var(--color-dark) !important;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-left: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

/* Hide legacy left arrow icon for the new search styling */
.destination-map-hero .banner-map-search .span_arrow {
  display: none;
}


.destination-map-hero .banner-map-search__btn {
  background: transparent !important;
  border: 0 !important;
  color: var(--color-bg-light) !important;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.destination-map-hero .banner-map-search__btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Banner search modal must be true fullscreen (Gen 3 banner_map-modern only) */
#bannerFullScreenSearch.fullscreen-search-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2000000 !important;
  background: rgba(0, 0, 0, 0.62) !important;
}

/* Mini region map (right-side) must stay visible above the city card slider */
.destination-map-hero .banner-map-region-imgcol {
  position: relative;
  z-index: 20;
}

.destination-map-hero img.region-img {
  position: relative;
  z-index: 20;
  display: block;
  margin: 0 auto;
  max-width: min(260px, 46vw);
  height: auto;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.45));
}

/* Region title (e.g., "Sicily") on banner map hero */
.destination-map-hero .cities-list h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-bg-light);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
  margin: 0 0 1.5rem;
}

@media (max-width: 991.98px) {
  .destination-map-hero .banner-map-hero-title {
    top: 0;
    padding: 10px 15px 0;
  }

  .destination-map-hero .banner-map-hero-title__text {
    font-size: 1.2rem;
    max-width: 90%;
    margin: 0 auto;
  }

  .destination-map-hero .banner-map-hero-title__subtext {
    font-size: 0.85rem;
    max-width: 90%;
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .destination-map-hero .banner-map-hero-title__arrow {
    display: none;
  }
}

/* “Mobile version” in this layout includes Bootstrap md/tablet widths too.
   Hide the mini region map column so it never stacks above the title/gallery on smaller screens. */
@media (max-width: 991.98px) {
  .destination-map-hero .banner-map-region-imgcol {
    display: none !important;
  }

  .destination-map-hero .cities-list .row.align-items-center > .col-md-6.text-center {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .destination-map-hero .map-section .svg-map svg.style_svg {
    height: auto;
    width: 100%;
  }
}

/* Keep the new Gen 3 tab chrome aligned with existing destination layout spacing */
main.destination-city.modernpage .overview-section,
main.destination-country.modernpage .overview-section {
  margin-top: 1.5rem;
}

main.destination-city.modernpage .overview-section.pt60px,
main.destination-country.modernpage .overview-section.pt60px {
  padding-top: 0;
}

/* Better typography rhythm for WYSIWYG content */
main.destination-city.modernpage .tab-overview,
main.destination-country.modernpage .tab-overview {
  color: var(--color-text);
  background: #fff !important;
  padding: 1.5rem 0 !important;
  max-width: 700px;
  margin: 0 auto;
}

main.destination-city.modernpage .tab-overview > div,
main.destination-country.modernpage .tab-overview > div {
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Nuclear reset: override ALL inline styles from WYSIWYG editor stored in DB.
   Content comes from TinyMCE/CKEditor with random font-size, font-family,
   color, line-height baked into inline style="" on every element. */
main.destination-city.modernpage .tab-overview .overview-collapse__content *,
main.destination-country.modernpage .tab-overview .overview-collapse__content *,
main.destination-city.modernpage .tab-overview .city-shortdes *:not(.overview-collapse__fade):not(.overview-collapse__btn),
main.destination-country.modernpage .tab-overview .city-shortdes *:not(.overview-collapse__fade):not(.overview-collapse__btn) {
  font-size: 1.0625rem !important;
  font-family: var(--font-body, 'Source Serif 4', Georgia, serif) !important;
  line-height: 1.75 !important;
  color: var(--color-text, #2c2c2c) !important;
}

main.destination-city.modernpage .tab-overview .overview-collapse__content p,
main.destination-country.modernpage .tab-overview .overview-collapse__content p,
main.destination-city.modernpage .tab-overview .city-shortdes p,
main.destination-country.modernpage .tab-overview .city-shortdes p {
  font-size: 1.0625rem !important;
  margin-bottom: 1.25rem;
  line-height: 1.75 !important;
}

main.destination-city.modernpage .tab-overview .overview-collapse__content a,
main.destination-country.modernpage .tab-overview .overview-collapse__content a,
main.destination-city.modernpage .tab-overview .city-shortdes a,
main.destination-country.modernpage .tab-overview .city-shortdes a {
  color: var(--color-accent, #16a34a) !important;
}

main.destination-city.modernpage .tab-overview h3,
main.destination-country.modernpage .tab-overview h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: var(--color-dark);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

main.destination-city.modernpage .tab-overview h4,
main.destination-country.modernpage .tab-overview h4 {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 600;
  color: var(--color-dark);
  margin: 1.75rem 0 0.875rem;
  line-height: 1.35;
}

main.destination-city.modernpage .tab-overview h5,
main.destination-country.modernpage .tab-overview h5,
main.destination-city.modernpage .tab-overview h6,
main.destination-country.modernpage .tab-overview h6 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.4;
}

main.destination-city.modernpage .tab-overview ul,
main.destination-country.modernpage .tab-overview ul,
main.destination-city.modernpage .tab-overview ol,
main.destination-country.modernpage .tab-overview ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

main.destination-city.modernpage .tab-overview li,
main.destination-country.modernpage .tab-overview li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

main.destination-city.modernpage .tab-overview img,
main.destination-country.modernpage .tab-overview img,
main.destination-city.modernpage .tab-overview iframe,
main.destination-country.modernpage .tab-overview iframe {
  max-width: 100%;
}

/* ─────────────────────────────────────────
   Overview Collapse — 2-paragraph preview
   ───────────────────────────────────────── */
main.destination-city.modernpage .overview-collapse,
main.destination-country.modernpage .overview-collapse {
  position: relative;
}

main.destination-city.modernpage .overview-collapse:not(.is-expanded) .overview-collapse__content,
main.destination-country.modernpage .overview-collapse:not(.is-expanded) .overview-collapse__content {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 14em;
}

main.destination-city.modernpage .overview-collapse:not(.is-expanded) .overview-collapse__fade,
main.destination-country.modernpage .overview-collapse:not(.is-expanded) .overview-collapse__fade {
  position: absolute;
  bottom: 2.75rem;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

main.destination-city.modernpage .overview-collapse.is-expanded .overview-collapse__fade,
main.destination-country.modernpage .overview-collapse.is-expanded .overview-collapse__fade {
  display: none;
}

main.destination-city.modernpage .overview-collapse__btn,
main.destination-country.modernpage .overview-collapse__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.25rem auto 0;
  padding: 0.55rem 1.8rem;
  border: 1px solid #00a652;
  border-radius: 2px;
  background: #00a652;
  color: #fff !important;
  font-family: var(--font-heading) !important;
  font-size: 0.85rem !important;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.18em;
  text-transform: uppercase !important;
  text-align: center;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

main.destination-city.modernpage .overview-collapse__btn:hover,
main.destination-country.modernpage .overview-collapse__btn:hover {
  color: #00a652 !important;
  background: transparent;
  border-color: #00a652;
  text-decoration: none !important;
}

main.destination-city.modernpage .overview-collapse__btn:focus,
main.destination-country.modernpage .overview-collapse__btn:focus,
main.destination-city.modernpage .overview-collapse__btn:focus-visible,
main.destination-country.modernpage .overview-collapse__btn:focus-visible,
main.destination-city.modernpage .overview-collapse__btn:active,
main.destination-country.modernpage .overview-collapse__btn:active {
  outline: none !important;
  box-shadow: none !important;
}

main.destination-city.modernpage .overview-collapse.is-short .overview-collapse__fade,
main.destination-country.modernpage .overview-collapse.is-short .overview-collapse__fade,
main.destination-city.modernpage .overview-collapse.is-short .overview-collapse__btn,
main.destination-country.modernpage .overview-collapse.is-short .overview-collapse__btn {
  display: none;
}

/* Headings */
main.destination-city.modernpage .heading h1,
main.destination-country.modernpage .heading h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Breadcrumb (luxury, compact) */
main.destination-city.modernpage .dest-breadcrumb,
main.destination-country.modernpage .dest-breadcrumb {
  margin: 0 0 0.75rem;
}

main.destination-city.modernpage .dest-breadcrumb-list,
main.destination-country.modernpage .dest-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

main.destination-city.modernpage .dest-breadcrumb-list li,
main.destination-country.modernpage .dest-breadcrumb-list li {
  display: inline-flex;
  align-items: center;
}

main.destination-city.modernpage .dest-breadcrumb-list li:not(:last-child)::after,
main.destination-country.modernpage .dest-breadcrumb-list li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: rgba(0, 0, 0, 0.35);
}

main.destination-city.modernpage .dest-breadcrumb-list a,
main.destination-country.modernpage .dest-breadcrumb-list a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-normal), border-color var(--transition-normal);
}

main.destination-city.modernpage .dest-breadcrumb-list a:hover,
main.destination-country.modernpage .dest-breadcrumb-list a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

main.destination-city.modernpage .dest-breadcrumb-list [aria-current="page"],
main.destination-country.modernpage .dest-breadcrumb-list [aria-current="page"] {
  color: var(--color-text-muted);
}

main.destination-city.modernpage .heading h1 a,
main.destination-country.modernpage .heading h1 a {
  color: var(--color-primary);
  text-decoration: none;
}

main.destination-city.modernpage .heading h1 a u,
main.destination-country.modernpage .heading h1 a u {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.05em;
}

main.destination-city.modernpage .heading h2,
main.destination-country.modernpage .heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #1a1a2e;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  width: 100%;
}

/* Poster */
main.destination-city.modernpage .city-poster,
main.destination-country.modernpage .city-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-none);
  border: 1px solid var(--color-border);
}

main.destination-city.modernpage .city-poster img,
main.destination-country.modernpage .city-poster img {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 460px);
  object-fit: cover;
  object-position: center;
}

main.destination-city.modernpage .city-poster-content,
main.destination-country.modernpage .city-poster-content {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  transform: none;
  min-height: 5.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 50%, var(--color-dark) 100%);
  display: flex;
  align-items: flex-end;
}

main.destination-city.modernpage .city-poster-content h2,
main.destination-country.modernpage .city-poster-content h2 {
  margin: 0;
  color: var(--color-bg-light);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* Cards (Tours/Props/Gallery thumbnails) */
main.destination-city.modernpage .recomended-box,
main.destination-country.modernpage .recomended-box {
  border: 0;
  border-radius: var(--radius-none);
  background: transparent;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

main.destination-city.modernpage a:hover .recomended-box,
main.destination-country.modernpage a:hover .recomended-box {
  transform: translateY(-2px);
}

main.destination-city.modernpage .recomended-box-img,
main.destination-country.modernpage .recomended-box-img {
  position: relative;
  background: #f8f8f8;
  overflow: hidden;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

main.destination-city.modernpage .recomended-box-img img,
main.destination-country.modernpage .recomended-box-img img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  max-width: none;
  object-fit: fill !important;
  object-position: center !important;
}

/* Fallback: keep landscape thumbnails even if aspect-ratio isn't supported */
@supports not (aspect-ratio: 16 / 9) {
  main.destination-city.modernpage .recomended-box-img,
  main.destination-country.modernpage .recomended-box-img {
    height: 0;
    padding-top: 56.25%;
  }

  main.destination-city.modernpage .recomended-box-img img,
  main.destination-country.modernpage .recomended-box-img img {
    position: absolute;
    inset: 0;
  }
}

main.destination-city.modernpage .recomended-box-info,
main.destination-country.modernpage .recomended-box-info {
  padding: 0.9rem 1rem 1rem;
  text-align: left;
}

main.destination-city.modernpage .recomended-box-info h3,
main.destination-country.modernpage .recomended-box-info h3 {
  margin: 0;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Map block */
main.destination-city.modernpage .city-location-map,
main.destination-country.modernpage .city-location-map {
  border: 1px solid var(--color-border);
}

main.destination-city.modernpage .city-location-map iframe,
main.destination-country.modernpage .city-location-map iframe {
  width: 100% !important;
  max-width: 100%;
}

/* Modern Gallery Slider (Gen 3 inner-slider-new) */
main.destination-city.modernpage .modern-gallery-slider,
main.destination-country.modernpage .modern-gallery-slider {
  margin: 0;
}

main.destination-city.modernpage .modern-gallery-list,
main.destination-country.modernpage .modern-gallery-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

main.destination-city.modernpage .modern-gallery-item,
main.destination-country.modernpage .modern-gallery-item {
  display: block;
}

main.destination-city.modernpage .modern-gallery-slider img,
main.destination-country.modernpage .modern-gallery-slider img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-none);
  max-height: 420px;
  object-fit: cover;
}

/* lightSlider overrides for modernpage context */
main.destination-city.modernpage .lSSlideOuter,
main.destination-country.modernpage .lSSlideOuter {
  margin-bottom: 1.5rem;
}

main.destination-city.modernpage .lSSlideOuter .lSPager.lSGallery,
main.destination-country.modernpage .lSSlideOuter .lSPager.lSGallery {
  margin-top: 1rem;
}

main.destination-city.modernpage .lSSlideOuter .lSPager.lSGallery li,
main.destination-country.modernpage .lSSlideOuter .lSPager.lSGallery li {
  border-radius: var(--radius-none);
  overflow: hidden;
}

main.destination-city.modernpage .lSSlideOuter .lSPager.lSGallery li.active,
main.destination-country.modernpage .lSSlideOuter .lSPager.lSGallery li.active {
  border-color: var(--color-primary);
}

/* ── Modern Gallery Grid (Tab Gallery) ── */
main.modernpage .dest-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

main.modernpage .dest-gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

main.modernpage .dest-gallery-item--featured {
  grid-column: span 2;
  grid-row: span 2;
}

main.modernpage .dest-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

main.modernpage .dest-gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

main.modernpage .dest-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

main.modernpage .dest-gallery-item:hover .dest-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  main.modernpage .dest-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  main.modernpage .dest-gallery-item--featured {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 575.98px) {
  main.modernpage .dest-gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  main.modernpage .dest-gallery-item--featured {
    grid-column: span 1;
  }

  main.modernpage .dest-gallery-item {
    aspect-ratio: 16 / 10;
  }

  main.modernpage .dest-gallery-caption {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

/* Sidebar containment: keep Bootstrap sidebar but give a softer separation */
main.destination-city.modernpage .row > .col-md-4,
main.destination-country.modernpage .row > .col-md-4 {
  border-left: 1px solid var(--color-border);
}

/* Gen 3 sidebar (only used by layouts/right-sidebar-modern.blade.php) */
main.destination-city.modernpage .destination-sidebar,
main.destination-country.modernpage .destination-sidebar {
  padding-left: 1.25rem;
}

main.destination-city.modernpage .dest-sidebar-card,
main.destination-country.modernpage .dest-sidebar-card {
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  border-radius: var(--radius-none);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Enquiry form: redesign to match modern single-card form with header bar */
main.destination-city.modernpage .dest-sidebar-card--enquiry,
main.destination-country.modernpage .dest-sidebar-card--enquiry {
  padding: 0;
  overflow: hidden;
}

main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-form-header,
main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-form-header {
  background: var(--color-dark);
  padding: 0.85rem 1.25rem;
  text-align: center;
}

main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-form-header .dest-sidebar-title,
main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-form-header .dest-sidebar-title {
  margin: 0;
  color: var(--color-bg-light);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-form-body,
main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-form-body {
  padding: 1.25rem;
}

main.destination-city.modernpage .dest-sidebar-card--enquiry .form-group,
main.destination-country.modernpage .dest-sidebar-card--enquiry .form-group {
  margin-bottom: 0.85rem;
}

main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-form-label,
main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-form-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
}

main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-sidebar-input,
main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-sidebar-input {
  height: 42px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: var(--color-bg-light);
}

main.destination-city.modernpage .dest-sidebar-card--enquiry textarea.dest-sidebar-input,
main.destination-country.modernpage .dest-sidebar-card--enquiry textarea.dest-sidebar-input {
  height: auto;
  min-height: 110px;
  padding-top: 0.65rem;
}

main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-sidebar-btn,
main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-sidebar-btn {
  color: var(--color-bg-light);
  border: 1px solid var(--color-dark);
  margin-top: 0.5rem;
  -webkit-transition: all .5s ease-out;
  transition: all .5s ease-out;
  background: linear-gradient(to right, var(--color-primary) 50%, var(--color-dark) 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}

main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-sidebar-btn:hover,
main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-sidebar-btn:hover {
  background-position: left bottom;
  color: var(--color-bg-light);
  border-color: var(--color-primary);
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
}

main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-sidebar-btn:focus-visible,
main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-sidebar-btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

main.destination-city.modernpage .dest-sidebar-title,
main.destination-country.modernpage .dest-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-dark);
  line-height: 1.3;
}

main.destination-city.modernpage .dest-sidebar-list,
main.destination-country.modernpage .dest-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

main.destination-city.modernpage .dest-sidebar-list li + li,
main.destination-country.modernpage .dest-sidebar-list li + li {
  margin-top: 0.5rem;
}

main.destination-city.modernpage .dest-sidebar-list a,
main.destination-country.modernpage .dest-sidebar-list a {
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.5;
}

main.destination-city.modernpage .dest-sidebar-list a:hover,
main.destination-country.modernpage .dest-sidebar-list a:hover {
  color: var(--color-primary);
}

main.destination-city.modernpage .dest-sidebar-input,
main.destination-country.modernpage .dest-sidebar-input {
  font-size: 0.9375rem;
  border-radius: var(--radius-none) !important;
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  box-shadow: none !important;
}

main.destination-city.modernpage .dest-sidebar-card textarea.dest-sidebar-input,
main.destination-country.modernpage .dest-sidebar-card textarea.dest-sidebar-input {
  min-height: 120px;
  resize: vertical;
}

main.destination-city.modernpage .dest-sidebar-btn,
main.destination-country.modernpage .dest-sidebar-btn {
  font-size: 0.9375rem;
  font-weight: 600;
  width: 100%;
  padding: 0.75rem 1.25rem;
}

main.destination-city.modernpage .dest-sidebar-media img,
main.destination-country.modernpage .dest-sidebar-media img {
  width: 100%;
  height: auto;
  display: block;
}

main.destination-city.modernpage .destination-sidebar .g-recaptcha,
main.destination-country.modernpage .destination-sidebar .g-recaptcha {
  -webkit-transform: scale(0.99);
  -webkit-transform-origin: 0 0;
  transform: scale(0.99);
  transform-origin: 0 0;
}

main.destination-city.modernpage .dest-sidebar-card--promo .city-sidebox,
main.destination-country.modernpage .dest-sidebar-card--promo .city-sidebox {
  margin-top: 1.5rem;
}

main.destination-city.modernpage .dest-sidebar-card--resources .city-resources,
main.destination-country.modernpage .dest-sidebar-card--resources .city-resources {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Sidebar resource links */
main.destination-city.modernpage .dest-resource-link-text,
main.destination-country.modernpage .dest-resource-link-text {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  line-height: 1.3;
}

/* Sidebar testimonials */
main.destination-city.modernpage .testimonialbox-carousel p,
main.destination-country.modernpage .testimonialbox-carousel p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

main.destination-city.modernpage .testimonialbox-carousel .cname,
main.destination-country.modernpage .testimonialbox-carousel .cname {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-text);
}

/* Sidebar blog boxes */
main.destination-city.modernpage .city-blog-box-info p,
main.destination-country.modernpage .city-blog-box-info p {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

/* Sidebar city boxes */
main.destination-city.modernpage .city-sidebox-info h3,
main.destination-country.modernpage .city-sidebox-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 0.625rem;
}

main.destination-city.modernpage .city-sidebox-info p,
main.destination-country.modernpage .city-sidebox-info p {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 767.98px) {
  main.destination-city.modernpage .row > .col-md-4,
  main.destination-country.modernpage .row > .col-md-4 {
    border-left: 0;
    border-top: 1px solid var(--color-border);
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }

  main.destination-city.modernpage .destination-sidebar,
  main.destination-country.modernpage .destination-sidebar {
    padding-left: 0;
  }

  main.destination-city.modernpage .overview-section,
  main.destination-country.modernpage .overview-section {
    margin-top: 1rem;
  }

  /* Typography adjustments for mobile */
  main.destination-city.modernpage .tab-overview > div,
  main.destination-country.modernpage .tab-overview > div {
    font-size: 1rem;
  }

  main.destination-city.modernpage .tab-overview h3,
  main.destination-country.modernpage .tab-overview h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.875rem;
  }

  main.destination-city.modernpage .tab-overview h4,
  main.destination-country.modernpage .tab-overview h4 {
    font-size: 1.125rem;
  }

  main.destination-city.modernpage .dest-breadcrumb-list,
  main.destination-country.modernpage .dest-breadcrumb-list {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  main.destination-city.modernpage .recomended-box-info h3,
  main.destination-country.modernpage .recomended-box-info h3 {
    font-size: 1.0625rem;
  }

  /* Sidebar typography for mobile */
  main.destination-city.modernpage .dest-sidebar-title,
  main.destination-country.modernpage .dest-sidebar-title {
    font-size: 1.0625rem;
  }

  main.destination-city.modernpage .dest-resource-link-text,
  main.destination-country.modernpage .dest-resource-link-text {
    font-size: 1.0625rem;
  }

  main.destination-city.modernpage .dest-sidebar-list a,
  main.destination-country.modernpage .dest-sidebar-list a,
  main.destination-city.modernpage .testimonialbox-carousel p,
  main.destination-country.modernpage .testimonialbox-carousel p,
  main.destination-city.modernpage .city-blog-box-info p,
  main.destination-country.modernpage .city-blog-box-info p,
  main.destination-city.modernpage .city-sidebox-info p,
  main.destination-country.modernpage .city-sidebox-info p,
  main.destination-city.modernpage .dest-sidebar-input,
  main.destination-country.modernpage .dest-sidebar-input,
  main.destination-city.modernpage .dest-sidebar-btn,
  main.destination-country.modernpage .dest-sidebar-btn {
    font-size: 0.875rem;
  }

  main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-form-header,
  main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-form-header {
    padding: 0.75rem 1rem;
  }

  main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-form-header .dest-sidebar-title,
  main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-form-header .dest-sidebar-title {
    font-size: 0.9375rem;
  }

  main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-form-label,
  main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-form-label {
    font-size: 0.8125rem;
  }

  main.destination-city.modernpage .dest-sidebar-card--enquiry .dest-sidebar-input,
  main.destination-country.modernpage .dest-sidebar-card--enquiry .dest-sidebar-input {
    height: 40px;
  }
}

/* Mobile: show ALL destination tabs (no horizontal slide) */
@media (max-width: 767.98px) {
  main.destination-city.modernpage .modern-tablist,
  main.destination-country.modernpage .modern-tablist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
    overflow: visible;
    padding: 0.5rem 0;
  }

  main.destination-city.modernpage .modern-tab,
  main.destination-country.modernpage .modern-tab {
    width: 100%;
    white-space: normal;
    text-align: center;
    min-height: 44px;
    padding: 0.65rem 0.5rem;
    line-height: 1.2;
    font-size: 0.875rem;
  }

  main.destination-city.modernpage .city-poster-content,
  main.destination-country.modernpage .city-poster-content {
    padding: 1rem;
  }
}

/* (intentionally no extra rules here) */

/* Cinematic “exploded → assembled” animation for Gen 3 SVG map regions
  - Scoped to the forked banner_map-modern partial only (.destination-map-hero)
  - Triggered by JS (public/js/pages/destinations-map.js) for a consistent start
    while keeping CSS fallbacks for scatter directions.
*/

.destination-map-hero svg a.map-area :is(path, polygon) {
  transform-box: fill-box;
  transform-origin: center;
  transform: none;
  filter: none;
}

/* Assemble motion: start far away + blurred + low opacity, then overshoot and settle */
.destination-map-hero.is-prep svg a.map-area :is(path, polygon) {
  will-change: transform, filter, opacity;
  opacity: 0.14;
  filter: blur(12px);
  transform: translate(var(--dest-map-x), var(--dest-map-y)) scale(0.86);
}

.destination-map-hero.is-assembling svg a.map-area :is(path, polygon) {
  will-change: transform, filter, opacity;
  animation-name: dest-map-assemble;
  animation-duration: var(--dest-map-duration, 2200ms);
  animation-timing-function: cubic-bezier(0.12, 0.95, 0.22, 1);
  animation-fill-mode: both;
  animation-delay: calc(var(--dest-map-delay, 0) * 1ms);
}

/* Scatter directions + stagger delays (repeat pattern across regions) */
.destination-map-hero svg a.map-area { --dest-map-x: 0px; --dest-map-y: 0px; --dest-map-delay: 0; }

.destination-map-hero svg a.map-area:nth-of-type(6n + 1) { --dest-map-x: -280px; --dest-map-y: -220px; --dest-map-delay: 0; }
.destination-map-hero svg a.map-area:nth-of-type(6n + 2) { --dest-map-x: 310px;  --dest-map-y: -180px; --dest-map-delay: 45; }
.destination-map-hero svg a.map-area:nth-of-type(6n + 3) { --dest-map-x: -340px; --dest-map-y: 190px;  --dest-map-delay: 85; }
.destination-map-hero svg a.map-area:nth-of-type(6n + 4) { --dest-map-x: 260px;  --dest-map-y: 260px;  --dest-map-delay: 125; }
.destination-map-hero svg a.map-area:nth-of-type(6n + 5) { --dest-map-x: -210px; --dest-map-y: 320px;  --dest-map-delay: 165; }
.destination-map-hero svg a.map-area:nth-of-type(6n)     { --dest-map-x: 360px;  --dest-map-y: 140px;  --dest-map-delay: 205; }

@keyframes dest-map-assemble {
  0% {
    opacity: 0.14;
    filter: blur(12px);
    transform: translate(var(--dest-map-x), var(--dest-map-y)) scale(0.86);
  }
  62% {
    opacity: 0.95;
    filter: blur(1px);
    transform: translate(calc(var(--dest-map-x) * 0.06), calc(var(--dest-map-y) * 0.06)) scale(1.04);
  }
  78% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-12px, -10px) scale(1.10);
  }
  90% {
    transform: translate(6px, 4px) scale(0.975);
  }
  96% {
    transform: translate(-2px, -1px) scale(1.02);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .destination-map-hero.is-prep svg a.map-area :is(path, polygon),
  .destination-map-hero.is-assembling svg a.map-area :is(path, polygon) {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* City cards (auto slider) — banner_map-modern
  - Default (no JS / reduced motion): grid list of cards
  - Enhanced (JS): “deck” slider with active/prev/next stacking
*/

.destination-map-hero .dest-city-gallery {
  width: min(450px, 88%);
  margin: 0.75rem 0 0 -2.25rem;
  display: grid;
  gap: 0.75rem;
}

.destination-map-hero .dest-city-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  min-height: 72px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-none);
  background: var(--color-dark);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.destination-map-hero .dest-city-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.75) 100%);
  transition: opacity var(--transition-normal);
}

.destination-map-hero .dest-city-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.destination-map-hero .dest-city-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(1.08) contrast(1.1);
}

.destination-map-hero .dest-city-card-title {
  position: relative;
  z-index: 2;
  color: var(--color-bg-light);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  max-width: 100%;
}

.destination-map-hero .dest-city-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border);
}

.destination-map-hero .dest-city-card:hover::before {
  opacity: 0.92;
}

.destination-map-hero .dest-city-card:focus-visible {
  outline: 2px solid var(--color-bg-light);
  outline-offset: 2px;
}

/* Enhanced slider mode */
.destination-map-hero .dest-city-gallery.is-initialized {
  position: relative;
  display: block;
  height: clamp(240px, 22vw, 320px);
}

.destination-map-hero .dest-city-nav {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-bg-light);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  line-height: 1;
  font-size: 1.75rem;
  font-weight: 300;
  padding: 0;
  cursor: pointer;
  transition: transform 320ms ease, opacity 320ms ease;
  -webkit-user-select: none;
  user-select: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.destination-map-hero .dest-city-nav:hover {
  opacity: 0.85;
  transform: translateY(-50%) scale(1.12);
}

.destination-map-hero .dest-city-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.destination-map-hero .dest-city-nav--prev {
  left: 0.5rem;
}

.destination-map-hero .dest-city-nav--next {
  right: 0.5rem;
}

.destination-map-hero .dest-city-gallery:not(.is-initialized) .dest-city-nav {
  display: none;
}

.destination-map-hero .dest-city-gallery.is-initialized .dest-city-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 70%;
  transition: transform 650ms ease, opacity 650ms ease;
}

.destination-map-hero .dest-city-gallery.is-initialized .dest-city-slide .dest-city-card {
  height: 100%;
  min-height: 0;
  padding: 1.1rem 1.25rem;
}

.destination-map-hero .dest-city-gallery.is-initialized .dest-city-slide.is-active {
  opacity: 1;
  transform: translateX(0) rotate(0deg) scale(1);
  z-index: 5;
  pointer-events: auto;
}

.destination-map-hero .dest-city-gallery.is-initialized .dest-city-slide.is-prev {
  opacity: 0.55;
  transform: translateX(-9%) rotate(-3deg) scale(0.95);
  z-index: 3;
}

.destination-map-hero .dest-city-gallery.is-initialized .dest-city-slide.is-next {
  opacity: 0.55;
  transform: translateX(9%) rotate(3deg) scale(0.95);
  z-index: 3;
}

.destination-map-hero .dest-city-gallery.is-initialized .dest-city-slide.is-far-prev {
  opacity: 0.28;
  transform: translateX(-15%) rotate(-5deg) scale(0.92);
  z-index: 2;
}

.destination-map-hero .dest-city-gallery.is-initialized .dest-city-slide.is-far-next {
  opacity: 0.28;
  transform: translateX(15%) rotate(5deg) scale(0.92);
  z-index: 2;
}

@media (max-width: 575.98px) {
  .destination-map-hero .dest-city-gallery {
    width: min(440px, 100%);
  }

  .destination-map-hero .dest-city-gallery.is-initialized {
    height: 240px;
  }
}

/* Mobile/tablet: center the gallery (keep nav available on mobile) */
@media (max-width: 991.98px) {
  .destination-map-hero .dest-city-gallery {
    margin: 0.75rem auto 0 !important;
  }

  /* Show only one image at a time (no deck side cards / no animation) */
  .destination-map-hero .dest-city-gallery.is-initialized .dest-city-slide {
    transition: none !important;
    transform: none !important;
  }

  .destination-map-hero .dest-city-gallery.is-initialized .dest-city-slide:not(.is-active) {
    display: none !important;
  }

  /* Fallback (no JS): keep just the first card visible */
  .destination-map-hero .dest-city-gallery:not(.is-initialized) .dest-city-slide {
    display: none;
  }

  .destination-map-hero .dest-city-gallery:not(.is-initialized) .dest-city-slide:first-child {
    display: block;
  }
}

/* Mobile: keep the slider width proportional */
@media (max-width: 767.98px) {
  .destination-map-hero .dest-city-gallery {
    width: min(520px, 100%);
  }
}

/* ============================================
   Promo Overlap Card — floats at bottom-right of hero banner (Zicasso-style)
   Card lives inside .destination-hero, NOT inside <main>.
   ============================================ */
.destination-hero {
  position: relative;           /* anchor for the card */
}

.destination-hero .promo-overlap-card {
  position: absolute;
  right: 10%;
  bottom: -300px;               /* half on hero, half on content */
  z-index: 20;
  width: 340px;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.destination-hero .promo-overlap-card__inner {
  background: var(--color-bg-light, #fff);
  border: 1px solid var(--color-border, #e5e5e5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 2rem 1.5rem;
  text-align: center;
}

.destination-hero .promo-overlap-card__title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark, #1a1a1a);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.destination-hero .promo-overlap-card__subtitle {
  font-family: var(--font-body, sans-serif);
  font-size: 0.9rem;
  color: var(--color-text-muted, #6b7280);
  margin: 0 0 1.5rem;
  font-style: italic;
}

.destination-hero .promo-overlap-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.destination-hero .promo-overlap-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--color-border, #e5e5e5);
}

.destination-hero .promo-overlap-card__features li:last-child {
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.destination-hero .promo-overlap-card__icon {
  flex-shrink: 0;
  color: var(--color-dark, #1a1a1a);
  display: flex;
  align-items: center;
}

.destination-hero .promo-overlap-card__text {
  font-family: var(--font-body, sans-serif);
  font-size: 0.875rem;
  color: var(--color-text, #333);
  line-height: 1.45;
}

.destination-hero .promo-overlap-card__btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-primary, #0e7a3d);
  color: #fff;
  font-family: var(--font-body, sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--color-primary, #0e7a3d);
  transition: background 0.25s ease, color 0.25s ease;
  letter-spacing: 0.03em;
}

.destination-hero .promo-overlap-card__btn:hover {
  background: transparent;
  color: var(--color-primary, #0e7a3d);
}

.destination-hero .promo-overlap-card__reviews {
  margin-top: 1.25rem;
}

.destination-hero .promo-overlap-card__stars {
  display: block;
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.destination-hero .promo-overlap-card__reviews-text {
  font-family: var(--font-body, sans-serif);
  font-size: 0.8rem;
  color: var(--color-primary, #0e7a3d);
  margin: 0;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.destination-hero .promo-overlap-card__reviews-text:hover {
  opacity: 0.75;
}

/* ── Popover tooltip ── */
.destination-hero .promo-overlap-card__popover-wrap {
  position: relative;
  display: inline-block;
}

.destination-hero .promo-overlap-card__popover {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: var(--color-dark, #1a1a1a);
  color: #fff;
  padding: 1.25rem 1rem 1rem;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 20;
  font-family: var(--font-body, sans-serif);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
}

.destination-hero .promo-overlap-card__popover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--color-dark, #1a1a1a);
}

.destination-hero .promo-overlap-card__popover p {
  margin: 0 0 0.6rem;
  color: #ccc;
}

.destination-hero .promo-overlap-card__popover p:last-of-type {
  margin-bottom: 0;
}

.destination-hero .promo-overlap-card__popover strong {
  color: #fff;
}

.destination-hero .promo-overlap-card__popover a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.destination-hero .promo-overlap-card__popover a:hover {
  color: var(--color-primary, #0e7a3d);
}

.destination-hero .promo-overlap-card__popover-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}

.destination-hero .promo-overlap-card__popover-close:hover {
  opacity: 1;
}

/* Show popover when button aria-expanded=true */
.destination-hero .promo-overlap-card__reviews-text[aria-expanded="true"] + .promo-overlap-card__popover {
  display: block;
  animation: promoPopoverIn 0.2s ease;
}

@keyframes promoPopoverIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Responsive: stack below hero on tablet/mobile */
@media (max-width: 991.98px) {
  .destination-hero .promo-overlap-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin: -40px auto 0;       /* pull up into hero banner */
    padding: 0 1rem;
    box-sizing: border-box;
    z-index: 20;
  }

  .destination-hero .promo-overlap-card__inner {
    padding: 1.5rem 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .destination-hero .promo-overlap-card__title {
    font-size: 1.25rem;
  }
}

/* No extra hero margin — content flows up; card overlaps on top */
@media (min-width: 992px) {
  .destination-hero:has(.promo-overlap-card) {
    margin-bottom: 0;
  }
  .destination-hero:has(.promo-overlap-card) + main {
    position: relative;         /* keep in flow */
    z-index: 1;                 /* below the card (z-index: 20) */
  }
}

/* =========================================================================
   PHASE 1 — Premium "Mini Website" — Brand Elements
   February 27, 2026
   ========================================================================= */

/* -----------------------------------------
   UNIFIED THEME (Warm Gold)
   Single color palette for all destinations.
   All premium sections consume these variables.
   ----------------------------------------- */

main.destination-city.modernpage,
main.destination-country.modernpage {
  overflow-x: clip;
  --dest-accent: #6b7280;
  --dest-accent-light: #f3f4f6;
  --dest-accent-dark: #4b5563;
  --dest-accent-rgb: 107, 114, 128;
  --dest-hero-overlay: rgba(0, 0, 0, 0.35);
  --dest-section-bg: #f9fafb;
  --dest-heading-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --dest-card-radius: 0;
}


/* -----------------------------------------
   LICENSED SERVICES BAR
   Static trust bar — always visible.
   ----------------------------------------- */
main.destination-city.modernpage .licensed-services-bar,
main.destination-country.modernpage .licensed-services-bar {
  background: var(--dest-accent-light);
  border-radius: var(--dest-card-radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

main.destination-city.modernpage .licensed-services-bar__inner,
main.destination-country.modernpage .licensed-services-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

main.destination-city.modernpage .licensed-services-bar__item,
main.destination-country.modernpage .licensed-services-bar__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 200px;
}

main.destination-city.modernpage .licensed-services-bar__icon,
main.destination-country.modernpage .licensed-services-bar__icon {
  color: var(--dest-accent);
  flex-shrink: 0;
}

main.destination-city.modernpage .licensed-services-bar__label,
main.destination-country.modernpage .licensed-services-bar__label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dest-accent-dark);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

main.destination-city.modernpage .licensed-services-bar__sub,
main.destination-country.modernpage .licensed-services-bar__sub {
  display: block;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.3;
}

@media (max-width: 767.98px) {
  main.destination-city.modernpage .licensed-services-bar,
  main.destination-country.modernpage .licensed-services-bar {
    padding: 1rem 1.125rem;
  }

  main.destination-city.modernpage .licensed-services-bar__inner,
  main.destination-country.modernpage .licensed-services-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  main.destination-city.modernpage .licensed-services-bar__item,
  main.destination-country.modernpage .licensed-services-bar__item {
    min-width: 0;
  }
}


/* -----------------------------------------
   PREMIUM SECTION (generic wrapper)
   Reusable for all premium content sections.
   ----------------------------------------- */
main.destination-city.modernpage .premium-section,
main.destination-country.modernpage .premium-section {
  padding-top: 3rem;
}

main.destination-city.modernpage .premium-section__header,
main.destination-country.modernpage .premium-section__header {
  margin-bottom: 1.5rem;
  text-align: center;
}

main.destination-city.modernpage .premium-section__header h2,
main.destination-country.modernpage .premium-section__header h2 {
  font-family: var(--dest-heading-font);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
  display: block;
}

main.destination-city.modernpage .premium-section__subtitle,
main.destination-country.modernpage .premium-section__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted, #6b7280);
  margin-top: 0.375rem;
  line-height: 1.5;
  font-style: normal;
}


/* -----------------------------------------
   EXPERTISE SECTION — Editorial Style
   Clean minimal layout matching premium sections.
   ----------------------------------------- */
main.destination-city.modernpage .premium-section--expertise,
main.destination-country.modernpage .premium-section--expertise {
  background: #f9fafb;
  padding: 2.5rem 0 2rem;
  margin-top: 1rem;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

main.destination-city.modernpage .premium-section--expertise .premium-section__header,
main.destination-country.modernpage .premium-section--expertise .premium-section__header {
  margin-bottom: 2rem;
}

main.destination-city.modernpage .premium-section--expertise .premium-section__header h2,
main.destination-country.modernpage .premium-section--expertise .premium-section__header h2 {
  font-family: var(--dest-heading-font, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
}

main.destination-city.modernpage .premium-section--expertise .premium-section__subtitle,
main.destination-country.modernpage .premium-section--expertise .premium-section__subtitle {
  font-family: var(--dest-heading-font, 'Playfair Display', Georgia, serif);
  font-size: 1.125rem;
  color: #555;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
}

main.destination-city.modernpage .expertise-pillars,
main.destination-country.modernpage .expertise-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

main.destination-city.modernpage .expertise-pillar,
main.destination-country.modernpage .expertise-pillar {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

main.destination-city.modernpage .expertise-pillar:hover,
main.destination-country.modernpage .expertise-pillar:hover {
  box-shadow: none;
  transform: none;
}

main.destination-city.modernpage .expertise-pillar h3,
main.destination-country.modernpage .expertise-pillar h3 {
  font-family: var(--dest-heading-font, 'Playfair Display', Georgia, serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

main.destination-city.modernpage .expertise-pillar h3::after,
main.destination-country.modernpage .expertise-pillar h3::after {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #00a652;
  margin: 0.5rem auto 0;
}

main.destination-city.modernpage .expertise-pillar p,
main.destination-country.modernpage .expertise-pillar p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin: 0.5rem 0 0;
}

@media (max-width: 991.98px) {
  main.destination-city.modernpage .expertise-pillars,
  main.destination-country.modernpage .expertise-pillars {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 480px;
  }
}

@media (max-width: 767.98px) {
  main.destination-city.modernpage .premium-section--expertise,
  main.destination-country.modernpage .premium-section--expertise {
    padding: 1.5rem 0 1rem;
    margin-top: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TOUR CARDS — Scoped to modernpage (destination v4 pages)
   Copied from style.css for independent polish.
   ═══════════════════════════════════════════════════════════════ */

/* ── Modern Card ── */
main.modernpage .modern-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 0;
  overflow: visible;
  transition: all 0.5s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

main.modernpage .modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

main.modernpage .modern-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

main.modernpage .modern-card:hover .modern-card-image {
  transform: scale(1.05);
}

main.modernpage .modern-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

main.modernpage .modern-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.34rem; /* 2 lines consistent height */
}

main.modernpage .modern-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

main.modernpage .modern-card:hover .modern-card-title a {
  color: #28a745;
}

main.modernpage .modern-card-text {
  color: #666;
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tour card description: consistent height */
main.modernpage .modern-card .modern-card-text {
  min-height: 4.42rem; /* 3 lines */
}

/* ── NEW Badge ── */
main.modernpage .new-tour-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 70px;
  height: 70px;
  background-image: url('/images/NEW.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 20;
  animation: destNewBadgeZoom 2s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

@keyframes destNewBadgeZoom {
  0%, 100% { transform: scale(0.95); }
  50%      { transform: scale(1.1); }
}

/* ── Tour Image Container ── */
main.modernpage .tour-image-container {
  position: relative;
  overflow: hidden;
  height: 250px;
  border-radius: 0;
}

main.modernpage .tour-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

main.modernpage .modern-card:hover .tour-image-overlay {
  opacity: 1;
}

/* ── Tour Code Badge ── */
main.modernpage .tour-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(40, 167, 69, 0.4);
  z-index: 5;
  letter-spacing: 0.03em;
}

/* ── Tour Features (type + duration) ── */
main.modernpage .tour-features {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

main.modernpage .tour-feature {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.88rem;
  white-space: nowrap;
}

main.modernpage .tour-feature-icon,
main.modernpage .tour-duration-icon {
  color: #2b548c;
  margin-right: 5px;
  font-size: 0.92rem;
}

main.modernpage .tour-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

main.modernpage .tour-duration .tour-feature {
  margin: 0;
}

/* ── Tour Footer (pricing + CTA) ── */
main.modernpage .tour-footer {
  margin-top: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

main.modernpage .tour-footer hr {
  width: 100%;
  flex-shrink: 0;
}

main.modernpage .tour-footer .modern-pricing-section {
  flex-shrink: 0;
}

main.modernpage .tour-footer .modern-btn {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
}

main.modernpage .modern-pricing-section {
  background-color: #f8f9fa;
  padding: 14px 16px;
  border-radius: 0;
  text-align: left;
  margin-bottom: 15px;
}

main.modernpage .modern-pricing-label {
  color: #6c757d;
  font-size: 11px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

main.modernpage .modern-pricing-amount {
  color: #2b548c;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

main.modernpage .modern-pricing-unit {
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 400;
}

/* Pricing placeholder (when no price available) */
main.modernpage .modern-pricing-section--empty {
  background-color: transparent;
  border: 1px dashed #dee2e6;
}

main.modernpage .modern-pricing-section--empty .modern-pricing-amount {
  font-size: 0.92rem;
  color: #6c757d;
  font-weight: 500;
}

/* ── CTA Button ── */
main.modernpage .modern-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(40, 167, 69, 0.4);
}

main.modernpage .modern-btn:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
  color: #fff;
  text-decoration: none;
}

main.modernpage .modern-btn i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

main.modernpage .modern-btn:hover i {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   Enquiry Form — Modern Two-Column (Form + Image)
   ═══════════════════════════════════════════════════════════ */
main.modernpage .dest-enquiry-section {
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.08));
}

main.modernpage .dest-enquiry-section__inner {
  background: #fff;
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

/* Two-column grid */
main.modernpage .dest-enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

/* ── Form column ── */
main.modernpage .dest-enquiry-form-col {
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main.modernpage .dest-enquiry-form-col__header {
  margin-bottom: 1.75rem;
}

main.modernpage .dest-enquiry-section .dest-sidebar-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
  text-align: left;
  line-height: 1.2;
}

main.modernpage .dest-enquiry-subtitle {
  font-family: var(--font-body, 'Source Serif 4', Georgia, serif);
  font-size: 1.05rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.6;
  margin: 0;
}

/* Form field layout */
main.modernpage .dest-enquiry-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

main.modernpage .dest-enquiry-row {
  margin-bottom: 1rem;
}

main.modernpage .dest-enquiry-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

main.modernpage .dest-enquiry-field {
  display: flex;
  flex-direction: column;
}

/* Labels */
main.modernpage .dest-enquiry-section .dest-form-label {
  font-family: var(--font-body, 'Source Serif 4', Georgia, serif);
  font-weight: 600;
  font-size: 0.92rem;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

/* Inputs — bottom-border style */
main.modernpage .dest-enquiry-section .dest-sidebar-input {
  border: none;
  border-bottom: 1.5px solid #d1d5db;
  border-radius: 0;
  background: transparent;
  padding: 0.6rem 0;
  font-family: var(--font-body, 'Source Serif 4', Georgia, serif);
  font-size: 1rem;
  color: #1a1a2e;
  transition: border-color 0.25s ease;
}

main.modernpage .dest-enquiry-section .dest-sidebar-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

main.modernpage .dest-enquiry-section .dest-sidebar-input:focus {
  border-bottom-color: var(--color-primary, #00a652);
  box-shadow: none;
  outline: none;
}

/* Textarea */
main.modernpage .dest-enquiry-section textarea.dest-sidebar-input {
  min-height: 80px;
  resize: vertical;
}

/* Actions row (recaptcha + submit) */
main.modernpage .dest-enquiry-row--actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

main.modernpage .dest-enquiry-field--submit {
  display: flex;
  align-items: flex-end;
}

/* Submit button */
main.modernpage .dest-enquiry-section .dest-sidebar-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: #fff;
  padding: 0.75rem 2.5rem;
  border-radius: 0;
  font-family: var(--font-body, 'Source Serif 4', Georgia, serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(40, 167, 69, 0.35);
  width: 100%;
}

main.modernpage .dest-enquiry-section .dest-sidebar-btn:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.45);
}

main.modernpage .dest-enquiry-section .dest-sidebar-btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.2);
  outline-offset: 2px;
}

/* ── Image column ── */
main.modernpage .dest-enquiry-image-col {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

main.modernpage .dest-enquiry-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Error text */
main.modernpage .dest-enquiry-section .text-red {
  color: #dc3545;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  main.modernpage .dest-enquiry-grid {
    grid-template-columns: 1fr 0.8fr;
  }
  main.modernpage .dest-enquiry-form-col {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  main.modernpage .dest-enquiry-grid {
    grid-template-columns: 1fr;
  }

  /* Image moves above form on mobile */
  main.modernpage .dest-enquiry-image-col {
    order: -1;
    max-height: 220px;
  }

  main.modernpage .dest-enquiry-form-col {
    padding: 1.5rem;
  }

  main.modernpage .dest-enquiry-row--half {
    grid-template-columns: 1fr;
    gap: 0;
  }

  main.modernpage .dest-enquiry-row--half .dest-enquiry-field {
    margin-bottom: 1rem;
  }

  main.modernpage .dest-enquiry-row--actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  main.modernpage .dest-enquiry-form-col {
    padding: 1.25rem;
  }

  main.modernpage .dest-enquiry-image-col {
    max-height: 180px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tour Cards
   ═══════════════════════════════════════════ */

@media (max-width: 991.98px) {
  main.modernpage .tour-image-container,
  main.modernpage .modern-card-image {
    height: 200px;
  }

  main.modernpage .modern-card-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 767.98px) {
  main.modernpage .tour-image-container,
  main.modernpage .modern-card-image {
    height: 180px;
  }

  main.modernpage .modern-card-body {
    padding: 1.125rem;
  }

  main.modernpage .modern-card-text {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 0.88rem;
  }

  main.modernpage .modern-pricing-amount {
    font-size: 1.3rem;
  }

  main.modernpage .tour-features {
    flex-direction: column;
    gap: 0.35rem;
  }

  main.modernpage .new-tour-badge {
    width: 52px;
    height: 52px;
    top: -8px;
    right: -8px;
  }
}

@media (max-width: 575.98px) {
  main.modernpage .modern-btn {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   LUXURY PROPERTY CARDS — scoped to main.modernpage
   Covers: Villa, Apartment, Featured Properties
   ═══════════════════════════════════════════════════════════ */

main.modernpage .prop-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

main.modernpage .prop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

/* ── Image Container ── */
main.modernpage .prop-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

main.modernpage .prop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

main.modernpage .prop-card:hover .prop-card-image img {
  transform: scale(1.06);
}

/* ── Location Badge (top-left, dark overlay) ── */
main.modernpage .prop-location-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  background: rgba(30, 41, 51, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 0;
  letter-spacing: 0.3px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════
   Recent Blog Section — Full-width grid
   Uses dest-* design tokens. Scoped via .recent-blog-section
   inside main.modernpage (placed before footer).
   ══════════════════════════════════════════════════════ */

.recent-blog-section {
  padding: 4rem 0 3.5rem;
  background: var(--dest-section-bg, #f9fafb);
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

.recent-blog-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.recent-blog-section__header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.recent-blog-section__title {
  font-family: var(--dest-heading-font, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
  display: block;
}

.recent-blog-section__subtitle {
  font-family: var(--font-body, 'Source Serif 4', Georgia, serif);
  font-size: 1.05rem;
  color: var(--color-text-muted, #6b7280);
  margin: 0.375rem 0 0;
  line-height: 1.6;
  font-style: normal;
}

.recent-blog-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.recent-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-light, #fff);
  border-radius: var(--dest-card-radius, 0);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.recent-blog-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dest-accent-light, #f3f4f6);
}

.recent-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recent-blog-card:hover .recent-blog-card__image img {
  transform: scale(1.04);
}

.recent-blog-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recent-blog-card__title {
  font-family: var(--dest-heading-font, 'Playfair Display', Georgia, serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text, #2c2c2c);
  margin: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   ACCORDION GALLERY — hover expand + auto-slide
   ═══════════════════════════════════════════════════════ */
main.destination-city.modernpage .accordion-gallery,
main.destination-country.modernpage .accordion-gallery {
  display: flex;
  gap: 6px;
  height: 380px;
  overflow: hidden;
}

main.destination-city.modernpage .accordion-gallery__panel,
main.destination-country.modernpage .accordion-gallery__panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

main.destination-city.modernpage .accordion-gallery__panel.is-active,
main.destination-country.modernpage .accordion-gallery__panel.is-active {
  flex: 4;
}

main.destination-city.modernpage .accordion-gallery__panel:hover,
main.destination-country.modernpage .accordion-gallery__panel:hover {
  flex: 4;
}

main.destination-city.modernpage .accordion-gallery__img,
main.destination-country.modernpage .accordion-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

main.destination-city.modernpage .accordion-gallery__panel:hover .accordion-gallery__img,
main.destination-country.modernpage .accordion-gallery__panel:hover .accordion-gallery__img,
main.destination-city.modernpage .accordion-gallery__panel.is-active .accordion-gallery__img,
main.destination-country.modernpage .accordion-gallery__panel.is-active .accordion-gallery__img {
  transform: scale(1.05);
}

main.destination-city.modernpage .accordion-gallery__caption,
main.destination-country.modernpage .accordion-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff;
  font-family: var(--dest-heading-font, 'Playfair Display', Georgia, serif);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

main.destination-city.modernpage .accordion-gallery__panel.is-active .accordion-gallery__caption,
main.destination-country.modernpage .accordion-gallery__panel.is-active .accordion-gallery__caption,
main.destination-city.modernpage .accordion-gallery__panel:hover .accordion-gallery__caption,
main.destination-country.modernpage .accordion-gallery__panel:hover .accordion-gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  main.destination-city.modernpage .accordion-gallery,
  main.destination-country.modernpage .accordion-gallery {
    flex-direction: column;
    height: auto;
    gap: 4px;
  }

  main.destination-city.modernpage .accordion-gallery__panel,
  main.destination-country.modernpage .accordion-gallery__panel {
    height: 80px;
    flex: none;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  main.destination-city.modernpage .accordion-gallery__panel.is-active,
  main.destination-country.modernpage .accordion-gallery__panel.is-active,
  main.destination-city.modernpage .accordion-gallery__panel:hover,
  main.destination-country.modernpage .accordion-gallery__panel:hover {
    height: 260px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  main.destination-city.modernpage .accordion-gallery,
  main.destination-country.modernpage .accordion-gallery {
    height: 300px;
  }
}

/* Accordion Gallery - View More Button */
main.destination-city.modernpage .accordion-gallery__more,
main.destination-country.modernpage .accordion-gallery__more {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

main.destination-city.modernpage .accordion-gallery__more .overview-collapse__btn,
main.destination-country.modernpage .accordion-gallery__more .overview-collapse__btn {
  position: static;
  left: auto;
  transform: none;
}

/* Tab Panel Divider – spinning symbol */
main.destination-city.modernpage .tabpanel-divider,
main.destination-country.modernpage .tabpanel-divider {
  display: flex;
  justify-content: center;
  padding: 20px 0 0;
  margin-bottom: -90px;
}

main.destination-city.modernpage .tabpanel-divider__symbol,
main.destination-country.modernpage .tabpanel-divider__symbol {
  transition: opacity 0.3s ease;
}

@keyframes symbolSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

main.destination-city.modernpage .tabpanel-divider__symbol.is-spinning,
main.destination-country.modernpage .tabpanel-divider__symbol.is-spinning {
  animation: symbolSpin 0.8s ease-in-out;
}

/* ── Gallery Lightbox (fullscreen image viewer) ── */

/* Hide fixed header when lightbox is open */
body.gallery-lightbox-open .fixed-top,
body.gallery-lightbox-open header {
  display: none !important;
}

.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.is-active {
  display: flex;
  opacity: 1;
}

.gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox__nav--prev { left: 20px; }
.gallery-lightbox__nav--next { right: 20px; }

.gallery-lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s ease;
}

.gallery-lightbox__caption {
  color: #fff;
  font-size: 0.95rem;
  margin-top: 12px;
  text-align: center;
  opacity: 0.85;
  max-width: 600px;
}

.gallery-lightbox__caption:empty {
  display: none;
}

/* Make gallery grid images clickable */
main.modernpage [data-gallery-lightbox] .dest-gallery-item {
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .gallery-lightbox__nav--prev { left: 10px; }
  .gallery-lightbox__nav--next { right: 10px; }
  .gallery-lightbox__close { top: 12px; right: 12px; }
  .gallery-lightbox__nav { width: 40px; height: 40px; font-size: 1rem; }
}

.recent-blog-card__cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary, #00a652);
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.recent-blog-card:hover .recent-blog-card__cta {
  opacity: 0.8;
}

/* Tablet */
@media (max-width: 767.98px) {
  .recent-blog-section {
    padding: 2.5rem 0;
  }

  .recent-blog-section__header {
    margin-bottom: 1.75rem;
  }

  .recent-blog-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .recent-blog-card__body {
    padding: 1rem;
  }
}

/* Small mobile — compact horizontal cards */
@media (max-width: 480px) {
  .recent-blog-section__grid {
    grid-template-columns: 1fr;
  }

  .recent-blog-card {
    flex-direction: row;
  }

  .recent-blog-card__image {
    flex: 0 0 120px;
    aspect-ratio: auto;
    min-height: 100px;
  }

  .recent-blog-card__title {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .recent-blog-card__cta {
    margin-top: 0.5rem;
    font-size: 0.8rem;
  }
}

main.modernpage .prop-location-badge i {
  margin-right: 4px;
  color: #e8c47c;
}

/* ── Type Badge (legacy — hidden, moved to card body) ── */
main.modernpage .prop-type-badge {
  display: none;
}

/* ── Type Tag (inline, above title in card body) ── */
main.modernpage .prop-type-tag {
  display: inline-block;
  background: linear-gradient(135deg, #8b6914, #c49b3a);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

/* ── Card Body ── */
main.modernpage .prop-card-body {
  padding: 1.25rem 1.25rem 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

main.modernpage .prop-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 0.75rem;
  color: #2c2c2c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3.34rem;
}

/* ── Hotel Star Rating ── */
main.modernpage .prop-star-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 0.6rem;
}

main.modernpage .prop-star {
  color: #d4a843;
  font-size: 1.1rem;
  line-height: 1;
}

main.modernpage .prop-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

main.modernpage .prop-card-title a:hover {
  color: #8b6914;
}

/* ── Features Row (beds, baths, guests) ── */
main.modernpage .prop-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

main.modernpage .prop-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: #555;
  font-weight: 500;
}

main.modernpage .prop-feature i {
  color: #8b6914;
  font-size: 0.92rem;
  width: 16px;
  text-align: center;
}

/* ── Amenities Preview ── */
main.modernpage .prop-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  margin-top: auto;
}

main.modernpage .prop-amenity-tag {
  display: inline-block;
  background: #f5f0e6;
  color: #6b5317;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 0;
  letter-spacing: 0.2px;
}

main.modernpage .prop-amenity-more {
  display: inline-block;
  background: #eee;
  color: #777;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 0;
}

/* ── Card Footer (price + CTA) ── */
main.modernpage .prop-card-footer {
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  border-top: 1px solid #f0ece4;
}

main.modernpage .prop-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

main.modernpage .prop-pricing-label {
  font-size: 0.72rem;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

main.modernpage .prop-pricing-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #8b6914;
}

main.modernpage .prop-pricing-period {
  font-size: 0.72rem;
  color: #999;
}

/* ── View Details Button ── */
main.modernpage .prop-btn {
  display: inline-block;
  background: linear-gradient(135deg, #8b6914, #c49b3a);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

main.modernpage .prop-btn:hover {
  background: linear-gradient(135deg, #6d5210, #a88430);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 105, 20, 0.35);
}

/* ═══ PROPERTY CARD RESPONSIVE ═══ */

@media (max-width: 991.98px) {
  main.modernpage .prop-card-title {
    font-size: 1.05rem;
  }

  main.modernpage .prop-pricing-amount {
    font-size: 1.15rem;
  }

  main.modernpage .prop-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }
}

@media (max-width: 767.98px) {
  main.modernpage .prop-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  main.modernpage .prop-btn {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  main.modernpage .prop-features {
    gap: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  main.modernpage .prop-card-body {
    padding: 1rem 1rem 0.5rem;
  }

  main.modernpage .prop-card-footer {
    padding: 0.75rem 1rem 1rem;
  }

  main.modernpage .prop-location-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}


/* ═══════════════════════════════════════════════
   CARD CAROUSEL / SLIDER
   ═══════════════════════════════════════════════ */

main.modernpage .dest-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 48px 50px;
}

main.modernpage .dest-carousel-track {
  display: flex;
  gap: 20px;
  will-change: transform;
}

main.modernpage .dest-carousel-track > * {
  flex-shrink: 0;
}

/* ── Few-items layout: horizontal cards on desktop ── */
@media (min-width: 992px) {
  main.modernpage .dest-carousel--few .dest-carousel-track {
    flex-direction: column;
  }

  main.modernpage .dest-carousel--few .dest-carousel-slide {
    min-width: 100% !important;
    max-width: 100% !important;
  }

  main.modernpage .dest-carousel--few .modern-card {
    flex-direction: row;
    height: auto;
  }

  /* ── Image column ── */
  main.modernpage .dest-carousel--few .tour-image-container {
    flex-shrink: 0;
    width: 300px;
    min-height: 0;
    overflow: hidden;
  }

  main.modernpage .dest-carousel--few .modern-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ── Body: 2-column grid (content left, pricing right) ── */
  main.modernpage .dest-carousel--few .modern-card-body {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 220px;
    grid-template-rows: auto auto 1fr;
    gap: 2px 20px;
    padding: 14px 18px;
    align-content: center;
  }

  main.modernpage .dest-carousel--few .modern-card-title {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    align-self: start;
  }

  main.modernpage .dest-carousel--few .modern-card-text {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 0;
  }

  main.modernpage .dest-carousel--few .tour-features {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    margin: 0;
  }

  /* Footer spans right column, all rows */
  main.modernpage .dest-carousel--few .tour-footer {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 20px 0 0;
    margin: 0;
    border-left: 1px solid #e9ecef;
    padding-left: 20px;
  }

  main.modernpage .dest-carousel--few .tour-footer hr {
    display: none;
  }

  main.modernpage .dest-carousel--few .modern-pricing-section {
    padding: 10px 12px;
    margin-bottom: 10px;
    text-align: center;
  }

  main.modernpage .dest-carousel--few .modern-btn {
    padding: 0.7rem 1.4rem;
    white-space: nowrap;
  }

  main.modernpage .dest-carousel--few .new-tour-badge {
    top: -12px;
    left: auto;
    right: -12px;
  }

  /* ── Property cards horizontal layout ── */
  main.modernpage .dest-carousel--few .prop-card {
    flex-direction: row;
    height: auto;
  }

  main.modernpage .dest-carousel--few .prop-card-image {
    flex-shrink: 0;
    width: 300px;
    aspect-ratio: unset;
  }

  main.modernpage .dest-carousel--few .prop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  main.modernpage .dest-carousel--few .prop-card-body {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    align-content: center;
  }

  main.modernpage .dest-carousel--few .prop-card-title {
    min-height: 0;
    margin-bottom: 0.4rem;
  }

  main.modernpage .dest-carousel--few .prop-features {
    margin-bottom: 0.4rem;
  }

  main.modernpage .dest-carousel--few .prop-amenities {
    margin-top: 0;
    margin-bottom: 0;
  }

  main.modernpage .dest-carousel--few .prop-card-footer {
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: none;
    border-left: 1px solid #f0ece4;
    padding: 14px 20px;
    min-width: 200px;
    gap: 10px;
  }

  main.modernpage .dest-carousel--few .prop-btn {
    padding: 10px 22px;
  }
}

/* ── Navigation Arrows ── */
main.modernpage .dest-carousel-prev,
main.modernpage .dest-carousel-next {
  position: absolute;
  top: calc(50% - 35px);
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(139, 105, 20, 0.3);
  background: rgba(255, 255, 255, 0.95);
  color: #8b6914;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

main.modernpage .dest-carousel-prev {
  left: 0;
}

main.modernpage .dest-carousel-next {
  right: 0;
}

main.modernpage .dest-carousel-prev:hover,
main.modernpage .dest-carousel-next:hover {
  background: #8b6914;
  color: #fff;
  border-color: #8b6914;
  box-shadow: 0 4px 15px rgba(139, 105, 20, 0.35);
}

main.modernpage .dest-carousel-prev.disabled,
main.modernpage .dest-carousel-next.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ── Dot Pagination ── */
main.modernpage .dest-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
}

main.modernpage .dest-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #8b6914;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

main.modernpage .dest-carousel-dot.active {
  background: #8b6914;
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(139, 105, 20, 0.4);
}

main.modernpage .dest-carousel-dot:hover {
  background: rgba(139, 105, 20, 0.5);
}

/* ── Responsive: tablets ── */
@media (max-width: 1199.98px) {
  main.modernpage .dest-carousel {
    padding-left: 42px;
    padding-right: 42px;
  }
  main.modernpage .dest-carousel-prev {
    left: 0;
    width: 38px;
    height: 38px;
  }
  main.modernpage .dest-carousel-next {
    right: 0;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 767.98px) {
  main.modernpage .dest-carousel {
    padding-left: 38px;
    padding-right: 38px;
    padding-bottom: 44px;
  }
  main.modernpage .dest-carousel-prev,
  main.modernpage .dest-carousel-next {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  main.modernpage .dest-carousel-dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 575.98px) {
  main.modernpage .dest-carousel {
    padding-left: 38px;
    padding-right: 38px;
  }
  main.modernpage .dest-carousel-prev {
    left: 0;
  }
  main.modernpage .dest-carousel-next {
    right: 0;
  }
}
