@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
    --bg: #f5f5f5;
    --surface: #FFFFFF;
    --soft: #f0f0f0;
    --ink: #2B2B2B;
    --ink-2: #2B2B2B;
    --muted: #606060;
    --muted-2: #888888;
    --line: #E5E5E5;
    --line-2: #d0d0d0;
    --primary: #ff9b00;
    --primary-hover: #e68900;
    --primary-soft: #fff3d6;
    --primary-soft-2: #fffae8;
    --success: #1F7A4A;
    --success-soft: #E5F2EB;
    --danger: #B2331F;

    --r-sm: 8px;
    --r: 14px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-2xl: 36px;

    --shadow-sm: 0 1px 0 rgba(14,14,14,.04);
    --shadow: 0 1px 2px rgba(14,14,14,.05), 0 8px 24px -12px rgba(14,14,14,.12);
    --shadow-lg: 0 1px 2px rgba(14,14,14,.06), 0 22px 60px -22px rgba(14,14,14,.22);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: 'Montserrat', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  body { font-size: 15px; line-height: 1.5; }
  img { max-width: 100%; display: block; }
  .serif { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; }
  .mono { font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace; letter-spacing: .01em; }
  .muted { color: var(--muted); }
  .small { font-size: 13px; }
  .tiny { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

  /* ---------- App nav ---------- */
  .app-nav {
    display: flex; align-items: center; gap: 28px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
  .app-nav .logo { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #2B2B2B; }
  
  .app-nav nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
  .app-nav nav a { color: inherit; text-decoration: none; padding: 6px 0; }
  .app-nav nav a.active { color: var(--ink); position: relative; }
  .app-nav nav a.active::after { content:""; position:absolute; left:0; right:0; bottom: -6px; height: 2px; background: var(--primary); border-radius: 2px;}
  .app-nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

  /* ---------- Buttons ---------- */
  .btn {
    --bg: var(--ink); --fg: var(--bg);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 999px;
    border: 1px solid transparent; background: var(--ink); color: white;
    font: 500 14px 'Montserrat', sans-serif; cursor: pointer; transition: .12s;
    text-decoration: none;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn.primary { background: var(--primary); color: var(--ink); border-color: rgba(0,0,0,.06); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 8px 18px -8px rgba(255,176,0,.7); }
  .btn.primary:hover { background: var(--primary-hover); }
  .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn.ghost:hover { background: var(--soft); }
  .btn.dark { background: var(--ink); color: white; }
  .btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
  .btn.lg { height: 50px; padding: 0 22px; font-size: 15px; }
  .btn.icon { width: 42px; padding: 0; }

  /* ---------- Chips / Pills ---------- */
  .chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: var(--ink-2);
    font-size: 13px; cursor: pointer; transition: .12s;
  }
  .chip:hover { border-color: var(--ink); }
  .chip.active { background: var(--ink); border-color: var(--ink); color: white; }
  .chip.amber { background: var(--primary-soft); border-color: var(--primary); color: #6E4A00; }
  .chip.success { background: var(--success-soft); border-color: #B6D9C5; color: var(--success); }
  .chip.dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; opacity:.7; }

  /* ---------- Cards ---------- */
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
  .card.flat { box-shadow: var(--shadow-sm); }
  .card.hover { transition: .15s; }
  .card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

  /* ---------- Image placeholders ---------- */
  .ph {
    position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--soft);
  }
  .ph::before {
    content:""; position:absolute; inset:0;
    background:
      radial-gradient(120% 80% at 20% 10%, rgba(255,176,0,.18), transparent 60%),
      linear-gradient(140deg, #2a2a28 0%, #4a463c 45%, #88826f 100%);
  }
  .ph::after {
    content: attr(data-label); position: absolute; left: 14px; bottom: 12px;
    font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .08em;
    color: rgba(255,255,255,.85); text-transform: uppercase;
  }
  .ph.warm::before { background:
    radial-gradient(120% 80% at 80% 10%, rgba(255,176,0,.35), transparent 60%),
    linear-gradient(160deg, #4a3a20 0%, #6f5630 50%, #c98e3e 100%);
  }
  .ph.cool::before { background:
    radial-gradient(120% 80% at 30% 80%, rgba(255,176,0,.18), transparent 60%),
    linear-gradient(140deg, #1d2b3a 0%, #2c4255 50%, #5f7287 100%);
  }
  .ph.sage::before { background:
    radial-gradient(120% 80% at 70% 30%, rgba(255,176,0,.18), transparent 60%),
    linear-gradient(140deg, #2c3a2c 0%, #495a45 50%, #95a487 100%);
  }
  .ph.clay::before { background:
    radial-gradient(120% 80% at 30% 30%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(140deg, #3a201d 0%, #6e3a2c 50%, #c97a55 100%);
  }
  .ph.dusk::before { background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,176,0,.32), transparent 60%),
    linear-gradient(180deg, #1a1a1f 0%, #2a2a3a 50%, #50506a 100%);
  }

  /* ---------- Listing card ---------- */
  .listing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: .15s; }
  .listing:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
  .listing .body { padding: 12px 14px 14px; }
  .listing h4 { margin: 0; font-size: 15px; font-weight: 500; }
  .listing .meta { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
  .listing .listing-reach { font: 500 11px ui-monospace, monospace; color: var(--muted-2); margin: 5px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .listing .listing-reach .lsm-tag { display: inline-block; background: var(--primary-soft); color: var(--ink); border-radius: 4px; padding: 1px 5px; font-size: 10px; margin-left: 4px; }
  .listing .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
  .listing .price { font-family: 'Instrument Serif'; font-size: 22px; }
  .listing .price small { font-family: ui-monospace, monospace; font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-left: 4px; }
  .listing .badge { position: absolute; top: 10px; left: 10px; }
  .listing .save { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
  .listing .ph-wrap { position: relative; }

  /* ---------- Section ---------- */
  .section { padding: 64px 48px; }
  .section h2.serif { font-family: 'Instrument Serif'; font-size: 44px; line-height: 1; letter-spacing: -.02em; margin: 0 0 6px; }
  .section .lede { color: var(--muted); font-size: 16px; margin: 0; max-width: 60ch; }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }

  /* ---------- Hero ---------- */
  .hero { padding: 56px 48px 36px; position: relative; overflow: hidden; }
  .hero .eyebrow { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
  .hero .eyebrow::before { content:""; width:24px; height:1px; background: var(--ink); }
  .hero h1 { font-family: 'Instrument Serif'; font-size: 108px; line-height: .92; letter-spacing: -.03em; margin: 16px 0 22px; max-width: 14ch; font-weight: 400; }
  .hero h1 em { font-style: italic; color: var(--primary); }
  .hero .sub { font-size: 18px; max-width: 56ch; color: var(--ink-2); margin: 0 0 28px; }

  /* ── Hero search bar ── */
  .search {
    display: flex;
    align-items: stretch;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 20px;
    padding: 6px;
    gap: 4px;
    box-shadow: 0 4px 24px -6px rgba(0,0,0,.10);
    max-width: 900px;
  }
  .s-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    cursor: text;
    transition: background .12s, border-color .12s;
    min-width: 0;
  }
  .s-field:hover { background: var(--soft); }
  .s-field:focus-within {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
  }
  .s-icon {
    color: var(--muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .s-field:focus-within .s-icon { color: var(--primary); }
  .s-body { min-width: 0; flex: 1; }
  .s-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
    cursor: text;
  }
  .s-input {
    all: unset;
    display: block;
    width: 100%;
    font: 500 14px 'Montserrat', system-ui, sans-serif;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .s-input::placeholder { color: var(--muted-2); font-weight: 400; }
  .s-select { cursor: pointer; }
  .s-divider {
    width: 1px;
    background: var(--line);
    align-self: stretch;
    margin: 8px 0;
    flex-shrink: 0;
  }
  .search .go {
    flex-shrink: 0;
    height: 52px; width: 52px;
    border: none; border-radius: 14px;
    background: var(--primary);
    color: var(--ink);
    display: grid; place-items: center;
    box-shadow: 0 6px 18px -6px rgba(255,155,0,.6);
    cursor: pointer;
    transition: background .12s, transform .12s;
    align-self: center;
  }
  .search .go:hover { background: var(--primary-hover); transform: scale(1.04); }

  .hero .stats { display: flex; gap: 40px; margin-top: 28px; }
  .hero .stats .stat .n { font-family: 'Instrument Serif'; font-size: 36px; line-height: 1; }
  .hero .stats .stat .l { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

  /* hero side card */
  .hero-side { position: absolute; right: 48px; top: 80px; width: 360px; }
  .hero-side .ticker {
    background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: 14px 16px;
    font-family: ui-monospace, monospace; font-size: 12px; display: flex; align-items: center; gap: 10px;
  }
  .hero-side .ticker .live { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 1.6s infinite; }
  @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity: .3; } }
  .hero-side .featured {
    margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  }
  .hero-side .featured .ph { aspect-ratio: 4/3; }
  .hero-side .featured .body { padding: 14px 16px 16px; }

  /* ---------- Category strip ---------- */
  .cats-wrap { position: relative; margin: 0 -48px; }
  .cats {
    display: flex; gap: 14px;
    overflow-x: auto; overflow-y: hidden;
    padding: 4px 48px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
    scroll-behavior: smooth;
  }
  .cats::-webkit-scrollbar { height: 6px; }
  .cats::-webkit-scrollbar-track { background: transparent; }
  .cats::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
  .cats::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }
  .cats-wrap::before, .cats-wrap::after {
    content:""; position: absolute; top: 0; bottom: 16px; width: 48px; pointer-events: none; z-index: 2;
  }
  .cats-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .cats-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
  .cat-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow); cursor: pointer; z-index: 3;
    display: grid; place-items: center; color: var(--ink);
    transition: .12s;
  }
  .cat-nav:hover { background: var(--ink); color: white; border-color: var(--ink); }
  .cat-nav.prev { left: 12px; }
  .cat-nav.next { right: 12px; }
  .cat { flex: 0 0 220px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; position: relative; min-height: 150px; cursor: pointer; transition: .15s; }
  .cat:hover { border-color: var(--ink); transform: translateY(-2px); }
  .cat .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); display: grid; place-items: center; margin-bottom: 14px; color: #6E4A00; }
  .cat h4 { margin: 0; font-size: 15px; font-weight: 500; }
  .cat .count { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
  .cat .arrow { position: absolute; right: 14px; bottom: 14px; opacity: .35; transition: .15s; }
  .cat:hover .arrow { opacity: 1; transform: translate(2px,-2px); }

  /* ---------- Inventory grid ---------- */
  .inv-tabs { display: flex; gap: 6px; }
  .inv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

  /* ---------- How it works ---------- */
  .hiw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: relative; }
  .step .num { font-family: 'Instrument Serif'; font-size: 56px; line-height: .9; color: var(--primary); }
  .step h4 { margin: 6px 0 6px; font-size: 18px; font-weight: 500; }
  .step p { margin: 0; font-size: 14px; color: var(--muted); }

  /* ---------- Footer ---------- */
  .foot { background: var(--ink); color: var(--bg); padding: 48px; }
  .foot .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid #2a2a28; }
  .foot h5 { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; font-weight: 500; }
  .foot a { display: block; color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; padding: 4px 0; }
  .foot .logo { font-family: 'Instrument Serif'; font-size: 36px; letter-spacing: -.02em; }
  .foot .logo b { color: var(--primary); }
  .foot .legal { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted-2); }

  /* ---------- Discover ---------- */
  .toolbar { display: flex; align-items: center; gap: 12px; padding: 18px 32px; border-bottom: 1px solid var(--line); }
  .toolbar .search-mini {
    flex: 1; max-width: 520px;
    height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    display: flex; align-items: center; padding: 0 16px; gap: 10px;
  }
  .toolbar .search-mini input { all: unset; flex: 1; font: 400 14px 'Montserrat'; }
  .layout-toggle { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
  .layout-toggle button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font: 500 13px 'Montserrat'; cursor: pointer; color: var(--muted); }
  .layout-toggle button.active { background: var(--ink); color: white; }

  .discover-grid { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: 800px; }
  .filters { border-right: 1px solid var(--line); padding: 24px 24px 24px 32px; }
  .filters h5 { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; font-weight: 500; }
  .filters h5:first-child { margin-top: 0; }
  .filter-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 14px; }
  .filter-row .count { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); }
  .checkbox { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); display: inline-grid; place-items: center; }
  .checkbox.on { background: var(--ink); border-color: var(--ink); }
  .checkbox.on::after { content:""; width: 8px; height: 4px; border-left: 1.5px solid white; border-bottom: 1.5px solid white; transform: rotate(-45deg) translate(1px,-1px); }
  .range { height: 4px; background: var(--line); border-radius: 2px; position: relative; margin: 14px 0 6px; }
  .range .track { position: absolute; left: 15%; right: 35%; top: 0; bottom: 0; background: var(--primary); border-radius: 2px; }
  .range .handle { position: absolute; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: white; border: 2px solid var(--ink); }
  .range .h1 { left: 15%; transform: translateX(-50%); }
  .range .h2 { left: 65%; transform: translateX(-50%); }
  .price-row { display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }

  .results { padding: 24px 32px; }
  .results-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
  .results-head h3 { margin: 0; font-family: 'Instrument Serif'; font-size: 28px; }
  .results-head .sort { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
  .results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

  /* ---------- Map screen ---------- */
  .map-screen { position: relative; height: 800px; display: grid; grid-template-columns: 260px 1fr 380px; }
  .map-filters { border-right: 1px solid var(--line); padding: 24px; overflow-y: auto; background: var(--surface); }
  .map-filters h5 { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; font-weight: 500; }
  .map-filters h5:first-child { margin-top: 0; }
  .map-filters .filter-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 14px; }
  .map-filters .filter-row .count { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); }
  .map-filters select {
    all: unset; width: 100%; padding: 8px 10px; border: 1px solid var(--line);
    border-radius: var(--r-sm); font: 400 13px 'Montserrat', sans-serif;
    color: var(--ink); background: var(--soft); cursor: pointer;
    background-image: 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='%23606060' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    padding-right: 28px; margin-bottom: 6px; box-sizing: border-box;
  }
  .map-filters select:focus { border-color: var(--primary); outline: none; }
  .map-filters .range { height: 4px; background: var(--line); border-radius: 2px; position: relative; margin: 14px 0 6px; }
  .map-filters .range .track { position: absolute; left: 10%; right: 30%; top: 0; bottom: 0; background: var(--primary); border-radius: 2px; }
  .map-filters .range .handle { position: absolute; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: white; border: 2px solid var(--ink); cursor: grab; }
  .map-filters .range .h1 { left: 10%; transform: translateX(-50%); }
  .map-filters .range .h2 { left: 70%; transform: translateX(-50%); }
  .map-filters .price-row { display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
  .map-filters .chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
  .map-filters .apply-btn { width: 100%; margin-top: 20px; }
  .map-canvas {
    position: relative; overflow: hidden;
    background: #e8e0d8;
  }
  .map-canvas iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
  /* hide old fake road/land elements if any remain */
  .map-canvas .road, .map-canvas .land { display: none; }
  .pin {
    position: absolute; transform: translate(-50%, -100%);
    cursor: pointer;
  }
  .pin .body {
    background: var(--primary); color: var(--ink);
    font: 600 12px ui-monospace, monospace; padding: 6px 10px; border-radius: 999px;
    box-shadow: 0 8px 18px -6px rgba(255,176,0,.6), 0 1px 0 rgba(0,0,0,.05);
    display: inline-flex; align-items: center; gap: 6px;
    border: 2px solid white;
    position: relative;
    white-space: nowrap;
  }
  .pin .body::after {
    content:""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px; background: var(--primary); border-right: 2px solid white; border-bottom: 2px solid white;
  }
  .pin.dark .body { background: var(--ink); color: white; }
  .pin.dark .body::after { background: var(--ink); }
  .pin.dark .body { box-shadow: 0 8px 18px -6px rgba(14,14,14,.5); }
  .pin.small .body { padding: 4px 8px; font-size: 11px; }

  /* ---------- Map pins — .mp system ---------- */
  .mp {
    position: absolute; transform: translate(-50%, -100%);
    cursor: pointer; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
  }
  .mp-bubble {
    background: white; color: var(--ink);
    font: 600 12px ui-monospace, monospace;
    padding: 5px 10px; border-radius: 999px;
    border: 1.5px solid var(--line); box-shadow: var(--shadow);
    white-space: nowrap; transition: transform .12s, box-shadow .12s;
  }
  .mp-bubble.active {
    background: var(--primary); border-color: var(--primary); color: var(--ink);
    box-shadow: 0 6px 18px -4px rgba(255,155,0,.55), 0 1px 0 rgba(0,0,0,.06);
  }
  .mp-bubble.dark {
    background: var(--ink); border-color: var(--ink); color: white;
    box-shadow: 0 6px 18px -4px rgba(14,14,14,.45);
  }
  .mp-bubble.sm { font-size: 10px; padding: 3px 7px; }
  .mp-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: white; border: 2px solid var(--line-2);
    box-shadow: var(--shadow-sm); transition: transform .12s;
  }
  .mp-dot.active { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,155,0,.25); }
  .mp-dot.dark   { background: var(--ink); border-color: var(--ink); }
  .mp-dot.sm     { width: 8px; height: 8px; }
  .mp:hover .mp-bubble { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .mp:hover .mp-dot    { transform: scale(1.25); }

  /* ---------- Map popup card ---------- */
  .mp-popup {
    position: absolute;
    transform: translate(-50%, calc(-100% - 8px));
    width: 220px;
    background: var(--surface); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); overflow: hidden; z-index: 10;
    display: none;
  }
  .mp-popup.visible { display: block; }
  .mp-popup-close {
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,0,0,.4); color: white;
    border: none; cursor: pointer; font-size: 11px;
    display: grid; place-items: center; z-index: 1; line-height: 1;
  }
  .mp-popup-close:hover { background: rgba(0,0,0,.65); }
  .mp-popup-body { padding: 12px 14px 14px; }
  .mp-popup-meta {
    font: 500 9px ui-monospace, monospace; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
  }
  .mp-popup-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.25; }
  .mp-popup-sub   { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
  .mp-popup-reach { font: 500 10px ui-monospace, monospace; color: var(--muted-2); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
  .mp-popup-reach .lsm-tag { background: var(--primary-soft); color: var(--ink); border-radius: 4px; padding: 1px 5px; }
  .mp-popup-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .mp-popup-price  { font-size: 16px; font-weight: 700; }
  .mp-popup-price small { font-size: 11px; font-weight: 400; color: var(--muted); }

  .map-overlay {
    position: absolute; left: 24px; top: 24px; right: 24px;
    display: flex; justify-content: space-between; gap: 12px; pointer-events: none;
  }
  .map-overlay > * { pointer-events: auto; }
  .map-search {
    background: var(--surface); border-radius: 999px; padding: 8px 16px; border: 1px solid var(--line);
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; height: 44px;
  }
  .map-chips { display: flex; gap: 6px; background: var(--surface); padding: 6px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .map-bottom { position: absolute; left: 24px; bottom: 24px; right: 24px; display: flex; justify-content: space-between; gap: 12px; pointer-events:none; }
  .map-bottom > * { pointer-events: auto; }

  .map-cart { background: var(--surface); border-left: 1px solid var(--line); padding: 24px; overflow: auto; }
  .map-cart h3 { font-family: 'Instrument Serif'; font-size: 28px; margin: 0 0 4px; }
  .cart-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-row .ph { width: 70px; height: 70px; aspect-ratio: 1; border-radius: 10px; flex-shrink: 0; }
  .cart-row h4 { margin: 0; font-size: 14px; font-weight: 500; }
  .cart-row .meta { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); margin-top: 2px; letter-spacing: .04em; text-transform: uppercase; }
  .cart-row .price { font-family: 'Instrument Serif'; font-size: 18px; margin-top: 4px; }
  .cart-summary { background: var(--soft); border-radius: var(--r); padding: 16px; margin-top: 18px; }
  .cart-summary .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
  .cart-summary .row.total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; font-size: 18px; }
  .cart-summary .row.total .v { font-family: 'Instrument Serif'; font-size: 24px; }

  /* ---------- Builder ---------- */
  .builder { padding: 36px 48px; }
  .stepper { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
  .stepper .step-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
  .stepper .step-item.done, .stepper .step-item.current { color: var(--ink); }
  .stepper .n {
    width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
    display: grid; place-items: center; font-family: ui-monospace, monospace; font-size: 12px; background: var(--surface);
  }
  .stepper .done .n { background: var(--ink); border-color: var(--ink); color: white; }
  .stepper .current .n { background: var(--primary); border-color: var(--primary); color: var(--ink); }
  .stepper .line { flex: 0 0 28px; height: 1px; background: var(--line); }

  .builder-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
  .builder-main h2 { font-family: 'Instrument Serif'; font-size: 52px; line-height: 1; letter-spacing: -.02em; margin: 0 0 8px; }
  .builder-main .sub { color: var(--muted); margin: 0 0 28px; }

  .plan-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
  .plan-row { display: grid; grid-template-columns: 64px 1.6fr .8fr .8fr 1fr 80px; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .plan-row:last-child { border-bottom: 0; }
  .plan-row.header { background: var(--soft); font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 18px; }
  .plan-row .ph-thumb { width: 56px; height: 42px; border-radius: 8px; }
  .plan-row h5 { margin: 0; font-size: 14px; font-weight: 500; }
  .plan-row .meta { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); margin-top: 2px; }
  .plan-row .price { font-family: 'Instrument Serif'; font-size: 18px; text-align: right; }
  .plan-row .actions { display: flex; gap: 6px; justify-content: flex-end; }
  .icon-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
  .icon-btn:hover { color: var(--ink); border-color: var(--ink); }

  .add-row { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; background: var(--primary-soft-2); border-top: 1px solid var(--line); }

  .builder-side { display: flex; flex-direction: column; gap: 18px; }
  .summary-card { background: var(--ink); color: white; border-radius: var(--r-lg); padding: 24px; }
  .summary-card .total-l { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
  .summary-card .total-v { font-family: 'Instrument Serif'; font-size: 48px; line-height: 1; letter-spacing: -.02em; margin-top: 4px; }
  .summary-card .total-v em { color: var(--primary); font-style: normal; }
  .summary-card .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
  .summary-card .stat .l { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
  .summary-card .stat .v { font-family: 'Instrument Serif'; font-size: 22px; margin-top: 2px; }

  .ai-suggest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
  .ai-suggest .head { display: flex; align-items: center; gap: 10px; }
  .ai-suggest .sparkle { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #ff8a00); display: grid; place-items: center; }

  /* ---------- AI assistant screen ---------- */
  .ai-grid { display: grid; grid-template-columns: 1fr 380px; min-height: 800px; }
  .chat { padding: 32px 40px; display: flex; flex-direction: column; }
  .chat-header { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #ff8a00); display: grid; place-items: center; }
  .chat-header h3 { margin: 0; font-family: 'Instrument Serif'; font-size: 24px; }
  .chat-header .status { font-family: ui-monospace, monospace; font-size: 11px; color: var(--success); display: flex; align-items: center; gap: 6px; }
  .chat-header .status::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
  .chat-body { flex: 1; padding: 24px 0; display: flex; flex-direction: column; gap: 18px; overflow: auto; }
  .msg { max-width: 76%; }
  .msg.ai { align-self: flex-start; }
  .msg.you { align-self: flex-end; }
  .bubble {
    padding: 12px 16px; border-radius: 18px;
    background: var(--soft); color: var(--ink); font-size: 14px; line-height: 1.5;
  }
  .msg.you .bubble { background: var(--ink); color: white; border-bottom-right-radius: 6px; }
  .msg.ai .bubble { border-bottom-left-radius: 6px; }
  .msg .meta { font-family: ui-monospace, monospace; font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: .08em; text-transform: uppercase; padding: 0 8px; }
  .msg.you .meta { text-align: right; }

  .plan-card-ai {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
    box-shadow: var(--shadow);
  }
  .plan-card-ai h4 { margin: 0 0 14px; font-family: 'Instrument Serif'; font-size: 22px; }
  .plan-card-ai .items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .plan-item { padding: 12px; background: var(--soft); border-radius: 10px; }
  .plan-item h6 { margin: 0; font-size: 13px; font-weight: 500; }
  .plan-item .meta { font-family: ui-monospace, monospace; font-size: 10px; color: var(--muted); margin-top: 2px; }
  .plan-item .p { font-family: 'Instrument Serif'; font-size: 18px; margin-top: 6px; }

  .composer {
    margin-top: 18px; padding: 8px 8px 8px 18px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow);
  }
  .composer input { all: unset; flex: 1; font: 400 15px 'Montserrat'; }

  .ai-side { background: var(--soft); border-left: 1px solid var(--line); padding: 32px; }

  /* ---------- Listing detail ---------- */
  .listing-page { padding: 32px 48px; }
  .breadcrumb { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
  .listing-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 24px; }
  .listing-head h1 { font-family: 'Instrument Serif'; font-size: 56px; line-height: 1; letter-spacing: -.02em; margin: 0 0 8px; }
  .listing-head .meta { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); display: flex; gap: 14px; }
  .gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 460px; border-radius: var(--r-lg); overflow: hidden; }
  .gallery .ph { aspect-ratio: auto; height: 100%; }
  .gallery .a { grid-row: 1 / 3; }
  .listing-content { display: grid; grid-template-columns: 1fr 380px; gap: 48px; margin-top: 36px; }
  .listing-content h3 { font-family: 'Instrument Serif'; font-size: 28px; margin: 0 0 12px; }
  .listing-content p { color: var(--ink-2); }
  .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
  .specs.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .spec { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .spec .l { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
  .spec .v { font-family: 'Instrument Serif'; font-size: 24px; margin-top: 4px; }
  .spec .note { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
  .price-breakdown { background: var(--soft); border-radius: var(--r); padding: 14px 16px; margin: 12px 0; }
  .price-breakdown .prow { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
  .price-breakdown .prow .pl { color: var(--muted); }
  .price-breakdown .prow.once .pl::after { content: " (once)"; font-size: 10px; }
  .price-breakdown .prow.grand { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; font-weight: 600; font-size: 14px; }
  .book-card { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
  .book-card .price-row { display: flex; align-items: baseline; gap: 6px; }
  .book-card .price { font-family: 'Instrument Serif'; font-size: 40px; line-height: 1; }
  .book-card .price-unit { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted); }
  .book-card .field { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-top: 10px; }
  .book-card .field .l { font-family: ui-monospace, monospace; font-size: 10px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
  .book-card .field .v { font-size: 14px; margin-top: 2px; }
  .book-card .totals { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .book-card .totals .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
  .book-card .totals .row.total { font-size: 18px; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
  .book-card .totals .row.total .v { font-family: 'Instrument Serif'; font-size: 24px; }

  /* ---------- Cart / Checkout ---------- */
  .cart-page { padding: 32px 48px; }
  .cart-page > h2 { font-family: 'Instrument Serif'; font-size: 48px; letter-spacing: -.02em; margin: 0 0 4px; }
  .cart-page > p  { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
  .cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }

  .cart-actions { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
  .act-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 13px 'Montserrat', sans-serif; cursor: pointer; color: var(--ink); transition: .12s; }
  .act-btn:hover { background: var(--soft); }
  .act-btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
  .act-btn.danger:hover { background: #fdf0ee; }

  .cart-category { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px; background: var(--surface); }
  .cat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--soft); border-bottom: 1px solid var(--line); }
  .cat-header label { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; cursor: pointer; }
  .cat-header input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
  .cat-select-all { font: 500 11px ui-monospace, monospace; color: var(--primary); cursor: pointer; text-decoration: underline; white-space: nowrap; }
  .cat-sub { padding: 7px 18px; background: var(--primary-soft); border-bottom: 1px solid var(--line); font: 600 10px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
  .cat-sub .ct { color: var(--muted); font-weight: 400; }

  .cart-item { display: grid; grid-template-columns: 20px 100px 1fr; gap: 16px; align-items: start; padding: 18px; border-bottom: 1px solid var(--line); }
  .cart-item:last-child { border-bottom: none; }
  .cart-item > input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--primary); margin-top: 3px; cursor: pointer; }
  .item-thumb { width: 100px; height: 72px; border-radius: var(--r-sm); overflow: hidden; }
  .item-thumb .ph { width: 100%; height: 100%; aspect-ratio: auto; border-radius: var(--r-sm); }
  .item-info { display: flex; flex-direction: column; gap: 4px; }
  .item-id { font: 600 10px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .item-location { font-size: 14px; font-weight: 500; line-height: 1.35; }
  .item-price { font-size: 13px; color: var(--muted); }
  .item-price strong { color: var(--ink); font-size: 14px; }
  .item-price .usd { font-size: 11px; color: var(--muted-2); margin-left: 6px; }
  .item-remove { font: 500 11px ui-monospace, monospace; color: var(--danger); cursor: pointer; text-decoration: underline; margin-top: 6px; display: inline-block; }

  .month-picker { margin-top: 10px; }
  .month-picker-label { font: 600 10px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
  .month-chips { display: flex; gap: 4px; flex-wrap: wrap; }
  .mchip { height: 27px; padding: 0 9px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: 500 11px 'Montserrat', sans-serif; cursor: pointer; display: inline-flex; align-items: center; transition: .1s; color: var(--muted); }
  .mchip.on { background: var(--ink); border-color: var(--ink); color: white; }
  .mchip:hover:not(.on) { border-color: var(--primary); color: var(--ink); }

  /* Order summary card */
  .order-summary-card { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
  .order-summary-card h3 { margin: 0 0 16px; font-size: 17px; font-weight: 700; }
  .summary-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 28px 0; line-height: 1.6; }
  .summary-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .summary-item .si-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
  .summary-item .si-detail { font: 500 10px ui-monospace, monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
  .summary-item .si-amount { font-size: 14px; font-weight: 700; margin-top: 5px; }
  .summary-item .si-amount .si-usd { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 5px; }
  .summary-totals { margin-top: 10px; }
  .summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: 13px; }
  .summary-row .sl { color: var(--muted); }
  .summary-row.grand { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; font-size: 15px; font-weight: 600; }
  .summary-row.grand .sv { font-family: 'Instrument Serif'; font-size: 26px; }

  /* ---------- Checkout step ---------- */
  .checkout-stepper { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
  .cs-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
  .cs-step .cs-num { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 600 11px ui-monospace, monospace; background: var(--surface); flex-shrink: 0; }
  .cs-step.done .cs-num { background: var(--ink); border-color: var(--ink); color: white; }
  .cs-step.done { color: var(--muted); }
  .cs-step.active { color: var(--ink); font-weight: 600; }
  .cs-step.active .cs-num { background: var(--primary); border-color: var(--primary); color: var(--ink); }
  .cs-arrow { width: 36px; height: 1px; background: var(--line); margin: 0 4px; flex-shrink: 0; }

  .checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }

  /* Auth gate */
  .auth-gate { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 28px; }
  .auth-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px; cursor: pointer; transition: .12s; background: var(--surface); }
  .auth-card:hover { border-color: var(--primary); }
  .auth-card.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(255,155,0,.12); }
  .auth-card .ac-icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--soft); display: grid; place-items: center; margin-bottom: 10px; }
  .auth-card.active .ac-icon { background: var(--primary); }
  .auth-card .ac-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
  .auth-card .ac-desc  { font-size: 12px; color: var(--muted); line-height: 1.4; }

  /* Checkout form */
  .checkout-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
  .checkout-form h4 { margin: 0 0 20px; font-size: 16px; font-weight: 700; }
  .cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .cf-grid.cols-1 { grid-template-columns: 1fr; }
  .cf-field { display: flex; flex-direction: column; gap: 5px; }
  .cf-field.span-2 { grid-column: 1 / -1; }
  .cf-field label { font: 600 11px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .cf-field label .req { color: var(--danger); margin-left: 2px; }
  .cf-field input, .cf-field textarea, .cf-field select {
    all: unset; display: block; width: 100%; box-sizing: border-box;
    padding: 10px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    font: 400 14px 'Montserrat', sans-serif; color: var(--ink);
    background: var(--soft); transition: border-color .12s;
  }
  .cf-field input:focus, .cf-field textarea:focus, .cf-field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(255,155,0,.12); }
  .cf-field textarea { min-height: 80px; resize: vertical; line-height: 1.5; cursor: text; }
  .cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--muted-2); }
  .cf-upload { border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 14px 16px; text-align: center; cursor: pointer; background: var(--soft); transition: border-color .12s; }
  .cf-upload:hover { border-color: var(--primary); }
  .cf-upload input[type=file] { display: none; }
  .cf-upload .cu-label { font-size: 13px; color: var(--muted); }
  .cf-upload .cu-label strong { color: var(--ink); }
  .cf-upload .cu-hint  { font: 500 10px ui-monospace, monospace; color: var(--muted-2); margin-top: 4px; letter-spacing: .04em; }
  .cf-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; }
  .cf-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
  .cf-check label { font-size: 13px; color: var(--muted); line-height: 1.5; }
  .cf-check label a { color: var(--ink); }
  .cf-divider { height: 1px; background: var(--line); margin: 20px 0; }
  .cf-forgot { font: 500 12px 'Montserrat', sans-serif; color: var(--primary); cursor: pointer; text-decoration: none; }

  /* Mini order summary (checkout sidebar) */
  .mini-summary-card { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
  .mini-summary-card h4 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
  .ms-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ms-item:last-of-type { border-bottom: none; }
  .ms-thumb { width: 44px; height: 36px; border-radius: 6px; flex-shrink: 0; overflow: hidden; }
  .ms-thumb .ph { width: 100%; height: 100%; aspect-ratio: auto; }
  .ms-detail { flex: 1; }
  .ms-name   { font-size: 12px; font-weight: 600; line-height: 1.3; }
  .ms-meta   { font: 500 10px ui-monospace, monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
  .ms-price  { font-size: 12px; font-weight: 700; text-align: right; flex-shrink: 0; }
  .ms-totals { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px; }
  .ms-row    { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; }
  .ms-row .ml { color: var(--muted); }
  .ms-row.grand { font-size: 14px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }

  /* ---------- Print listing ---------- */
  .pub-hero { display: flex; align-items: center; gap: 24px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  .pub-logo { width: 120px; height: 80px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; place-items: center; flex-shrink: 0; }
  .pub-logo span { font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; padding: 8px; line-height: 1.2; }
  .pub-freq { display: inline-flex; align-items: center; gap: 6px; font: 600 12px ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
  .pub-freq::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

  /* Book-form inside book-card (print/BTL) */
  .book-form { display: flex; flex-direction: column; gap: 0; }
  .book-form .bf-label { font: 600 10px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
  .book-form .bf-label:first-child { margin-top: 0; }
  .book-form select, .book-form input[type=text], .book-form input[type=date], .book-form textarea {
    all: unset; display: block; width: 100%; box-sizing: border-box;
    padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
    font: 400 13px 'Montserrat', sans-serif; color: var(--ink);
    background: var(--soft); cursor: pointer;
  }
  .book-form select:focus, .book-form input:focus, .book-form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(255,155,0,.15); }
  .book-form textarea { resize: vertical; min-height: 64px; cursor: text; line-height: 1.5; }
  .book-form .bf-toggle {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
    background: var(--soft); margin-top: 4px;
  }
  .book-form .bf-toggle input[type=checkbox] { margin-top: 2px; accent-color: var(--primary); width: 15px; height: 15px; flex-shrink: 0; }
  .book-form .bf-toggle .tl { font-size: 13px; font-weight: 600; }
  .book-form .bf-toggle .td { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .book-form .bf-days { display: flex; gap: 4px; flex-wrap: wrap; }
  .book-form .bf-day { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--soft); font: 600 11px 'Montserrat', sans-serif; cursor: pointer; display: grid; place-items: center; transition: .1s; }
  .book-form .bf-day.on { background: var(--ink); color: white; border-color: var(--ink); }
  .book-form .bf-day:hover:not(.on) { border-color: var(--primary); }
  .book-form .bf-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bf-summary { margin-top: 14px; background: var(--soft); border-radius: var(--r); padding: 12px 14px; border: 1px solid var(--line); }
  .bf-summary .bf-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
  .bf-summary .bf-row .bl { color: var(--muted); }
  .bf-summary .bf-row.grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 600; }

  /* BTL service card */
  .listing.service .ph-wrap { display: none; }
  .listing.service { padding: 0; }
  .listing.service .body { padding: 18px 18px 16px; }
  .listing.service .svc-icon { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--primary-soft); display: grid; place-items: center; margin-bottom: 12px; }

  /* ---------- Tag/badge ---------- */
  .badge {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
    border-radius: 999px; background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.5);
    font: 500 11px ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
    backdrop-filter: blur(8px);
  }
  .badge.amber { background: var(--primary); color: var(--ink); border-color: rgba(0,0,0,.06); }
  .badge.ink { background: var(--ink); color: white; border-color: rgba(255,255,255,.2); }

  /* ---------- Tweaks ---------- */
  .knob { display: none; }
