/* === Brand palette (fallbacks) === */
:root {
  --cs-ink: #2C1B18;
  --cs-accent: #B76E79;
  --cs-panel: #FAF7F2;
}

/* === Section scaffold === */
.cs-sections--alt > section { padding: clamp(20px, 4vw, 36px) 0; }
.cs-sections--alt > section:nth-child(odd)  { background: #fff; }
.cs-sections--alt > section:nth-child(even) { background: var(--cs-panel); }

.cs-sec-title {
  text-align: center;
  font-size: clamp(1.6rem, 1.4vw + 1.1rem, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
.cs-sec-title::after {
  content: "";
  display: block;
  width: 2px;
  height: 18px;
  margin: 8px auto 0;
  background: var(--cs-ink);
  opacity: .35;
}
.cs-sec-sub {
  text-align: center;
  max-width: 70ch;
  margin: 8px auto 16px;
  color: #7a6c67;
}

/* === Hero (smaller + centered) === */
.cs-hero.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Smaller height */
  min-height: clamp(220px, 28vw, 220px);
  background: var(--cs-panel);
  background-size: cover;
  background-position: center;
}

.cs-hero__inner {
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  /* Slightly tighter padding to match smaller hero */
  padding: clamp(18px, 4vw, 32px);

  /* Center everything in the hero */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-hero__title { 
  margin: 0 0 6px; 
  color: var(--cs-ink);
}
.cs-hero__sub { 
  margin: 0 0 12px; 
  color: #6b5f5c; 
}

.cs-hero--hasimg .cs-hero__title,
.cs-hero--hasimg .cs-hero__sub {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* Hero search: compact + centered */
.cs-search.cs-search--solo {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  justify-content: center;   /* center the grid itself */
}
@media (max-width: 720px){
  .cs-search.cs-search--solo { grid-template-columns: 1fr; }
}

.cs-search.cs-search--solo input {
  width: 32ch;      /* smaller input length */
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

.cs-btn {
  display: inline-block;
  background: var(--cs-ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.cs-btn:hover { background: var(--cs-accent); }

/* === Country guides grid === */
.ds-grid { display: grid; gap: 14px; max-width: min(1200px, 92vw); margin: 0 auto; }
.ds-grid--countries { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px){ .ds-grid--countries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .ds-grid--countries { grid-template-columns: 1fr; } }

.ds-country-card {
  position: relative; display: block; text-decoration: none; color: inherit;
  border: 1px solid #eadfd7; border-radius: 14px; overflow: hidden; background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ds-country-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.ds-country-card__media { width: 100%; aspect-ratio: 16/10; background: #eee center/cover no-repeat; }
.ds-country-card__body { padding: 12px; text-align: center; }
.ds-country-card__title { margin: 0 0 4px; font-weight: 800; color: var(--cs-ink); }
.ds-country-card__cta { color: var(--cs-ink); text-decoration: underline; font-weight: 700; }

/* === Tabs: Browse by area === */
.ds-browse { max-width: min(1200px, 92vw); margin: 0 auto; }
.ds-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.ds-tab {
  background: #fff; border: 1px solid #eadfd7; color: var(--cs-ink);
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.ds-tab.is-active, .ds-tab:hover { background: var(--cs-accent); color: #fff; border-color: var(--cs-accent); }
.ds-panel { display: none; }
.ds-panel.is-active { display: block; }
.ds-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ds-empty { color: #7a6c67; }

/* === Inspiration by vibe === */
.ds-grid--vibes { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px){ .ds-grid--vibes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .ds-grid--vibes { grid-template-columns: 1fr; } }

.ds-vibe-card {
  position: relative; display: block; text-decoration: none; color: inherit;
  border: 1px solid #eadfd7; border-radius: 14px; overflow: hidden; background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ds-vibe-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.ds-vibe-card__media { width: 100%; aspect-ratio: 16/10; background: #eee center/cover no-repeat; }
.ds-vibe-card__body { padding: 12px; text-align: center; }
.ds-vibe-card__title { margin: 0 0 4px; font-weight: 800; color: var(--cs-ink); }
.ds-vibe-card__cta { color: var(--cs-ink); text-decoration: underline; font-weight: 700; }

/* === Trust cards === */
.ds-trust__grid {
  max-width: min(1000px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 900px){ .ds-trust__grid { grid-template-columns: 1fr; } }

.ds-trust__item {
  background: transparent; border: 0; box-shadow: none;
  padding: 12px 10px; text-align: center; color: var(--cs-ink);
}
.ds-trust__icon {
  margin: 0 auto 10px; width: 56px; height: 56px; border-radius: 999px;
  border: 2px solid var(--cs-accent); background: rgba(183,110,121,.08); color: var(--cs-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.ds-trust__title { margin: 6px 0 6px; font-weight: 800; }
.ds-trust__text { margin: 0 auto; max-width: 60ch; color: #6b5f5c; }

/* === FAQ === */
.ds-faq { max-width: min(900px, 92vw); margin: 0 auto; }
.ds-faq__item { background: #fff; border: 1px solid #eadfd7; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.ds-faq__item > summary { cursor: pointer; font-weight: 700; color: var(--cs-ink); }
.ds-faq__body { margin-top: 8px; color: #6b5f5c; }

/* Accessibility helper */
.sr-only{ position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ==== Country guides: seamless tiles + horizontal scroll on small screens ==== */

/* Grid fills the section width with zero gaps */
.ds-grid--countries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;                       /* no gaps => seamless flow */
  overflow: hidden;             /* clip hover zoom edges on desktop */
}

/* Remove all card chrome for true photo tiles */
.ds-country-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* Full-bleed image with gentle zoom on hover/focus */
.ds-country-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform .45s ease;
}
.ds-country-card:hover .ds-country-card__media,
.ds-country-card:focus-visible .ds-country-card__media {
  transform: scale(1.06);
}

/* Centered overlay text (no borders), readable on any image */
.ds-country-card__body {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none; /* tile remains the clickable target */
  padding: 12px;
}
.ds-country-card__title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.1rem, 1.1vw + 1rem, 1.6rem);
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.ds-country-card__cta {
  margin-top: 6px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: rgba(0,0,0,.28);
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
  pointer-events: auto; /* allow hover/focus */
}
.ds-country-card:hover .ds-country-card__cta,
.ds-country-card:focus-visible .ds-country-card__cta {
  background: rgba(0,0,0,.38);
}

/* --- Tablet & mobile: keep one row and enable horizontal scroll --- */
@media (max-width: 1100px) {
  .ds-grid--countries {
    grid-template-columns: none;          /* switch to auto-flow columns */
    grid-auto-flow: column;
    grid-auto-columns: min(80vw, 560px);  /* width of each tile */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;    /* smooth momentum scroll */
    scroll-snap-type: x mandatory;        /* snap between tiles */
    scrollbar-width: none;                /* hide scrollbar (Firefox) */
  }
  .ds-grid--countries::-webkit-scrollbar { display: none; } /* hide (WebKit) */

  .ds-country-card { scroll-snap-align: start; }
}

@media (max-width: 560px) {
  .ds-grid--countries { grid-auto-columns: 88vw; } /* a bit wider per tile on phones */
}

/* ==== Country guides: full-bleed, larger tiles, seamless flow ==== */

/* Make the whole section full width while keeping titles centered */
.ds-countries {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: clamp(16px, 3vw, 28px);
  padding-bottom: clamp(16px, 3vw, 28px);
}
.ds-countries .cs-sec-title,
.ds-countries .cs-sec-sub {
  max-width: min(1200px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* Grid spans full width; no gaps for a seamless feel */
.ds-grid--countries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;                   /* seamless between tiles */
  width: 100%;
  max-width: none;          /* override base grid max-width */
  overflow: hidden;         /* clip hover zoom */
}

/* True photo tiles: larger/taller visuals */
.ds-country-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.ds-country-card__media {
  width: 100%;
  /* Taller than before: change ratio to make tiles more dominant */
  aspect-ratio: 4 / 3;             /* was 16/10 */
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform .45s ease;
}
.ds-country-card:hover .ds-country-card__media,
.ds-country-card:focus-visible .ds-country-card__media {
  transform: scale(1.06);
}

/* Centered overlay text with a little more presence */
.ds-country-card__body {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
  padding: 12px;
}
.ds-country-card__title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.25rem, 1.4vw + 1rem, 1.5rem); /* bigger */
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.ds-country-card__cta {
  margin-top: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: rgba(0,0,0,.28);
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-block;
  pointer-events: auto;
}
.ds-country-card:hover .ds-country-card__cta,
.ds-country-card:focus-visible .ds-country-card__cta {
  background: rgba(0,0,0,.38);
}

/* Tablet & mobile: keep in a single row and make each tile wider */
@media (max-width: 1100px) {
  .ds-grid--countries {
    grid-template-columns: none;         /* switch to horizontal flow */
    grid-auto-flow: column;
    grid-auto-columns: min(95vw, 720px); /* bigger tiles on small screens */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .ds-grid--countries::-webkit-scrollbar { display: none; }
  .ds-country-card { scroll-snap-align: start; }
  /* Keep them tall on smaller viewports too */
  .ds-country-card__media { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .ds-grid--countries { grid-auto-columns: 94vw; } /* almost full screen per tile */
}

/* === Match Home page section titles === */
.cs-sec-title{
  text-align:center;
  font-size: clamp(1.8rem, 1.6vw + 1.1rem, 1.5rem);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.15;
  margin: 0;
  color: var(--cs-ink);
}
.cs-sec-title::after{
  content:"";
  display:block;
  width:2px;
  height:20px;
  margin:10px auto 0;
  background: var(--cs-ink);
  opacity:.35;
}
.cs-sec-sub{
  text-align:center;
  max-width:70ch;
  margin:8px auto 16px;
  color:#7a6c67;
}

/* === Browse by area: make chips clearer & more scannable === */
.ds-pills { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px 12px;            /* a touch more space between chips */
  margin-top: 10px;
}

.ds-pills .cs-chip {
  --chip-bg: #fff;
  --chip-border: #d9cfc8;
  --chip-ink: var(--cs-ink, #4B2E2A);

  background: var(--chip-bg);
  color: var(--chip-ink);
  border: 2px solid var(--chip-border);   /* stronger outline = clearer edges */
  border-radius: 9999px;
  padding: 10px 16px;                     /* bigger tap target */
  font-weight: 600;                       /* clearer words */
  font-size: clamp(0.95rem, 0.5vw + 0.85rem, 0.85rem);
  letter-spacing: .01em;
  text-decoration: none !important;       /* no underline */
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 10px rgba(0,0,0,.05);
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ds-pills .cs-chip:hover,
.ds-pills .cs-chip:focus {
  background: var(--cs-ink, #4B2E2A);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.ds-pills .cs-chip:focus-visible {
  outline: 2px solid var(--cs-accent, #B76E79);
  outline-offset: 2px;
}

/* If that section ever has a photo background, keep chips readable */
.ds-browse--hasbg .ds-pills .cs-chip {
  --chip-bg: rgba(255,255,255,.92);
  --chip-border: rgba(0,0,0,.08);
  --chip-ink: var(--cs-ink, #4B2E2A);
  backdrop-filter: saturate(1.1) blur(1px);
}

@media (max-width: 720px){
  .ds-pills .cs-chip {
    padding: 12px 16px;                   /* even comfier on mobile */
    font-size: 1.02rem;
  }
}

/* Add breathing room between the title line and the country pills (tabs) */
.ds-browse .ds-tabs {
  margin-top: 16px; /* tweak this number to taste (12–20px) */
}

/* If you also want a tiny extra gap from the title itself */
.ds-browse .cs-sec-title { 
  margin-bottom: 6px;  /* keep small; main spacing comes from .ds-tabs */
}

/* When the section has a photo background, keep spacing consistent */
.ds-browse.ds-browse--hasbg .ds-tabs {
  margin-top: 18px;
}

/* === Destinations by vibe (tabs → horizontal scrollers) ================== */
.dv { padding-top: 16px; padding-bottom: 16px; }

/* Tabs */
.dv-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 14px; margin-bottom: 10px;
}
.dv-tab {
  appearance: none; border: 1px solid #eadfd7; background: #fff;
  color: var(--cs-ink, #fff); border-radius: 999px; padding: 8px 14px;
  font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.dv-tab:hover { transform: translateY(-1px); }
.dv-tab.is-active { background: var(--cs-ink, #4B2E2A); color:#fff; border-color: var(--cs-ink, #4B2E2A); }

/* Panels */
.dv-panel { display: none; }
.dv-panel.is-active { display: block; }

/* Carousel */
.dv-carousel {
  position: relative; margin-top: 10px;
}
.dv-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding: 4px 2px 8px;
}
.dv-track::-webkit-scrollbar { height: 10px; }
.dv-track::-webkit-scrollbar-thumb { background: #e1d7cf; border-radius: 999px; }
.dv-track::-webkit-scrollbar-track { background: #f6f1ec; border-radius: 999px; }

/* 3-up cards on desktop; always large cards, scroll for overflow */
.dv-card {
  position: relative; flex: 0 0 calc(33.333% - 10px); min-width: 320px; max-width: 520px;
  aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  scroll-snap-align: start; text-decoration: none;
  background: #eee; transform: translateZ(0);
}
@media (max-width: 980px){ .dv-card { flex-basis: calc(45% - 10px); } }
@media (max-width: 640px){ .dv-card { flex-basis: 85%; min-width: 280px; } }

.dv-card__media {
  position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease;
}
.dv-card:hover .dv-card__media { transform: scale(1.06); }

/* Overlay content (pin → title → CTA) centered near bottom */
.dv-card__overlay {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: grid; place-items: center; gap: 6px; padding: 8px 10px; text-align: center;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
.dv-pin { display: inline-flex; align-items: center; justify-content: center; color: #fff; opacity: .95; }
.dv-card__title {
  margin: 0; font-weight: 800; letter-spacing: .01em;
  font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.35rem);
  transition: transform .25s ease;
}
.dv-card__cta {
  display: inline-block; margin-top: 2px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  transition: transform .25s ease;
}
.dv-card:hover .dv-card__title,
.dv-card:hover .dv-card__cta { transform: scale(1.04); }

/* Nav buttons + fades */
.dv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid #eadfd7; background:#fff;
  display: grid; place-items: center; color: var(--cs-ink, #4B2E2A);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.dv-nav[disabled] { opacity: .4; cursor: not-allowed; }
.dv-nav--prev { left: -6px; }
.dv-nav--next { right: -6px; }

.dv-fade { position: absolute; top: 0; bottom: 0; width: 42px; pointer-events: none; }
.dv-fade--left { left: 0; background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)); }
.dv-fade--right { right: 0; background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0)); }

/* Footer button */
.dv-more { text-align: center; margin-top: 12px; }

/* === Destinations by vibe – requested tweaks === */

/* 1) Make the card titles white */
.dv-card__title { 
  color: #fff !important;   /* force over any inherited/link color */
}

/* 2) Remove underline from "View properties" on the cards */
.dv-card__cta { 
  text-decoration: none; 
}
.dv-card__cta:hover, 
.dv-card__cta:focus { 
  text-decoration: none; 
}

/* 3) "See all *vibe*" button/link: no underline, turn text white on hover */
.dv-more a,
.dv-more .cs-btn,
.dv-more .cs-link {
  text-decoration: none;
}
.dv-more a:hover,
.dv-more .cs-btn:hover,
.dv-more .cs-link:hover,
.dv-more a:focus,
.dv-more .cs-btn:focus,
.dv-more .cs-link:focus {
  color: #fff;
}


