/* ============================================================
   Hboosh — web design system
   Mirrors the mobile app's slate palette + type exactly
   (see mobile/src/constants/theme.ts ModernPalette):
   scale 50 #f9fafb · 100 #f3f4f6 · 200 #e6e7ea · 400 #969ca5
   500 #6e737d · 700 #3b424d · 800 #222a34 · 900 #141a24 · 950 #050810
   Display: Plus Jakarta Sans (600/700) · Body: Archivo (400/500/600)
   ============================================================ */

/* Fonts are loaded via <link rel="preconnect"> + <link rel="stylesheet"> in
   each page's <head> (see the resource hints there) rather than a
   render-blocking CSS @import, so first paint isn't held up. */

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --surface: #ffffff;
  --linen: #f3f4f6;
  --ink: #141a24;
  --ink-soft: #6e737d;
  --ink-faint: #969ca5;
  --line: #e6e7ea;
  --price: #3b424d;
  --verified: #16a34a;
  --star: #f97316;
  --heart: #ff385c;
  /* Primary accent — coffee/buna brown, the site-wide brand color, keyed to
     the mascot. Used for CTAs and small accents; text/structure stay slate. */
  --accent: #7a4a22;
  --accent-2: #7a4a22;
  --accent-grad: linear-gradient(135deg, #9a6a34 0%, #5e3818 100%);
  --accent-soft: rgba(122, 74, 34, 0.10);
  --accent-ink: #5e3818;
  --blue: #7a4a22;
  --blue-soft: #f1e7d8;
  /* Coffee verified seal (scalloped badge + white check), shared by every
     "Verified" badge on cards and detail pages. */
  --seal-img: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0,0,24,24'%3E%3Cpath%20fill='%237a4a22'%20d='M12,1,15.2,4.2,19.8,4.2,19.8,8.8,23,12,19.8,15.2,19.8,19.8,15.2,19.8,12,23,8.8,19.8,4.2,19.8,4.2,15.2,1,12,4.2,8.8,4.2,4.2,8.8,4.2Z'/%3E%3Cpath%20d='M8,12.3l2.6,2.6,5.1-5.4'%20fill='none'%20stroke='%23fff'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  --on-blue: #ffffff;
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.1);
  --warn: #b45309;
  --warn-bg: rgba(217, 119, 6, 0.14);
  --ok-bg: rgba(31, 143, 78, 0.14);
  --ok: #1f8f4e;
  --on-ink: #f9fafb;
  --shadow: 0 3px 14px rgba(26, 26, 26, 0.14);
  --shadow-soft: 0 2px 8px rgba(26, 26, 26, 0.08);
  /* 'Noto Sans Ethiopic' is a per-glyph fallback so Tigrinya (Ge'ez) renders
     correctly while Latin text stays in the brand fonts — see i18n.js. */
  --font-display: 'Plus Jakarta Sans', 'Noto Sans Ethiopic', system-ui, sans-serif;
  --font-body: 'Archivo', 'Noto Sans Ethiopic', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #050810;
    --surface: #141a24;
    --linen: #141a24;
    --ink: #f9fafb;
    --ink-soft: #969ca5;
    --ink-faint: #4e5660;
    --line: #222a34;
    --price: #d2d5da;
    --verified: #4ade80;
    --star: #fb923c;
    --accent-soft: rgba(203, 160, 106, 0.16);
    --accent-ink: #d9b483;
    --accent: #cba06a;
    --accent-2: #cba06a;
    --blue: #cba06a;
    --blue-soft: #241a0a;
    --on-blue: #241a0a;
    --on-ink: #141a24;
    --shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
h1 { font-size: clamp(26px, 4vw, 38px); }
h2 { font-size: clamp(21px, 2.5vw, 25px); }
h3 { font-size: 16px; }
::selection { background: rgba(122, 74, 34, 0.18); }
p { margin: 0 0 10px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.shell { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper); /* fallback if color-mix unsupported */
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Primary nav — Guesthouse / Marketplace, with an editorial underline on the
   active section rather than a filled pill (the pill language is reserved for
   the List CTA and the avatar on the right). */
.site-nav { display: flex; gap: 2px; align-items: center; }
.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--linen); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* Right-hand action cluster: List CTA, Favorites heart, account avatar. */
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-list {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 17px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.nav-list:hover { border-color: var(--ink-faint); background: var(--linen); }
.nav-list:active { transform: scale(0.98); }
.nav-list.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-icon svg { width: 21px; height: 21px; }
.nav-icon:hover { background: var(--linen); color: var(--ink); }
.nav-icon.active { color: var(--heart); }
.nav-icon.active svg { fill: var(--heart); stroke: var(--heart); }

/* Account avatar — neutral person glyph when signed out, filled initial when
   signed in (set by nav.js). Reads as "you" instead of the word "Account". */
.nav-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  transition: box-shadow 0.15s ease, transform 0.1s ease, background 0.15s ease;
}
.nav-avatar svg { width: 20px; height: 20px; }
.nav-avatar:hover { box-shadow: var(--shadow-soft); }
.nav-avatar:active { transform: scale(0.97); }
.nav-avatar.is-signed-in { background: var(--accent); border-color: var(--accent); color: var(--on-blue); }
.nav-avatar.active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--accent); }

/* ---------- Buttons & pills ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
/* Form controls don't inherit font-family by default — without this they fall
   back to Arial. Keep every control on the brand fonts. */
button, input, select, textarea { font-family: inherit; }

/* Language toggle (EN / ትግ) in the header. */
.nav-lang {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--radius, 12px);
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-lang:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
/* Solid, confident accent — no gradient fill (reads as designed, not generated) */
.btn-primary {
  background: var(--accent-2);
  color: var(--on-blue);
  box-shadow: 0 4px 12px rgba(122, 74, 34, 0.25);
}
.btn-primary:hover { background: var(--accent-ink); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-secondary:hover { background: var(--linen); }
/* Neutral (near-black) primary — for surfaces where the coral would clash */
.btn-ink { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-soft); }
.btn-ink:hover { opacity: 0.9; }

/* Visible keyboard focus everywhere (was missing — keyboard users were lost).
   :focus-visible only, so mouse clicks stay clean. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.search-pill:focus-within { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink);
}

.chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.chip.selected { background: var(--accent); border-color: var(--accent); color: var(--on-blue); }

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

/* Emoji tab strip — same underline-tab language as the app headers */
.tab-strip {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 6px 2px 0;
  scrollbar-width: none;
}
.tab-strip::-webkit-scrollbar { display: none; }
.tab {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 2px 8px;
  opacity: 0.55;
  border-bottom: 2.5px solid transparent;
  color: var(--ink);
}
.tab .tab-emoji { font-size: 20px; line-height: 1; }
.tab .tab-label { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.tab.selected { opacity: 1; border-bottom-color: var(--accent); }

/* ---------- Search pill ---------- */
.search-row { display: flex; gap: 10px; align-items: center; }
.search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 0 14px;
}
.search-pill input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  padding: 14px 0;
}
.search-pill input::placeholder { color: var(--ink-faint); }

/* ---------- Listing cards (borderless, app-style) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px 20px;
}
.lcard { text-decoration: none; color: inherit; display: block; }
.lcard-photo {
  position: relative;
  aspect-ratio: 1 / 0.92;
  border-radius: 20px;
  overflow: hidden;
  background: var(--linen);
}
.lcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.lcard:hover .lcard-photo img { transform: scale(1.03); }
.lcard-photo .photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--accent-ink);
}
.rating-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #fff;
  color: #141a24;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rating-pill .star { color: var(--star); }

/* Heart / favorite toggle — top-right of the card photo, bare on the photo
   like the app's HeartButton "bare" variant (drop shadow for contrast
   instead of a solid backing, since the rating pill already owns the
   opposite corner). */
.heart-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.heart-btn svg { transition: transform 0.12s ease; }
.heart-btn:active svg { transform: scale(0.85); }
.lcard-meta { padding: 9px 2px 0; }
.lcard-badges { display: flex; gap: 8px; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 10.5px; }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); }
.badge-verified::before {
  content: "";
  width: 14px; height: 14px; flex-shrink: 0;
  background: var(--seal-img) center / contain no-repeat;
}
.badge-cat { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.lcard-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 3px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-loc { color: var(--ink-soft); font-size: 12.5px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-price { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--price); margin: 6px 0 0; }
.lcard-price .per { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ink-soft); }
/* Secondary local-currency amount shown under the USD-primary price. */
.price-local { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }

/* ---------- Status pills ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-warn { background: var(--warn-bg); color: var(--warn); }
.status-bad { background: var(--danger-bg); color: var(--danger); }

.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.92);
  color: #141a24;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
}
/* Swap the literal ✓ glyph for the blue seal (font-size:0 hides the text). */
.verified-chip .tick {
  font-size: 0;
  width: 15px; height: 15px; flex-shrink: 0;
  display: inline-block;
  background: var(--seal-img) center / contain no-repeat;
}

/* ---------- Sections ---------- */
.section { padding: 34px 0 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head .sub { color: var(--ink-soft); font-size: 13px; margin: 2px 0 0; }
.status-message { color: var(--ink-soft); font-size: 13.5px; min-height: 20px; }

/* ---------- Hero (compact) ---------- */
/* Clean surface — a single whisper of warmth, not a gradient wash. */
.hero { padding: 52px 0 12px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.hero .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* Trust row — flat inline text with checkmarks, no boxed shadow pills. */
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-trust span .tick { color: var(--verified); font-weight: 700; }
.hero h1 { max-width: 640px; }
.hero .hero-text { color: var(--ink-soft); max-width: 560px; font-size: 15.5px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Signature element: a live collage of real, currently-approved listing
   photos (not stock imagery) — the hero opens with actual proof of the
   platform's inventory, not decoration. Desktop/tablet only: on a phone
   (this audience's primary, often-metered device) the extra image weight
   isn't worth it and the text-only hero is already the right call there. */
.hero-grid { display: block; }
.hero-collage { display: none; }
.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.hero-stat::before { content: '●'; color: var(--verified); font-size: 8px; }

@media (min-width: 860px) {
  .hero-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: center; }
  .hero-collage {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: 400px;
  }
  .collage-tile { border-radius: 22px; overflow: hidden; background: var(--linen); box-shadow: var(--shadow); }
  .collage-tile img { width: 100%; height: 100%; object-fit: cover; }
  .collage-tile-a { grid-row: 1 / 3; }
  .collage-tile-b { grid-row: 1 / 2; transform: rotate(-1.4deg); }
  .collage-tile-c { grid-row: 2 / 3; }
}

/* ---------- Detail pages ---------- */
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 14px;
}
.detail-title-mini { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
/* 4:3 (not the old 16:9 letterbox, which cropped most of a portrait-ish
   guesthouse photo into a thin strip) + a real shadow so the hero photo has
   presence instead of sitting flat against the page. */
.gallery {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--linen);
  aspect-ratio: 4 / 3;
  max-height: 560px;
  box-shadow: var(--shadow);
}
.gallery img#gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .gallery { aspect-ratio: 1 / 1; max-height: none; }
}
.gallery .gallery-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  color: var(--ink-faint);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(20, 26, 36, 0.45);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery .verified-chip { position: absolute; top: 12px; left: 12px; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 4px; }
.gallery-thumb {
  border: none;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.6;
  background: var(--linen);
  box-shadow: var(--shadow-soft);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { opacity: 1; outline: 2.5px solid var(--accent); outline-offset: -2.5px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-top: 10px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail-price-big { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-align: right; white-space: nowrap; }
.detail-price-big .per { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ink-soft); }

.spec-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.spec-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}

.section-label { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 26px 0 8px; }

.amenity-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-pills li {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13.5px;
}
ul.amenity-pills { padding: 0; margin: 10px 0; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.spec-table td:first-child { color: var(--ink-soft); }
.spec-table td:last-child { text-align: right; font-family: var(--font-display); font-weight: 600; }

/* Side card (contact / seller) */
.side-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 84px;
}
.side-card .btn { width: 100%; margin-top: 10px; }
.host-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.host-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  flex-shrink: 0;
}
.host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.host-row .host-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin: 0; }
.host-row .host-sub { color: var(--ink-soft); font-size: 12px; margin: 0; }

/* MUST-check warning card (business listings) */
.warn-card {
  margin-top: 22px;
  background: var(--danger-bg);
  border: 1.4px solid rgba(220, 38, 38, 0.4);
  border-radius: 16px;
  padding: 16px 18px;
}
.warn-card .warn-title {
  color: var(--danger);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.warn-card .warn-title .warn-icon { animation: warnpulse 1.5s ease-in-out infinite; }
@keyframes warnpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.warn-card ul { margin: 8px 0; padding-left: 2px; }
.warn-card li { list-style: none; display: flex; gap: 8px; font-size: 12.5px; margin-top: 7px; line-height: 1.45; }
.warn-card li::before { content: '!'; color: var(--danger); font-weight: 700; }
.warn-card .warn-fine {
  border-top: 1px solid rgba(220, 38, 38, 0.25);
  margin-top: 12px;
  padding-top: 10px;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Forms ---------- */
.form-card { display: flex; flex-direction: column; gap: 10px; }
.form-card input[type='text'],
.form-card input[type='email'],
.form-card input[type='password'],
.form-card input[type='number'],
.form-card input[type='tel'],
.form-card textarea,
.form-card select {
  background: var(--surface);
  border: none;
  box-shadow: var(--shadow-soft);
  border-radius: 14px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  width: 100%;
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--ink); }
.form-card input::placeholder, .form-card textarea::placeholder { color: var(--ink-faint); }
.form-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin: 20px 0 2px;
}
.form-hint { color: var(--ink-soft); font-size: 12px; margin: 0 0 6px; }
.field-row { display: flex; gap: 8px; }
.field-row > * { flex: 1; }
.pick-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-pills .chip { box-shadow: var(--shadow-soft); border: none; background: var(--surface); }
.pick-pills .chip.selected { background: var(--ink); color: var(--on-ink); }
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.amenities-grid label {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.owner-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* "Why list" value props on the For owners page */
.owner-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.owner-benefit { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 14px 16px; }
.owner-benefit > span { font-size: 20px; line-height: 1.2; flex-shrink: 0; }
.owner-benefit strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; }
.owner-benefit div span { color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.owner-divider { border-top: 1px solid var(--line); margin: 26px 0 22px; }
.panel {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}

/* Badges for owner "my listings" statuses */
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  text-transform: capitalize;
}
.badge-approved { background: var(--ok-bg); color: var(--ok); }
.badge-pending, .badge-withdrawn { background: var(--warn-bg); color: var(--warn); }
.badge-rejected, .badge-filled { background: var(--danger-bg); color: var(--danger); }
.badge-paid { background: var(--ok-bg); color: var(--ok); text-transform: none; }
.badge-free { background: var(--linen); color: var(--ink-soft); text-transform: none; }

/* Listing-fee (monetization) controls on each admin card */
.fee-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fee-label { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; color: var(--ink-soft); margin-right: 2px; }
.btn-mini { padding: 6px 11px !important; font-size: 11.5px !important; }

/* ---------- Steps / info ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: step; }
.step-card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-soft); padding: 22px 20px; transition: transform 0.14s ease, box-shadow 0.14s ease; }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 15.5px; margin: 0 0 5px; }
.step-card p { color: var(--ink-soft); font-size: 13.5px; margin: 0; line-height: 1.5; }

.app-plug {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--linen);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.app-plug strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; }

/* ---------- Teaser card (e.g. "Have a guesthouse to list?") ---------- */
.teaser-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.teaser-card .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .teaser-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .teaser-card .btn { width: 100%; }
}

/* ---------- Admin ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 12px 0 0; }
.stat-tile {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.stat-tile strong { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.stat-tile span { color: var(--ink-soft); font-size: 12px; }

/* Clickable stat tiles double as status filters. */
.stat-tile-btn { border: 1.5px solid transparent; cursor: pointer; text-align: left; font: inherit; transition: border-color 0.12s, transform 0.06s; }
.stat-tile-btn:hover { transform: translateY(-1px); }
.stat-tile-btn.active { border-color: var(--ink); }
.stat-tile-btn strong { color: var(--ink); }

.admin-search-row { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; }
.attention-badge {
  background: var(--warn-bg); color: var(--warn);
  border-radius: 999px; padding: 8px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 12px; white-space: nowrap;
}
.count-chip { color: var(--ink-soft); font-weight: 400; font-size: 12px; text-transform: none; letter-spacing: 0; }

/* Richer moderation card (replaces the old flat .admin-card row). */
.admin-card2 { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 16px; margin-bottom: 12px; }
.admin-card2-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.admin-card2-head h3 { margin: 0; }
.admin-card2-head h3 a { text-decoration: none; }
.admin-card2-head h3 a:hover { text-decoration: underline; }
.admin-when { color: var(--ink-faint); font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
.admin-meta { color: var(--ink-soft); font-size: 12.5px; margin: 6px 0 0; }
.admin-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--price); margin: 6px 0 0; }
.admin-price .per { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.admin-desc { color: var(--ink-soft); font-size: 13px; margin: 8px 0 0; line-height: 1.5; }
.admin-thumbs { display: flex; gap: 6px; margin: 10px 0 0; overflow-x: auto; padding-bottom: 2px; }
.admin-thumbs img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--linen); flex-shrink: 0; }
.admin-nophoto { color: var(--danger); font-weight: 600; font-size: 12px; margin: 10px 0 0; }
.admin-tags { margin: 12px 0 0; }
.admin-tags label { display: block; color: var(--ink-soft); font-size: 11.5px; margin-bottom: 6px; }
.admin-tags-row { display: flex; gap: 8px; }
.admin-tags-row input {
  flex: 1; background: var(--linen); border: none; border-radius: 10px;
  padding: 9px 12px; font-family: var(--font-body); font-size: 13px; color: var(--ink);
}
.admin-tags-row input:focus { outline: 2px solid var(--ink); }
.admin-tags-row .btn { flex-shrink: 0; padding: 9px 14px; }
.admin-actions2 { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.admin-actions2 .btn { padding: 9px 16px; font-size: 12.5px; }

/* Support inbox — expanded ticket UI */
.support-head-right { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.support-ticket .admin-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.support-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.support-tag { background: var(--linen); color: var(--ink-soft); font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.support-reply-bubble { background: var(--ok-bg); border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; }
.support-reply-label { display: block; color: var(--ok); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 3px; }
.support-reply-bubble p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.support-composer { margin: 12px 0 0; }
.support-composer textarea {
  width: 100%; background: var(--linen); border: none; border-radius: 12px;
  padding: 11px 13px; font-family: var(--font-body); font-size: 13px; color: var(--ink);
  line-height: 1.5; resize: vertical; box-sizing: border-box;
}
.support-composer textarea:focus { outline: 2px solid var(--ink); }
.support-hint { color: var(--ink-faint); font-size: 11.5px; margin: 6px 0 0; }
/* One clean control bar: search + filter dropdowns */
.cc-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.cc-search-wrap { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 220px; max-width: 420px; background: var(--surface); box-shadow: var(--shadow-soft); border-radius: 999px; padding: 0 16px; }
.cc-search-wrap svg { width: 16px; height: 16px; color: var(--ink-faint); flex-shrink: 0; }
.cc-search-wrap input { flex: 1; min-width: 0; border: none; background: transparent; padding: 11px 0; font-family: var(--font-body); font-size: 13.5px; color: var(--ink); }
.cc-search-wrap input:focus { outline: none; }
.cc-search-wrap:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.cc-toolbar-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
  box-shadow: var(--shadow-soft); border: none; border-radius: 999px;
  padding: 10px 34px 10px 16px; font-family: var(--font-body); font-weight: 600;
  font-size: 12.5px; color: var(--ink); cursor: pointer; max-width: 200px;
}
.cc-select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

/* ============================================================
   Overview — command center
   ============================================================ */
.ov-hero { margin-bottom: 18px; }
.ov-greeting { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.ov-wave { display: inline-block; animation: ov-wave 2.2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes ov-wave { 0%,60%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-8deg); } 45% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .ov-wave { animation: none; } }
.ov-sub { margin: 5px 0 0; color: var(--ink-soft); font-size: 14px; }
.ov-queue { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 24px; }
.ov-action { display: flex; align-items: center; gap: 16px; text-align: left; border: none; cursor: pointer; background: var(--surface); box-shadow: var(--shadow-soft); border-radius: 18px; padding: 18px 22px; position: relative; overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.ov-action::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.ov-action-warn::before { background: #d97706; }
.ov-action-danger::before { background: #dc2626; }
.ov-action-info::before { background: #2563eb; }
.ov-action:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 26, 36, 0.14); }
.ov-action-n { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-action-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ov-action-label { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; line-height: 1.3; }
.ov-action-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.ov-action-warn .ov-action-cta { color: #b45309; }
.ov-action-danger .ov-action-cta { color: #dc2626; }
.ov-action-info .ov-action-cta { color: #2563eb; }
.ov-action-cta svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.ov-action:hover .ov-action-cta svg { transform: translateX(3px); }
.ov-allclear { display: flex; align-items: center; gap: 15px; background: var(--surface); box-shadow: var(--shadow-soft); border-radius: 18px; padding: 20px 24px; margin-bottom: 24px; }
.ov-allclear-badge { width: 42px; height: 42px; border-radius: 999px; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.ov-allclear strong { display: block; font-size: 15.5px; }
.ov-allclear span { color: var(--ink-soft); font-size: 13px; }
.ov-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ov-pulse { display: flex; gap: 8px; flex-wrap: wrap; }
.ov-pulse-pill { border: none; cursor: pointer; background: var(--surface); box-shadow: var(--shadow-soft); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 12.5px; color: var(--ink-soft); transition: transform 0.12s; }
.ov-pulse-pill:hover { transform: translateY(-1px); }
.ov-pulse-pill.ghost { cursor: default; background: transparent; box-shadow: none; }
.ov-pulse-pill b { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 14px; }
/* subcom-inspired tinted stat cards: flat warm pastel ground, label on top,
   big value, delta pill + context at the foot. Overrides the plain .kpi surface. */
.ov-stat { box-shadow: none; border: 1px solid transparent; border-radius: 18px; padding: 18px 20px 16px; min-height: 132px; justify-content: space-between; gap: 0; }
.ov-stat .kpi-label { order: -1; margin: 0 0 auto; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.ov-stat .kpi-value { font-size: 33px; margin-top: 12px; }
.ov-stat-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; min-height: 20px; }
.ov-stat-foot .kpi-hint { margin-top: 0; }
.ov-stat.ov-stat-a { background: #fdeee1; }  /* peach */
.ov-stat.ov-stat-b { background: #e8f5ec; }  /* mint */
.ov-stat.ov-stat-c { background: #e9f1fc; }  /* sky */
.ov-stat.ov-stat-d { background: #e3f1ef; }  /* teal */
/* delta as a filled colored pill, subcom-style */
.ov-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); }
.ov-delta.up { color: #12a150; background: rgba(18, 161, 80, 0.13); }
.ov-delta.down { color: #e5484d; background: rgba(229, 72, 77, 0.13); }
.ov-delta.flat { color: var(--ink-faint); font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .ov-stat.ov-stat-a { background: rgba(240, 160, 110, 0.13); }
  .ov-stat.ov-stat-b { background: rgba(90, 190, 130, 0.12); }
  .ov-stat.ov-stat-c { background: rgba(110, 160, 240, 0.12); }
  .ov-stat.ov-stat-d { background: rgba(80, 190, 175, 0.12); }
  .ov-delta.up { color: #5fd394; background: rgba(18, 161, 80, 0.2); }
  .ov-delta.down { color: #f0918f; background: rgba(229, 72, 77, 0.2); }
}
.ov-charts2 { grid-template-columns: 1fr 1fr; }
.ov-lead-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ov-lead-title { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.ov-lead-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ov-lead-row:last-child { border-bottom: none; }
.ov-lead-name { grid-column: 1; font-weight: 600; font-size: 13.5px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-lead-name:hover { text-decoration: underline; }
.ov-lead-sub { grid-column: 1; grid-row: 2; font-size: 11.5px; color: var(--ink-soft); }
.ov-lead-val { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-lead-val small { font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--ink-soft); }
.cc-feed-clickable { cursor: pointer; }
.cc-feed-clickable:hover { background: var(--linen); }
.cc-feed-ic { flex-shrink: 0; }
@media (max-width: 720px) { .ov-charts2 { grid-template-columns: 1fr; } .ov-lead-cols { grid-template-columns: 1fr; } }

/* Customers — conversion funnel + segment bars */
.fn { display: flex; flex-direction: column; gap: 12px; }
.fn-track { background: var(--linen); border-radius: 12px; }
.fn-bar { height: 46px; display: flex; align-items: center; padding: 0 15px; border-radius: 12px; min-width: 46px; transition: width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fn-bar-0 { background: #7a4a22; } .fn-bar-1 { background: #9a6a3a; } .fn-bar-2 { background: #c08a52; } .fn-bar-3 { background: #16a34a; }
.fn-n { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }
.fn-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 5px; padding: 0 2px; }
.fn-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.fn-conv { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.seg { margin-bottom: 13px; }
.seg:last-child { margin-bottom: 0; }
.seg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 5px; }
.seg-head b { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.seg-track { height: 8px; background: var(--linen); border-radius: 999px; overflow: hidden; }
.seg-bar { height: 100%; border-radius: 999px; transition: width 0.55s ease; }
.seg-a { background: #7a4a22; } .seg-b { background: #0f9d58; } .seg-c { background: #8b5cf6; } .seg-d { background: #06b6d4; } .seg-e { background: var(--ink-faint); }

/* Settings — toggles + status */
.cc-status-banner { border-radius: 12px; padding: 12px 15px; font-size: 13.5px; margin-bottom: 14px; }
.cc-status-banner.on { background: #ecfdf5; color: #065f46; }
.cc-status-banner.off { background: #fef3c7; color: #92400e; }
.cc-sub-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); margin: 16px 0 8px; }
.cc-toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; }
.cc-toggle { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; cursor: pointer; }
.cc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-toggle-sw { flex-shrink: 0; width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background 0.18s; margin-top: 1px; }
.cc-toggle-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.18s; }
.cc-toggle input:checked + .cc-toggle-sw { background: var(--accent); }
.cc-toggle input:checked + .cc-toggle-sw::after { transform: translateX(16px); }
.cc-toggle input:focus-visible + .cc-toggle-sw { outline: 2px solid var(--ink); outline-offset: 2px; }
.cc-toggle-txt { display: flex; flex-direction: column; gap: 2px; }
.cc-toggle-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cc-toggle-hint { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.cc-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
@media (prefers-color-scheme: dark) { .cc-status-banner.on { background: #0c2a20; color: #6ee7b7; } .cc-status-banner.off { background: #2a2410; color: #fcd34d; } }

/* Compact stat strip — dense numbers instead of a row of big cards */
/* Stat strip = a row of tinted mini stat-chips, echoing the Overview KPI cards
   so every section opens with the same colorful rhythm (peach/mint/sky/teal). */
.an-strip { display: flex; flex-wrap: wrap; gap: 10px; background: transparent; box-shadow: none; border-radius: 0; padding: 0; margin-bottom: 20px; }
.an-strip span { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 12px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.an-strip b { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.an-strip i { font-style: normal; color: var(--ink-faint); font-size: 12px; }
.an-strip span:nth-child(4n+1) { background: #fdeee1; }  /* peach */
.an-strip span:nth-child(4n+2) { background: #e8f5ec; }  /* mint */
.an-strip span:nth-child(4n+3) { background: #e9f1fc; }  /* sky */
.an-strip span:nth-child(4n+4) { background: #e3f1ef; }  /* teal */
@media (prefers-color-scheme: dark) {
  .an-strip span:nth-child(4n+1) { background: rgba(240, 160, 110, 0.13); }
  .an-strip span:nth-child(4n+2) { background: rgba(90, 190, 130, 0.12); }
  .an-strip span:nth-child(4n+3) { background: rgba(110, 160, 240, 0.12); }
  .an-strip span:nth-child(4n+4) { background: rgba(80, 190, 175, 0.12); }
}

/* Revenue hero */
.rev-hero { background: var(--surface); box-shadow: var(--shadow-soft); border-radius: 18px; padding: 22px 24px; margin-bottom: 18px; }
.rev-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rev-amount { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.rev-cap { font-size: 13.5px; color: var(--ink-soft); }
.rev-progress { height: 10px; background: var(--linen); border-radius: 999px; overflow: hidden; margin: 16px 0; }
.rev-progress-bar { height: 100%; background: #16a34a; border-radius: 999px; transition: width 0.55s ease; }
.rev-hero .an-strip { background: transparent; box-shadow: none; padding: 0; margin: 0; }

/* ============================================================
   Support inbox — two-pane operations console
   ============================================================ */
.sup-views { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.sup-view { display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer; background: transparent; border-radius: 999px; padding: 8px 15px; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--ink-soft); transition: background 0.14s, color 0.14s; }
.sup-view:hover { background: var(--surface); color: var(--ink); }
.sup-view.active { background: var(--ink); color: var(--on-ink); }
.sup-view-n { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(0,0,0,0.08); border-radius: 999px; padding: 1px 7px; }
.sup-view.active .sup-view-n { background: rgba(255,255,255,0.22); }
.sup-views-hint { margin-left: auto; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.01em; }

.sup-inbox { display: flex; gap: 16px; height: calc(100vh - 210px); min-height: 440px; }
.sup-list { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-soft); overflow: hidden; }
.sup-list-toolbar { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sup-search { flex: 1; min-width: 130px; box-shadow: none; background: var(--linen); }
.sup-list-toolbar .cc-select { box-shadow: none; background-color: var(--linen); max-width: 130px; font-size: 12px; padding: 9px 30px 9px 12px; }
.sup-list-scroll { flex: 1; overflow-y: auto; padding: 6px; }
.sup-list-empty { color: var(--ink-faint); font-size: 13px; text-align: center; padding: 30px 12px; }

.sup-item { display: flex; gap: 11px; width: 100%; text-align: left; border: none; background: transparent; cursor: pointer; padding: 11px 12px 11px 9px; border-radius: 12px; position: relative; transition: background 0.12s; }
.sup-item:hover { background: var(--linen); }
.sup-item.sel { background: var(--blue-soft); }
.sup-prio { width: 3px; border-radius: 999px; flex-shrink: 0; align-self: stretch; background: transparent; }
.sup-prio.prio-low { background: var(--ink-faint); opacity: 0.4; }
.sup-prio.prio-high { background: #d97706; }
.sup-prio.prio-urgent { background: #dc2626; }
.sup-avatar { width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; background: var(--ink); }
.sup-av-owner { background: #7a4a22; }
.sup-av-customer { background: #2563eb; }
.sup-av-anon { background: var(--ink-faint); }
.sup-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sup-item-top { display: flex; align-items: baseline; gap: 8px; }
.sup-item-name { flex: 1; min-width: 0; font-family: var(--font-body); font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-item-time { font-size: 11px; color: var(--ink-faint); white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.sup-item-subj { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-item-prev { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-item-foot { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-soft); margin-top: 3px; }
.sup-item-tag { color: var(--accent); font-weight: 600; }
.sup-dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }
.sup-item-foot .sup-dot { margin-right: 4px; }
.dot-open { background: #d97706; }
.dot-rep { background: #2563eb; }
.dot-res { background: #16a34a; }

.sup-detail { flex: 1; min-width: 0; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-soft); overflow-y: auto; padding: 22px 24px; }
.sup-detail-empty { color: var(--ink-faint); font-size: 14px; text-align: center; padding: 80px 20px; }
.sup-d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sup-d-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sup-d-title h2 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.sup-d-tools { display: flex; align-items: center; gap: 8px; }
.sup-prio-select { font-size: 12px; padding: 8px 30px 8px 13px; }
.sup-prio-select.prio-sel-high { color: #b45309; }
.sup-prio-select.prio-sel-urgent { color: #dc2626; }

.sup-context { background: var(--linen); border-radius: 14px; padding: 13px 15px; margin: 16px 0; }
.sup-ctx-id { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.sup-ctx-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-soft); }
.sup-ctx-stats span { white-space: nowrap; }

.sup-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.sup-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; }
.sup-msg-cust { align-self: flex-start; background: var(--linen); border-bottom-left-radius: 4px; }
.sup-msg-admin { align-self: flex-end; background: var(--accent); border-bottom-right-radius: 4px; }
.sup-msg-admin .sup-msg-who { color: rgba(255,255,255,0.72); }
.sup-msg-admin .sup-msg-body { color: #fff; }
.sup-msg-who { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-faint); margin-bottom: 4px; }
.sup-msg-body { font-size: 13.5px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; word-break: break-word; }

.sup-composer-box { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; }
.sup-composer-box .sup-canned { width: 100%; margin-bottom: 8px; box-shadow: none; background-color: var(--linen); max-width: none; }
.sup-composer-box textarea { width: 100%; box-sizing: border-box; border: none; background: transparent; font-family: var(--font-body); font-size: 13.5px; color: var(--ink); line-height: 1.55; resize: vertical; min-height: 60px; }
.sup-composer-box textarea:focus { outline: none; }
.sup-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.sup-hint { font-size: 11.5px; color: var(--ink-faint); flex: 1; }

.sup-notes { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.sup-notes-label { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.sup-notes-label span { font-weight: 400; color: var(--ink-faint); font-size: 11.5px; }
.sup-note { background: #fff8e6; border: 1px solid #f5e2a8; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.sup-note-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #8a6d1a; font-weight: 600; margin-bottom: 4px; }
.sup-note-del { border: none; background: transparent; color: #b08a20; cursor: pointer; font-size: 13px; padding: 0 2px; }
.sup-note-body { font-size: 13px; color: #5c4a12; line-height: 1.5; white-space: pre-wrap; }
.sup-notes-empty { font-size: 12.5px; color: var(--ink-faint); margin: 0 0 10px; }
.sup-note-add { display: flex; gap: 8px; align-items: flex-start; }
.sup-note-add textarea { flex: 1; box-sizing: border-box; background: var(--linen); border: none; border-radius: 10px; padding: 9px 12px; font-family: var(--font-body); font-size: 13px; color: var(--ink); resize: vertical; }
.sup-note-add textarea:focus { outline: 2px solid var(--ink); }
.sup-note-add .btn { flex-shrink: 0; }
.sup-tags-edit { margin-top: 16px; }

/* Listings review console — reuses .sup-* shell + these extras */
.lst-item { align-items: center; }
.lst-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--linen); }
.lst-nothumb { display: flex; align-items: center; justify-content: center; font-size: 20px; }
.lst-noflag { color: #dc2626; font-weight: 600; }
.lst-photos { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0 4px; padding-bottom: 4px; }
.lst-photos img { width: 128px; height: 96px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--linen); }
.lst-nophotos { color: #dc2626; font-weight: 600; font-size: 13px; background: #fef2f2; border-radius: 12px; padding: 14px; margin: 14px 0 4px; }
.lst-fee { margin-top: 14px; }
.sup-detail .reject-box { margin-top: 14px; }

@media (max-width: 900px) {
  .sup-inbox { flex-direction: column; height: auto; }
  .sup-list { width: 100%; max-height: 340px; }
  .sup-detail { min-height: 400px; }
  .sup-views-hint { display: none; }
}
@media (prefers-color-scheme: dark) { .lst-nophotos { background: #2a1414; } }
@media (prefers-color-scheme: dark) {
  .sup-note { background: #2a2410; border-color: #4a3f18; }
  .sup-note-head { color: #d8c07a; }
  .sup-note-body { color: #e8dcae; }
  .sup-note-del { color: #d8c07a; }
}

/* ============================================================
   Command Center (admin dashboard)
   ============================================================ */
.admin-body { background: var(--linen); }

.cc-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cc-title { font-size: clamp(24px, 3.5vw, 32px); margin: 0; letter-spacing: -0.03em; }
.cc-sub { color: var(--ink-soft); font-size: 13px; margin: 4px 0 0; }
.cc-topbar-actions { display: flex; gap: 8px; }
.cc-userid { display: inline-block; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--ink); user-select: all; }

/* Triage band — the signature: what needs attention right now */
.triage-band { margin-bottom: 20px; }
.triage-title { font-family: var(--font-display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-soft); margin: 0 0 10px; }
.triage-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.triage-chip { display: flex; align-items: center; gap: 10px; border: none; cursor: pointer; border-radius: 14px; padding: 12px 16px; background: var(--surface); box-shadow: var(--shadow-soft); font: inherit; transition: transform 0.08s, box-shadow 0.12s; border-left: 4px solid var(--ink-faint); }
.triage-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.triage-count { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; }
.triage-label { color: var(--ink-soft); font-size: 13px; text-align: left; }
.triage-warn { border-left-color: var(--warn); }
.triage-warn .triage-count { color: var(--warn); }
.triage-danger { border-left-color: var(--danger); }
.triage-danger .triage-count { color: var(--danger); }
.triage-info { border-left-color: var(--ink); }
.triage-clear { background: var(--ok-bg); color: var(--ok); border-radius: 14px; padding: 16px 18px; font-family: var(--font-display); font-weight: 600; font-size: 14px; }

/* KPI row */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 16px 18px; display: flex; flex-direction: column; }
.kpi-value { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-label { font-size: 12.5px; color: var(--ink); margin-top: 8px; font-weight: 600; font-family: var(--font-display); }
.kpi-hint { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }

/* Charts */
.cc-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 22px; }
.cc-panel { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 18px; }
.cc-panel-title { font-family: var(--font-display); font-weight: 700; font-size: 13px; margin: 0 0 14px; }
.cc-bars { display: flex; flex-direction: column; gap: 9px; }
.cc-bar-row { display: grid; grid-template-columns: 92px 1fr 28px; align-items: center; gap: 10px; }
.cc-bar-label { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-bar-track { background: var(--linen); border-radius: 999px; height: 9px; overflow: hidden; }
.cc-bar-fill { display: block; height: 100%; background: var(--ink); border-radius: 999px; min-width: 2px; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.cc-bar-value { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.cc-empty { color: var(--ink-faint); font-size: 12.5px; margin: 0; }

.cc-search-row { display: flex; align-items: center; gap: 12px; margin: 6px 0 8px; }

/* Queues */
.cc-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 34px 0 14px; }
.cc-queue-head h2 { margin: 0; }
.cc-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-tab { display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer; background: var(--surface); box-shadow: var(--shadow-soft); border-radius: 999px; padding: 8px 14px; font-family: var(--font-body); font-weight: 600; font-size: 12.5px; color: var(--ink-soft); transition: background 0.12s, color 0.12s; }
.cc-tab:hover { color: var(--ink); }
.cc-tab.active { background: var(--ink); color: var(--on-ink); }
.cc-tab-count { font-family: var(--font-display); font-weight: 700; font-size: 11px; opacity: 0.75; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; align-items: start; }
.cc-empty-queue { grid-column: 1 / -1; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 22px; text-align: center; color: var(--ink-soft); font-size: 13.5px; margin: 0; }

/* Inline reject box */
.btn-danger-solid { background: var(--danger) !important; color: #fff !important; }
.reject-box { margin-top: 10px; background: var(--danger-bg); border-radius: 12px; padding: 12px; }
.reject-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-family: var(--font-body); font-size: 13px; color: var(--ink); background: var(--surface); resize: vertical; min-height: 60px; }
.reject-box textarea:focus { outline: 2px solid var(--danger); }
.reject-box-actions { display: flex; gap: 8px; margin-top: 8px; }
.reject-box-actions .btn { padding: 8px 14px; font-size: 12.5px; }

/* Toasts */
.toast-container { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: var(--on-ink); border-radius: 12px; padding: 13px 18px; font-family: var(--font-body); font-weight: 500; font-size: 13.5px; box-shadow: var(--shadow); max-width: 340px; opacity: 0; transform: translateY(12px); transition: opacity 0.28s, transform 0.28s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-ok { border-left: 4px solid var(--verified); }
.toast-danger { background: var(--danger); border-left: 4px solid #7f1d1d; }
.toast-info { border-left: 4px solid var(--ink-faint); }

@media (prefers-reduced-motion: reduce) {
  .triage-chip, .cc-bar-fill, .toast { transition: none; }
}
@media (max-width: 640px) {
  .cc-grid { grid-template-columns: 1fr; }
  .toast-container { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}

/* ===== Console shell (sidebar app) ===== */
.cc-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--linen); }
.cc-shell { display: flex; min-height: 100vh; background: var(--linen); }
.cc-sidebar { width: 236px; flex-shrink: 0; background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 20px 14px; }
.cc-brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--on-ink); text-decoration: none; display: flex; flex-direction: column; margin-bottom: 20px; padding: 0 8px; }
.cc-brand span { font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 3px; }
.cc-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.cc-nav-group { font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin: 15px 8px 6px; }
.cc-nav-group:first-child { margin-top: 0; }
.cc-nav-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: none; color: rgba(255,255,255,0.72); font-family: var(--font-body); font-size: 13.5px; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background 0.12s, color 0.12s; }
.cc-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.cc-nav-item.active { background: rgba(255,255,255,0.14); color: #fff; font-weight: 600; }
.cc-nav-ico { width: 16px; text-align: center; opacity: 0.85; font-size: 12px; }
.cc-nav-badge { margin-left: auto; background: var(--warn); color: #fff; font-family: var(--font-display); font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.cc-sidebar-foot { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 14px; margin-top: 10px; }
.cc-user { color: rgba(255,255,255,0.6); font-size: 12px; margin: 0 0 10px; padding: 0 4px; word-break: break-all; }
.cc-sidebar-foot .btn { background: rgba(255,255,255,0.1); color: #fff; box-shadow: none; }
.cc-sidebar-foot .btn:hover { background: rgba(255,255,255,0.18); }

.cc-main { flex: 1; min-width: 0; padding: 24px 28px 64px; }
.cc-main-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cc-main-head h1 { margin: 0; font-size: 26px; flex: 1; letter-spacing: -0.02em; }
.cc-main-head-tools { display: flex; align-items: center; gap: 10px; }
.cc-searchbox { margin: 0; width: 250px; }
.cc-menu-btn { display: none; background: var(--surface); border: none; border-radius: 10px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; box-shadow: var(--shadow-soft); }

.cc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cc-panel-head .cc-panel-title { margin: 0; }
.cc-panel-link { font-size: 12px; color: var(--ink-soft); cursor: pointer; text-decoration: underline; }
.cc-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cc-feed li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cc-feed li:last-child { border-bottom: none; }
.cc-feed li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-feed-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ink-faint); flex-shrink: 0; }
.cc-feed-time { color: var(--ink-faint); font-size: 11.5px; white-space: nowrap; }
.cc-note { background: var(--surface); border-left: 3px solid var(--ink-faint); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-soft); margin: 0 0 18px; line-height: 1.55; }
.cc-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.cc-table { display: flex; flex-direction: column; }
.cc-tr { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cc-tr-4 { grid-template-columns: 1fr auto auto auto; }
.cc-tr-5 { grid-template-columns: 1.8fr auto auto auto auto; }
.cc-tr:last-child { border-bottom: none; }
.cc-th { font-family: var(--font-display); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-faint); }
.cc-td-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-td-name a { text-decoration: none; }
.cc-td-name a:hover { text-decoration: underline; }
.cc-muted { color: var(--ink-soft); font-size: 12px; text-align: right; }
.cc-strong { font-family: var(--font-display); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.cc-tr-total { border-top: 2px solid var(--line); }
.cc-settings { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.cc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cc-field:last-child { margin-bottom: 0; }
.cc-field label { font-size: 12.5px; font-weight: 600; font-family: var(--font-display); }
.cc-field input, .cc-field textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--font-body); font-size: 13.5px; color: var(--ink); background: var(--paper); }
.cc-field input:focus, .cc-field textarea:focus { outline: 2px solid var(--ink); }
.cc-field-hint { font-size: 11px; color: var(--ink-faint); }

@media (max-width: 900px) {
  .cc-sidebar { position: fixed; left: 0; top: 0; z-index: 120; transform: translateX(-100%); transition: transform 0.25s; box-shadow: var(--shadow); }
  body.cc-sidebar-open .cc-sidebar { transform: translateX(0); }
  .cc-menu-btn { display: block; }
  .cc-main { padding: 16px; }
  .cc-searchbox { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .cc-sidebar { transition: none; } }
.admin-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 14px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.admin-card .admin-photo {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--linen);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink-faint);
}
.admin-card .admin-photo img { width: 100%; height: 100%; object-fit: cover; }
.admin-card .admin-info { flex: 1; min-width: 0; }
.admin-card .admin-info h3 { margin: 0 0 2px; }
.admin-card .admin-info .meta { color: var(--ink-soft); font-size: 12.5px; margin: 0 0 4px; }
.admin-card .admin-actions { display: flex; flex-direction: column; gap: 8px; }
.admin-card .admin-actions .btn { padding: 10px 18px; font-size: 12.5px; }

/* ---------- Host profile ---------- */
.host-hero { text-align: center; padding: 26px 0 6px; }
.host-hero .host-avatar-big {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: var(--linen);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  overflow: hidden;
}
.host-hero .host-avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.host-hero .host-meta { color: var(--ink-soft); font-size: 13px; }
.host-hero .host-bio { color: var(--ink-soft); font-size: 13.5px; max-width: 520px; margin: 10px auto 0; }

/* ---------- Account / Login ---------- */
.shell-narrow { max-width: 620px; }
.account-section { padding-top: 30px; }

.acct-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.acct-avatar {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--linen);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
}
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0; }
.acct-email { color: var(--ink-soft); font-size: 13px; margin: 2px 0 0; word-break: break-all; }

.acct-prompt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--linen);
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  cursor: pointer;
  font: inherit;
}
.acct-prompt strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.acct-prompt span { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 3px; }

/* Small uppercase group header — account.html's settings-style menu groups
   (Profile / Hosting / Security / ...) only. Was accidentally named
   .section-label (a name already used site-wide for a 17px bold heading —
   e.g. "Description"/"Amenities" on detail pages), which silently overrode
   every one of those into an 11px uppercase label. Renamed 2026-07-16. */
.acct-section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
  margin: 22px 0 8px;
}

.acct-rows {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.acct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}
.acct-row:last-child { border-bottom: none; }
.acct-row:hover { background: var(--linen); }
.acct-row-label { font-size: 14px; }
.acct-row-chevron { color: var(--ink-faint); font-size: 20px; line-height: 1; }

.acct-drawer {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
  margin-top: 10px;
}

.linky {
  display: block;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--ink-soft);
  text-decoration: underline;
  text-align: center;
  padding: 10px;
  margin-top: 12px;
}
.linky:hover { color: var(--ink); }
.linky-danger { color: var(--danger); }

.btn-block { display: block; width: 100%; }

.acct-row-right { display: flex; align-items: center; gap: 8px; }

/* ---------- Auth (sign up / log in) ---------- */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 6px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 26px 24px;
}
.auth-card-center { max-width: 440px; margin: 8px auto 0; text-align: center; }
.auth-head { margin-bottom: 18px; }
.auth-head h2 { margin: 0 0 4px; }
.auth-sub { color: var(--ink-soft); font-size: 13.5px; margin: 0; line-height: 1.5; }
.auth-sub-center { max-width: 340px; margin: 6px auto 0; }

/* Segmented Sign up / Log in toggle */
.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--linen);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}
.auth-toggle-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 9px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.auth-toggle-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }

/* Social buttons */
.auth-social { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.social-btn:hover { background: var(--linen); border-color: var(--ink-faint); }
.social-btn:active { transform: scale(0.99); }
.social-logo { width: 19px; height: 19px; flex-shrink: 0; }
.social-logo-apple { color: var(--ink); }

/* Divider */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-faint); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-divider span { font-size: 12px; font-family: var(--font-display); font-weight: 600; text-transform: lowercase; letter-spacing: 0.02em; }

/* Labeled fields */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--ink); }
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-form input::placeholder { color: var(--ink-faint); }
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-pw { position: relative; display: block; }
.field-pw input { padding-right: 46px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.pw-toggle:hover { color: var(--ink); background: var(--linen); }
.pw-toggle svg { width: 20px; height: 20px; }
.auth-submit { margin-top: 4px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.auth-links .linky { width: auto; margin: 0; padding: 8px 0; text-align: left; }
.auth-legal { color: var(--ink-faint); font-size: 11.5px; line-height: 1.5; margin: 14px 0 0; }
.auth-legal a { color: var(--ink-soft); text-decoration: underline; }

/* Trust panel (signature) */
.auth-trust {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 22px;
  padding: 26px 24px;
}
.auth-trust-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  margin: 0 0 8px;
}
.auth-trust-title { font-size: 19px; margin: 0 0 18px; max-width: 15ch; }
.auth-trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-trust-list li { display: flex; gap: 13px; align-items: flex-start; }
.auth-trust-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.auth-trust-ico svg { width: 20px; height: 20px; }
.auth-trust-list strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.auth-trust-list span { color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }

/* Phone verify step */
.verify-badge {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 12px;
}
.verify-badge svg { width: 28px; height: 28px; }
.phone-input { display: flex; gap: 8px; }
.phone-cc {
  flex-shrink: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.phone-cc:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.phone-input input[type="tel"] { flex: 1; }
.otp-label { display: block; text-align: center; margin-bottom: 4px; color: var(--ink-soft); font-weight: 400; }
.otp-inputs { display: flex; gap: 8px; justify-content: center; }
.otp-box {
  width: 46px;
  height: 54px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.otp-box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-card-center .linky { margin-top: 10px; }

@media (min-width: 760px) {
  .auth-wrap { grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
  .auth-card { padding: 30px 28px; }
}
@media (max-width: 759px) {
  /* On mobile the form comes first; trust panel becomes a compact reassurance below. */
  .auth-trust { order: 2; }
  .auth-trust-title { font-size: 17px; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-toggle-btn, .social-btn, .auth-form input { transition: none; }
}

/* ---------- Messages: inbox ---------- */
.msg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--ink);
}
.msg-row:hover { box-shadow: var(--shadow); }
.msg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-row-body { flex: 1; min-width: 0; }
.msg-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msg-row-name { font-family: var(--font-body); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row-time { color: var(--ink-soft); font-size: 11px; flex-shrink: 0; }
.msg-row-listing { color: var(--ink-soft); font-size: 12px; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row-preview { color: var(--ink-soft); font-size: 12px; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row-preview.unread { color: var(--ink); font-weight: 600; }
.msg-unread {
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  flex-shrink: 0;
}

/* ---------- Messages: thread ---------- */
.thread-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.thread-back {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.thread-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0; }
.thread-listing { color: var(--ink-soft); font-size: 12.5px; margin: 1px 0 0; }
.thread-messages {
  height: 54vh;
  min-height: 260px;
  overflow-y: auto;
  background: var(--linen);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.thread-empty { color: var(--ink-soft); font-size: 13px; text-align: center; margin: auto; }
.bubble-row { display: flex; margin-bottom: 8px; }
.bubble-row.mine { justify-content: flex-end; }
.bubble-row.theirs { justify-content: flex-start; }
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bubble-row.mine .bubble { background: var(--accent); color: var(--on-blue); border-bottom-right-radius: 4px; }
.bubble-row.theirs .bubble { background: var(--surface); color: var(--ink); border-bottom-left-radius: 4px; box-shadow: var(--shadow-soft); }
.composer { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.composer textarea {
  flex: 1;
  resize: none;
  border: none;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  max-height: 120px;
}
.composer textarea:focus { outline: 2px solid var(--accent); }
.composer .btn { flex-shrink: 0; }

/* ===== Guesthouse listing detail — blue-accent redesign (reference-inspired) ===== */
.ldp { max-width: 640px; margin: 0 auto; padding-bottom: 104px; }
.ldp-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 460px;
  background: var(--linen);
  box-shadow: var(--shadow);
}
.ldp-hero .gallery-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 64px; color: var(--ink-faint);
}
.ldp-hero #gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
.ldp-round {
  width: 44px; height: 44px; border-radius: 999px; border: none;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 10px rgba(20, 26, 36, 0.18);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform 0.1s ease, background 0.15s ease;
}
.ldp-round:active { transform: scale(0.94); }
.ldp-round svg { width: 20px; height: 20px; }
.ldp-round-accent { background: var(--blue); color: var(--on-blue); box-shadow: 0 4px 12px rgba(122, 74, 34, 0.35); }
.ldp-back { position: absolute; top: 14px; left: 14px; z-index: 3; }
.ldp-heart-host { position: absolute; top: 14px; right: 14px; z-index: 3; }
.ldp-verified {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20, 26, 36, 0.6); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 6px 11px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 11.5px;
}
.ldp-verified svg { width: 13px; height: 13px; }

.ldp-body { padding: 22px 4px 0; }
.ldp-catrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ldp-cat { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); }
.ldp-rating { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.ldp-rating svg { width: 16px; height: 16px; color: var(--star); fill: var(--star); }
.ldp-rating-count { color: var(--ink-soft); font-weight: 400; }
.ldp-title { font-size: 27px; margin: 5px 0 6px; letter-spacing: -0.02em; line-height: 1.15; }
.ldp-addr { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 14px; margin: 0; }
.ldp-addr svg { width: 15px; height: 15px; flex: none; color: var(--ink-faint); }
.ldp-avail { display: inline-flex; margin-top: 14px; }

.ldp-specs { display: flex; gap: 10px; margin: 18px 0 0; flex-wrap: wrap; }
.ldp-spec {
  display: flex; align-items: center; gap: 9px; flex: 1; min-width: 100px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
}
.ldp-spec svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.ldp-spec span { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; white-space: nowrap; }

.ldp-divider { height: 1px; background: var(--line); margin: 22px 0; }

.ldp-host { display: flex; align-items: center; gap: 12px; }
.ldp-host .host-avatar {
  width: 48px; height: 48px; border-radius: 999px; background: var(--linen);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink-soft);
}
.ldp-host .host-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ldp-host-info { flex: 1; min-width: 0; }
.ldp-host-info .host-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 0; }
.ldp-host-info .host-sub { color: var(--ink-soft); font-size: 12.5px; margin: 2px 0 0; }
.ldp-host-actions { display: flex; gap: 8px; flex: none; }

.ldp-h { font-size: 16px; margin: 0 0 8px; }
.ldp-desc { line-height: 1.65; color: var(--ink); font-size: 14.5px; margin: 0; }
.ldp-videolink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  color: var(--blue); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; text-decoration: none;
}
.ldp-videolink svg { width: 16px; height: 16px; }
.ldp-note { color: var(--ink-soft); font-size: 11.5px; margin: 22px 0 0; line-height: 1.5; }

.ldp-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 22px rgba(20, 26, 36, 0.09);
}
.ldp-cta-inner { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.ldp-cta-price { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ldp-cta-label { font-family: var(--font-display); font-weight: 600; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.ldp-cta-amount { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--blue); line-height: 1.2; }
.ldp-cta-amount .per { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.ldp-cta-amount .price-local { display: block; font-size: 11.5px; color: var(--ink-soft); font-weight: 400; }
.ldp-cta-btn {
  flex: none; background: var(--blue); color: var(--on-blue); border: none; border-radius: 999px;
  padding: 0 30px; min-height: 50px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.ldp-cta-btn svg { width: 18px; height: 18px; }
.ldp-cta-btn:hover { opacity: 0.92; }
.ldp-cta-btn:active { transform: scale(0.98); }
.ldp-cta-btn:disabled { background: var(--linen); color: var(--ink-faint); cursor: default; }

@media (max-width: 560px) {
  .ldp-title { font-size: 24px; }
  .ldp-cta-btn { padding: 0 22px; font-size: 14px; }
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 44px 0 40px;
  color: var(--ink-soft);
  font-size: 13px;
  background: var(--surface);
}
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--accent-ink); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
}
.footer-brand .brand { font-size: 20px; }
.footer-brand p { margin: 10px 0 0; max-width: 300px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink);
  margin: 0 0 4px;
}
.footer-col a { font-size: 13.5px; }
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 12.5px;
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Country flag image (web renders real flags; Windows can't do flag emoji) */
.cflag {
  display: inline-block;
  width: 20px;
  height: auto;
  border-radius: 3px;
  vertical-align: -3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ---------- Onboarding overlay ---------- */
.ob-scrim {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 10, 18, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ob-scrim.show { opacity: 1; }
.ob-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  padding: 34px 30px 24px;
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ob-scrim.show .ob-card { transform: none; }
.ob-skip {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.ob-skip:hover { color: var(--ink); background: var(--linen); }
.ob-emoji { font-size: 52px; line-height: 1; margin: 6px 0 16px; }
.ob-title { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; margin: 0 0 10px; }
.ob-body { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0 auto; max-width: 370px; }
.ob-dots { display: flex; justify-content: center; gap: 7px; margin: 24px 0 18px; }
.ob-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: background 0.2s ease, width 0.2s ease; }
.ob-dot.active { background: var(--accent-grad); width: 22px; }
.ob-actions { display: flex; gap: 10px; }
.ob-actions .btn { flex: 1; }
.ob-countries { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 8px; }
.ob-country {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}
.ob-country:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.ob-country .flag { font-size: 20px; }
.ob-showall { background: none; border: none; color: var(--ink-soft); text-decoration: underline; font-size: 13px; cursor: pointer; margin-top: 8px; padding: 6px; }
.ob-showall:hover { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) {
  .ob-scrim, .ob-card, .ob-dot { transition: none; }
}
@media (max-width: 420px) {
  .ob-countries { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.contact-method {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.contact-method:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-method-icon { font-size: 24px; line-height: 1; margin-bottom: 8px; }
.contact-method-label { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.contact-method-value { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--price); word-break: break-word; }
.contact-method-sub { color: var(--ink-soft); font-size: 12px; margin-top: 2px; }

.faq-item {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 2px 18px;
  margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 28px 16px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-faint);
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--price); }
.faq-item p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 16px;
  padding-right: 6px;
}
.faq-item a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal-page h3 { margin-top: 26px; font-size: 15px; }
.legal-page p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.legal-page a { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
  .site-header .shell { gap: 8px; height: 58px; }
  .brand { font-size: 18px; flex-shrink: 0; }
  .site-nav { gap: 0; }
  .nav-link { padding: 8px 9px; font-size: 12.5px; }
  .nav-link.active::after { left: 9px; right: 9px; }
  .nav-actions { gap: 4px; }
  /* On phones the hero already carries the "List your place" CTA, so drop the
     header pill to leave room for the heart + avatar. */
  .nav-list { display: none; }
  .nav-icon, .nav-avatar { width: 44px; height: 44px; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 14px; }
  .hero { padding-top: 28px; }
}

/* ============================================================
   Cars marketplace — filter rail, Buy/Rent toggle, brand row,
   richer car cards (Auto.Hunt-style). Blue is the primary accent.
   ============================================================ */
.mk-layout { display: block; }
.mk-layout.with-rail {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 24px;
  align-items: start;
}
/* Cars get bigger, landscape cards — a car photo is wide, so a rectangle shows
   the whole vehicle far better than the square guesthouse tile. */
.mk-layout.with-rail .cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px 20px;
}
.lcard-car .lcard-photo { aspect-ratio: 16 / 11; border-radius: 16px; }
.lcard-car .lcard-title { font-size: 17px; }

/* Toolbar: top line (For sale/rent toggle + Sort), result line (count +
   removable active-filter pills), then the shop-by-brand row. */
.cars-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.cars-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cars-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
}
.cars-sort select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}
.cars-sort select:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.cars-resultline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cars-count { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.active-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.active-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-soft);
  color: var(--accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
}
.active-pill span { font-size: 13px; line-height: 1; }
.active-pill:hover { background: #dbe6fb; }
.active-pill.clear-pill { background: transparent; color: var(--ink-soft); text-decoration: underline; }
.buyrent-toggle {
  display: inline-flex;
  background: var(--linen);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.buyrent-toggle button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.buyrent-toggle button.active { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(122, 74, 34, 0.28); }

.brand-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.brand-row::-webkit-scrollbar { display: none; }
.brand-pill {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 15px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.brand-pill:hover { border-color: var(--ink-faint); }
.brand-pill.selected { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Filter rail (left) */
.filter-rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  position: sticky;
  top: 16px;
  /* Keep the whole rail on-screen: if it's taller than the viewport, it
     scrolls inside itself so the bottom filters stay reachable without
     scrolling the entire page. */
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.filter-rail::-webkit-scrollbar { width: 7px; }
.filter-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.filter-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.filter-rail-head h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.filter-rail-head button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 12.5px; color: var(--blue);
}
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group > label,
.filter-group > .fg-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 10px;
}
.fg-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fg-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fg-chip:hover { border-color: var(--ink-faint); }
.fg-chip.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.fg-checks { display: flex; flex-direction: column; gap: 9px; }
.fg-check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-family: var(--font-body); font-size: 13px; color: var(--ink); }
.fg-check input { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }
.fg-price { display: flex; align-items: center; gap: 8px; }
.fg-price input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
}
.fg-price input:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.fg-price span { color: var(--ink-faint); }

/* Mobile filter toggle button (rail collapses on small screens) */
.filter-toggle-btn { display: none; }

/* Car card extras */
.lcard-carbadge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2px;
  z-index: 2;
}
.lcard-carbadge.rent { background: #0f9d58; }
.lcard-specs {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.lcard-price .per { font-weight: 500; font-size: 12.5px; color: var(--ink-soft); }

@media (max-width: 820px) {
  .mk-layout.with-rail { grid-template-columns: 1fr; }
  .filter-rail { position: static; margin-bottom: 4px; }
  .filter-rail.collapsed .filter-rail-body { display: none; }
  .filter-toggle-btn {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    border-radius: 999px; padding: 9px 16px; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: 13px;
  }
  .filter-toggle-btn.has-active { background: var(--blue); border-color: var(--blue); color: #fff; }
}

/* Mascot — waving greeter in the homepage hero, gentle idle float. */
.hero-mascot { width: 120px; height: auto; display: block; margin-bottom: 6px; animation: mascot-bob 3s ease-in-out infinite; }
@keyframes mascot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .hero-mascot { animation: none; } }
/* Mascot — waving greeter on the sign-in page, matches the app login. */
.auth-mascot { width: 88px; height: auto; display: block; margin: 0 auto 8px; animation: mascot-bob 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .auth-mascot { animation: none; } }
/* ===== Admin dashboard (Command Center) — added by laptop session =====
   Chart.js panels, drill-down filter chips, list/card view, disputes,
   explainers, pagination. Uses --accent/--blue-soft etc., which the coffee
   rebrand maps to brown, so these inherit the brand automatically. */
.cc-charts-viz { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 22px; }
.cc-canvas-wrap { position: relative; width: 100%; }
.cc-canvas-wrap canvas { max-width: 100%; }
.cc-inline-link { color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; }
.cc-panel-hint { font-size: 11px; color: var(--ink-faint); font-style: italic; }
.cc-explain { background: var(--blue-soft); border-radius: 14px; padding: 15px 18px; margin-bottom: 18px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.cc-explain p { margin: 0 0 8px; }
.cc-explain p:last-child { margin: 0; }
.cc-explain-title { font-family: var(--font-display); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-ink); }
.cc-explain-how { color: var(--ink-soft); font-size: 13px; }
.cc-scope { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cc-scope-row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cc-scope-label { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--ink-soft); width: 64px; flex-shrink: 0; padding-top: 7px; }
.cc-chiprow { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.cc-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-family: var(--font-body); font-size: 12.5px; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.cc-chip:hover { border-color: var(--ink-faint); }
.cc-chip.active { background: var(--accent); border-color: var(--accent); color: var(--on-blue); }
.cc-active-filter { display: flex; align-items: center; gap: 10px; background: var(--blue-soft); color: var(--accent-ink); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.cc-clear-filter { margin-left: auto; border: 0; background: rgba(0, 0, 0, 0.06); color: inherit; border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; font-weight: 600; }
.cc-showing { font-size: 12px; color: var(--ink-soft); margin: 0 0 10px; }
.cc-loadmore { display: block; margin: 16px auto 0; }
.dispute-reason { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--danger-bg); border-radius: 10px; padding: 8px 12px; margin: 10px 0 8px; }
.dispute-reason-label { font-family: var(--font-display); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--danger); }
.dispute-reason-value { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dispute-comment-label { font-family: var(--font-display); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.dispute-comment p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); background: var(--linen); border-radius: 10px; padding: 10px 12px; }
.dispute-card .admin-actions2 { margin-top: auto; }
.cc-listrows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.cc-listrow { display: grid; grid-template-columns: minmax(0, 2.4fr) 1.2fr 1fr 0.9fr auto; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.cc-listrow:first-child { border-top: 0; }
.cc-listrow.cc-listhead { background: var(--linen); font-family: var(--font-display); font-weight: 600; font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.cc-listrow .cc-lr-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-listrow .cc-lr-name a { color: inherit; text-decoration: none; }
.cc-listrow .cc-lr-name a:hover { text-decoration: underline; }
.cc-listrow .cc-lr-sub { color: var(--ink-soft); font-size: 11.5px; }
.cc-listrow .cc-lr-actions { display: flex; gap: 6px; justify-content: flex-end; }
.cc-view-toggle { display: inline-flex; background: var(--linen); border-radius: 999px; padding: 3px; gap: 2px; }
.cc-view-toggle button { border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 6px 14px; font-family: var(--font-body); font-weight: 600; font-size: 12.5px; color: var(--ink-soft); }
.cc-view-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
@media (max-width: 720px) { .cc-listrow { grid-template-columns: 1fr auto; } .cc-listrow .cc-lr-type, .cc-listrow .cc-lr-country { display: none; } }
/* Equal-height admin cards + single consistent spacing (override the base). */
.cc-grid { align-items: stretch; gap: 14px; }
.admin-card2 { display: flex; flex-direction: column; margin-bottom: 0; }
