/* B4UDrive mockup — coral brand + YH.APP_NAME */
:root {
  --brand: #FF6B3D;
  --brand-dark: #E5522A;
  --brand-soft: #FFF1EB;
  --ink: #1C1C1E;
  --ink-2: #3A3A3C;
  --muted: #8E8E93;
  --line: #E5E5EA;
  --bg: #F7F5F3;
  --card: #FFFFFF;
  --ok: #2F9E6B;
  --warn: #F5A524;
  --shadow: 0 8px 24px rgba(28, 28, 30, 0.08);
  --shadow-sm: 0 2px 10px rgba(28, 28, 30, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --nav-h: 64px;
  --top-h: 56px;
  --max: 430px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #EDE9E4;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; padding: 0; }

.app-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 10% -10%, #FFE2D4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #FFEFD8 0%, transparent 50%),
    #EDE9E4;
}

.phone {
  width: 100%;
  max-width: var(--max);
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 24px 80px rgba(28,28,30,0.12);
  display: flex;
  flex-direction: column;
}

/* Desktop: centered phone + side panel */
@media (min-width: 960px) {
  .app-shell { padding: 32px 24px; align-items: flex-start; gap: 28px; }
  .phone {
    min-height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    border-radius: 28px;
    overflow: hidden;
    position: sticky;
    top: 32px;
  }
  .desk-panel {
    display: block !important;
    flex: 1;
    max-width: 520px;
    margin-top: 48px;
  }
}

.desk-panel { display: none; }
.desk-panel h1 {
  font-size: 40px;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.1;
}
.desk-panel p { color: var(--ink-2); line-height: 1.55; margin: 0 0 18px; font-size: 16px; }
.desk-panel .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-size: 13px; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.pill strong { color: var(--brand-dark); font-weight: 700; }
.desk-card {
  background: #fff; border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04);
}
.desk-card h3 { margin: 0 0 8px; font-size: 16px; }
.desk-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); line-height: 1.55; font-size: 14px; }
.example-banner {
  background: #FFF8E8;
  color: #8A5A00;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 7px 12px;
  border-bottom: 1px solid #F0E0B8;
  letter-spacing: 0.01em;
}

/* Top bar */
.topbar {
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: rgba(247,245,243,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: sticky; top: 0; z-index: 20;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: -0.03em; font-size: 18px;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(145deg, #FF8A5C, var(--brand));
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 900;
  box-shadow: 0 4px 10px rgba(255,107,61,0.35);
}
.top-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-2);
}
.icon-btn:active { transform: scale(0.96); }

/* Content */
.content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--nav-h) + 18px);
  -webkit-overflow-scrolling: touch;
}

/* Bottom tab bar */
.tabbar {
  position: sticky; bottom: 0; z-index: 30;
  height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0));
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted);
  border-radius: 12px;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--brand-dark); }
.tab.post-tab .post-fab {
  width: 40px; height: 40px; border-radius: 14px;
  background: linear-gradient(145deg, #FF8A5C, var(--brand));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 16px rgba(255,107,61,0.35);
  margin-top: -18px;
}
.tab.post-tab { color: var(--brand-dark); }

/* Search / filters */
.search-row {
  display: flex; gap: 8px; padding: 12px 14px 4px; align-items: stretch;
}
.search-row .view-toggle { flex: 0 0 auto; }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.search input {
  border: 0; outline: 0; width: 100%; background: transparent;
  font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
.filter-chip {
  white-space: nowrap;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 12px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.chips {
  display: flex; gap: 8px; padding: 10px 14px 6px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chip.active {
  background: var(--brand-soft); border-color: #FFD0BE; color: var(--brand-dark);
}

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 16px 8px;
}
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.section-head span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Sale cards */
.sale-list { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 8px; }
.sale-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .15s ease;
}
.sale-card:active { transform: scale(0.985); }
.sale-cover {
  position: relative; height: 148px; background: #ddd;
}
.sale-cover img { width: 100%; height: 100%; object-fit: cover; }
.sale-badge {
  position: absolute; left: 10px; top: 10px;
  background: rgba(28,28,30,0.72); color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 8px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.sale-body { padding: 12px 14px 14px; }
.sale-body h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -0.02em; }
.sale-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 12.5px; font-weight: 550; }
.sale-meta .dot::before { content: "·"; margin-right: 12px; color: #C7C7CC; }
.seller-row {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  background: #eee; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.seller-row span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.price-from {
  margin-left: auto; font-weight: 800; color: var(--brand-dark); font-size: 14px;
}

/* Map */
.map-wrap {
  margin: 8px 14px 0;
  height: min(52vh, 420px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #e8e4df;
  position: relative;
}
#browseMap { width: 100%; height: 100%; }
#saleMap { width: 100%; height: 150px; }
.map-legend {
  position: absolute; left: 10px; bottom: 10px; z-index: 500;
  background: rgba(255,255,255,0.94); border-radius: 12px;
  padding: 8px 10px; font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.leaflet-container { font: inherit; }
.yh-pin {
  background: var(--brand);
  color: #fff; width: 32px; height: 32px; border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(255,107,61,0.4);
  border: 2px solid #fff;
}
.yh-pin span {
  transform: rotate(45deg);
  font-size: 11px; font-weight: 800;
}
.view-toggle {
  display: flex; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 3px; gap: 2px;
  box-shadow: var(--shadow-sm);
}
.view-toggle button {
  padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted);
}
.view-toggle button.active {
  background: var(--brand-soft); color: var(--brand-dark);
}

/* Sale detail */
.hero {
  position: relative; height: 210px; background: #ddd;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .back {
  position: absolute; left: 12px; top: 12px;
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,0.92); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.sale-panel {
  margin: -28px 12px 0; position: relative; z-index: 2;
  background: #fff; border-radius: 20px; padding: 16px;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.04);
}
.sale-panel h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; }
.sale-panel .sub { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 14px;
}
.info-cell {
  background: var(--bg); border-radius: 12px; padding: 10px 12px;
}
.info-cell label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.info-cell div { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.btn-row { display: flex; gap: 8px; }
.btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14px;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(145deg, #FF8A5C, var(--brand));
  color: #fff; box-shadow: 0 8px 18px rgba(255,107,61,0.28);
}
.btn-secondary {
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
}
.btn-ghost {
  background: var(--brand-soft); color: var(--brand-dark);
}
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.7; cursor: not-allowed;
}

.mini-map {
  height: 150px; min-height: 150px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); margin: 12px 0 4px;
  background: #e8e4df;
}
.mini-map.leaflet-container { height: 150px; }

.item-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 4px 14px 18px;
}
.item-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04); box-shadow: var(--shadow-sm);
}
.item-card .thumb { height: 120px; background: #eee; position: relative; }
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-card .body { padding: 10px; }
.item-card h4 {
  margin: 0 0 4px; font-size: 13.5px; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em;
}
.item-card .price { font-weight: 800; color: var(--brand-dark); font-size: 15px; }
.item-card .cond {
  position: absolute; left: 8px; top: 8px;
  background: rgba(255,255,255,0.92); font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 999px; color: var(--ink-2);
}

/* Item detail */
.carousel {
  position: relative; height: 280px; background: #ddd;
}
.carousel img { width: 100%; height: 100%; object-fit: cover; }
.carousel .dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.carousel .dots i {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5);
}
.carousel .dots i.on { background: #fff; width: 18px; border-radius: 999px; }
.detail {
  padding: 16px 16px 8px;
}
.detail .price-lg {
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand-dark);
  margin: 0 0 4px;
}
.detail h1 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.03em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 10px; font-size: 12px; font-weight: 650; color: var(--ink-2);
}
.detail p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.sale-link {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.sale-link img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.sale-link div { flex: 1; min-width: 0; }
.sale-link strong { display: block; font-size: 14px; }
.sale-link span { font-size: 12px; color: var(--muted); font-weight: 600; }
.sticky-cta {
  position: sticky; bottom: calc(var(--nav-h) + 8px);
  margin: 0 14px 10px; display: flex; gap: 8px;
  background: rgba(247,245,243,0.9); backdrop-filter: blur(10px);
  padding: 8px; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Forms */
.form {
  padding: 14px 16px 24px;
}
.form h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.03em; }
.form .lede { color: var(--muted); font-size: 14px; margin: 0 0 18px; font-weight: 550; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; font-weight: 750; color: var(--ink-2);
  margin-bottom: 6px; letter-spacing: 0.01em;
}
.field input, .field select, .field textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 12px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #FFB899; box-shadow: 0 0 0 3px rgba(255,107,61,0.15);
}
.field textarea { min-height: 88px; resize: vertical; }
.loc-row { display: flex; gap: 8px; flex-wrap: wrap; }
.loc-row input { flex: 1 1 160px; min-width: 0; }
.loc-row .btn { flex: 0 0 auto; }
.item-builder {
  background: #fff; border: 1px dashed #FFC7B0; border-radius: 16px;
  padding: 12px; margin: 8px 0 14px; background-image: linear-gradient(#fff, #FFF8F4);
}
.item-builder h3 { margin: 0 0 10px; font-size: 15px; }
.photo-upload {
  height: 110px; border-radius: 12px; border: 1.5px dashed #FFC7B0;
  display: grid; place-items: center; color: var(--brand-dark);
  font-weight: 700; font-size: 13px; background: var(--brand-soft);
  margin-bottom: 10px; overflow: hidden; position: relative;
}
.photo-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.added-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.added-item {
  display: flex; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
}
.added-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #eee; }
.added-item strong { display: block; font-size: 13px; }
.added-item span { font-size: 12px; color: var(--muted); font-weight: 650; }

/* Auth */
.auth {
  padding: 28px 20px 40px;
  min-height: calc(100vh - var(--nav-h) - 40px);
  display: flex; flex-direction: column;
}
.auth .logo-lg {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(145deg, #FF8A5C, var(--brand));
  display: grid; place-items: center; color: #fff;
  font-size: 28px; font-weight: 900; margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(255,107,61,0.35);
}
.auth h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.03em; }
.auth .lede { color: var(--muted); margin: 0 0 22px; font-weight: 550; }
.auth .switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.auth .switch a { color: var(--brand-dark); font-weight: 750; }

/* Saved / profile stubs */
.empty {
  text-align: center; padding: 48px 24px; color: var(--muted);
}
.empty .big {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px;
  background: var(--brand-soft); display: grid; place-items: center;
  color: var(--brand-dark); font-size: 28px;
}
.profile-head {
  padding: 20px 16px 8px; display: flex; gap: 14px; align-items: center;
}
.profile-head img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.menu-list { padding: 8px 14px 24px; display: flex; flex-direction: column; gap: 8px; }
.menu-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 14px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 650; font-size: 14px; box-shadow: var(--shadow-sm);
}
.menu-item span { color: var(--muted); font-size: 18px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px);
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 650; opacity: 0; pointer-events: none;
  transition: .25s ease; z-index: 100; max-width: min(360px, 90vw); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.hidden { display: none !important; }

/* Leaflet popup polish */
.leaflet-popup-content-wrapper {
  border-radius: 14px !important; box-shadow: var(--shadow) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 10px 12px !important; font-size: 13px !important; }
.leaflet-popup-content strong { display: block; margin-bottom: 2px; }
.popup-link { color: var(--brand-dark); font-weight: 750; }

@media (min-width: 960px) {
  .sticky-cta { bottom: 18px; }
}

/* ===== Google Maps–style home ===== */
.map-home {
  position: relative;
  flex: 1;
  min-height: calc(100vh - var(--nav-h));
  background: #e8e4df;
  overflow: hidden;
}
.map-home-banner {
  position: absolute; top: 0; left: 0; right: 0; z-index: 600;
}
.home-map {
  position: absolute; inset: 0;
  z-index: 1;
}
.map-search-float {
  position: absolute; top: 36px; left: 12px; right: 12px; z-index: 610;
}
.map-search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 28px;
  padding: 12px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.06);
}
.map-search input {
  border: 0; outline: 0; width: 100%; background: transparent;
  font-size: 15px; font-weight: 550;
}
.map-search input::placeholder { color: var(--muted); }

.locate-btn {
  position: absolute; right: 14px; bottom: calc(210px + env(safe-area-inset-bottom, 0px));
  z-index: 620;
  width: 44px; height: 44px; border-radius: 12px;
  background: #fff; color: var(--ink-2);
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
}
.locate-btn:active { transform: scale(0.96); }

.yh-house { line-height: 0; }
.yh-house.active { filter: drop-shadow(0 0 6px rgba(229,82,42,0.55)); }

/* Bottom sheet */
.bottom-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 630;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.14);
  max-height: 42%;
  display: flex; flex-direction: column;
  transition: max-height .25s ease;
  padding-bottom: 4px;
}
.bottom-sheet.expanded { max-height: 68%; }
.sheet-handle {
  display: flex; justify-content: center; padding: 10px 0 4px; cursor: pointer;
}
.sheet-handle i {
  width: 36px; height: 4px; border-radius: 999px; background: #D1D1D6;
}
.sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 0 16px 8px;
}
.sheet-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.sheet-head span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.sheet-list-link {
  font-size: 13px; font-weight: 750; color: var(--brand-dark); padding-top: 4px;
}
.sheet-list {
  overflow-y: auto; padding: 0 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
  -webkit-overflow-scrolling: touch;
}
.sheet-card {
  display: flex; gap: 12px; align-items: center; text-align: left;
  background: var(--bg); border-radius: 14px; padding: 8px;
  border: 1px solid rgba(0,0,0,0.04); width: 100%;
}
.sheet-card img {
  width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.sheet-card strong { display: block; font-size: 14px; letter-spacing: -0.01em; }
.sheet-card span { display: block; font-size: 12px; color: var(--ink-2); font-weight: 550; margin-top: 2px; }
.sheet-card .muted { color: var(--muted); }

/* Pin preview card */
.pin-card-slot {
  position: absolute; left: 12px; right: 12px; bottom: calc(42% + 10px);
  z-index: 640; pointer-events: none;
  opacity: 0; transform: translateY(12px);
  transition: .2s ease;
}
.pin-card-slot.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.map-home.sheet-open .pin-card-slot { bottom: calc(68% + 10px); }
.map-home.sheet-open .locate-btn { bottom: calc(68% + 16px); }

.pin-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
.pin-card-close {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.92); font-size: 18px; font-weight: 700;
  color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.pin-card-cover { height: 110px; background: #ddd; }
.pin-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.pin-card-body { padding: 12px 14px 14px; }
.pin-card-body h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.02em; }
.pin-meta { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.example-chip {
  display: inline-block; background: #FFF8E8; color: #8A5A00;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  margin-bottom: 6px;
}
.pin-card .btn-row { margin-top: 12px; }

/* Yard sale gallery */
.yard-gallery {
  display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: 100px;
  gap: 8px; padding: 0 14px 8px;
}
.yard-shot {
  border-radius: 14px; overflow: hidden; padding: 0; background: #ddd;
  border: 1px solid rgba(0,0,0,0.04);
}
.yard-shot:first-child { grid-row: span 2; min-height: 208px; }
.yard-shot img { width: 100%; height: 100%; object-fit: cover; }

.yard-upload-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}
.yard-upload-thumb {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden; position: relative;
  border: 1px solid var(--line);
}
.yard-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yard-upload-thumb button {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; font-size: 14px;
}
.yard-upload-add {
  width: 72px; height: 72px; border-radius: 12px;
  border: 1.5px dashed #FFC7B0; background: var(--brand-soft);
  display: grid; place-items: center; color: var(--brand-dark);
  font-weight: 750; font-size: 12px; cursor: pointer;
}

/* Opt-in toggle */
.toggle-card {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border: 1.5px solid #FFD0BE; border-radius: 16px;
  padding: 14px; margin-bottom: 14px;
  background-image: linear-gradient(#fff, #FFF8F4);
}
.toggle-card strong { display: block; font-size: 14px; margin-bottom: 2px; }
.toggle-card p { margin: 0; font-size: 12px; color: var(--muted); font-weight: 550; line-height: 1.4; }
.toggle-card .switch {
  position: relative; width: 48px; height: 28px; flex-shrink: 0;
}
.toggle-card .switch input { opacity: 0; width: 0; height: 0; }
.toggle-card .slider {
  position: absolute; inset: 0; background: #D1D1D6; border-radius: 999px;
  transition: .2s;
}
.toggle-card .slider::before {
  content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-card .switch input:checked + .slider { background: var(--brand); }
.toggle-card .switch input:checked + .slider::before { transform: translateX(20px); }

.hint { font-size: 12.5px; color: var(--muted); font-weight: 550; margin: 0 0 8px; }
.drop-map-wrap {
  height: 180px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #e8e4df;
}
.drop-map { width: 100%; height: 100%; }
.pin-confirm {
  display: flex; align-items: center; font-size: 13px; font-weight: 750;
  color: var(--ok); padding-inline: 4px;
}

.auth .switch-text { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.auth .switch-text a { color: var(--brand-dark); font-weight: 750; }

/* Sticky CTA button text can wrap */
.sticky-cta .btn { font-size: 13px; padding: 12px 10px; text-align: center; line-height: 1.2; }

@media (min-width: 960px) {
  .map-home { min-height: calc(100vh - 64px); border-radius: 0 0 28px 28px; }
  .pin-card-slot { max-width: 360px; left: 16px; right: auto; width: calc(100% - 32px); }
  .locate-btn { bottom: 230px; }
}

/* ===== Shop Online ===== */
.shop-hero { padding: 16px 16px 4px; }
.shop-hero h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.03em; }
.shop-hero p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 550; line-height: 1.45; }
.shop-list { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 8px; }
.shop-card {
  display: flex; gap: 12px; align-items: stretch;
  background: #fff; border-radius: 16px; padding: 10px;
  border: 1px solid rgba(0,0,0,0.04); box-shadow: var(--shadow-sm);
}
.shop-card img {
  width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #eee;
}
.shop-card strong { display: block; font-size: 14.5px; letter-spacing: -0.01em; margin-bottom: 4px; }
.shop-price { display: block; font-weight: 800; color: var(--brand-dark); font-size: 15px; }
.shop-price em { font-style: normal; font-weight: 650; color: var(--muted); font-size: 12px; }
.shop-card .muted { display: block; font-size: 12px; color: var(--muted); font-weight: 550; margin-top: 3px; }
.ship-pill {
  display: inline-block; margin-top: 6px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 11px; font-weight: 750; padding: 4px 8px; border-radius: 999px;
}
.ship-badge {
  position: absolute; right: 8px; top: 8px;
  background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 750; padding: 3px 7px; border-radius: 999px;
}
.item-card .price small { font-weight: 650; color: var(--muted); font-size: 11px; }
.tag-ship { background: var(--brand-soft); border-color: #FFD0BE; color: var(--brand-dark); }

/* Sale type picks */
.type-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-pick {
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 10px 8px; text-align: center; cursor: pointer;
}
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick strong { font-size: 13px; }
.type-pick span { font-size: 11px; color: var(--muted); font-weight: 600; }
.type-pick.on {
  border-color: #FFB899; background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(255,107,61,0.12);
}
.type-pick.on strong { color: var(--brand-dark); }
.plan-link {
  display: block; margin: -4px 0 14px; font-size: 13px; font-weight: 750; color: var(--brand-dark);
}
.info-callout {
  background: #F0F7FF; border: 1px solid #D6E8FF; color: #1E4B7A;
  border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: 14px; line-height: 1.4;
}

/* Seller plans */
.plans { display: flex; flex-direction: column; gap: 12px; }
.plan-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: var(--shadow-sm);
}
.plan-badge {
  display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
  font-size: 11px; font-weight: 750; padding: 4px 8px; border-radius: 999px; margin-bottom: 8px;
}
.plan-card h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.02em; }
.plan-price {
  font-size: 15px; font-weight: 800; color: var(--brand-dark); margin-bottom: 8px;
}
.plan-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; font-weight: 550; }

/* Disclaimer + terms */
.disclaimer {
  margin: 12px 16px 8px; padding: 10px 12px;
  background: #F4F4F5; border-radius: 12px;
  font-size: 11.5px; color: #636366; font-weight: 550; line-height: 1.45;
}
.disclaimer a { color: var(--brand-dark); font-weight: 750; }
.terms p { color: var(--ink-2); line-height: 1.55; font-size: 14.5px; }
.terms ul { color: var(--ink-2); line-height: 1.55; font-size: 14px; padding-left: 18px; }


/* Wordmark */
.brand { gap: 8px; align-items: center; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: transparent; color: var(--brand);
  display: grid; place-items: center; padding: 0;
  box-shadow: none;
}
.brand-mark-svg { display: block; color: var(--brand); }
.brand-word {
  font-weight: 800; letter-spacing: -0.03em; font-size: 15.5px;
  background: linear-gradient(180deg, var(--ink) 0%, #3A3A3C 100%);
  -webkit-background-clip: text; background-clip: text;
}
.brand-word::after {
  content: ""; /* keep compact */
}
.logo-lg {
  width: 64px; height: 64px; border-radius: 18px;
  background: transparent; color: var(--brand);
  display: grid; place-items: center; margin: 0 auto 12px;
  box-shadow: none; font-size: 0;
}
.logo-lg .brand-mark-svg { width: 64px; height: 64px; }
@media (max-width: 420px) {
  .brand-word { font-size: 14px; max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.map-brand-float {
  position: absolute; z-index: 900; top: 42px; left: 12px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px);
  border-radius: 14px; padding: 6px 10px 6px 6px;
  box-shadow: 0 4px 16px rgba(28,28,30,0.14);
  max-width: calc(100% - 24px);
}
.map-brand-float .brand-word { font-size: 13.5px; }
.map-search-float { top: 88px !important; }

/* ---- Inventory search + most-active areas (same coral system) ---- */
.map-search-float.open .search-suggest { display: block; }
.search-suggest {
  display: none;
  margin-top: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 12px 12px 10px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
}
.suggest-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.suggest-head strong { font-size: 14px; letter-spacing: -0.01em; }
.suggest-sub {
  margin: 4px 0 10px; font-size: 12px; color: var(--muted); font-weight: 550; line-height: 1.35;
}
.area-heat-list { display: flex; flex-direction: column; gap: 6px; }
.area-heat-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; min-height: 44px;
  padding: 8px 10px; border-radius: 12px;
  background: var(--bg); border: 1px solid transparent;
}
.area-heat-row.on, .area-heat-row:active {
  background: var(--brand-soft); border-color: #FFD0BE;
}
.area-rank {
  width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--brand-dark);
  background: #fff; border: 1px solid #FFD0BE; flex-shrink: 0;
}
.area-meta { flex: 1; min-width: 0; }
.area-meta strong { display: block; font-size: 13.5px; }
.area-meta em { font-style: normal; color: var(--muted); font-weight: 650; margin-left: 4px; }
.area-meta span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 550; margin-top: 2px; }
.area-count {
  font-size: 11px; color: var(--ink-2); font-weight: 650; text-align: right; flex-shrink: 0;
}
.area-count b { display: block; font-size: 16px; color: var(--brand-dark); line-height: 1.1; }
.suggest-divider {
  margin: 12px 0 6px; text-align: center; font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.suggest-tip { margin: 0; font-size: 12px; color: var(--ink-2); font-weight: 550; line-height: 1.45; }
.text-chip {
  display: inline-flex; align-items: center; min-height: 28px;
  padding: 2px 8px; margin: 0 2px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12px; font-weight: 750; border: 1px solid #FFD0BE;
}

.inv-search-block { padding: 10px 14px 4px; }
.inv-search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; min-height: 44px; box-shadow: var(--shadow-sm);
}
.inv-search input {
  border: 0; outline: 0; width: 100%; background: transparent;
  font-size: 15px; font-weight: 550;
}
.search-hint {
  margin: 4px 2px 0; font-size: 11px; color: var(--muted); font-weight: 550;
}
.inv-results {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 14px 12px;
}
.inv-result-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border-radius: var(--radius);
  padding: 10px; border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-sm); min-height: 44px;
}
.inv-result-card img {
  width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.inv-result-body { flex: 1; min-width: 0; }
.inv-result-body strong { display: block; font-size: 14.5px; letter-spacing: -0.01em; }
.inv-price { display: block; font-weight: 800; color: var(--brand-dark); font-size: 15px; margin-top: 2px; }
.inv-price em { font-style: normal; font-weight: 650; color: var(--muted); font-size: 12px; }
.inv-sale { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 550; margin-top: 3px; }
.inv-sale u { text-decoration: none; color: var(--brand-dark); font-weight: 750; }
.inv-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mini-tag, .tag-hash {
  font-size: 11px; font-weight: 700; color: var(--brand-dark);
  background: var(--brand-soft); border-radius: 999px; padding: 3px 8px;
}
.empty-state {
  text-align: center; padding: 28px 16px; background: #fff;
  border-radius: var(--radius); border: 1px dashed var(--line);
}
.empty-state strong { display: block; font-size: 16px; margin-bottom: 6px; }
.empty-state p { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 550; }

/* Theme hook: Option 1 coral is default :root — other themes override --* vars */
