/* SomaBazar — Warm Botanical Cream & Deep Forest Green Marketplace (ViVA-Inspired Design System) */
:root {
  --bg: #FAF9F5;
  --bg-soft: #F3F1EA;
  --surface: #FFFFFF;
  --surface-alt: #F4F2EB;
  --ink: #14221B;
  --ink-muted: #5C6B63;
  --border: #E6E3DA;
  --border-strong: #D0CCC0;
  --brand: #0E3325;
  --brand-hover: #174B37;
  --brand-soft: #E5EFEA;
  --accent: #E25B45;
  --accent-soft: #FDECE9;
  --verified: #137347;
  --verified-soft: #E8F5EE;
  --gold: #F5A623;
  --rose: #D92D20;
  --rose-soft: #FEF3F2;
  --dark-bg: #0E3325;
  --dark-ink: #F7F8F6;
  --dark-muted: #B8C8BF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(14, 51, 37, 0.05);
  --shadow-md: 0 10px 28px rgba(14, 51, 37, 0.08);
  --shadow-lg: 0 20px 48px rgba(14, 51, 37, 0.12);
  --container: 1240px;
}

[data-theme="dark"] {
  --bg: #0D1411;
  --bg-soft: #131D18;
  --surface: #141F1A;
  --surface-alt: #1B2922;
  --ink: #F4F7F5;
  --ink-muted: #9FB0A7;
  --border: #24352C;
  --border-strong: #32483D;
  --brand: #27A673;
  --brand-hover: #32C289;
  --brand-soft: rgba(39, 166, 115, 0.16);
  --accent: #F0735E;
  --accent-soft: rgba(240, 115, 94, 0.16);
  --verified: #32C289;
  --verified-soft: rgba(50, 194, 137, 0.16);
  --dark-bg: #09100D;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 22px 52px rgba(0, 0, 0, 0.56);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
html, body {
  margin: 0; padding: 0; overflow-x: clip;
  background-color: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand-soft); color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
a { text-underline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #FFFFFF;
  padding: 10px 16px; z-index: 1000; font-weight: 600; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
section { scroll-margin-top: 110px; }
h1, h2, h3, h4 {
  font-family: var(--font-display); color: var(--ink); margin: 0;
  letter-spacing: -0.02em; overflow-wrap: break-word; min-width: 0; text-wrap: balance;
}
p { margin: 0; }

/* Top Forest-Green Announcement Strip */
.promo-strip {
  background: var(--dark-bg); color: #E9EFEA; font-size: 0.78rem; font-weight: 500;
  padding: 8px 16px; text-align: center; letter-spacing: 0.01em;
}
.promo-strip-inner {
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.promo-sep { opacity: 0.4; }

/* Two-Tier Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .site-header { background: var(--bg); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-family: var(--font-display); font-weight: 700;
  font-size: 1.45rem; letter-spacing: -0.02em; flex-shrink: 0;
}
.wordmark-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--brand); color: #FFFFFF; display: grid; place-items: center;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 800;
}
.wordmark-sub { display: block; font-family: var(--font-body); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-muted); text-transform: uppercase; line-height: 1; margin-top: 2px; }

.header-search {
  flex: 1; max-width: 440px; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  padding: 4px 4px 4px 16px; box-shadow: var(--shadow-sm);
}
.header-search input {
  border: none; background: transparent; color: var(--ink); font-family: var(--font-body);
  font-size: 0.9rem; width: 100%; outline: none;
}
.header-search-btn {
  width: 38px; height: 38px; border-radius: var(--radius-pill); border: none;
  background: var(--brand); color: #FFFFFF; cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}

.nav-subbar {
  border-top: 1px solid var(--border); padding: 8px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  text-decoration: none; color: var(--ink-muted); font-size: 0.9rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease; white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.currency-switch {
  display: inline-flex; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px;
}
.currency-btn, .lang-btn {
  border: none; background: transparent; color: var(--ink-muted);
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  padding: 5px 9px; border-radius: var(--radius-pill); cursor: pointer; min-height: 34px; min-width: 34px;
  transition: background-color 150ms ease, color 150ms ease;
}
.currency-btn[aria-pressed="true"], .lang-btn[aria-pressed="true"] {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
}
.theme-btn {
  min-height: 40px; min-width: 40px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); border-radius: var(--radius-pill);
  cursor: pointer; font-size: 1rem; display: inline-grid; place-items: center;
}
.hamburger-btn {
  display: none; min-height: 42px; min-width: 42px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 1.2rem;
}
.mobile-drawer { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 16px 24px; }
.mobile-drawer[data-open="true"] { display: grid; gap: 4px; }
.mobile-drawer a {
  text-decoration: none; color: var(--ink); font-weight: 600;
  padding: 12px 0; border-bottom: 1px solid var(--border); min-height: 44px;
  display: flex; align-items: center;
}
.mobile-drawer a:last-child { border-bottom: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--brand); color: #FFFFFF; box-shadow: 0 3px 10px rgba(14, 51, 37, 0.2); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-alt); border-color: var(--ink-muted); }
.btn-icon { min-height: 40px; min-width: 40px; padding: 0 12px; font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* Editorial Rounded Sage-Cream Hero Banner */
.hero { padding: 26px 0 32px; }
.hero-banner {
  border-radius: 26px; padding: 42px 44px;
  background: linear-gradient(125deg, #EAE8DD 0%, #D9E2D4 55%, #C9D7C5 100%);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
[data-theme="dark"] .hero-banner {
  background: linear-gradient(125deg, #16221C 0%, #1D2E25 60%, #13211B 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 38px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 4.3vw, 3.4rem); line-height: 1.08; font-weight: 700; margin-bottom: 16px; }
.hero-lead { font-size: 1.02rem; color: var(--ink-muted); max-width: 50ch; margin-bottom: 24px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(20, 34, 27, 0.12); font-size: 0.84rem; font-weight: 600; color: var(--ink); }
[data-theme="dark"] .hero-trust-row { border-top-color: rgba(255, 255, 255, 0.12); }

.workbench {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow-lg);
}
.workbench-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.workbench-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.workbench-status { font-size: 0.78rem; font-weight: 600; color: var(--verified); background: var(--verified-soft); padding: 4px 11px; border-radius: var(--radius-pill); }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 10px; }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 0.9rem;
  caret-color: var(--brand);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.textarea { min-height: 112px; resize: none; line-height: 1.55; padding: 12px 14px; }
.filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.workbench-preview { display: grid; gap: 8px; }
.mini-listing {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
}
.mini-listing:hover { border-color: var(--brand); }
.mini-listing-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-listing-thumb { width: 50px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); background: var(--bg-soft); }
.mini-title { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.mini-meta { font-size: 0.78rem; color: var(--ink-muted); }
.mini-price { font-family: var(--font-body); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand); white-space: nowrap; font-size: 0.92rem; }

/* Pastel Circular Category Strip (ViVA-style) */
.cat-strip-wrap { padding: 12px 0 36px; }
.category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 8px;
  background: transparent; border: none; cursor: pointer; text-align: center; color: var(--ink);
  transition: transform 150ms ease;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-icon-well {
  width: 74px; height: 74px; border-radius: var(--radius-pill);
  background: var(--cat-tint, #E7EFE9); border: 2px solid transparent; color: var(--brand);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.cat-card[data-cat="All"] .cat-icon-well { --cat-tint: #E5EFEA; }
.cat-card[data-cat="Cars"] .cat-icon-well { --cat-tint: #FCEEE4; }
.cat-card[data-cat="Real Estate"] .cat-icon-well { --cat-tint: #F8F0DC; }
.cat-card[data-cat="Land"] .cat-icon-well { --cat-tint: #F9E8EA; }
.cat-card[data-cat="Electronics"] .cat-icon-well { --cat-tint: #E6EEF8; }
.cat-card[data-cat="Solar & Home"] .cat-icon-well { --cat-tint: #FDF3E1; }
.cat-card[data-cat="Second-Hand"] .cat-icon-well { --cat-tint: #E5EEF6; }
.cat-card[data-cat="Hotels & Stays"] .cat-icon-well { --cat-tint: #EFEAF7; }
[data-theme="dark"] .cat-icon-well { background: var(--surface-alt); color: var(--ink); border-color: var(--border); }
.cat-card[aria-pressed="true"] .cat-icon-well { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
.cat-name { font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.cat-count { font-size: 0.75rem; color: var(--ink-muted); }

/* Section Headers & Product/Listing Cards */
.section-pad { padding: 36px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-header h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
.section-sub { color: var(--ink-muted); max-width: 58ch; font-size: 0.94rem; }

.mode-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mode-pill {
  min-height: 40px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-muted);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.mode-pill[aria-pressed="true"] { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }

.listings-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.city-pill {
  min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-muted);
  font-family: var(--font-body); font-size: 0.84rem; font-weight: 600; cursor: pointer;
}
.city-pill[aria-pressed="true"] { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }

.city-explorer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.city-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm);
  display: flex; justify-content: space-between; align-items: center; min-height: 62px; color: var(--ink);
}
.city-tile:hover { border-color: var(--brand); }
.city-tile[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }

.listings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.listing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.listing-visual {
  aspect-ratio: 16 / 10; background: var(--bg-soft); position: relative;
  overflow: hidden; border-bottom: 1px solid var(--border); padding: 0;
}
.listing-photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 280ms ease; }
.listing-card:hover .listing-photo { transform: scale(1.04); }
.listing-badge-row {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.badge {
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94); color: #14221B; border: 1px solid rgba(20, 34, 27, 0.08);
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .badge { background: rgba(20, 31, 26, 0.9); color: #F4F7F5; border-color: rgba(255,255,255,0.12); }
.badge-verified { background: var(--verified-soft); color: var(--verified); border-color: transparent; }
.badge-featured { background: var(--accent); color: #FFFFFF; border-color: transparent; }
.photo-count-badge {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(14, 51, 37, 0.8); color: #FFFFFF;
  padding: 3px 9px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 600;
}
.fav-btn {
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 34, 27, 0.1); background: rgba(255, 255, 255, 0.94);
  color: var(--ink-muted); cursor: pointer; display: grid; place-items: center; font-size: 1rem;
}
.fav-btn[aria-pressed="true"] { background: var(--rose-soft); color: var(--rose); border-color: var(--rose); }

.listing-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.listing-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.listing-price { font-family: var(--font-body); font-size: 1.28rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.listing-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.listing-title a { color: var(--ink); text-decoration: none; }
.listing-title a:hover { color: var(--brand); }
.listing-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip { font-size: 0.72rem; padding: 3px 8px; border-radius: 6px; background: var(--surface-alt); color: var(--ink-muted); font-weight: 500; }
.listing-desc { font-size: 0.84rem; color: var(--ink-muted); flex: 1; line-height: 1.48; }
.listing-footer { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seller-wrap { display: flex; align-items: center; gap: 9px; min-width: 0; }
.seller-avatar {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 0.74rem; display: grid; place-items: center;
}
.seller-info { font-size: 0.78rem; color: var(--ink-muted); min-width: 0; }
.seller-name { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 3-Column Pastel Promo Cards (ViVA-style) */
.pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 10px; }
.pillar-card {
  border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.pillar-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pillar-card--classifieds { background: linear-gradient(135deg, #E8EFE6 0%, #DCE8DA 100%); }
.pillar-card--shop { background: linear-gradient(135deg, #F7F1E4 0%, #EFE5D0 100%); }
.pillar-card--stays { background: linear-gradient(135deg, #E4EFF6 0%, #D7E6F0 100%); }
[data-theme="dark"] .pillar-card { background: var(--surface); }
.pillar-tag { font-size: 0.75rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pillar-card h3 { font-size: 1.35rem; font-weight: 700; }
.pillar-card p { font-size: 0.9rem; color: var(--ink-muted); flex: 1; }

/* Reviews & Forest-Green Newsletter / Alert Band */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; box-shadow: var(--shadow-sm); display: grid; gap: 10px;
}
.review-head { display: flex; align-items: center; gap: 12px; }
.review-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; }

.loop-banner {
  background: var(--dark-bg); color: #FFFFFF; border-radius: 22px; padding: 36px 40px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; align-items: center;
  margin: 24px 0;
}
.loop-banner h2 { color: #FFFFFF; font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.loop-banner p { color: #C5D4CC; font-size: 0.92rem; margin-top: 6px; }
.loop-form {
  display: flex; gap: 8px; background: #FFFFFF; padding: 5px; border-radius: var(--radius-pill);
}
.loop-form input {
  flex: 1; border: none; background: transparent; padding: 8px 16px; font-size: 0.92rem; color: #14221B; outline: none;
}
.loop-form button {
  background: #D9E2C8; color: #0E3325; border: none; border-radius: var(--radius-pill);
  padding: 10px 22px; font-weight: 700; cursor: pointer;
}

.trust-strip {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.trust-strip-item { display: flex; align-items: center; gap: 12px; }
.trust-strip-icon {
  width: 40px; height: 40px; border-radius: 999px; background: var(--surface-alt);
  color: var(--brand); display: grid; place-items: center; flex-shrink: 0;
}

.stay-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end;
}

/* Subpages, Tables, Gallery & Messaging */
.band-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; }
.panel h3 { font-size: 1.25rem; margin-bottom: 10px; }
.panel p { color: var(--ink-muted); margin-bottom: 16px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9375rem; }

.page-hero {
  padding: 40px 0 32px; border-bottom: 1px solid var(--border);
  background: linear-gradient(125deg, #EAE8DD 0%, #D9E2D4 100%);
}
[data-theme="dark"] .page-hero { background: var(--surface); }
.page-hero h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 8px; }
.page-hero p { color: var(--ink-muted); max-width: 62ch; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--brand); text-decoration: none; font-weight: 500; }

.card-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 28px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); }
.data-table th { font-weight: 600; color: var(--ink-muted); font-size: 0.8125rem; }
.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose h2 { font-size: 1.375rem; margin-top: 12px; }
.prose p, .prose li { color: var(--ink-muted); }

.gallery-main { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); cursor: zoom-in; display: block; background: var(--bg-soft); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb-btn { border: 2px solid transparent; border-radius: var(--radius-sm); padding: 0; overflow: hidden; width: 88px; height: 60px; cursor: pointer; background: var(--bg-soft); }
.thumb-btn.active { border-color: var(--brand); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.preview-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.preview-card img { width: 100%; height: 82px; object-fit: cover; display: block; }
.preview-actions { display: flex; justify-content: space-between; padding: 4px 6px; font-size: 0.72rem; background: var(--bg-soft); }
.photo-blurred { filter: blur(8px); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.choice-chip {
  min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.choice-chip[aria-pressed="true"] { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
.trust-score-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: var(--radius-pill); background: var(--verified-soft); color: var(--verified);
  font-size: 0.8125rem; font-weight: 700;
}
.safety-banner {
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink);
  padding: 14px 16px; border-radius: var(--radius-md); font-size: 0.875rem; margin-bottom: 16px;
}
.qa-item, .review-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.qa-item:last-child, .review-item:last-child { border-bottom: none; }

.msg-shell {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  overflow: hidden; min-height: 460px; box-shadow: var(--shadow-sm);
}
.msg-list { border-right: 1px solid var(--border); background: var(--bg); }
.msg-thread-btn {
  width: 100%; text-align: left; padding: 16px; border: none; border-bottom: 1px solid var(--border);
  background: transparent; cursor: pointer; display: grid; gap: 4px; color: var(--ink);
}
.msg-thread-btn[aria-current="true"] { background: var(--brand-soft); }
.msg-pane { display: flex; flex-direction: column; justify-content: space-between; padding: 20px; gap: 16px; }
.msg-bubbles { display: grid; gap: 12px; }
.bubble { max-width: 78%; padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.9375rem; }
.bubble-in { background: var(--surface-alt); color: var(--ink); justify-self: start; }
.bubble-out { background: var(--brand); color: #FFFFFF; justify-self: end; }

/* Deep Forest-Green Footer */
.site-footer { background: var(--dark-bg); color: var(--dark-ink); padding: 56px 0 36px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-wordmark { color: #FFFFFF; }
.footer-brand p { color: var(--dark-muted); max-width: 34ch; margin-top: 12px; font-size: 0.9rem; }
.footer-col h4 { color: #FFFFFF; font-family: var(--font-body); font-size: 0.92rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--dark-muted); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--dark-muted); font-size: 0.84rem; }
.footer-legal-link { color: var(--dark-muted); text-decoration: none; }
.footer-legal-link:hover { color: #FFFFFF; }

/* Modals & Toast */
.modal-backdrop { position: fixed; inset: 0; background: rgba(14, 51, 37, 0.56); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 200; }
.modal-backdrop[data-open="true"] { display: flex; }
.modal-dialog { width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-close { width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--bg); color: var(--ink); cursor: pointer; font-size: 1.2rem; }
.form-stack { display: grid; gap: 14px; }
.field-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.toast {
  position: fixed; bottom: 84px; right: 24px; background: var(--brand); color: #FFFFFF;
  padding: 13px 20px; border-radius: var(--radius-pill); font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease; z-index: 300;
}
.toast[data-visible="true"] { opacity: 1; transform: translateY(0); }
.mobile-dock { display: none; }

@media (max-width: 1024px) {
  .hero-grid, .split-grid, .two-col, .three-col, .pillars-grid, .reviews-grid, .loop-banner, .msg-shell { grid-template-columns: minmax(0, 1fr); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listings-grid, .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stay-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-search { display: none; }
}

@media (max-width: 768px) {
  body { padding-bottom: 72px; }
  .nav-subbar { display: none; }
  .hamburger-btn { display: inline-grid; place-items: center; }
  .hero-banner { padding: 26px 20px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cat-icon-well { width: 58px; height: 58px; }
  .listings-grid, .footer-grid, .stay-bar, .trust-strip { grid-template-columns: minmax(0, 1fr); }
  .city-explorer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form, .filter-row { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .nav-actions .btn, .nav-actions .hamburger-btn, .nav-actions .theme-btn { width: auto; }
  .nav-actions .currency-switch[aria-label="Language"] { display: none; }
  .mobile-dock {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
    background: var(--surface); border-top: 1px solid var(--border);
    display: grid; grid-template-columns: repeat(5, 1fr); min-height: 62px;
    padding: 4px 6px; box-shadow: 0 -4px 16px rgba(14, 51, 37, 0.1);
  }
  .mobile-dock a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: var(--ink-muted); font-size: 0.72rem; font-weight: 600; gap: 2px;
  }
  .mobile-dock a[aria-current="page"], .mobile-dock a.dock-post { color: var(--brand); font-weight: 700; }
}

/* Modernized Buttons, Custom Select Chevrons, Slide-Down/Up Animations & Upload Dropzones */
.btn svg, .cat-dropdown-item svg, .mobile-dock svg, .trust-strip-icon svg { flex-shrink: 0; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230E3325' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F4F7F5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.input[type="file"] { padding: 8px 12px; cursor: pointer; }
.input[type="file"]::file-selector-button {
  background: var(--brand); color: #FFFFFF; border: none; border-radius: var(--radius-pill);
  padding: 7px 14px; margin-right: 12px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: background-color 150ms ease;
}
.input[type="file"]::file-selector-button:hover { background: var(--brand-hover); }

/* Slide-Down All Categories Menu */
.nav-subbar { position: relative; }
.cat-toggle-btn { min-height: 38px; padding: 0 16px; font-size: 0.85rem; }
.cat-toggle-btn .chev { transition: transform 200ms ease; }
.cat-toggle-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.cat-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; width: min(540px, calc(100vw - 48px));
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 14px; z-index: 150;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}
.cat-dropdown[data-open="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
.cat-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid transparent; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 600; cursor: pointer; text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.cat-dropdown-item:hover { border-color: var(--brand); background: var(--brand-soft); }

/* Smooth Slide-Down / Slide-Up for Drawer, Stay Bar & Modals */
@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mobile-drawer[data-open="true"] { animation: slideDownFade 200ms ease-out; }
.stay-bar[style*="grid"] { animation: slideDownFade 220ms ease-out; }
.modal-backdrop[data-open="true"] .modal-dialog { animation: modalSlideUp 220ms cubic-bezier(0.22, 1, 0.36, 1); }

/* Modern Drag & Drop Upload Zone */
.upload-dropzone {
  position: relative; border: 2px dashed var(--border-strong); border-radius: var(--radius-md);
  background: var(--bg); padding: 26px 20px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.upload-dropzone:hover, .upload-dropzone.is-dragover {
  border-color: var(--brand); background: var(--brand-soft);
}
.upload-dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon-circle {
  width: 48px; height: 48px; border-radius: var(--radius-pill);
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.upload-title { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.upload-sub { font-size: 0.8rem; color: var(--ink-muted); }

/* Circular Card Action Button */
.btn-circle-action {
  width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: var(--radius-pill);
  display: inline-grid; place-items: center;
}

/* Polish: Browser Surfaces, Number Spinners & Custom Select Dropdowns */
::selection { background: var(--brand); color: #FFFFFF; }
a { text-underline-offset: 3px; }
[id] { scroll-margin-top: 84px; }

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.inline-icon-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  font-weight: 500;
}

.sb-select {
  position: relative;
  width: 100%;
}
.sb-select.is-open {
  z-index: 120;
}
.sb-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sb-select-trigger {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.sb-select-trigger:hover {
  border-color: var(--ink-muted);
  background: var(--surface);
}
.sb-select-trigger:focus-visible,
.sb-select.is-open .sb-select-trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  outline: none;
  background: var(--surface);
}
.sb-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-select-chev {
  flex-shrink: 0;
  color: var(--brand);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="dark"] .sb-select-chev {
  color: var(--ink);
}
.sb-select.is-open .sb-select-chev {
  transform: rotate(180deg);
}
.sb-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: grid;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1), visibility 160ms ease;
}
.sb-select.is-open .sb-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.sb-select-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 11px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color 120ms ease, color 120ms ease;
}
.sb-select-option:hover,
.sb-select-option.is-focused {
  background: var(--surface-alt);
}
.sb-select-option.is-selected {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
[data-theme="dark"] .sb-select-option.is-selected {
  color: #FFFFFF;
}
.sb-select-check {
  flex-shrink: 0;
  opacity: 0;
}
.sb-select-option.is-selected .sb-select-check {
  opacity: 1;
}

/* Price-Drop Badges, Autocomplete, Vertical Tools & Mobile Stacked Tables */
.badge-price-drop {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(226, 91, 69, 0.25);
}
.price-was {
  font-size: 0.84rem;
  color: var(--ink-muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 6px;
}
.sb-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.sb-autocomplete-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 160;
  display: none;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
}
.sb-autocomplete-menu[data-open="true"] {
  display: grid;
}
.sb-ac-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.86rem;
  padding: 9px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.sb-ac-item:hover, .sb-ac-item:focus-visible {
  background: var(--brand-soft);
  color: var(--brand);
  outline: none;
}
.sb-ac-meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
.vertical-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  display: grid;
  gap: 10px;
}
.vertical-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 0.86rem;
}
.stay-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stay-warn {
  font-size: 0.82rem;
  color: var(--rose);
  background: var(--rose-soft);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
@media (max-width: 768px) {
  .vertical-grid, .stay-date-grid { grid-template-columns: minmax(0, 1fr); }
  .data-table.mobile-cards thead { display: none; }
  .data-table.mobile-cards, .data-table.mobile-cards tbody, .data-table.mobile-cards tr, .data-table.mobile-cards td, .data-table.mobile-cards th {
    display: block;
    width: 100%;
  }
  .data-table.mobile-cards tr {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
  }
  .data-table.mobile-cards td, .data-table.mobile-cards th {
    border-bottom: none;
    padding: 5px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .data-table.mobile-cards td[data-label]::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
  }
}

/* Admin Moderation Console (Operate surface) */
.four-col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-val {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.metric-lbl {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.action-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.admin-tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-tab:hover { border-color: var(--border-strong); color: var(--ink); }
.admin-tab[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.75fr)) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.badge-neutral { background: var(--bg-soft); color: var(--ink-muted); border: 1px solid var(--border); }
.badge-danger { background: var(--rose-soft); color: var(--rose); }
.audit-list { display: grid; gap: 10px; }
.audit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.875rem;
}
.audit-meta { font-size: 0.8rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.admin-panel-head h2 { font-size: 1.25rem; margin: 0; }
.kyc-detail { font-size: 0.8rem; color: var(--ink-muted); margin-top: 4px; }
@media (max-width: 960px) {
  .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .four-col, .admin-toolbar { grid-template-columns: minmax(0, 1fr); }
}

/* Homepage Positioning, Filter Toolbar & Storefront/Recent Cards */
.filter-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
}
.filter-toolbar .mode-bar { margin-bottom: 0; }
.filter-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.filter-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-right: 4px;
}
.active-filters-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.filter-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip-btn:hover { border-color: var(--brand); }
.storefront-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.storefront-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.storefront-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.storefront-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
  border: 1px solid var(--border);
}
.storefront-card h3 { font-size: 1.18rem; margin: 0 0 6px; }
.storefront-card p { color: var(--ink-muted); font-size: 0.9rem; margin: 0; line-height: 1.5; }
.storefront-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.recent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease;
}
.recent-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.recent-thumb { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg-soft); border: 1px solid var(--border); }
.recent-body { min-width: 0; }
.recent-title { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.recent-price { color: var(--brand); font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; margin: 2px 0; }
.recent-meta { font-size: 0.78rem; color: var(--ink-muted); }
@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-icon-well { width: 60px; height: 60px; }
}

/* Wide-Desktop Side Rails (>= 1560px) — Zero impact on laptop/tablet/mobile */
.home-wide-shell { display: block; }
.home-rail { display: none; }
@media (min-width: 1560px) {
  .home-wide-shell {
    display: grid;
    grid-template-columns: 215px minmax(0, 1240px) 215px;
    justify-content: center;
    align-items: start;
    gap: 24px;
    padding-inline: 24px;
  }
  .home-wide-main { min-width: 0; }
  .home-wide-main .wrap { padding-inline: 0; }
  .home-rail {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 132px;
    margin-top: 26px;
    margin-bottom: 36px;
  }
}
.rail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
}
.rail-card-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.rail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rail-chip {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}
.rail-chip:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.rail-deal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  transition: border-color 140ms ease;
}
.rail-deal-link:hover { border-color: var(--brand); }
.rail-deal-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-deal-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.rail-link-list { display: grid; gap: 6px; }
.rail-text-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.rail-text-link:hover { border-color: var(--brand); background: var(--brand-soft); }
.rail-card--unified { gap: 14px; padding: 18px; }
.rail-block { display: grid; gap: 8px; }
.rail-divider { height: 1px; background: var(--border); }


/* === Modern Web Guidance Baseline Enhancements === */
:root {
  color-scheme: light;
  scrollbar-gutter: stable;
}
[data-theme="dark"] {
  color-scheme: dark;
}
h1, h2, h3, .hero h1 {
  text-wrap: balance;
}
.hero-lead, .listing-desc {
  text-wrap: pretty;
}
.listing-card, .store-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 380px;
}
.input:user-invalid, .textarea:user-invalid, .select:user-invalid {
  border-color: var(--rose);
}
.input:user-valid, .textarea:user-valid {
  border-color: var(--verified);
}
.textarea {
  field-sizing: content;
  min-height: 88px;
}
.modal-dialog, .mobile-drawer {
  overscroll-behavior: contain;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* === Polish Browser Surface & Sticky Anchor Guards === */
::selection {
  background: var(--brand);
  color: #FFFFFF;
}
input, textarea {
  caret-color: var(--brand);
}
a {
  text-underline-offset: 3px;
}
section[id], main[id] {
  scroll-margin-top: 84px;
}