/* =========================================================
   WildRoute - Destinations Index (destinations-front.css)
   Location: assets/css/css-front/destinations-front.css

   Same visual language as the homepage (index-front.css).
   Every generic selector is scoped under "#main" so it can
   never clash with style.css, the header or the footer, and
   it does not depend on a body class being present.

   01 Tokens
   02 Page base + shared helpers
   03 Buttons
   04 Breadcrumbs
   05 Hero
   06 Filter bar
   07 Featured row
   08 Destination grid
   09 Pagination
   10 Empty state
   11 Closing CTA
   12 Responsive (1100 / 900 / 700 / 480 / 360)
   13 Large screens
   14 Motion / print / a11y
   ========================================================= */

/* =========================================================
   01. TOKENS
   ========================================================= */
:root {
  --di-bg:          #f7f7f9;
  --di-card:        #ffffff;
  --di-ink:         #14161a;
  --di-ink-2:       #565a63;
  --di-ink-3:       #8b8f98;
  --di-line:        #e8e9ed;
  --di-soft:        #f2f3f6;

  --di-accent:      #d94460;
  --di-accent-dark: #b8324b;
  --di-accent-soft: #fdeef1;

  --di-r-sm:   10px;
  --di-r-md:   16px;
  --di-r-lg:   22px;
  --di-r-xl:   28px;
  --di-r-2xl:  36px;
  --di-r-pill: 999px;

  --di-shadow-sm: 0 1px 2px rgba(20, 22, 26, .04);
  --di-shadow:    0 4px 16px -8px rgba(20, 22, 26, .12);
  --di-shadow-lg: 0 20px 50px -24px rgba(20, 22, 26, .28);

  --di-max:   1200px;
  --di-gutter: 32px;                       /* total side space */
  --di-gap:   clamp(14px, 1.8vw, 22px);

  --di-ease: cubic-bezier(.4, 0, .2, 1);
  --di-dur:  .22s;
}

/* =========================================================
   02. PAGE BASE + SHARED HELPERS
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.page-destinations,
body:has(#main .dest-index-hero) {
  background: var(--di-bg);
  color: var(--di-ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#main {
  overflow-x: clip;
  color: var(--di-ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
}
#main *,
#main *::before,
#main *::after { box-sizing: border-box; }

#main h1, #main h2, #main h3, #main p, #main ol, #main ul { margin: 0; padding: 0; }
#main ol, #main ul { list-style: none; }
#main a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
#main img { display: block; max-width: 100%; height: auto; }
#main button { font: inherit; cursor: pointer; }
#main ::selection { background: var(--di-accent); color: #fff; }

/* Keyboard focus that is always visible */
#main :focus { outline: none; }
#main :focus-visible {
  outline: 3px solid var(--di-ink);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Icons */
#main svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Container (matches homepage .wf-wrap) */
#main .container {
  width: min(var(--di-max), 100% - var(--di-gutter));
  margin-inline: auto;
  padding: 0;
}

/* Sections */
#main .section { padding-block: clamp(22px, 3.2vw, 44px); }
#main .section-soft { background: #fff; }

/* Section head */
#main .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}
#main .section-head-text { min-width: 0; }

/* Headings + text */
#main .h1 {
  margin-top: 4px;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--di-ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}
#main .eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--di-accent);
}
#main .body {
  margin-top: 6px;
  font-size: clamp(.88rem, 1vw, .95rem);
  line-height: 1.55;
  color: var(--di-ink-3);
}

.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;
}

/* =========================================================
   03. BUTTONS
   ========================================================= */
#main .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--di-r-pill);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background var(--di-dur) ease, color var(--di-dur) ease,
              border-color var(--di-dur) ease, box-shadow var(--di-dur) ease,
              transform .18s var(--di-ease);
}
#main .btn:active { transform: scale(.98); }
#main .btn svg,
#main .btn .ico { width: 16px; height: 16px; }
#main .btn-sm { height: 36px; padding: 0 14px; font-size: .82rem; }
#main .btn-lg { height: 48px; padding: 0 24px; font-size: .92rem; }

#main .btn-primary {
  background: var(--di-accent);
  color: #fff;
  border-color: var(--di-accent);
}
#main .btn-primary:hover {
  background: var(--di-accent-dark);
  border-color: var(--di-accent-dark);
}

#main .btn-outline {
  background: #fff;
  color: var(--di-ink);
  border-color: var(--di-line);
}
#main .btn-outline:hover { border-color: var(--di-ink-3); }

/* =========================================================
   04. BREADCRUMBS
   ========================================================= */
#main .breadcrumbs { margin-bottom: 12px; }
#main .breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: .8rem;
  color: var(--di-ink-3);
}
#main .breadcrumbs-list a { color: var(--di-ink-2); }
#main .breadcrumbs-list a:hover { color: var(--di-ink); }
#main .breadcrumbs-sep { display: inline-flex; }
#main .breadcrumbs-sep svg { width: 14px; height: 14px; color: var(--di-ink-3); }
#main .breadcrumbs-current { color: var(--di-ink); font-weight: 600; }

/* =========================================================
   05. HERO
   ========================================================= */
.dest-index-hero {
  position: relative;
  padding: clamp(20px, 3vw, 36px) 0 clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(217, 68, 96, .09), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(217, 68, 96, .05), transparent 60%),
    var(--di-bg);
  overflow: hidden;
}
.dest-index-hero-inner { max-width: 740px; }

#main .dest-index-hero .display {
  margin-top: 8px;
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--di-ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* Headline stays one colour */
#main .dest-index-hero .display .text-lime {
  color: inherit;
  background: none;
  padding: 0;
}

#main .dest-index-lede {
  margin-top: 12px;
  max-width: 62ch;
  font-size: clamp(.94rem, 1.1vw, 1.02rem);
  line-height: 1.6;
  color: var(--di-ink-2);
}

.dest-index-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.dest-index-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--di-line);
  border-radius: var(--di-r-pill);
  background: var(--di-card);
  box-shadow: var(--di-shadow-sm);
  font-size: .82rem;
  font-weight: 500;
  color: var(--di-ink-2);
}
.dest-index-chip strong {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--di-ink);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   06. FILTER BAR
   ========================================================= */
.dest-index-filters {
  position: relative;
  z-index: 5;
  padding: 0 0 clamp(16px, 2vw, 24px);
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--di-line);
  border-radius: var(--di-r-xl);
  background: var(--di-card);
  box-shadow: var(--di-shadow);
}

.filter-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--di-r-md);
  background: var(--di-soft);
  transition: box-shadow var(--di-dur) ease, background var(--di-dur) ease;
}
.filter-field--search { flex: 2 1 280px; }
.filter-field:focus-within {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(217, 68, 96, .16);
}

.filter-icon {
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  color: var(--di-ink-3);
}

#main .filter-field input,
#main .filter-field select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  font: inherit;
  font-size: .94rem;
  font-weight: 500;
  color: var(--di-ink);
  -webkit-appearance: none;
  appearance: none;
  text-overflow: ellipsis;
}
#main .filter-field input::placeholder { color: var(--di-ink-3); font-weight: 400; }
#main .filter-field input::-webkit-search-cancel-button { -webkit-appearance: none; }

#main .filter-field select {
  padding-right: 24px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--di-ink-2) 50%),
    linear-gradient(135deg, var(--di-ink-2) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
#main .filter-actions .btn { height: 44px; padding: 0 20px; }
#main .filter-actions .btn-sm { height: 44px; }

.results-count {
  margin-left: auto;
  padding: 0 10px;
  font-size: .82rem;
  color: var(--di-ink-3);
  white-space: nowrap;
}
.results-count strong {
  color: var(--di-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   07. FEATURED ROW
   ========================================================= */
.dest-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--di-gap);
}

.dest-feature {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--di-r-lg);
  color: #fff;
  background: linear-gradient(160deg, #26272e, #16171b);
  isolation: isolate;
  box-shadow: var(--di-shadow-sm);
  transition: box-shadow var(--di-dur) ease, transform .3s var(--di-ease);
}
/* old hero override neutralised: all cards equal */
.dest-feature[data-hero="true"] { aspect-ratio: 4 / 5; border-radius: var(--di-r-lg); }

.dest-feature-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--di-ease);
}
.dest-feature-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 12, 16, .05) 35%, rgba(12, 12, 16, .8) 100%);
}

.dest-feature-body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dest-feature-eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.dest-feature-name {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.dest-feature-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.dest-feature-count {
  padding: 5px 12px;
  border-radius: var(--di-r-pill);
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
}
.dest-feature-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transition: background var(--di-dur) ease, color var(--di-dur) ease;
}
.dest-feature-arrow svg { width: 16px; height: 16px; }

@media (hover: hover) {
  .dest-feature:hover { box-shadow: var(--di-shadow-lg); transform: translateY(-3px); }
  .dest-feature:hover .dest-feature-img { transform: scale(1.05); }
  .dest-feature:hover .dest-feature-arrow { background: #fff; color: var(--di-ink); }
}

/* =========================================================
   08. DESTINATION GRID
   ========================================================= */
.dest-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--di-gap);
}

.dest-index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--di-r-lg);
  background: var(--di-card);
  box-shadow: var(--di-shadow-sm);
  transition: box-shadow var(--di-dur) ease, transform .3s var(--di-ease);
}

.dest-index-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin: 6px 6px 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--di-soft);
}
.dest-index-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--di-ease);
}
.dest-index-media-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #f3f3f6, #e8e8ec);
  color: #c4c6cc;
}
#main .dest-index-media-fallback svg { width: 42px; height: 42px; stroke-width: 1.4; }

.dest-index-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px 18px 18px;
}

.dest-index-loc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--di-ink-3);
}
.dest-index-loc-sep { opacity: .55; }

.dest-index-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}
.dest-index-name a { color: var(--di-ink); transition: color var(--di-dur) ease; }
.dest-index-name a:hover { color: var(--di-accent); }
/* Whole card is clickable through the title link */
.dest-index-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }

.dest-index-desc {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--di-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dest-index-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--di-line);
}
.dest-index-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dest-index-count,
.dest-index-from { font-size: .8rem; color: var(--di-ink-3); }
.dest-index-count strong,
.dest-index-from strong { color: var(--di-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.dest-index-from strong { font-size: .95rem; letter-spacing: -.02em; }

#main .dest-index-cta { position: relative; z-index: 2; flex-shrink: 0; }
#main .dest-index-cta svg { width: 15px; height: 15px; }

@media (hover: hover) {
  .dest-index-card:hover { transform: translateY(-3px); box-shadow: var(--di-shadow); }
  .dest-index-card:hover .dest-index-media img { transform: scale(1.05); }
}

/* =========================================================
   09. PAGINATION
   ========================================================= */
#main .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: clamp(26px, 3.4vw, 42px);
}
#main .pagination a,
#main .pagination .current,
#main .pagination .pagination-nav {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--di-line);
  border-radius: var(--di-r-pill);
  background: var(--di-card);
  font-size: .86rem;
  font-weight: 600;
  color: var(--di-ink-2);
  transition: background var(--di-dur) ease, color var(--di-dur) ease, border-color var(--di-dur) ease;
}
#main .pagination a:hover { border-color: var(--di-ink); color: var(--di-ink); }
#main .pagination .current {
  background: var(--di-ink);
  border-color: var(--di-ink);
  color: #fff;
}
#main .pagination .pagination-nav svg { width: 16px; height: 16px; }
#main .pagination .pagination-dots {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 40px;
  color: var(--di-ink-3);
}

/* =========================================================
   10. EMPTY STATE
   ========================================================= */
#main .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(36px, 6vw, 64px) 24px;
  border-radius: var(--di-r-xl);
  background: var(--di-card);
  box-shadow: var(--di-shadow-sm);
  text-align: center;
}
#main .empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: var(--di-accent-soft);
  color: var(--di-accent);
}
#main .empty-icon svg { width: 24px; height: 24px; }
#main .empty-title { font-size: 1.1rem; font-weight: 700; color: var(--di-ink); }
#main .empty-text { max-width: 44ch; font-size: .92rem; line-height: 1.55; color: var(--di-ink-2); }
#main .empty-state .btn { margin-top: 8px; }

/* =========================================================
   11. CLOSING CTA
   ========================================================= */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px) clamp(22px, 4.4vw, 56px);
  border-radius: var(--di-r-2xl);
  background: #14161a;
  color: #fff;
  isolation: isolate;
}
.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 100% at 100% 100%, rgba(217, 68, 96, .35), transparent 70%),
    radial-gradient(50% 80% at 0% 0%, rgba(217, 68, 96, .14), transparent 60%);
  pointer-events: none;
}
.cta-panel-inner { position: relative; max-width: 620px; }

#main .cta-panel .eyebrow { font-size: .76rem; color: #ffd7df; }
#main .cta-panel .h1 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 3.1vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #fff;
}
#main .cta-panel .body {
  margin-top: 12px;
  font-size: clamp(.92rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, .78);
}
.cta-panel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

#main .cta-panel .btn-primary { background: var(--di-accent); border-color: var(--di-accent); color: #fff; }
#main .cta-panel .btn-primary:hover { background: var(--di-accent-dark); border-color: var(--di-accent-dark); }
#main .cta-panel .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}
#main .cta-panel .btn-outline:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
#main .cta-panel :focus-visible { outline-color: #fff; }

/* =========================================================
   12. RESPONSIVE
   ========================================================= */

/* ---------- Laptop / small desktop ---------- */
@media (max-width: 1100px) {
  .dest-feature-body { left: 14px; right: 14px; bottom: 14px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  /* Featured: first card full width, two beneath */
  .dest-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dest-feature,
  .dest-feature[data-hero="true"] { aspect-ratio: 4 / 3; }
  .dest-feature:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }

  .dest-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phones & small tablets ---------- */
@media (max-width: 700px) {
  :root { --di-gutter: 24px; }

  #main .section { padding-block: 20px; }
  #main .section-head { align-items: center; margin-bottom: 14px; }
  #main .section-head .btn { display: none; }
  #main .h1 { font-size: 1.25rem; }

  .dest-index-hero { padding: 16px 0 14px; }
  #main .dest-index-hero .display { font-size: clamp(1.6rem, 7vw, 2.05rem); line-height: 1.13; }
  #main .dest-index-lede { font-size: .93rem; margin-top: 10px; }
  .dest-index-meta { margin-top: 12px; }

  /* Filters stack */
  .filters-form { padding: 8px; gap: 8px; border-radius: var(--di-r-lg); }
  .filter-field,
  .filter-field--search { flex: 1 1 100%; height: 48px; }
  #main .filter-field input,
  #main .filter-field select { font-size: 16px; }          /* stops iOS zoom */
  .filter-actions { flex: 1 1 100%; }
  #main .filter-actions .btn { flex: 1 1 auto; }
  .results-count { width: 100%; margin-left: 0; padding: 2px 0 0; text-align: center; }

  /* Featured: single column, horizontal cards stay tall enough */
  .dest-featured-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dest-feature,
  .dest-feature[data-hero="true"],
  .dest-feature:first-child { grid-column: auto; aspect-ratio: 16 / 10; }

  /* Grid: single column */
  .dest-index-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dest-index-media { aspect-ratio: 16 / 10; }
  .dest-index-body { padding: 12px 16px 16px; }

  #main .pagination a,
  #main .pagination .current,
  #main .pagination .pagination-nav {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: .82rem;
  }

  .cta-panel { border-radius: 26px; }
  .cta-panel-actions { margin-top: 20px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  :root { --di-gutter: 20px; }

  .dest-index-chip { padding: 5px 11px; font-size: .78rem; }
  .dest-index-media { margin: 5px 5px 0; border-radius: 14px; }
  .dest-feature { border-radius: 20px; }
  .dest-index-card { border-radius: 20px; }

  .dest-index-foot { flex-wrap: wrap; }
  #main .dest-index-cta { width: 100%; height: 42px; }

  .cta-panel-actions .btn { flex: 1 1 100%; }
  /* hide page number buttons that crowd the row, keep arrows + current */
  #main .pagination a:not(.pagination-nav) { display: none; }
  #main .pagination .pagination-dots { display: none; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 360px) {
  :root { --di-gutter: 16px; }
  #main .dest-index-hero .display { font-size: 1.45rem; }
  .dest-feature-body { left: 12px; right: 12px; bottom: 12px; }
  .dest-feature-name { font-size: 1.05rem; }
}

/* ---------- Short landscape phones ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .dest-index-hero { padding-block: 12px; }
  .dest-feature,
  .dest-feature:first-child { aspect-ratio: 16 / 9; }
}

/* =========================================================
   13. LARGE SCREENS
   ========================================================= */
@media (min-width: 1600px) {
  :root { --di-max: 1320px; }
  .dest-index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Touch devices: no sticky hover states */
@media (hover: none) {
  .dest-index-card:active { box-shadow: var(--di-shadow); }
  .dest-feature:active .dest-feature-arrow { background: #fff; color: var(--di-ink); }
}

/* =========================================================
   14. MOTION / PRINT / A11Y
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .dest-index-hero-inner { animation: di-rise .6s var(--di-ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  #main *,
  #main *::before,
  #main *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .dest-index-card:hover,
  .dest-feature:hover { transform: none; }
}

@media (forced-colors: active) {
  .dest-feature-overlay { display: none; }
  .dest-feature-body { background: Canvas; color: CanvasText; padding: 8px; }
  .dest-feature-name,
  .dest-feature-eyebrow { color: CanvasText; text-shadow: none; }
}

@media print {
  body.page-destinations,
  body:has(#main .dest-index-hero) { background: #fff !important; }
  .dest-index-filters,
  .cta-panel,
  #main .pagination,
  .dest-index-cta { display: none !important; }
  .dest-index-card,
  .dest-feature {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
  .dest-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@keyframes di-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   END OF FILE
   ========================================================= */