/* ============================================================
   Morocco.so — Design System v4
   Airbnb visual idiom (per getdesign/airbnb spec) on a Morocco
   palette. Trip.com-style information architecture.

   Source spec: ./airbnb/DESIGN.md
   Project tokens: ./DESIGN.md
   ============================================================ */

:root {
  /* --- Brand voltage (terracotta plays Rausch role) --- */
  --rausch:        #C2613E;
  --rausch-active: #A24E30;
  --rausch-soft:   #FBEDE4;
  --rausch-tint:   #F7DECC;

  /* --- Sky / beach blue (Booking.com blue — interactive accent) --- */
  --sky:        #0071C2;   /* default sky blue — hover state across CTAs */
  --sky-dark:   #005999;   /* press / pointer-down */
  --sky-deep:   #003B95;   /* deep brand-blue (navy edges) */
  --sky-soft:   #E6F3FA;   /* tinted backgrounds */

  /* --- Trust accent (deeper ocean) --- */
  --ocean:        #0B4A6F;
  --ocean-soft:   #E6F0F7;
  --gold:         #C49A5B;

  /* --- Canvas + surfaces --- */
  --canvas:         #FFFFFF;
  --surface-soft:   #F7F7F7;
  --surface-strong: #F2F2F2;

  /* --- Lines --- */
  --hairline:       #DDDDDD;
  --hairline-soft:  #EBEBEB;
  --border-strong:  #C1C1C1;

  /* --- Text --- */
  --ink:        #222222;
  --body:       #3F3F3F;
  --muted:      #6A6A6A;
  --muted-soft: #929292;

  /* --- Status --- */
  --error:    #C13515;
  --success:  #008A05;

  /* --- Scrim --- */
  --scrim: rgba(0,0,0,.50);

  /* --- Radius --- */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full: 9999px;

  /* --- Spacing (4px base) --- */
  --sp-xxs:  2px;
  --sp-xs:   4px;
  --sp-sm:   8px;
  --sp-md:  12px;
  --sp-base:16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-xxl: 48px;
  --sp-sec: 64px;

  /* --- Elevation (one tier) --- */
  --shadow-float:
    0 0 0 1px rgba(0,0,0,.02),
    0 2px 6px rgba(0,0,0,.04),
    0 4px 8px rgba(0,0,0,.10);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.06);

  /* --- Motion --- */
  --ease: cubic-bezier(.2,.6,.2,1);
  --dur-fast: 150ms;
  --dur-base: 220ms;

  /* --- Layout --- */
  --maxw-home: 1280px;
  --maxw-detail: 1080px;
  --nav-h: 80px;

  /* --- Typography stack --- */
  --font: 'Inter', -apple-system, system-ui, 'Helvetica Neue', sans-serif;

  /* --- Legacy aliases (kept so old inline styles in pages don't break) --- */
  --ivory: var(--canvas);
  --surface: var(--canvas);
  --line: var(--hairline);
  --charcoal: var(--ink);
  --ink-soft: var(--body);
  --ink-3: var(--muted);
  --sand-50: var(--surface-soft);
  --sand-100: var(--surface-strong);
  --sand-200: var(--hairline);
  --clay: var(--rausch);
  --clay-dark: var(--rausch-active);
  --clay-soft: var(--rausch-soft);
  --atlas: var(--ocean);
  --atlas-soft: var(--ocean-soft);
  --mist: var(--ocean-soft);
  --mist-2: var(--surface-soft);
  --teal: var(--ocean);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-family: var(--font); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-xs);
}
img { display: block; max-width: 100%; }
::selection { background: var(--rausch-soft); color: var(--ink); }

.container { width: 100%; max-width: var(--maxw-home); margin: 0 auto; padding: 0 40px; }
.container-detail { max-width: var(--maxw-detail); margin: 0 auto; padding: 0 40px; }
.muted { color: var(--muted); }
.section { padding: var(--sp-sec) 0; }

/* ============================================================
   SVG icon set (sized via .icon, color via currentColor)
   ============================================================ */
.icon { width: 20px; height: 20px; flex: 0 0 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; flex: 0 0 16px; }
.icon-lg { width: 24px; height: 24px; flex: 0 0 24px; }
.icon-xl { width: 28px; height: 28px; flex: 0 0 28px; }
.icon-fill { fill: currentColor; stroke: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1;
  padding: 14px 24px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent; color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

/* Primary = terracotta at rest, Booking-blue on hover/press */
.btn-primary { background: var(--rausch); color: #fff; }
.btn-primary:hover { background: var(--sky); color: #fff; }
.btn-primary:active { background: var(--sky-dark); color: #fff; }

/* Legacy alias — "book" CTAs follow the same hover-to-blue pattern */
.btn-book { background: var(--rausch); color: #fff; }
.btn-book:hover { background: var(--sky); color: #fff; }
.btn-book:active { background: var(--sky-dark); color: #fff; }

.btn-secondary { background: var(--canvas); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--sky); color: #fff; border-color: var(--sky); }
.btn-secondary:active { background: var(--sky-dark); border-color: var(--sky-dark); }

.btn-tertiary { background: transparent; color: var(--ink); padding: 8px 0; }
.btn-tertiary:hover { color: var(--sky); text-decoration: underline; }

/* Legacy aliases */
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--sky); }
.btn-outline { background: var(--canvas); color: var(--ink); border-color: var(--hairline); }
.btn-outline:hover { border-color: var(--sky); color: var(--sky); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: var(--sky); border-color: var(--sky); }
.btn-soft { background: var(--sky-soft); color: var(--sky); }
.btn-soft:hover { background: var(--sky); color: #fff; }

.btn-block { width: 100%; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ============================================================
   Top navigation (Airbnb-style 80px white bar)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--canvas); border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--nav-h); max-width: var(--maxw-home); margin: 0 auto;
  padding: 0 40px;
}
.nav-inner > .brand { justify-self: start; }
.nav-inner > .nav-actions { justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--rausch); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand .glyph { width: 32px; height: 32px; flex: 0 0 32px; }
.brand img.brand-mark { height: 56px; width: auto; display: block; flex: 0 0 auto; }
@media (max-width: 600px) { .brand img.brand-mark { height: 44px; } }
.brand small { display: block; font-family: var(--font); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.brand:hover { color: var(--rausch-active); }

/* Centered product tabs */
.prod-tabs { display: flex; align-items: center; gap: 28px; }
.prod-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 16px; font-weight: 500; color: var(--muted); line-height: 1.25;
  padding: 12px 0; border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.prod-tab .icon { color: var(--muted); }
.prod-tab:hover { color: var(--sky); }
.prod-tab:hover .icon { color: var(--sky); }
.prod-tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.prod-tab.active .icon { color: var(--ink); }
.prod-tab .new-tag {
  position: absolute; transform: translate(38px,-8px);
  background: var(--ink); color: #fff; font-size: 9px; font-weight: 700;
  letter-spacing: .04em; padding: 2px 6px; border-radius: var(--r-full); text-transform: uppercase;
}

/* Account utilities right */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-blog-link {
  font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: none;
  padding: 8px 12px; border-radius: var(--r-full);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-blog-link:hover { color: var(--sky); background: var(--sky-soft); }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 12px 14px; border-radius: var(--r-full);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-link:hover { background: var(--sky-soft); color: var(--sky); }
/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--canvas);
  padding: 32px 0 24px;
}
.hero-head {
  max-width: 720px; margin: 0 auto var(--sp-lg);
  text-align: center; padding: 0 24px;
}
.hero-head h1 {
  font-size: 32px; font-weight: 700; line-height: 1.14;
  letter-spacing: -.02em; color: var(--ink);
  margin: 0 0 8px;
}
.hero-head p { font-size: 16px; color: var(--muted); margin: 0; }

/* ============================================================
   Search panel (pill, hairline-divided segments)
   ============================================================ */
.search-wrap { max-width: 880px; margin: 0 auto; padding: 0 40px; }
.tp-widget { width: 100%; min-height: 68px; }
.tp-widget iframe { width: 100% !important; }
/* Image ad banners: keep the ad's natural size/aspect — don't stretch or crop */
.tp-ad { min-height: 0; }
.tp-ad iframe { width: auto !important; height: auto !important; max-width: 100%; margin: 0 auto; }

.search-tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.search-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 500; color: var(--muted);
  cursor: pointer; border: 1px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.search-tab:hover:not(.active) { background: var(--sky-soft); color: var(--sky); }
.search-tab.active { background: var(--ink); color: #fff; }
.search-tab.active:hover { background: var(--sky); }

.search-bar {
  display: flex; align-items: stretch;
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-full); padding: 8px;
  box-shadow: var(--shadow-float);
  transition: box-shadow var(--dur-fast);
}
.search-bar:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); }

.search-seg {
  flex: 1; padding: 10px 24px;
  display: flex; flex-direction: column; justify-content: center;
  cursor: pointer; border-radius: var(--r-full);
  position: relative; min-width: 0;
  transition: background var(--dur-fast);
}
.search-seg + .search-seg::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 1px; height: 32px; background: var(--hairline);
  transform: translateY(-50%);
}
.search-seg:hover { background: var(--surface-soft); }
.search-seg:hover + .search-seg::before,
.search-seg:has(+ .search-seg:hover)::before { background: transparent; }
.search-seg .lbl {
  font-size: 12px; font-weight: 600; color: var(--ink);
  margin-bottom: 2px; line-height: 1.2;
}
.search-seg .val {
  font-size: 14px; color: var(--ink); line-height: 1.3;
  width: 100%; border: 0; padding: 0; background: transparent;
  font-family: var(--font); outline: none;
}
.search-seg .val::placeholder { color: var(--muted); }
.search-seg.filled .val { color: var(--ink); font-weight: 500; }

/* Stacked search (trip-type radios on top of bar) */
.search-bar-stack { display: flex; flex-direction: column; gap: 12px; }
.trip-types {
  display: flex; gap: 18px; padding: 0 10px;
  font-size: 14px; color: var(--ink); flex-wrap: wrap;
}
.trip-types label {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.trip-types input[type="radio"], .trip-types input[type="checkbox"] {
  accent-color: var(--ink);
  width: 16px; height: 16px;
}

/* Autocomplete dropdown */
.ac-host { position: relative; }
.ac-list {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 260px; max-height: 320px; overflow-y: auto;
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--shadow-float);
  z-index: 60; padding: 6px;
}
.ac-list[hidden] { display: none; }
.ac-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; border-radius: var(--r-sm);
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 14px; color: var(--ink);
  text-align: left;
}
.ac-item:hover, .ac-item.active { background: var(--surface-soft); }
.ac-item .icon { color: var(--muted); width: 16px; height: 16px; }
.ac-item .ac-meta { color: var(--muted); font-size: 12px; margin-left: auto; }
.ac-item-all { font-weight: 600; border-bottom: 1px solid var(--hairline-soft); margin-bottom: 4px; padding-bottom: 14px; border-radius: 0; }

.search-orb {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rausch); color: #fff;
  border-radius: var(--r-full);
  height: 48px; padding: 0 16px; min-width: 48px;
  margin-left: auto; align-self: center;
  border: none; cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 600;
  transition: background var(--dur-fast);
}
.search-orb:hover { background: var(--sky); }
.search-orb:active { background: var(--sky-dark); }
.search-orb.compact { width: 48px; padding: 0; }
.search-orb.compact .lbl { display: none; }

/* ============================================================
   Section heads
   ============================================================ */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.section-head .more { font-size: 14px; color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.section-head .more:hover { text-decoration: underline; }

/* ============================================================
   Property / Tour cards
   ============================================================ */
.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: transparent; border: none; box-shadow: none;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--dur-fast);
}
.card:hover .card-photo { box-shadow: var(--shadow-float); }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; }

.card-photo {
  position: relative; aspect-ratio: 1/1; border-radius: var(--r-md);
  overflow: hidden; background: var(--surface-strong);
  transition: box-shadow var(--dur-fast);
}
.card-photo .photo { position: absolute; inset: 0; }
.card-photo .photo img { width: 100%; height: 100%; object-fit: cover; }

.card-photo .badge-fav {
  position: absolute; top: 12px; left: 12px;
  background: var(--canvas); color: var(--ink);
  font-size: 12px; font-weight: 600;
  padding: 6px 10px; border-radius: var(--r-full);
  box-shadow: var(--shadow-soft);
}
.card-photo .heart {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: transparent; color: #fff;
  cursor: pointer; border: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
  transition: transform var(--dur-fast);
}
.card-photo .heart:hover { transform: scale(1.1); }
.card-photo .heart .icon { stroke: #fff; stroke-width: 2; fill: rgba(0,0,0,.35); transition: fill var(--dur-fast); }
.card-photo .heart:hover .icon { fill: var(--sky); }
.card-photo .heart.saved .icon { fill: var(--rausch); stroke: #fff; }
.card-photo .heart.saved:hover .icon { fill: var(--sky); }

.card-photo .dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 4px;
  opacity: 0; transition: opacity var(--dur-fast);
}
.card:hover .card-photo .dots { opacity: 1; }
.card-photo .dots span {
  width: 6px; height: 6px; border-radius: var(--r-full);
  background: rgba(255,255,255,.6);
}
.card-photo .dots span.on { background: #fff; }

.card-body { display: flex; flex-direction: column; gap: 2px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.card-rate { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink); }
.card-rate .icon { color: var(--ink); width: 14px; height: 14px; }
.card-rate .num { font-weight: 500; }
.card-sub { font-size: 14px; color: var(--muted); line-height: 1.4; }
.card-price { font-size: 14px; color: var(--ink); margin-top: 6px; }
.card-price b { font-weight: 600; }
.card-price .strike { color: var(--muted); text-decoration: line-through; margin-right: 6px; }

/* Provenance pill (sits inside card-sub or card-photo) */
.pill-direct {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: var(--r-full);
}

/* ============================================================
   Destination tiles (Trip.com style — photo + name + count)
   ============================================================ */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dest {
  display: flex; gap: 14px; align-items: center;
  padding: 10px; border-radius: var(--r-sm);
  transition: background var(--dur-fast);
}
.dest:hover { background: var(--surface-soft); }
.dest .thumb {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface-strong); position: relative;
}
.dest .thumb .photo { position: absolute; inset: 0; }
.dest .name { font-size: 16px; font-weight: 600; color: var(--ink); }
.dest .count { font-size: 14px; color: var(--muted); }

/* Destination hero tiles (bigger) */
.dest-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dest-hero .tile {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-md);
  overflow: hidden; color: #fff; display: flex; align-items: flex-end;
  transition: transform var(--dur-fast);
}
.dest-hero .tile:hover { transform: scale(1.01); }
.dest-hero .tile .photo { position: absolute; inset: 0; transition: transform 600ms var(--ease); }
.dest-hero .tile:hover .photo { transform: scale(1.05); }
.dest-hero .tile .ov {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
}
.dest-hero .tile .lbl { position: relative; z-index: 2; padding: 16px; }
.dest-hero .tile .lbl h3 { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 2px; }
.dest-hero .tile .lbl span { font-size: 13px; color: rgba(255,255,255,.85); }

/* ============================================================
   Hot deals banner
   ============================================================ */
.deal-banner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
  background: var(--rausch-soft); border-radius: var(--r-md);
  padding: 24px 32px; margin: 0;
}
.deal-banner h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.deal-banner p { font-size: 14px; color: var(--body); margin: 0; }
.deal-banner .btn-primary { white-space: nowrap; }

/* ============================================================
   Why us — trust strip
   ============================================================ */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-item { text-align: left; }
.why-item .icon { width: 32px; height: 32px; color: var(--ink); margin-bottom: 12px; }
.why-item h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.why-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ============================================================
   Type row (property types / car types / experience durations)
   ============================================================ */
.type-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type-card { display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: transform var(--dur-fast); }
.type-card:hover .type-photo { box-shadow: var(--shadow-float); }
.type-photo { aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-strong); position: relative; transition: box-shadow var(--dur-fast); }
.type-photo .photo { position: absolute; inset: 0; }
.type-card .type-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.type-card .type-sub { font-size: 13px; color: var(--muted); }

/* ============================================================
   Popular list (routes, airports, locations)
   ============================================================ */
.list-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.list-cols a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px; color: var(--ink);
}
.list-cols a:hover { color: var(--sky); }
.list-cols a .meta { color: var(--muted); font-size: 13px; }

/* ============================================================
   FAQ accordion (native <details>/<summary>)
   ============================================================ */
.faq { max-width: 820px; }
.faq details { padding: 22px 0; border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  font-size: 16px; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 28px; font-weight: 300; color: var(--ink);
  line-height: 1; transition: transform var(--dur-fast);
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding-top: 14px; color: var(--body); font-size: 15px; margin: 0; line-height: 1.55; }

/* ============================================================
   Hub hero (service pages — slightly more breathing room)
   ============================================================ */
.hub-hero { padding: 48px 0 32px; }
.hub-hero .hero-head { max-width: 820px; }
.hub-hero .hero-head h1 { font-size: 38px; }

/* ============================================================
   Plan cards (eSIM / Insurance tiers)
   ============================================================ */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card {
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 24px; background: var(--canvas);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  position: relative;
}
.plan-card:hover { border-color: var(--ink); box-shadow: var(--shadow-float); }
.plan-card.featured { border: 2px solid var(--ink); padding: 23px; }
.plan-card.featured::before {
  content: "Most popular";
  position: absolute; top: -10px; left: 22px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 10px; border-radius: var(--r-full);
}
.plan-card .plan-name { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.plan-card .plan-price { font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1; }
.plan-card .plan-price .per { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-card .plan-features {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--body);
}
.plan-card .plan-features li { display: flex; gap: 8px; align-items: flex-start; }
.plan-card .plan-features li .icon { color: var(--ink); width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; }
.plan-card .plan-features li.no { color: var(--muted-soft); text-decoration: line-through; }
.plan-card .plan-features li.no .icon { color: var(--muted-soft); }
.plan-card .btn { margin-top: 16px; }

/* ============================================================
   How-it-works steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .num {
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.step h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0; }
.step p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ============================================================
   Service hero stat row (eSIM/Insurance hero metrics)
   ============================================================ */
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-stat b { font-size: 20px; font-weight: 700; color: var(--ink); }
.hero-stat span { font-size: 13px; color: var(--muted); }

/* ============================================================
   Photo fallback
   ============================================================ */
.photo {
  background: linear-gradient(135deg, #c2613e 0%, #c49a5b 60%, #8a4a2c 120%);
  position: relative;
}
.photo img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 500ms var(--ease);
}
.photo img.loaded { opacity: 1; }

/* ============================================================
   Long-form guide (1500-word SEO content blocks)
   ============================================================ */
.guide { max-width: 820px; }
.guide h2 { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--ink); margin: 36px 0 14px; letter-spacing: -.01em; }
.guide h2:first-child { margin-top: 0; }
.guide h3 { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 28px 0 10px; }
.guide p { font-size: 16px; line-height: 1.7; color: var(--body); margin: 0 0 16px; }
.guide ul, .guide ol { font-size: 16px; line-height: 1.7; color: var(--body); padding-left: 22px; margin: 0 0 16px; }
.guide li { padding: 4px 0; }
.guide li > strong, .guide p > strong { color: var(--ink); font-weight: 600; }
.guide a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.guide a:hover { color: var(--sky); }
.guide .lead { font-size: 17px; color: var(--ink); }
.guide .callout {
  background: var(--surface-soft); border-left: 3px solid var(--ink);
  padding: 14px 18px; border-radius: var(--r-sm); margin: 18px 0; font-size: 15px;
}

/* ============================================================
   Footer (light)
   ============================================================ */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 24px; margin-top: 80px;
}
.footer .cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px; max-width: var(--maxw-home); margin: 0 auto; padding: 0 40px;
}
.footer h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.footer a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); }
.footer a:hover { color: var(--sky); text-decoration: underline; }
.footer .brand { margin-bottom: 14px; }
.footer .desc { font-size: 14px; max-width: 280px; color: var(--muted); line-height: 1.5; }
.footer .social { display: flex; gap: 12px; margin-top: 16px; }
.footer .social a {
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--surface-soft); display: grid; place-items: center; color: var(--ink);
  padding: 0;
}
.footer .social a:hover { background: var(--surface-strong); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  margin-top: 40px; padding: 24px 40px 0;
  max-width: var(--maxw-home); margin-left: auto; margin-right: auto;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
.footer-bottom .legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom .legal a { display: inline; padding: 0; color: var(--muted); }
.footer-bottom .legal a:hover { color: var(--sky); }
.disclaimer { font-size: 12px; color: var(--muted-soft); max-width: var(--maxw-home); margin: 16px auto 0; padding: 0 40px; }

/* ============================================================
   Tour / Listing detail
   ============================================================ */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink); text-decoration: underline; }
.breadcrumb a:hover { color: var(--sky); }

.listing-head { padding: 16px 0 24px; }
.listing-head h1 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin-bottom: 8px; }
.listing-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; color: var(--ink); }
.listing-meta .icon { width: 14px; height: 14px; color: var(--ink); }
.listing-meta .sep { color: var(--muted-soft); }
.listing-meta .share, .listing-meta .save { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; color: var(--ink); cursor: pointer; }

.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 220px; gap: 8px;
  border-radius: var(--r-md); overflow: hidden;
}
.gallery .g0 { grid-row: span 2; }
.gallery > div { position: relative; background: var(--surface-strong); }
.gallery .photo { position: absolute; inset: 0; }
.gallery .show-all {
  position: absolute; bottom: 16px; right: 16px;
  background: var(--canvas); color: var(--ink);
  font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--ink); display: inline-flex; align-items: center; gap: 6px;
}

.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; margin-top: 40px; }

.detail-section { padding: 32px 0; border-bottom: 1px solid var(--hairline-soft); }
.detail-section h2 { font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.detail-section p { font-size: 16px; color: var(--body); margin: 0; line-height: 1.6; }

.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; margin-top: 8px; }
.fact-row { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.fact-row .icon { width: 24px; height: 24px; color: var(--ink); margin-top: 2px; }
.fact-row b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.fact-row span { font-size: 13px; color: var(--muted); }

/* Day-by-day timeline */
.timeline { display: flex; flex-direction: column; gap: 24px; padding-left: 22px; border-left: 1px solid var(--hairline); }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -27px; top: 6px;
  width: 10px; height: 10px; border-radius: var(--r-full);
  background: var(--ink);
}
.tl-item .d { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.tl-item h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 4px 0 6px; }
.tl-item p { font-size: 15px; color: var(--body); margin: 0; }

.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; padding: 0; list-style: none; }
.incl ul { padding: 0; margin: 0; list-style: none; }
.incl li { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: 15px; color: var(--ink); }
.incl li .icon { width: 18px; height: 18px; }
.incl li.yes .icon { color: var(--ink); }
.incl li.no  { color: var(--muted); }
.incl li.no .icon { color: var(--muted); }
.incl li.no span { text-decoration: line-through; }

/* Reservation card */
.reservation-card {
  position: sticky; top: calc(var(--nav-h) + 12px);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
  padding: 24px;
}
.reservation-card .price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.reservation-card .price-row b { font-size: 22px; font-weight: 600; color: var(--ink); }
.reservation-card .price-row span { font-size: 16px; color: var(--ink); }
.reservation-card .picker {
  border: 1px solid var(--ink); border-radius: var(--r-sm);
  margin-bottom: 12px; overflow: hidden;
}
.reservation-card .picker .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; gap: 12px;
}
.reservation-card .picker .row + .row { border-top: 1px solid var(--hairline); }
.reservation-card .picker .lbl { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); line-height: 1.2; margin-bottom: 2px; }
.reservation-card .picker .val { font-size: 14px; color: var(--ink); }
.reservation-card .breakdown { padding-top: 16px; border-top: 1px solid var(--hairline-soft); margin-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink); }
.reservation-card .breakdown .row { display: flex; justify-content: space-between; }
.reservation-card .breakdown .row.total { padding-top: 14px; border-top: 1px solid var(--hairline); font-weight: 600; }
.reservation-card .trust { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Rating display moment */
.rating-display {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; padding: 28px 0;
}
.rating-display .num {
  font-size: 64px; font-weight: 700; line-height: 1;
  letter-spacing: -.02em; color: var(--ink);
}
.rating-display .lbl { font-size: 14px; font-weight: 600; color: var(--ink); }
.rating-display .sub { font-size: 13px; color: var(--muted); }
.rating-display svg.laurel { width: 28px; height: 80px; color: var(--ink); }

/* ============================================================
   Legacy class shims (so any leftover markup still renders OK)
   ============================================================ */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 600; background: var(--surface-strong); color: var(--ink); }
.pill-best { background: var(--rausch-soft); color: var(--rausch-active); }
.pill-soft { background: var(--surface-soft); color: var(--muted); }
.pill-gold { background: rgba(196,154,91,.18); color: #8a6526; }
.pill-blue { background: var(--ocean-soft); color: var(--ocean); }
.pill-warn { background: rgba(181,122,7,.14); color: #7a5300; }
.pill-clay { background: var(--rausch-soft); color: var(--rausch-active); }

/* ============================================================
   Booking partners — "where we search" strip + comparison
   (affiliate partner listings on service hub pages)
   ============================================================ */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--canvas);
  transition: box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.partner-card:hover { box-shadow: var(--shadow-float); border-color: var(--border-strong); }
.partner-card .partner-name {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.partner-card .partner-name .icon { width: 16px; height: 16px; color: var(--muted); flex: none; }
.partner-card:hover .partner-name .icon { color: var(--sky); }
.partner-card .partner-role { font-size: 12px; font-weight: 600; color: var(--sky); text-transform: uppercase; letter-spacing: .03em; }
.partner-card p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }

.aff-note { font-size: 13px; color: var(--muted); margin-top: 18px; max-width: 720px; line-height: 1.5; }
.aff-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.aff-note a:hover { color: var(--sky); }

.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--hairline-soft); }
.cmp thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--hairline); }
.cmp tbody tr:hover { background: var(--surface-soft); }
.cmp td { color: var(--body); }
.cmp .cmp-brand { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cmp .cmp-brand a { color: var(--ink); text-decoration: none; }
.cmp .cmp-brand a:hover { color: var(--sky); text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1128px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .dest-grid { grid-template-columns: repeat(3, 1fr); }
  .dest-hero { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .container, .container-detail { padding: 0 24px; }
  .topbar-inner { padding: 8px 24px; }
  .nav-inner { padding: 0 24px; }
  .prod-tabs { gap: 18px; }
  .prod-tab span:not(.new-tag) { display: none; }
  .grid-cards, .dest-grid, .dest-hero, .why, .type-row, .plan-grid, .steps, .partners { grid-template-columns: repeat(2, 1fr); }
  .list-cols { grid-template-columns: repeat(2, 1fr); }
  .hub-hero .hero-head h1 { font-size: 30px; }
  .search-bar { flex-direction: column; border-radius: var(--r-md); }
  .search-seg { padding: 14px 16px; }
  .search-seg + .search-seg::before { display: none; }
  .search-orb { margin: 8px auto 0; }
  .ac-list { min-width: 0; width: 100%; }
  .detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .reservation-card { position: static; }
  .footer .cols { grid-template-columns: repeat(2, 1fr); }
  .deal-banner { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .facts-grid, .incl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-cards, .dest-grid, .dest-hero, .why, .type-row, .plan-grid, .steps, .list-cols, .partners, .footer .cols { grid-template-columns: 1fr; }
  .hero-head h1 { font-size: 26px; }
  .listing-head h1 { font-size: 22px; }
  .nav-actions .nav-link { display: none; }
}

/* ============================================================
   Mobile navigation — hamburger drawer
   Progressive enhancement: app.js adds .js-nav to <body>, builds
   the toggle button + drawer, and these rules take over. Without
   JS the page falls back to the original icon-tab bar.
   ============================================================ */
.nav-toggle { display: none; }

@media (max-width: 880px) {
  /* Shorter, comfortable mobile header */
  body.js-nav { --nav-h: 64px; }

  /* Brand left, hamburger right — no more squashed 3-column grid */
  body.js-nav .nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  body.js-nav .prod-tabs,
  body.js-nav .nav-actions { display: none; }
  /* Let the logo keep its natural aspect ratio (kills the squash) */
  body.js-nav .brand img.brand-mark { max-width: none; }

  body.js-nav .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 44px; padding: 0;
    background: var(--canvas); color: var(--ink);
    border: 1px solid var(--hairline); border-radius: var(--r-sm);
    cursor: pointer;
    transition: background var(--dur-fast), border-color var(--dur-fast);
  }
  body.js-nav .nav-toggle:hover { background: var(--surface-soft); border-color: var(--border-strong); }
  body.js-nav .nav-toggle .icon { width: 24px; height: 24px; }
}

/* Slide-down drawer (hidden until .open; only ever opens at mobile widths
   because the toggle that opens it is display:none on desktop) */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 49; background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 8px 0 24px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              visibility var(--dur-base) var(--ease);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; font-size: 17px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a:active { background: var(--surface-soft); }
.mobile-menu a .icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--muted); }
.mobile-menu a.active { color: var(--rausch); font-weight: 600; }
.mobile-menu a.active .icon { color: var(--rausch); }
body.menu-open { overflow: hidden; }

/* Detail layout (tour/listing) — stop the long nowrap CTA button from
   forcing the single column wider than the viewport on phones. */
@media (max-width: 880px) {
  .detail-layout > * { min-width: 0; }
  .btn-block { white-space: normal; }
}

/* 3-up card grid (e.g. "Complete your trip") — collapses responsively.
   Use this class instead of an inline grid-template-columns, which would
   override the media queries below and overflow on phones. */
.grid-cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid-cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-cards-3 { grid-template-columns: 1fr; } }

/* ============================================================
   eSIM — provider logo carousel + provider compare cards
   ============================================================ */
.logo-band { text-align: center; }
.logo-band-label {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}
.logo-carousel {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-track {
  display: flex; align-items: center; gap: 72px; width: max-content;
  animation: logo-scroll 32s linear infinite;
}
.logo-carousel:hover .logo-track { animation-play-state: paused; }
.logo-item {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; flex: 0 0 auto;
  filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s;
}
.logo-item:hover { filter: none; opacity: 1; }
.logo-item img {
  height: 30px; width: 30px; object-fit: contain;
  border-radius: 7px;
}
.logo-name { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.prov-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.prov-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--canvas); padding: 24px;
}
.prov-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.prov-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.prov-name { font-size: 19px; font-weight: 700; color: var(--ink); }
.prov-tag {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-soft);
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.prov-desc { font-size: 14px; color: var(--body); line-height: 1.55; margin: 0 0 16px; }
.prov-points { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.prov-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); }
.prov-points .icon { width: 16px; height: 16px; color: var(--sky); flex: 0 0 auto; }
.prov-card .btn { margin-top: auto; }

/* Per-provider offer sections (insurance / trip-protection partners) */
.partner-offers { display: flex; flex-direction: column; gap: 24px; }
.partner-offer {
  display: grid; grid-template-columns: 240px 1fr; gap: 36px;
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background: var(--canvas); padding: 32px;
}
.partner-offer:hover { box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.partner-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.partner-logo { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; }
.partner-name { font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.partner-tag {
  font-size: 12px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-soft);
  padding: 5px 10px; border-radius: 999px; line-height: 1.3;
}
.partner-aside .btn { margin-top: 8px; width: 100%; }
.partner-body { min-width: 0; }
.partner-body > p { font-size: 15px; color: var(--body); line-height: 1.65; margin: 0 0 16px; }
.partner-points { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.partner-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--body); line-height: 1.45; }
.partner-points .icon { width: 18px; height: 18px; color: var(--sky); flex: 0 0 auto; margin-top: 2px; }
.partner-best { font-size: 14.5px; color: var(--ink); margin: 0; }
@media (max-width: 720px) {
  .partner-offer { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
}

/* ============================================================
   Homepage — service widget grid
   (replaces the hero search: one card per service, each links
   to that service's own page + search engine)
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--canvas); overflow: hidden;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--border-strong); }
.svc-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--rausch), var(--gold));
  opacity: 0; transition: opacity var(--dur-base) var(--ease);
}
.svc-card:hover::after { opacity: 1; }
.svc-ic {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--sky-soft); color: var(--sky);
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.svc-card:hover .svc-ic { background: var(--rausch-soft); color: var(--rausch); }
.svc-ic .icon { width: 24px; height: 24px; }
.svc-card h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0; }
.svc-card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; flex: 1; }
.svc-partners { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-soft); }
.svc-go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.svc-card:hover .svc-go { color: var(--sky); }
.svc-go .icon { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease); }
.svc-card:hover .svc-go .icon { transform: translateX(4px); }
.svc-soon {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-strong);
  padding: 3px 8px; border-radius: var(--r-full);
}

/* ============================================================
   Homepage — blog journal carousel (infinite marquee)
   ============================================================ */
.blog-carousel {
  position: relative; overflow: hidden; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.blog-track {
  display: flex; gap: 24px; width: max-content;
  animation: blog-scroll 120s linear infinite;
}
.blog-carousel:hover .blog-track { animation-play-state: paused; }
.blog-card {
  flex: 0 0 320px; width: 320px;
  display: flex; flex-direction: column; gap: 12px;
}
.blog-photo {
  position: relative; aspect-ratio: 16 / 10;
  border-radius: var(--r-md); overflow: hidden; background: var(--surface-strong);
  transition: box-shadow var(--dur-fast);
}
.blog-card:hover .blog-photo { box-shadow: var(--shadow-float); }
.blog-photo .photo { position: absolute; inset: 0; }
.blog-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sky); }
.blog-card h3 { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0; }
.blog-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.blog-card p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.blog-meta { font-size: 13px; color: var(--muted-soft); margin-top: auto; }
@keyframes blog-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 880px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
