/* Reef & Route (reefandroute.com) - international travel editorial
   Palette: navy slate + coral (no teal)
   Type: Outfit (display) + DM Sans (body) via Bunny Fonts */

@import url("https://fonts.bunny.net/css?family=dm-sans:400,500,600,700|outfit:400,500,600,700,800");

:root {
  --bg: #f5f4f2;
  --bg-deep: #ebe9e5;
  --surface: #ffffff;
  --ink: #141820;
  --ink-soft: #3f4654;
  --muted: #6a7280;
  --line: rgba(20, 24, 32, 0.09);
  --accent: #c45c3e;
  --accent-deep: #9e4228;
  --accent-soft: #f6e6df;
  --sand: #f0ebe4;
  --warn-bg: #fff6e5;
  --warn-line: #e2c56a;
  --danger-bg: #fceceb;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 16px 40px rgba(20, 24, 32, 0.07);
  --shadow-soft: 0 8px 22px rgba(20, 24, 32, 0.055);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  /* Type scale (clamp for mobile-first travel UI) */
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.05rem;
  --text-lg: clamp(1.15rem, 2vw, 1.25rem);
  --text-xl: clamp(1.4rem, 2.6vw, 1.75rem);
  --text-2xl: clamp(1.7rem, 3.2vw, 2.25rem);
  --text-3xl: clamp(2rem, 4.5vw, 3.1rem);
  --leading-tight: 1.12;
  --leading-snug: 1.35;
  --leading-body: 1.58;
  --tracking-display: -0.03em;
  --max: 1120px;
  --nav-h: 64px;
  --header-offset: 84px;
}

.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: var(--leading-body);
  letter-spacing: 0.005em;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.brand,
.brand-foot,
.dest-card__title,
.offer-card__price,
.page-hero h1,
.hero-media h1,
.section-head h2,
.split h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(196, 92, 62, 0.22);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.35s var(--ease);
}

a:hover {
  color: var(--accent-deep);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ----- Floating nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: max(0.55rem, env(safe-area-inset-top, 0px)) 1rem 0;
  pointer-events: none;
}

.site-header .inner {
  pointer-events: auto;
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--nav-h);
  padding: 0.55rem 0.75rem 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header .inner {
    background: #fff;
    backdrop-filter: none;
  }
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.85rem;
  padding: 0 0.28rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent) 0%, #d47852 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.nav {
  display: none;
  gap: 0.15rem;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none !important;
  }
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--bg-deep);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  pointer-events: auto;
  max-width: var(--max);
  margin: 0.5rem auto 0;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav a:hover {
  background: var(--accent-soft);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.15;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(196, 92, 62, 0.28);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-transparency: reduce) {
  .btn-ghost {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.2);
  }
}

.btn .btn-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  transition: transform 0.4s var(--ease);
}

.btn-primary:hover .btn-icon {
  transform: translate(2px, -1px) scale(1.05);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

/* ----- Layout ----- */
main {
  flex: 1;
  width: 100%;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.section {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-tight {
  padding: 2.5rem 0;
}

/* ----- Hero (media full-bleed) ----- */
.hero-media {
  position: relative;
  min-height: min(86dvh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -0.75rem;
  background: #141820;
}

.hero-media__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media__media img,
.hero-media__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

/* Ken Burns - slow pan/zoom (MOTION_INTENSITY ~6, travel landing) */
@media (prefers-reduced-motion: no-preference) {
  .hero-media__photo {
    animation: hero-kenburns 28s cubic-bezier(0.22, 0.61, 0.36, 1) infinite alternate;
  }
}

@keyframes hero-kenburns {
  0% {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.16) translate3d(-2.5%, -1.5%, 0);
  }
}

.hero-media__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14, 16, 24, 0.35) 0%, rgba(14, 16, 24, 0.15) 40%, rgba(14, 16, 24, 0.78) 100%),
    linear-gradient(90deg, rgba(14, 16, 24, 0.55) 0%, transparent 55%);
  pointer-events: none;
}

.hero-media__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem 0 3rem;
  color: #f7faf9;
}

/* Hero copy entrance stagger */
.hero-enter {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-enter {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    animation: hero-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--d, 0) * 90ms + 80ms);
  }
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero-kicker__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 1.45rem;
  padding: 0 0.3rem;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--accent) 0%, #d47852 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-media h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
  max-width: 14ch;
  color: #fff;
}

.hero-media .lede {
  margin: 0 0 1.15rem;
  max-width: 34ch;
  font-size: var(--text-md);
  color: rgba(247, 250, 249, 0.9);
  line-height: var(--leading-snug);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.15rem;
  margin-bottom: 0.85rem;
}

.hero-meta {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(247, 250, 249, 0.7);
}

/* ----- Destination cards (equal tiles - no awkward tall/short mosaic) ----- */
.dest-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .dest-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
  }
}

.dest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: #fff;
  background: #1a1f2a;
  transition: box-shadow 0.35s var(--ease);
}

.dest-card:hover,
.dest-card:focus-visible {
  text-decoration: none;
  color: #fff;
  box-shadow: 0 16px 40px rgba(20, 24, 32, 0.16);
}

.dest-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Fixed media frame - same ratio on every island card */
.dest-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1f2a;
  flex-shrink: 0;
}

.dest-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Per-island crop bias so horizons sit better */
.dest-card--port_blair .dest-card__media img {
  object-position: center 40%;
}
.dest-card--havelock .dest-card__media img {
  object-position: center 45%;
}
.dest-card--neil .dest-card__media img {
  object-position: center 55%;
}

@media (prefers-reduced-motion: no-preference) {
  .dest-card:hover .dest-card__media img,
  .dest-card:focus-visible .dest-card__media img {
    transform: scale(1.04);
  }
}

.dest-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.4rem;
  padding: 1.1rem 1.1rem 1.15rem;
  background: #171b24;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 8.75rem;
}

.dest-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.dest-card__blurb {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(247, 250, 249, 0.78);
  max-width: 28ch;
}

.dest-card__cta {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #e8a48f;
}

.dest-card__cta::after {
  content: " →";
}

.dest-card:hover .dest-card__cta,
.dest-card:focus-visible .dest-card__cta {
  color: #f6e6df;
}

.dest-grid__note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.dest-grid__note a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----- Split feature ----- */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
  .split--reverse {
    direction: rtl;
  }
  .split--reverse > * {
    direction: ltr;
  }
}

.split__visual {
  border-radius: calc(var(--radius) + 6px);
  padding: 0.4rem;
  background: rgba(20, 24, 32, 0.04);
  border: 1px solid var(--line);
}

.split__visual-inner {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
}

.split__visual-inner img,
.split__visual-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split h2 {
  font-size: var(--text-2xl);
  margin: 0 0 0.7rem;
  color: var(--ink);
}

.split p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  max-width: 40ch;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
}

/* ----- Steps ----- */
.steps-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.step-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.step-card h3 {
  font-size: var(--text-lg);
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

/* ----- Section heads ----- */
.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: var(--text-2xl);
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  max-width: 48ch;
}

/* ----- Trust / strip ----- */
.strip {
  background: linear-gradient(180deg, #1a1f2a 0%, var(--ink) 100%);
  color: rgba(247, 250, 249, 0.88);
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.strip .wrap > span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  max-width: 22rem;
}

.strip strong {
  color: #fff;
  font-weight: 600;
}

/* ----- Page chrome (listings) ----- */
.page-hero {
  position: relative;
  min-height: clamp(280px, 40vw, 420px);
  max-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -0.75rem;
  background: #141820;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 16, 24, 0.15) 0%,
    rgba(14, 16, 24, 0.45) 45%,
    rgba(14, 16, 24, 0.88) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.25rem 0 1.85rem;
  color: #f7faf9;
}

.page-hero h1 {
  font-size: var(--text-2xl);
  margin: 0 0 0.45rem;
  color: #fff;
}

.page-hero p {
  margin: 0;
  color: rgba(247, 250, 249, 0.88);
  max-width: 40ch;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  font-weight: 400;
}

.listing-body {
  padding: 1.75rem 0 3.5rem;
  overflow-x: clip;
  min-width: 0;
}

.disclaimer,
.banner {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--ink-soft);
}

.banner-warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--ink);
}

.banner-error {
  background: var(--danger-bg);
  border-color: #e0a8a4;
  color: var(--ink);
}

/* ----- Filters: desktop grid · mobile/tablet = summary bar + bottom sheet -----
   Industry pattern (MakeMyTrip / Booking / Cleartrip):
   listing stays full-height; search criteria sit in one compact bar;
   full form opens as a sheet, not an inline stack of fields. */

.filters-sticky {
  margin-bottom: 0.85rem;
  z-index: 25;
}

.quick-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.1rem 0 0.45rem;
  margin-bottom: 0.25rem;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.quick-filter {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.quick-filter[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.quick-filter:focus-visible {
  outline: 3px solid rgba(196, 92, 62, 0.3);
  outline-offset: 2px;
}

.filter-bar {
  display: none;
  width: 100%;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 0.55rem 0.55rem 0.55rem 0.95rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 48px;
}

.filter-bar__icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-soft);
  position: relative;
}

.filter-bar__icon::before,
.filter-bar__icon::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.filter-bar__icon::before {
  top: 0.6rem;
  box-shadow: 0 4px 0 var(--accent);
}

.filter-bar__icon::after {
  bottom: 0.6rem;
  width: 50%;
}

.filter-bar__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.filter-bar__title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-bar__summary {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-bar__action {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.filter-sheet-backdrop {
  display: none;
}

.filter-sheet-head {
  display: none;
}

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 0;
  box-shadow: var(--shadow-soft);
}

/* Phone + tablet: compact bar + bottom sheet (not inline form stack) */
@media (max-width: 900px) {
  .listing-body .disclaimer {
    display: none; /* one less block above results; still on About */
  }

  .page-hero {
    min-height: 140px;
  }

  .page-hero__content {
    padding: 1.1rem 0 0.9rem;
  }

  .page-hero h1 {
    font-size: 1.4rem;
  }

  .page-hero p {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .filter-bar {
    display: flex;
  }

  .filters-sticky {
    position: sticky;
    top: calc(var(--header-offset) - 20px);
    margin-bottom: 0.65rem;
  }

  .filter-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(20, 24, 32, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease);
  }

  .filters-sticky.is-open .filter-sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    max-height: min(78dvh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
    gap: 0.55rem;
    grid-template-columns: 1fr 1fr;
    transform: translateY(110%);
    transition: transform 0.32s var(--ease);
    pointer-events: none;
  }

  .filters-sticky.is-open .filters {
    transform: translateY(0);
    pointer-events: auto;
  }

  /* collapsed = off-screen sheet (never an inline tall form) */
  .filters.is-collapsed {
    transform: translateY(110%);
    pointer-events: none;
  }

  .filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    grid-column: 1 / -1;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    padding: 0.85rem 0 0.55rem;
    margin: 0;
    border-bottom: 1px solid var(--line);
  }

  .filter-sheet-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
  }

  .filter-sheet-head .btn {
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
  }

  .filters label {
    font-size: 0.68rem;
    gap: 0.2rem;
  }

  .filters label.filter-span-2,
  .filters .actions {
    grid-column: 1 / -1;
  }

  .filters select,
  .filters input[type="text"],
  .filters input[type="date"] {
    min-height: 44px;
    padding: 0.45rem 0.55rem;
    font-size: 16px;
  }

  .filters .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .filters .actions .btn {
    width: 100%;
  }

  body.filters-open {
    overflow: hidden;
    touch-action: none;
  }
}

@media (min-width: 901px) {
  .filter-bar,
  .filter-sheet-backdrop,
  .filter-sheet-head {
    display: none !important;
  }

  .filters,
  .filters.is-collapsed {
    display: grid !important;
    position: static !important;
    transform: none !important;
    pointer-events: auto !important;
    max-height: none !important;
  }

  .filters.ferries {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters.activities {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters .actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .filters.ferries {
    grid-template-columns: repeat(3, 1fr);
  }
  .filters.activities {
    grid-template-columns: repeat(3, 1fr) auto;
  }
  .filters.activities .actions {
    grid-column: auto;
  }
}

input[type="date"] {
  min-height: 44px;
  font-size: 16px;
  color-scheme: light;
}

.date-hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

.hero-date {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  max-width: 28rem;
}

.hero-date label {
  flex: 1 1 12rem;
  color: rgba(247, 250, 249, 0.85);
}

.hero-date input[type="date"] {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--ink);
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

select,
input[type="text"] {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.filters .actions {
  display: flex;
  align-items: flex-end;
}

.meta-line {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ----- Offer cards (photo + content) ----- */
.cards {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.offer-shell {
  border-radius: calc(var(--radius) + 4px);
  padding: 0.3rem;
  background: rgba(20, 24, 32, 0.03);
  border: 1px solid var(--line);
  max-width: 100%;
  min-width: 0;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .offer-shell:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(196, 92, 62, 0.18);
  }
}

.offer-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 640px) {
  .offer-card {
    /* minmax(0,1fr) prevents grid child overflow past viewport */
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (min-width: 900px) {
  .offer-card {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

/* ----- Text-only variant (activity cards without photos) ----- */
@media (min-width: 640px) {
  .cards--activities .offer-card,
  .offer-card--text {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Ponytail: 2-col on tablet, 3-col on desktop for text-only activity cards */
.cards--activities,
.cards:has(.offer-card--text) {
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 640px) {
  .cards--activities,
  .cards:has(.offer-card--text) {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .cards--activities,
  .cards:has(.offer-card--text) {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.offer-card--text .offer-card__body {
  padding: 1.15rem 1.3rem 1.2rem;
}

.offer-card--text {
  border-left: 4px solid var(--bar-color, var(--accent));
}

.offer-card__media {
  position: relative;
  min-height: 140px;
  max-height: 180px;
  background: var(--bg-deep);
  min-width: 0;
  overflow: hidden;
}

.offer-card__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  min-height: 140px;
}

@media (min-width: 640px) {
  .offer-card__media {
    max-height: none;
    min-height: 0;
    height: 100%;
  }
  .offer-card__media img {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
  }
}

.offer-card__body {
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.offer-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge--scuba        { background: #e0eff5; color: #1a5f7a; }
.badge--snorkel      { background: #e0f0ed; color: #1a6b5e; }
.badge--sea_walk     { background: #e8e4f0; color: #6b3a8a; }
.badge--kayak        { background: #e8f0e4; color: #3a6b1a; }
.badge--parasail     { background: #f5e8e4; color: #8a3a3a; }
.badge--jet_ski      { background: #f5f0e4; color: #7a6b1a; }
.badge--banana_boat  { background: #f5ece4; color: #8a5a1a; }
.badge--water_ride   { background: #e4ecf5; color: #3a5a8a; }
.badge--glass_bottom { background: #e4f0f5; color: #3a6b8a; }
.badge--dinner_cruise{ background: #f0e4f0; color: #6b3a6b; }
.badge--day_trip     { background: #e8f5e4; color: #3a7a3a; }
.badge--scuba_course { background: #e0eaf5; color: #3a4f8a; }

.offer-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.8vw, 1.15rem);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.offer-card .price {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.45rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
}

.offer-card .price .hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0;
  white-space: nowrap;
}

.offer-card .meta {
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
  max-width: 100%;
  line-height: 1.35;
}

.offer-card .meta span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 480px) {
  .offer-card .meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }
}

.offer-card .inclusions {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.1rem 0 0;
  line-height: 1.4;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card .actions {
  margin-top: auto;
  padding-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.offer-card .actions .btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  justify-content: center;
  overflow-wrap: anywhere;
  line-height: 1.25;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  /* override global .btn nowrap that caused ferry CTA overflow */
  white-space: normal !important;
}

.offer-card .actions .btn .btn-icon {
  flex-shrink: 0;
}

/* Expandable activity details */
.offer-details {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.details-toggle.btn {
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  min-height: 44px;
}

.details-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.details-panel {
  display: none;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.details-panel.is-open,
.details-panel:not([hidden]) {
  display: block;
}

.details-panel[hidden] {
  display: none !important;
}

.details-list {
  margin: 0;
}

.detail-row {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-row:first-child {
  padding-top: 0;
}

.detail-row dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-row dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.detail-row a {
  font-weight: 600;
}

/* Rank rows: main = horizontal; details (activities) stack below */
.rank-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 0;
  min-width: 0;
}

.rank-row__main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.85rem;
  width: 100%;
  padding: 0.8rem 0.95rem;
  box-sizing: border-box;
  min-width: 0;
}

.rank-row__details {
  width: 100%;
  padding: 0 1rem 0.85rem;
  box-sizing: border-box;
  border-top: 1px solid var(--line);
  background: rgba(20, 24, 32, 0.02);
}

.rank-row__details .offer-details {
  margin-top: 0.5rem;
}

/* Card media clips; body may expand for activity details */
.offer-card__media {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

@media (min-width: 640px) {
  .offer-card__media {
    border-radius: var(--radius) 0 0 var(--radius);
  }
}

.empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* skeleton */
.skeleton-card {
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ebe9e5 25%, #f5f4f2 50%, #ebe9e5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-card {
    animation: none;
  }
}

/* ----- About / prose ----- */
.prose-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .prose-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
  }
}

.prose-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.prose-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.prose-card h3 {
  margin: 0 0 0.5rem;
  font-size: var(--text-lg);
  color: var(--ink);
}

.prose-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  max-width: 52ch;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  box-shadow: var(--shadow);
  background: #1a1f2a;
}

.about-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* ----- Reveal ----- */
/* Scroll reveal - IntersectionObserver + stagger via --d (no scroll listeners) */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    filter: blur(4px);
    transition:
      opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--d, 0) * 70ms);
  }

  .reveal.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }

  .mosaic__item.reveal.is-in img {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .btn-primary {
    transition:
      transform 0.35s var(--ease),
      background 0.35s var(--ease),
      color 0.35s var(--ease),
      border-color 0.35s var(--ease),
      box-shadow 0.35s var(--ease);
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(196, 92, 62, 0.32);
  }

  .btn-primary:active {
    transform: scale(0.98) translateY(0);
  }

  .step-card {
    transition:
      transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }

  .split__visual-inner img {
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .split__visual:hover .split__visual-inner img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media__photo {
    animation: none !important;
    transform: scale(1.05);
  }

  .hero-enter,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* ----- Footer ----- */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: rgba(247, 250, 249, 0.72);
  padding: 2.5rem 0 2rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .site-footer .wrap {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

.site-footer .brand-foot {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.site-footer .brand-domain {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(247, 250, 249, 0.55);
  margin: 0 0 0.55rem;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  max-width: 42ch;
}

.site-footer a {
  color: #e8a58f;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-weight: 500;
}

.footer-links a {
  color: rgba(247, 250, 249, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.credit {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(247, 250, 249, 0.45);
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.btn-sm .btn-icon {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.75rem;
}

/* ----- Mobile page hero ----- */
@media (max-width: 767px) {
  .page-hero {
    min-height: 200px;
  }

  .page-hero__content {
    padding: 1.5rem 0 1.25rem;
  }

  .page-hero h1 {
    font-size: 1.65rem;
  }

  .hero-media {
    min-height: min(72dvh, 560px);
  }

  .hero-media h1 {
    max-width: none;
  }

  .listing-body {
    padding: 1.15rem 0 5.5rem;
  }

  .offer-card__media {
    min-height: 120px;
  }

  .site-header {
    padding-top: 0.5rem;
  }
}

/* ----- View toggle (Cards | Compare) ----- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  position: sticky;
  top: calc(var(--header-offset) + 44px);
  z-index: 20;
  padding: 0.35rem 0;
  background: linear-gradient(
    180deg,
    var(--bg) 70%,
    rgba(245, 244, 242, 0)
  );
}

@media (min-width: 901px) {
  .toolbar {
    position: static;
    background: transparent;
    padding: 0;
  }
}

.view-toggle {
  display: inline-flex;
  padding: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.view-toggle button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 40px;
}

.view-toggle button.is-active {
  background: var(--accent);
  color: #fff;
}

/* ----- Compare: mobile rank lists (not wide columns) ----- */
.compare-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.compare-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  max-width: 100%;
}

.compare-group__head {
  padding: 0.85rem 1rem 0.6rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.compare-group__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.compare-group__count {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-row {
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row.is-best {
  background: linear-gradient(90deg, var(--accent-soft), transparent 72%);
}

.rank-row__left {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.rank-row__info {
  min-width: 0;
  flex: 1 1 auto;
}

.rank-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.rank-row.is-best .rank-num {
  background: var(--accent);
  color: #fff;
}

.rank-row__title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rank-row__sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rank-best {
  display: inline-block;
  margin-top: 0.2rem;
  margin-bottom: 0.05rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(196, 92, 62, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.45rem;
  line-height: 1.2;
  max-width: 100%;
}

.rank-row__right {
  flex: 0 0 auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  min-width: 4.75rem;
  max-width: 38%;
}

.rank-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.2;
}

.rank-cta.btn,
.rank-cta.btn-sm {
  white-space: nowrap !important;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  min-height: 36px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 380px) {
  .rank-row__main {
    flex-wrap: wrap;
  }
  .rank-row__right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding-left: 2.05rem; /* align under title, past rank num */
  }
}

@media (max-width: 767px) {
  select,
  input[type="text"] {
    min-height: 42px;
    font-size: 16px;
  }
}

/* ----- PWA install snackbar ----- */
.pwa-snack {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.85rem;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.pwa-snack.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.pwa-snack__inner {
  position: relative;
  background: #141820;
  color: #f7f6f4;
  border-radius: 16px;
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 420px;
  margin: 0 auto;
}

.pwa-snack__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-right: 1.5rem;
  margin-bottom: 0.85rem;
}

.pwa-snack__text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.pwa-snack__text span {
  font-size: 0.85rem;
  color: rgba(247, 246, 244, 0.72);
  line-height: 1.4;
}

.pwa-snack__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.pwa-snack__actions .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.pwa-snack__actions .btn-primary {
  box-shadow: none;
}

.pwa-snack__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.pwa-snack__close:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .pwa-snack {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(380px, calc(100vw - 2rem));
  }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .pwa-snack {
    bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
}

/* home secondary sections bg */
.band-sand {
  background: var(--sand);
}

.band-soft {
  background: var(--bg-deep);
}
