/* =========================================================================
   ATKV UI Redesign - Shared design system
   Polished version of ui/design-system/css/variables.css applied consistently
   across all screen mockups. Token values match the live app so this is a
   polish pass, not a re-skin.
   ========================================================================= */

:root {
  /* Brand */
  --atkv-blue:        #2a63af;

  /* Resort palettes - extracted from the ATKV Resorts colour palette poster.
     Each resort has primary / secondary / accent / accent-2 / accent-3 in
     the order shown on the poster. Apply by adding data-resort="<slug>" to
     any container; descendants then read var(--resort-primary) etc. */
  --resort-atkv-primary:   #5CB8B2;
  --resort-atkv-secondary: #2E334E;
  --resort-atkv-accent:    #515A6C;
  --resort-atkv-accent-2:  #4EC3E0;
  --resort-atkv-accent-3:  #D3D3D3;
  --atkv-blue-700:    #234f8e;
  --atkv-blue-50:     #eaf1fb;
  --atkv-yellow:      #fdb913;
  --atkv-yellow-50:   #fff7e0;
  --atkv-black:       #000000;
  --atkv-ink:         #1a1a1a;     /* softer than pure black for body text */
  --atkv-text:        #3c3c3c;
  --atkv-muted:       #6b7280;
  --atkv-grey:        #b7beb5;
  --atkv-line:        #e5e7eb;
  --atkv-line-soft:   #f1f5f9;
  --atkv-bg:          #ffffff;
  --atkv-bg-alt:      #f8fafc;
  --atkv-bg-card:     #f9fafb;

  /* Status pill colours - polished palette, accessible contrast */
  --status-confirmed-bg: #dcfce7;
  --status-confirmed-fg: #166534;
  --status-provisional-bg: #fef3c7;
  --status-provisional-fg: #92400e;
  --status-closed-bg:    #e5e7eb;
  --status-closed-fg:    #374151;
  --status-cancelled-bg: #fee2e2;
  --status-cancelled-fg: #991b1b;
  --status-info-bg:      #dbeafe;
  --status-info-fg:      #1e3a8a;

  /* Typography */
  --font:        'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-xs:       0.75rem;
  --fs-sm:       0.8125rem;
  --fs-base:     0.9375rem;
  --fs-md:       1rem;
  --fs-lg:       1.125rem;
  --fs-xl:       1.375rem;
  --fs-2xl:      1.625rem;

  /* Spacing */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-7:  32px;
  --sp-8:  40px;
  --sp-9:  48px;

  /* Radius - the live app uses 20px almost everywhere; we keep that but soften
     where bottom-sheet feel suits better. */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(0,0,0,0.05);
  --sh-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --sh-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --sh-lg: 0 10px 28px rgba(0,0,0,0.14);

  /* Motion */
  --t-fast: 120ms ease-out;
  --t-base: 200ms ease-out;
}

/* =========================================================================
   Resort theming - palettes scoped by [data-resort="<slug>"] so any subtree
   inherits the resort's primary / secondary / accent colours via custom
   property indirection (--resort-primary etc).
   ========================================================================= */
[data-resort="buffelspoort"] {
  --resort-primary:   #AA1948;
  --resort-secondary: #5B6770;
  --resort-accent:    #5CB8B2;
  --resort-accent-2:  #E2665C;
  --resort-accent-3:  #B53B50;
}
[data-resort="drakensville"] {
  --resort-primary:   #002F5F;
  --resort-secondary: #2C2E65;
  --resort-accent:    #A2B2C8;
  --resort-accent-2:  #A3C7D2;
  --resort-accent-3:  #00A9E0;
}
[data-resort="eiland"] {
  --resort-primary:   #D52B1E;
  --resort-secondary: #009D85;
  --resort-accent:    #F19C49;
  --resort-accent-2:  #CB2C30;
  --resort-accent-3:  #FFBE9F;
}
[data-resort="goudini"] {
  --resort-primary:   #008542;
  --resort-secondary: #006AC6;
  --resort-accent:    #00965E;
  --resort-accent-2:  #00A5BD;
  --resort-accent-3:  #5B6770;
}
[data-resort="hartenbos"] {
  --resort-primary:   #2A6EBB;
  --resort-secondary: #00B0B9;
  --resort-accent:    #002855;
  --resort-accent-2:  #4B9FDF;
  --resort-accent-3:  #EF6079;
}
[data-resort="klein-kariba"] {
  --resort-primary:   #3C8A2E;
  --resort-secondary: #6B9560;
  --resort-accent:    #F0E991;
  --resort-accent-2:  #A0A2B0;
  --resort-accent-3:  #5B6770;
}
[data-resort="natalia"] {
  --resort-primary:   #6E2C6B;
  --resort-secondary: #004677;
  --resort-accent:    #A4BCC2;
  --resort-accent-2:  #AF95D3;
  --resort-accent-3:  #9E599D;
}
[data-resort="mese"] {
  --resort-primary:   #E95C37;
  --resort-secondary: #3180A4;
  --resort-accent:    #F6CA21;
  --resort-accent-2:  #4BAD79;
  --resort-accent-3:  #FFFFFF;
}

/* Themed components. Read the variables that are scoped on the nearest
   [data-resort] ancestor. */
.resort-banner {
  background: linear-gradient(135deg, var(--resort-primary), var(--resort-secondary));
}
.resort-banner-soft {
  background: linear-gradient(180deg, var(--resort-primary), color-mix(in srgb, var(--resort-primary) 60%, white 40%));
}
.resort-accent-stripe {
  height: 4px;
  background: var(--resort-primary);
}
.resort-chip {
  background: color-mix(in srgb, var(--resort-primary) 12%, white 88%);
  color: var(--resort-primary);
  border: 1px solid color-mix(in srgb, var(--resort-primary) 24%, white 76%);
}
.resort-cta {
  background: var(--resort-primary);
  color: #fff;
}
.resort-cta:hover {
  background: color-mix(in srgb, var(--resort-primary) 88%, black 12%);
}
.resort-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--resort-primary);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--resort-primary) 25%, white 75%);
}

/* Vertical resort accent on the left edge of a list row - cleaner than a
   floating dot and reads as "this row is themed for resort X". */
.list-row-resort { position: relative; padding-left: 24px; }
.list-row-resort .resort-edge {
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 2px;
  background: var(--resort-primary);
}

/* =========================================================================
   Reset (light)
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--atkv-ink);
  background: var(--atkv-bg-alt);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
a { color: var(--atkv-blue); text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* =========================================================================
   Page chrome - this lays out the mockup gallery shell.
   Each screen is rendered inside a "phone" container 430x932 with a fixed
   header strip, a notes panel to the right, and a small status bar at the top.
   ========================================================================= */

.gallery-shell {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 32px;
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.phone {
  width: 430px;
  height: 932px;
  background: #fff;
  border-radius: 32px;
  box-shadow: var(--sh-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-statusbar {
  height: 38px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--atkv-ink);
  flex-shrink: 0;
}
.phone-statusbar .clock { letter-spacing: 0.02em; }
.phone-statusbar .icons { display: flex; gap: 4px; align-items: center; opacity: 0.7; }

.phone-content {
  flex: 1;
  overflow-y: auto;
  background: var(--atkv-bg);
}

/* Top app bar (in-screen) */
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--atkv-blue);
  color: #fff;
}
.appbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.appbar .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--atkv-blue);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}
.appbar .actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.appbar .icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.appbar .icon-btn:hover { background: rgba(255,255,255,0.08); }

/* Hero image strip (with overlay title) */
.hero-strip {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #2a63af 0%, #6b9bd1 100%);
  overflow: hidden;
}
.hero-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%);
}
.hero-strip .hero-title {
  position: absolute;
  bottom: 16px;
  left: 20px;
  color: #fff;
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin: 0;
  z-index: 2;
}
.hero-strip .hero-sub {
  position: absolute;
  bottom: 50px;
  left: 20px;
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-sm);
  z-index: 2;
  font-weight: 500;
}

/* Bottom nav */
.tabbar {
  position: sticky;
  bottom: 0;
  height: 72px;
  background: #fff;
  border-top: 1px solid var(--atkv-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
  flex-shrink: 0;
}
.tabbar button {
  border: 0;
  background: transparent;
  color: var(--atkv-muted);
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 4px 10px;
  font-size: 11px;
  font-weight: 600;
}
.tabbar button.active {
  color: var(--atkv-blue);
}
.tabbar .tab-ico {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

/* Sections within content */
.section {
  padding: var(--sp-5) var(--sp-4);
}
.section + .section { padding-top: 0; }
.section-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 0 0 var(--sp-3);
  color: var(--atkv-ink);
}
.section-sub {
  color: var(--atkv-muted);
  font-size: var(--fs-sm);
  margin: -8px 0 var(--sp-3);
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--atkv-line);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  box-shadow: var(--sh-xs);
}
.card-stack > * + * { margin-top: var(--sp-3); }

/* Wallet hero card (large) */
.wallet-hero {
  background: linear-gradient(135deg, #2a63af 0%, #1d3f6f 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.wallet-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(253,185,19,0.25) 0%, rgba(253,185,19,0) 70%);
}
.wallet-hero .label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.wallet-hero .amount { font-size: 32px; font-weight: 700; margin-top: 4px; }
.wallet-hero .currency { font-size: 14px; opacity: 0.85; margin-left: 4px; font-weight: 500; }
.wallet-hero .sub { font-size: var(--fs-sm); opacity: 0.85; margin-top: 4px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--fs-md);
  transition: background-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid rgba(42,99,175,0.35); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--atkv-black); color: #fff; }
.btn-primary:hover { background: #1a1a1a; }
.btn-secondary { background: var(--atkv-blue); color: #fff; }
.btn-secondary:hover { background: var(--atkv-blue-700); }
.btn-tertiary { background: #f3f0eb; color: var(--atkv-ink); border-color: #b7beb5; }
.btn-ghost { background: transparent; color: var(--atkv-blue); }
.btn-yellow { background: var(--atkv-yellow); color: var(--atkv-ink); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: var(--fs-sm); border-radius: var(--r-pill); }

/* Inputs */
.field { display: block; }
.field + .field { margin-top: var(--sp-4); }
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--atkv-ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--atkv-black);
  border-radius: var(--r-xl);
  background: #fff;
  color: var(--atkv-ink);
  font-size: var(--fs-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { height: auto; padding: 14px 16px; min-height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--atkv-blue);
  box-shadow: 0 0 0 3px rgba(42,99,175,0.18);
}
.field .hint {
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--atkv-muted);
}

/* Pills + chips */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--atkv-line-soft);
  color: var(--atkv-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
}
.pill-confirmed { background: var(--status-confirmed-bg); color: var(--status-confirmed-fg); }
.pill-provisional { background: var(--status-provisional-bg); color: var(--status-provisional-fg); }
.pill-closed { background: var(--status-closed-bg); color: var(--status-closed-fg); }
.pill-cancelled { background: var(--status-cancelled-bg); color: var(--status-cancelled-fg); }
.pill-info { background: var(--status-info-bg); color: var(--status-info-fg); }

/* List row (compact) */
.list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--atkv-line-soft);
  align-items: center;
  cursor: pointer;
  transition: background-color var(--t-fast);
}
.list-row:hover { background: var(--atkv-bg-alt); }
.list-row:last-child { border-bottom: 0; }
.list-row .primary { font-weight: 600; color: var(--atkv-ink); font-size: var(--fs-md); grid-column: 1; grid-row: 1; }
.list-row .secondary { color: var(--atkv-muted); font-size: var(--fs-sm); grid-column: 1; grid-row: 2; }
.list-row .meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.list-row .chev {
  width: 20px;
  height: 20px;
  color: var(--atkv-grey);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--atkv-line-soft);
}
.tabs .tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  padding: 8px 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--atkv-muted);
}
.tabs .tab.active { background: var(--atkv-blue); color: #fff; }

/* Scrolling tab strip - used where there are more tabs than fit the
   segmented-pill .tabs control (e.g. resort detail sections). The strip
   scrolls horizontally with no visible scrollbar; the active tab is
   underlined in the resort's primary colour when nested inside a
   [data-resort] container, falling back to ATKV blue elsewhere. */
.tab-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  border-bottom: 1px solid var(--atkv-line);
  padding: 0 16px;
  margin: 0 -16px;
  scroll-snap-type: x proximity;
}
.tab-strip::-webkit-scrollbar { display: none; }
.tab-strip button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 12px 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--atkv-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  scroll-snap-align: start;
  cursor: pointer;
}
.tab-strip button + button { margin-left: 14px; }
.tab-strip button.active {
  color: var(--resort-primary, var(--atkv-blue));
  border-bottom-color: var(--resort-primary, var(--atkv-blue));
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat {
  background: #fff;
  border: 1px solid var(--atkv-line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
}
.stat .label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--atkv-muted); }
.stat .value { font-size: var(--fs-xl); font-weight: 700; margin-top: 2px; }
.stat .delta { font-size: var(--fs-xs); color: var(--status-confirmed-fg); margin-top: 2px; }

/* Empty state */
.empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 56px 24px;
  gap: 12px;
}
.empty .empty-art {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--atkv-blue-50);
  display: grid;
  place-items: center;
  color: var(--atkv-blue);
}
.empty h3 {
  font-size: var(--fs-lg);
  margin: 0;
  font-weight: 700;
}
.empty p {
  margin: 0;
  color: var(--atkv-muted);
  font-size: var(--fs-sm);
  max-width: 28ch;
}

/* Auth full-bleed: beach background visible above AND below a centered
   floating card. Per feedback - the work should not be jammed at the
   bottom; the card sits over the photo so the photo reads as context,
   not as the whole screen. */
.auth-bg {
  position: relative;
  width: 100%;
  min-height: 100vh;            /* fall-back for older browsers */
  min-height: 100dvh;           /* honours mobile address-bar collapse */
  background: #2a63af;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}
.auth-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('/images/beach-background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.auth-bg-image::after {
  /* Faint scrim so text on the card always reads regardless of the photo's
     local contrast. Subtle - the photo is still clearly visible. */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.18) 100%);
}
.auth-back-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 0;
  color: var(--atkv-ink);
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 24px;
  padding: 26px 24px 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18), 0 4px 10px rgba(0,0,0,0.08);
  max-height: calc(100% - 40px);
  overflow-y: auto;
}
/* Grabber was meaningful when the card was bottom-anchored like a sheet -
   the centered card does not need it. Hidden but kept in markup for now in
   case we restore the sheet variant for any one screen. */
.auth-card-grabber {
  display: none;
}

/* Wallet switcher - segmented control that swaps the active wallet hero card.
   Replaces the previous two-card stack so members tap to switch between
   Sticitt (ZAR) and Tjieng (points), matching the live wallet-nav-button
   pattern in the existing app. */
.wallet-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--atkv-line-soft);
  padding: 4px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.wallet-switcher button {
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  padding: 10px 12px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--atkv-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--t-fast), color var(--t-fast);
}
.wallet-switcher button.active.sticitt {
  background: var(--atkv-blue);
  color: #fff;
  box-shadow: var(--sh-xs);
}
.wallet-switcher button.active.tjieng {
  background: var(--atkv-yellow);
  color: var(--atkv-ink);
  box-shadow: var(--sh-xs);
}
.wallet-switcher button .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}
.wallet-switcher button.active .dot { opacity: 1; }

/* Wallet carousel - swipeable hero cards, one wallet per card. The user
   swipes between Sticitt and Tjieng; the dots below act as both a position
   indicator and an explicit tap-to-commit switch (since pure swipe state
   cannot be observed in a static mock-up). */
.wallet-carousel {
  scroll-padding-left: 16px;
  padding-bottom: 4px;
}
.wallet-carousel .wallet-hero {
  width: calc(100vw - 32px);
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}
.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 12px 0 4px;
}
.carousel-dots a,
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--atkv-line);
  display: inline-block;
  transition: background var(--t-fast), width var(--t-fast);
  /* reset default <button> chrome so button-based dots render as dots, not
     grey rectangles */
  padding: 0;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.carousel-dots a.active,
.carousel-dots button.active {
  width: 22px;
  background: var(--atkv-blue);
}
.carousel-dots a.active.tjieng,
.carousel-dots button.active.tjieng {
  background: var(--atkv-yellow);
}

/* Styled select - the dropdown that replaces horizontal-scrolling chip rows
   for selection use cases (per feedback). Tap target 48px, native option
   list so it always works on mobile keyboards. */
.select-field {
  position: relative;
  display: block;
}
.select-field select {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  border: 1.5px solid var(--atkv-line);
  border-radius: var(--r-xl);
  background: #fff;
  color: var(--atkv-ink);
  font-size: var(--fs-md);
  font-weight: 600;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.select-field select:focus {
  outline: none;
  border-color: var(--atkv-blue);
  box-shadow: 0 0 0 3px rgba(42,99,175,0.18);
}
.select-field::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--atkv-blue);
  border-bottom: 2px solid var(--atkv-blue);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-field.compact select {
  height: 40px;
  padding: 0 36px 0 14px;
  font-size: var(--fs-sm);
  border-color: var(--atkv-line);
}
.select-field.compact::after { right: 14px; width: 8px; height: 8px; }

/* "Choose a view" pattern - used in resort detail, news, etc to replace
   the horizontal chip row. */
.section-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--atkv-bg-alt);
  border-top: 1px solid var(--atkv-line);
  border-bottom: 1px solid var(--atkv-line);
}
.section-selector .label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--atkv-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.section-selector .select-field { flex: 1; }

/* Modal */
.modal-back {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: grid;
  place-items: flex-end;
}
.modal-sheet {
  width: 100%;
  background: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  max-height: 88%;
  overflow-y: auto;
  padding: 20px 20px 24px;
}
.modal-grabber {
  width: 44px;
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
  margin: 0 auto 14px;
}

/* Helpers */
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row-tight { gap: var(--sp-2); }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.stack > * + * { margin-top: var(--sp-3); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-5); }
.text-muted { color: var(--atkv-muted); }
.text-small { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-bold { font-weight: 700; }
.text-center { text-align: center; }
.spacer-sm { height: 8px; }
.spacer { height: 16px; }
.spacer-lg { height: 28px; }

/* Notes panel (the annotation column right of each phone) */
.notes-panel {
  background: #fff;
  border: 1px solid var(--atkv-line);
  border-radius: 16px;
  padding: 24px;
  font-size: 14px;
  color: var(--atkv-ink);
}
.notes-panel h2 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--atkv-blue);
}
.notes-panel .deck {
  font-size: 13px;
  color: var(--atkv-muted);
  margin-bottom: 16px;
}
.notes-panel .changes {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notes-panel .changes li {
  position: relative;
  padding: 8px 0 8px 24px;
  border-bottom: 1px dashed var(--atkv-line);
  line-height: 1.5;
}
.notes-panel .changes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--atkv-yellow);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--atkv-yellow);
}
.notes-panel .changes li:last-child { border-bottom: 0; }
.notes-panel .changes strong { color: var(--atkv-ink); }
.notes-panel .nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 13px;
}
.notes-panel .nav-links a {
  color: var(--atkv-blue);
  font-weight: 600;
}

/* Gallery grid for index */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}
.gallery-tile {
  display: block;
  background: #fff;
  border: 1px solid var(--atkv-line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
  color: inherit;
}
.gallery-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.gallery-tile .preview {
  height: 180px;
  background: linear-gradient(180deg, #eaf1fb, #fff);
  display: grid;
  place-items: center;
  color: var(--atkv-blue);
  font-size: 28px;
  font-weight: 700;
}
.gallery-tile .meta {
  padding: 14px 16px;
}
.gallery-tile .label {
  font-size: 13px;
  font-weight: 700;
  color: var(--atkv-ink);
  margin: 0;
}
.gallery-tile .sub {
  font-size: 12px;
  color: var(--atkv-muted);
  margin: 4px 0 0;
}
.gallery-tile .pill {
  margin-top: 8px;
}

/* =========================================================================
   Carousel - horizontally-scrollable row with snap-to-card behaviour and
   a hidden scrollbar. The app must never show a raw horizontal scrollbar;
   any row of cards that overflows the viewport must use this pattern.
   ========================================================================= */
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;       /* IE/Edge legacy */
  scrollbar-width: none;          /* Firefox */
  scroll-padding-left: 16px;
}
.carousel::-webkit-scrollbar { display: none; }  /* Chromium, Safari */
.carousel > * {
  flex-shrink: 0;
  scroll-snap-align: start;
}
/* Bleed the carousel to the screen edges so cards can scroll under the
   gutter, while still letting the first card sit at the content gutter. */
.carousel-bleed {
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
}
