/* ============================================================
   ComSpace Marketplace — custom styles
   Design tokens, components, animations, responsive behavior
   ============================================================ */

:root {
    /* LoopNet-inspired red palette */
    --brand-50: #FEF1F0;
    --brand-100: #FBDEDA;
    --brand-200: #F5BFBA;
    --brand-300: #EC948C;
    --brand-400: #E25C51;
    --brand-500: #E2231A;
    --brand-600: #CC1D16;
    --brand-700: #AB1711;
    --brand-800: #89120E;
    --brand-900: #6A0E0B;
    --brand-950: #3B0706;

    --ink-50:  #f6f7f9;
    --ink-100: #eceef1;
    --ink-200: #d5d9e0;
    --ink-300: #b1b9c5;
    --ink-400: #8693a3;
    --ink-500: #687688;
    --ink-600: #535e70;
    --ink-700: #444d5b;
    --ink-800: #3b424d;
    --ink-900: #343a42;
    --ink-950: #22262c;

    --sales-green: #17795e;
    --lease-orange: #b5651d;
    --auction-purple: #6f42c1;
    --danger: #d64545;
    --success: #17795e;
    --warning: #c78a1a;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(22, 35, 61, .06), 0 1px 3px rgba(22, 35, 61, .08);
    --shadow: 0 2px 6px rgba(22, 35, 61, .08), 0 6px 18px rgba(22, 35, 61, .08);
    --shadow-lg: 0 12px 32px rgba(22, 35, 61, .16);
    --shadow-brand: 0 8px 22px rgba(226, 35, 26, .28);

    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--ink-900);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--brand-600); color: #fff; }

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-50); }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 8px; border: 2px solid var(--ink-50); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .925rem;
    line-height: 1;
    padding: .72rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease, opacity .16s ease;
    white-space: nowrap;
    user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 3px solid rgba(226, 35, 26, .35); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg, .btn i { font-size: 1.05em; }

.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(226, 35, 26, .36); }

.btn-dark { background: var(--ink-950); color: #fff; }
.btn-dark:hover { background: var(--ink-800); transform: translateY(-1px); }

.btn-outline { background: #fff; color: var(--ink-800); border-color: var(--ink-300); }
.btn-outline:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--brand-50); }

.btn-ghost { background: transparent; color: var(--ink-600); }
.btn-ghost:hover { background: var(--ink-100); color: var(--ink-900); }

.btn-brand-soft { background: var(--brand-50); color: var(--brand-800); }
.btn-brand-soft:hover { background: var(--brand-100); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-outline { background: #fff; color: var(--danger); border-color: rgba(214, 69, 69, .5); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: .48rem .75rem; font-size: .83rem; border-radius: 8px; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; border-radius: 12px; }

.btn-block { width: 100%; }

.btn i { font-size: 1.05em; line-height: 0; }

/* Loading spinner on buttons */
.btn .btn-spinner {
    display: none; width: 1em; height: 1em;
    border: 2px solid currentColor; border-radius: 50%;
    border-top-color: transparent;
    animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn-spinner { display: inline-block; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .28rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    padding: .24rem .55rem; border-radius: var(--radius-pill);
    line-height: 1.2; text-transform: uppercase;
}
.badge-sale { background: rgba(23, 121, 94, .12); color: var(--sales-green); }
.badge-lease { background: rgba(181, 101, 29, .14); color: var(--lease-orange); }
.badge-auction { background: rgba(111, 66, 193, .12); color: var(--auction-purple); }
.badge-featured { background: var(--brand-600); color: #fff; }
.badge-new { background: var(--ink-950); color: #fff; }
.badge-status { background: var(--ink-100); color: var(--ink-700); }
.badge-live { background: var(--danger); color: #fff; }
.badge-green { background: rgba(23, 121, 94, .14); color: var(--sales-green); }
.badge-live .dot, .badge-live { display: inline-flex; align-items: center; gap: .3rem; }
.badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }

/* ---------- Property card ---------- */
.pc {
    position: relative;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.pc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink-200); }

.pc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-100); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pc:hover .pc-media img { transform: scale(1.06); }
.pc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,35,61,.28), transparent 45%); pointer-events: none; }

.pc-badges { position: absolute; top: .65rem; left: .65rem; z-index: 2; display: flex; gap: .3rem; flex-wrap: wrap; }
.pc-fav { position: absolute; top: .6rem; right: .6rem; z-index: 3; }

.fav-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.92); color: var(--ink-600);
    border: 1px solid var(--ink-200); box-shadow: var(--shadow-sm);
    cursor: pointer; transition: transform .15s ease, color .15s ease, background .15s ease;
    font-size: 1.05rem;
}
.fav-btn:hover { transform: scale(1.12); color: var(--danger); }
.fav-btn.is-saved { color: var(--danger); background: #fff; border-color: rgba(214,69,69,.4); }
.fav-btn .bi { line-height: 0; }
.fav-btn .bi-heart { display: none; }
.fav-btn.is-saved .bi-heart { display: inline-block; }
.fav-btn.is-saved .bi-heart-fill { display: none; }

.pc-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pc-price { font-size: 1.28rem; font-weight: 800; color: var(--ink-950); letter-spacing: -.01em; }
.pc-price .per { font-size: .8rem; font-weight: 600; color: var(--ink-500); }
.pc-title { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink-950); }
.pc-title a { color: inherit; }
.pc-title a:hover { color: var(--brand-700); }
.pc-loc { font-size: .83rem; color: var(--ink-500); display: flex; align-items: center; gap: .35rem; }
.pc-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin-top: .15rem; }
.pc-meta span { font-size: .78rem; color: var(--ink-600); display: inline-flex; align-items: center; gap: .3rem; }
.pc-meta i { color: var(--ink-400); }
.pc-divider { height: 1px; background: var(--ink-100); margin: .5rem 0; }
.pc-broker { display: flex; align-items: center; gap: .55rem; }
.pc-broker img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.pc-broker .nm { font-size: .8rem; font-weight: 600; color: var(--ink-800); }
.pc-broker .co { font-size: .72rem; color: var(--ink-400); }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .2rem; }

.pc-headline { font-size: .82rem; color: var(--ink-500); font-weight: 500; }
.pc-featured-flag { position: absolute; top: .65rem; right: .65rem; z-index: 2; }
.pc-new-flag { position: absolute; top: .65rem; left: .65rem; z-index: 2; }
.pc-featured-flag + .pc-new-flag { left: auto; right: .65rem; top: 2.5rem; }
.pc-fav { position: absolute; top: .6rem; right: .6rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--ink-200); display: grid; place-items: center; cursor: pointer; color: var(--ink-600); font-size: 1.05rem; box-shadow: 0 2px 8px rgba(22,35,61,.12); transition: all .15s ease; }
.pc-fav:hover { color: var(--danger); transform: scale(1.08); }
.pc-fav.is-saved { background: var(--danger); border-color: var(--danger); color: #fff; }
.pc-fav.is-loading { opacity: .6; pointer-events: none; }
.empty-state { text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--ink-200); border-radius: var(--radius-lg); }
.empty-state h3 { font-size: 1.05rem; margin: .6rem 0 .2rem; }
.es-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-size: 1.6rem; }
.pc-grid { align-items: stretch; }

/* Broker / Business / Auction card */
.bc { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.bc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--ink-200); }
.bc-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--ink-100); display: block; }
.bc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bc:hover .bc-media img { transform: scale(1.05); }
.bc-avatar { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: .05em; }
.bc-avatar-biz { background: linear-gradient(135deg, var(--ink-800), var(--ink-500)); font-size: 2.4rem; }
.bc-flag { position: absolute; top: .65rem; left: .65rem; z-index: 2; }
.bc-verified { position: absolute; top: .65rem; right: .65rem; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; }
.bc-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.bc-name { font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin: 0; }
.bc-name a { color: var(--ink-950); text-decoration: none; }
.bc-name a:hover { color: var(--brand-700); }
.bc-company { font-size: .82rem; color: var(--ink-400); font-weight: 600; margin-top: .1rem; }
.bc-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: .5rem; font-size: .8rem; color: var(--ink-600); }
.bc-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.bc-meta i { color: var(--ink-400); }
.bc-price { font-size: 1.2rem; font-weight: 800; color: var(--brand-700); margin-top: .35rem; }

.ac-prop { font-size: .8rem; color: var(--ink-500); font-weight: 600; margin-bottom: .1rem; }
.ac-prop a { color: inherit; text-decoration: none; }
.ac-prop a:hover { color: var(--brand-700); }
.ac-title { font-size: 1rem; }
.ac-price { display: flex; align-items: flex-end; justify-content: space-between; margin-top: .6rem; padding: .7rem .8rem; background: var(--ink-50); border-radius: 10px; }
.ac-label { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-400); }
.ac-amount { font-size: 1.25rem; font-weight: 800; color: var(--ink-950); line-height: 1.1; }
.ac-bids { font-size: .76rem; font-weight: 600; color: var(--ink-500); }
.ac-countdown { display: flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 700; color: var(--ink-600); margin-top: .7rem; padding: .55rem .8rem; border: 1px solid var(--ink-100); border-radius: 10px; background: #fff; }
.ac-countdown.is-live { border-color: rgba(214,69,69,.35); color: var(--danger); background: rgba(214,69,69,.05); }
.ac-countdown i { font-size: 1rem; }
.ac-countdown span { letter-spacing: .02em; }

.skeleton {
    position: relative; overflow: hidden; background: var(--ink-100);
    border-radius: var(--radius-lg); border: 1px solid transparent;
}
.skeleton::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
    animation: shimmer 1.4s infinite;
}

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.sec-title { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink-950); }
.sec-sub { color: var(--ink-500); font-size: .95rem; margin-top: .25rem; }

/* Horizontal carousel */
.h-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .35rem; scrollbar-width: thin; }
.h-carousel > * { scroll-snap-align: start; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: #fff; border-bottom: 1px solid var(--ink-200);
    box-shadow: 0 1px 0 rgba(22,35,61,.02);
}
.site-header .nav-inner { display: flex; align-items: center; gap: 1rem; height: 64px; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; line-height: 0; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-brand);
}
.brand-mark i { font-size: 1.3rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .t1 { font-weight: 800; font-size: 1.14rem; letter-spacing: -.02em; color: var(--brand-600); }
.brand-text .t2 { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); }
.brand-light .brand-mark { background: var(--brand-500); box-shadow: none; }
.brand-light .brand-text .t1 { color: #fff; }
.brand-light .brand-text .t2 { color: rgba(255,255,255,.6); }
.brand-logo { display: block; width: auto; height: 36px; }
.brand-logo-chip { background: #fff; border-radius: 10px; padding: 8px 14px; display: inline-flex; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.shell-side .brand-logo { height: 30px; }

.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .55rem .7rem; font-weight: 600; font-size: .9rem;
    color: var(--ink-700); border-radius: 8px; cursor: pointer;
    transition: background .15s ease, color .15s ease;
    background: none; border: 0; font-family: inherit;
}
.nav-link:hover { background: var(--ink-100); color: var(--ink-950); }
.nav-link.active { color: var(--brand-700); }

.drop { position: relative; }
.drop-panel {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 280px; background: #fff; border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: .6rem; opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 70;
}
.drop.open .drop-panel, .drop-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-link { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: 8px; color: var(--ink-700); font-size: .88rem; font-weight: 600; text-decoration: none; transition: background .14s ease, color .14s ease; }
.drop-link:hover { background: var(--brand-50); color: var(--brand-800); }
.drop-link i { color: var(--ink-400); width: 1.1rem; font-size: .95rem; }
.drop-title { padding: .4rem .6rem .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400); }

.header-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 10px; border: 0;
    background: transparent; color: var(--ink-600); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem; transition: background .15s ease, color .15s ease;
    position: relative;
}
.icon-btn:hover { background: var(--ink-100); color: var(--ink-950); }
.icon-btn .count {
    position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px;
    background: var(--danger); color: #fff; border-radius: var(--radius-pill);
    font-size: .6rem; font-weight: 700; display: grid; place-items: center; padding: 0 .25rem;
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); z-index: 90;
    background: #fff; transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(22,35,61,.2);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(22,35,61,.5); z-index: 80; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; backdrop-filter: blur(2px); }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--ink-200); }
.drawer-body { flex: 1; overflow-y: auto; padding: .8rem 1rem; }
.drawer-nav a, .drawer-nav button {
    display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left;
    padding: .72rem .6rem; border-radius: 10px; font-weight: 600; color: var(--ink-800);
    font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.drawer-nav a.active, .drawer-nav a:hover { background: var(--brand-50); color: var(--brand-800); }
.drawer-nav i { width: 1.3rem; color: var(--ink-400); font-size: 1.05rem; }
.drawer-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ink-100); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background-color: var(--brand-950);
}
.hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .55; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.72), rgba(10,10,12,.35) 40%, rgba(10,10,12,.8)); z-index: 1; }
.hero-inner { position: relative; z-index: 2; }

.search-card {
    background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    padding: .4rem; color: var(--ink-900);
}
.search-tabs { display: flex; gap: .2rem; padding: .15rem; background: var(--ink-100); border-radius: 10px; width: fit-content; }
.search-tab {
    border: 0; background: transparent; font-family: inherit; font-weight: 700; font-size: .88rem;
    padding: .55rem 1.05rem; border-radius: 8px; color: var(--ink-600); cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.search-tab.active { background: #fff; color: var(--ink-950); box-shadow: var(--shadow-sm); }

.search-fields { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: .6rem; align-items: center; }
.search-fields.sale-leased { grid-template-columns: 1.6fr 1fr auto; }

.field {
    position: relative;
}
.field label.fl { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-400); margin-bottom: .3rem; }
.field .input-wrap { position: relative; }
.field .input-wrap > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ink-400); font-size: 1rem; pointer-events: none; }
.field input[type="text"], .field input[type="search"], .field input[type="email"], .field input[type="password"], .field input[type="number"], .field input[type="tel"], .field select, .field textarea {
    width: 100%; padding: .72rem .9rem; border: 1px solid var(--ink-200); border-radius: var(--radius);
    background: #fff; color: var(--ink-900); font-size: .92rem; font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field .input-wrap.has-icon input { padding-left: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(226, 35, 26, .18);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23687688' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
.field select:disabled { background: var(--ink-50); color: var(--ink-400); }
.field .err { font-size: .75rem; color: var(--danger); margin-top: .3rem; }

/* autocomplete */
.ac-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50;
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden; max-height: 260px; overflow-y: auto;
    display: none;
}
.ac-list.open { display: block; }
.ac-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; cursor: pointer; font-size: .9rem; }
.ac-item:hover { background: var(--brand-50); }
.ac-item i { color: var(--brand-500); }
.ac-empty { padding: .8rem; color: var(--ink-500); font-size: .85rem; }

/* ---------- Category tiles ---------- */
.cat-card {
    display: flex; align-items: center; gap: .8rem;
    padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg); text-decoration: none; color: var(--ink-900);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-300); }
.cat-ic {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.35rem; color: var(--brand-700);
    background: var(--brand-50); transition: transform .18s ease, background .18s ease;
}
.cat-card:hover .cat-ic { transform: scale(1.1); background: var(--brand-100); }
.cat-name { font-weight: 700; font-size: .96rem; }
.cat-count { font-size: .78rem; color: var(--ink-400); }

/* ---------- City tile ---------- */
.city-tile {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 1rem;
    color: #fff; text-decoration: none; background: var(--ink-900);
    transition: transform .2s ease, box-shadow .2s ease;
}
.city-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.city-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(59,7,6,.6), rgba(10,10,12,.25) 55%, rgba(10,10,12,.8)); }
.city-tile .ct-body { position: relative; z-index: 1; }
.city-tile .ct-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.city-tile .ct-sub { font-size: .8rem; opacity: .85; }

/* ---------- Map / list ---------- */
.map-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 1rem; height: calc(100vh - 64px); position: relative; }
.map-canvas { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; }
#searchMap { position: absolute; inset: 0; z-index: 1; }
.map-panel-toggle { position: absolute; z-index: 20; top: .8rem; left: .8rem; }
.leaflet-div-icon { background: transparent; border: 0; }
.leaflet-container { font-family: var(--font-sans); }
.map-price-pin {
    background: var(--brand-950); color: #fff; font-weight: 700; font-size: .78rem;
    padding: .35rem .6rem; border-radius: var(--radius-pill); box-shadow: var(--shadow);
    border: 2px solid #fff; cursor: pointer; white-space: nowrap; transform: translate(-50%, -50%);
    transition: transform .15s ease;
}
.map-price-pin:hover, .map-price-pin.active { background: var(--brand-600); transform: translate(-50%, -50%) scale(1.12); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.map-pop h4 { font-size: .9rem; font-weight: 700; margin: 0 0 .2rem; }
.map-pop img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }

/* List toggle views */
.view-grid-on .row-rows { display: grid; }

/* ---------- Filters panel ---------- */
.filters-panel { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1.1rem; }
.filter-group { padding: .9rem 0; border-bottom: 1px solid var(--ink-100); }
.filter-group:last-child { border-bottom: 0; }
.filter-title { font-weight: 700; font-size: .95rem; margin-bottom: .6rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }

.range-strip { position: relative; height: 6px; background: var(--ink-100); border-radius: var(--radius-pill); margin: 1rem 0 .6rem; }
.range-strip .fill { position: absolute; top: 0; bottom: 0; background: var(--brand-500); border-radius: var(--radius-pill); }

.check-list { display: grid; gap: .15rem; }
.check-item { display: flex; align-items: center; gap: .5rem; padding: .3rem .2rem; cursor: pointer; font-size: .88rem; color: var(--ink-700); border-radius: 6px; }
.check-item:hover { background: var(--ink-50); }
.check-item input { accent-color: var(--brand-600); width: 15px; height: 15px; }

/* Filter drawer (mobile) */
.filter-drawer {
    position: fixed; inset: 0 auto 0 0; width: min(86vw, 360px); z-index: 95;
    background: #fff; transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    display: flex; flex-direction: column; box-shadow: 10px 0 40px rgba(22,35,61,.2);
}
.filter-drawer.open { transform: translateX(0); }
.filter-drawer .fd-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--ink-200); }
.filter-drawer .fd-body { flex: 1; overflow-y: auto; padding: 1rem; }
.filter-drawer .fd-foot { padding: 1rem; border-top: 1px solid var(--ink-200); display: flex; gap: .6rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--ink-200); overflow-x: auto; }
.tab {
    border: 0; background: transparent; font-family: inherit; font-weight: 600; font-size: .9rem;
    padding: .7rem .9rem; color: var(--ink-500); cursor: pointer; border-bottom: 3px solid transparent;
    margin-bottom: -1px; white-space: nowrap; transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink-900); }
.tab.active { color: var(--brand-700); border-bottom-color: var(--brand-600); }

/* ---------- Gallery ---------- */
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-100); aspect-ratio: 16 / 9; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; margin-top: .5rem; }
.gallery-thumb { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--ink-100); transition: border-color .15s ease, transform .15s ease; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--brand-600); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(12, 20, 34, .94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-nav { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.lightbox-nav .lb-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.lightbox-nav .lb-dot.active { background: #fff; }

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 110; background: rgba(22,35,61,.55);
    display: grid; place-items: center; padding: 1rem;
    opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s;
    backdrop-filter: blur(2px); overflow-y: auto;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
    width: min(100%, 480px); background: #fff; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98);
    transition: transform .22s ease; overflow: hidden;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--ink-100); }
.modal-title { font-size: 1.05rem; font-weight: 800; }
.modal-body { padding: 1.4rem; }
.modal-foot { padding: 1rem 1.4rem; border-top: 1px solid var(--ink-100); display: flex; justify-content: flex-end; gap: .6rem; }
.modal-close { width: 34px; height: 34px; border-radius: 9px; background: var(--ink-100); border: 0; color: var(--ink-600); cursor: pointer; font-size: 1rem; }
.modal-close:hover { background: var(--ink-200); color: var(--ink-950); }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; z-index: 150; top: 84px; right: 1rem; display: grid; gap: .6rem; max-width: min(92vw, 380px); }
.toast {
    background: var(--ink-950); color: #fff; border-radius: var(--radius-lg);
    padding: .85rem 1rem .85rem .9rem; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: .7rem; font-size: .88rem;
    transform: translateX(120%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.toast.show { transform: translateX(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast i { font-size: 1.15rem; }
.toast .x { margin-left: auto; background: transparent; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 1rem; }

/* ---------- Alerts (inline) ---------- */
.alert { display: flex; gap: .7rem; padding: .85rem 1rem; border-radius: var(--radius); font-size: .9rem; border: 1px solid transparent; }
.alert-success { background: rgba(23,121,94,.09); color: #0f4a39; border-color: rgba(23,121,94,.25); }
.alert-error, .alert-danger { background: rgba(214,69,69,.08); color: #912f2f; border-color: rgba(214,69,69,.25); }
.alert-info { background: var(--brand-50); color: var(--brand-900); border-color: var(--brand-200); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: .82rem; color: var(--ink-500); }
.crumbs a { color: var(--ink-500); text-decoration: none; }
.crumbs a:hover { color: var(--brand-700); }
.crumbs .sep { color: var(--ink-300); }
.crumbs .cur { font-weight: 600; color: var(--ink-800); }

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: .3rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 .6rem; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .88rem; font-weight: 600; color: var(--ink-600); text-decoration: none;
    border: 1px solid var(--ink-200); transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.pager a:hover { background: var(--ink-100); color: var(--ink-950); }
.pager span.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pager span.dots { border-color: transparent; }
.pager-nav { background: #fff !important; }

/* ---------- Dashboard / admin shell ---------- */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 0; min-height: 100vh; }
.shell-side {
    background: var(--ink-950); color: #cdd5df; display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
}
.shell-side .brand { padding: 1.15rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.shell-nav { padding: .8rem .6rem; flex: 1; }
.shell-nav .sn-label { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7d8aaa; padding: .9rem .7rem .35rem; }
.shell-nav a {
    display: flex; align-items: center; gap: .7rem; padding: .62rem .7rem; margin: 1px 0;
    border-radius: 9px; color: #c6d0e0; font-size: .89rem; font-weight: 500; text-decoration: none;
    transition: background .14s ease, color .14s ease;
}
.shell-nav a i { width: 1.15rem; color: #8693a3; font-size: .98rem; }
.shell-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.shell-nav a.active { background: var(--brand-600); color: #fff; }
.shell-nav a.active i { color: #fff; }
.shell-nav a .cnt { margin-left: auto; background: rgba(255,255,255,.14); color: #fff; font-size: .68rem; font-weight: 700; border-radius: var(--radius-pill); padding: .1rem .45rem; }
.shell-main { background: var(--ink-50); min-height: 100vh; }
.shell-topbar { background: #fff; border-bottom: 1px solid var(--ink-200); padding: 0 1.5rem; height: 60px; display: flex; align-items: center; gap: 1rem; }
.shell-content { padding: 1.5rem; }

.stat-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; }
.stat-card .v { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
.stat-card .l { font-size: .8rem; color: var(--ink-500); font-weight: 600; margin-top: .1rem; }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--ink-200); font-size: .88rem; }
.table th { text-align: left; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); background: var(--ink-50); padding: .75rem 1rem; border-bottom: 1px solid var(--ink-200); white-space: nowrap; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--ink-50); }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: .4rem 1rem; font-size: .9rem; }
.kv dt { color: var(--ink-500); font-weight: 500; }
.kv dd { font-weight: 600; color: var(--ink-900); margin: 0; word-break: break-word; }

/* ---------- Misc ---------- */
.text-muted { color: var(--ink-500); }
.text-small { font-size: .8rem; }
.font-bold-tight { letter-spacing: -.02em; }

.divider { height: 1px; background: var(--ink-100); margin: 1rem 0; }

.card-panel { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); }

.avatar { border-radius: 50%; object-fit: cover; display: inline-block; }
.avatar-lg { width: 96px; height: 96px; }

.auction-timer { font-variant-numeric: tabular-nums; font-weight: 700; }

.broker-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1.4rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.broker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.marker-img { width: 100%; height: 76px; object-fit: cover; border-radius: 8px; margin-bottom: .3rem; }

.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--ink-100); color: var(--ink-600); font-size: .74rem; font-weight: 600; border-radius: var(--radius-pill); padding: .28rem .6rem; }

/* ---------- Animations ---------- */
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.a-fade-up { animation: fadeInUp .5s ease both; }
.a-fade { animation: fadeIn .4s ease both; }
.stagger > * { animation: fadeInUp .5s ease both; }
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .14s; }
.stagger > *:nth-child(5) { animation-delay: .18s; }
.stagger > *:nth-child(6) { animation-delay: .22s; }
.stagger > *:nth-child(n+7) { animation-delay: .26s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .map-split { grid-template-columns: 1fr; height: auto; }
    .map-canvas { height: 480px; }
    .search-fields { grid-template-columns: 1fr 1fr; }
    .search-fields .search-btn-wrap { grid-column: 1 / -1; }
    .shell { grid-template-columns: 1fr; }
    .shell-side { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .28s ease; width: min(86vw, 300px); }
    .shell-side.open { transform: translateX(0); }
}

@media (max-width: 768px) {
    .search-fields { grid-template-columns: 1fr; }
    .search-btn-wrap { grid-column: auto; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .h-carousel { grid-auto-columns: minmax(215px, 1fr); }
    .sec-head { align-items: flex-start; flex-direction: column; gap: .5rem; }
}

@media (max-width: 480px) {
    .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
    .kv { grid-template-columns: 1fr; gap: .15rem; }
    .stat-card .v { font-size: 1.35rem; }
    .toast-wrap { right: .6rem; left: .6rem; max-width: none; }
}

/* ---------- Layout utilities (framework-agnostic) ---------- */
.container-inner { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 1.25rem; }
.main-wrap { min-height: 62vh; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none, .hidden { display: none !important; }
.fd-col { flex-direction: column; }
.ai-center { align-items: center; }
.jc-center { justify-content: center; }
.jc-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 0; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; }
.m-0 { margin: 0; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.p-0 { padding: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.obj-cover { object-fit: cover; }
.rounded-lg { border-radius: 12px; }
.overflow-hidden { overflow: hidden; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.text-center { text-align: center; }
.text-muted { color: var(--ink-500) !important; }
.text-sm { font-size: .85rem; }
.fw-semibold { font-weight: 600; }
.lh-1 { line-height: 1; }

/* Deals announcement bar + signed-in strip */
.announce { background: var(--ink-950); color: #c7d0dd; font-size: .78rem; letter-spacing: .02em; }
.announce a { color: #fff; font-weight: 600; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce-top { padding: .5rem 1.25rem; display: flex; align-items: center; justify-content: center; gap: .5rem; text-align: center; }
.session-bar { background: var(--brand-900); color: #dfe7f4; font-size: .84rem; }
.session-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.session-bar a { color: #fff; }

.chev { font-size: .7rem; margin-left: .2rem; opacity: .6; }
.chev-xs { font-size: .6rem; opacity: .5; margin-left: .15rem; }

.drop-panel-wide { min-width: 460px; padding: .7rem .85rem; }
.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; }
.drop-foot { margin: .55rem -.85rem -.7rem; padding: .65rem .85rem .75rem; border-top: 1px solid var(--ink-100); }
.drop-user-head { display: flex; align-items: center; gap: .7rem; padding: .4rem .4rem .75rem; border-bottom: 1px solid var(--ink-100); margin-bottom: .5rem; }
.drop-user-head .ape { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand-800); display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex-shrink: 0; }
.drop-divider { height: 1px; background: var(--ink-100); margin: .45rem 0; }
.drop-link-danger { color: var(--danger) !important; }
.drop-link-danger:hover { background: rgba(214,69,69,.08) !important; color: var(--danger) !important; }
.w-100 { width: 100%; }
.text-xs { font-size: .76rem; }
.fw-700 { font-weight: 700; }
.dropdown-title { color: var(--ink-900); }

.header-search-icon-btn { padding: .5rem .65rem; }
.header-link { padding: .55rem .9rem; }
.header-cta {
    margin-left: .2rem;
    background: #fff; color: var(--ink-900);
    border: 1px solid var(--ink-300);
}
.header-cta:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-50); }
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; }

.avatar-btn { display: inline-flex; align-items: center; gap: .2rem; background: transparent; border: 0; cursor: pointer; padding: .2rem; border-radius: 50%; }
.avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-200); }
.avatar-fallback { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-600); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; letter-spacing: .03em; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--ink-200); border-radius: 10px; background: #fff; cursor: pointer; padding: 0 10px; margin-left: .3rem; }
.burger span { display: block; height: 2px; width: 100%; background: var(--ink-900); border-radius: 2px; transition: transform .2s ease; }

@media (max-width: 1180px) {
    .site-header .nav-links { display: none; }
    .header-cta span { display: none; }
    .header-cta { padding: .55rem .75rem; }
    .header-link.btn-ghost { display: none; }
    .burger { display: flex; }
}

/* Print */
@media print {
    .site-header, .site-footer, .toast-wrap, .no-print { display: none !important; }
}
/* ---------- Homepage extra ---------- */
.hero { padding: 4.5rem 0 4rem; }
.hero-head { max-width: 720px; }
.hero-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.06; margin: .5rem 0 .8rem; }
.hero-head h1 .accent { color: #ff8577; }
.hero-head .eyebrow { color: #c9cdd4; }
.hero-head .lead { font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 540px; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; }
.hero-stats span { font-size: .8rem; color: rgba(255,255,255,.72); margin-top: .1rem; }
.search-type { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: .65rem 1.05rem; font-weight: 700; color: var(--ink-500); cursor: pointer; font-size: .92rem; transition: color .15s ease, border-color .15s ease; }
.search-type:hover { color: var(--ink-900); }
.search-type.active { color: var(--brand-700); border-bottom-color: var(--brand-600); }
.search-popular { display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: center; padding: .75rem .15rem .1rem; font-size: .82rem; color: var(--ink-500); }
.search-popular a { color: var(--ink-700); font-weight: 600; text-decoration: none; }
.search-popular a:hover { color: var(--brand-700); }
.section { padding: 3.25rem 0; }
.section-alt { background: var(--ink-50); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.sec-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: .25rem 0 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.h-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 1.1rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x mandatory; }
.h-carousel::-webkit-scrollbar { height: 8px; }
.h-carousel::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 99px; }
.h-carousel-item { scroll-snap-align: start; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cta-section { background: var(--ink-950); color: #fff; padding: 3.4rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-copy h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin: .3rem 0 .4rem; }
.cta-copy p { color: rgba(255,255,255,.72); margin: 0; }
.cta-copy .eyebrow { color: #ff8a80; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta-actions .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.cta-actions .btn-outline:hover { background: rgba(255,255,255,.1); }
@media (max-width: 768px) {
    .stats-band { grid-template-columns: 1fr 1fr; }
    .hero { padding: 3rem 0; }
}

/* ---------- Site footer ---------- */
.site-footer { background: var(--ink-950); color: rgba(255,255,255,.78); padding: 3.4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; }
.footer-title { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.footer-col-brand .brand { margin-bottom: 1rem; }
.footer-about { margin: 0 0 1.2rem; font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.58); max-width: 320px; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; text-decoration: none; transition: background .15s ease; }
.footer-social a:hover { background: var(--brand-500); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a { color: rgba(255,255,255,.78); font-size: .88rem; text-decoration: none; transition: color .15s ease; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Search page ---------- */
.search-page { padding-bottom: 4rem; }
.search-toolbar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .9rem; margin: 1.1rem 0 1.2rem; }
.search-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.search-count { color: var(--ink-500); font-size: .9rem; }
.search-count strong { color: var(--ink-900); }
.toolbar-actions { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.sort-field { width: 210px; }
.filter-toggle { display: none; }
.search-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.filters-panel { position: sticky; top: 84px; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); background: #fff; padding: 1.1rem; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.filters-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-700); display: inline-flex; align-items: center; gap: .4rem; }
.fg-title { margin-bottom: .55rem; }
.filter-group { padding: .8rem 0; border-bottom: 1px solid var(--ink-100); }
.filter-group + .filter-group { }
.filter-group:nth-last-child(2) { border-bottom: 0; }
.min-max-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.filter-group .fl { margin-bottom: .2rem; }
.filter-group input[type="text"], .filter-group input[type="number"], .filter-group select { width: 100%; }
.check-list { display: grid; gap: .15rem; max-height: 240px; overflow-y: auto; padding-right: .2rem; }
.check { display: flex; align-items: center; gap: .55rem; padding: .42rem .35rem; border-radius: 8px; cursor: pointer; font-size: .88rem; color: var(--ink-700); transition: background .12s ease; }
.check:hover { background: var(--ink-50); }
.check input { accent-color: var(--brand-600); width: 16px; height: 16px; flex-shrink: 0; }

.view-toggle { display: none; background: var(--ink-100); border-radius: 10px; padding: .25rem; gap: .25rem; }
.view-btn { border: 0; background: transparent; border-radius: 8px; padding: .5rem .95rem; font-weight: 700; font-size: .85rem; color: var(--ink-500); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.view-btn.active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.results-col { min-width: 0; }
.map { width: 100%; height: 100%; border-radius: var(--radius-lg); z-index: 1; }
.map-canvas { height: calc(100vh - 240px); min-height: 520px; position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--ink-200); }
.map-only .results-col { display: none; }
.map-only .map-split { grid-template-columns: 1fr; }
.map-only .map-canvas { height: calc(100vh - 220px); }

@media (max-width: 1180px) {
    .search-layout { grid-template-columns: 1fr; }
    .filters-panel { position: static; display: none; }
    .filters-panel.filters-open { display: block; }
    .filter-toggle { display: inline-flex; }
    .view-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
    .map-split { grid-template-columns: 1fr; height: auto; }
    .map-canvas { height: 420px; min-height: 320px; }
    .sort-field { width: 100%; }
}

.scan-label { display: none; }
@media (min-width: 1024px) { .scan-label { display: inline; } }
.flash-inline { color: var(--sales-green); font-weight: 700; }

/* ---------- Property detail ---------- */
.property-page { padding-bottom: 4rem; }
.prop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 1rem; }
.prop-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .45rem; }
.prop-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.02em; margin: 0; }
.prop-loc { display: flex; align-items: center; gap: .4rem; color: var(--ink-500); font-size: .95rem; margin-top: .35rem; }
.prop-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.gallery-open-btn { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; background: rgba(22,35,61,.85); color: #fff; border: 0; border-radius: 10px; padding: .55rem .85rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; backdrop-filter: blur(4px); }
.gallery-open-btn:hover { background: var(--ink-950); }
.gallery-main:hover .gallery-open-btn { }
.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 1.6rem; align-items: start; margin-top: 1.4rem; }
.prop-main { min-width: 0; }
.prop-section { padding: 1.3rem 0; border-bottom: 1px solid var(--ink-100); }
.prop-section:last-child { border-bottom: 0; }
.prop-section-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .6rem; }
.prop-headline { font-size: 1.05rem; color: var(--ink-700); font-weight: 600; margin: 0 0 .5rem; }
.prop-desc { color: var(--ink-700); line-height: 1.7; font-size: .96rem; }
.check-list-static { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.check-list-static li { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink-700); font-size: .94rem; }
.check-list-static i { color: var(--sales-green); }
.amenities { display: flex; flex-wrap: wrap; gap: .5rem; }
.amenity { display: inline-flex; align-items: center; gap: .35rem; background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: var(--radius-pill); padding: .4rem .8rem; font-size: .84rem; font-weight: 600; color: var(--ink-700); }
.amenity i { color: var(--brand-600); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.facts-grid dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); margin-bottom: .15rem; }
.facts-grid dd { margin: 0; font-weight: 700; color: var(--ink-900); }
.auction-panel { background: var(--brand-50); border-radius: var(--radius-lg); padding: 1.2rem; border: 1px solid var(--brand-100); }
.db { border: 0; border-top: 1px solid var(--ink-100); margin: .9rem 0; }
.side-card { position: sticky; top: 84px; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1.15rem; }
.side-card + .side-card { margin-top: 1rem; position: static; }
.price-card { border: 2px solid var(--ink-200); }
.side-price { font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; color: var(--ink-950); }
.side-price-sub { color: var(--ink-500); font-weight: 600; font-size: .85rem; margin-top: .1rem; }
.price-card-meta { display: flex; gap: 1rem; margin-top: .55rem; font-size: .85rem; font-weight: 600; color: var(--ink-600); }
.price-card-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.side-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-500); margin-bottom: .7rem; }
.agent { display: flex; align-items: center; gap: .7rem; }
.agent-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.agent-photo-fallback { display: grid; place-items: center; background: var(--brand-100); color: var(--brand-800); font-weight: 800; }
.agent-name { font-weight: 700; }
.agent-company { font-size: .82rem; color: var(--ink-400); }
.verified-ic { color: var(--brand-600); }
@media (max-width: 1024px) {
    .prop-layout { grid-template-columns: 1fr; }
    .prop-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .side-card + .side-card { margin-top: 0; }
    .contact-card { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .prop-head { flex-direction: column; }
    .prop-actions { width: 100%; }
    .prop-actions .btn { flex: 1; }
    .prop-side { grid-template-columns: 1fr; }
}

.lightbox-figure { position: relative; display: grid; justify-items: center; }
.lightbox-count { position: absolute; bottom: -2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .08em; }
.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); font-size: 1.2rem; cursor: pointer; backdrop-filter: blur(8px); }
.lightbox-btn:hover { background: rgba(255,255,255,.25); }
.lightbox-btn.prev { left: 1.2rem; }
.lightbox-btn.next { right: 1.2rem; }
.lightbox-close { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); font-size: 1.1rem; cursor: pointer; backdrop-filter: blur(8px); }
.lightbox-close:hover { background: rgba(255,255,255,.25); }
@media (max-width: 640px) {
    .lightbox-btn { width: 38px; height: 38px; }
    .lightbox-btn.prev { left: .4rem; }
    .lightbox-btn.next { right: .4rem; }
}

/* ---------- Inner listing pages ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 0 1.2rem; }
.page-head h1 { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; margin: .3rem 0 .2rem; }
.page-head p { margin: 0; }
.text-right { text-align: right; }

.type-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 1.1rem; }
.type-title { font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; margin: .3rem 0 .2rem; }
.type-title i { color: var(--brand-600); }
.type-desc { color: var(--ink-500); margin: 0; max-width: 600px; }
.type-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
.type-side { position: sticky; top: 84px; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1rem; }
.type-nav { display: grid; gap: .15rem; }
.type-nav a { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; color: var(--ink-700); font-weight: 600; font-size: .88rem; text-decoration: none; }
.type-nav a:hover { background: var(--brand-50); color: var(--brand-800); }
.type-nav a.active { background: var(--brand-600); color: #fff; }
.type-nav a i { width: 1.1rem; }
@media (max-width: 900px) {
    .type-layout { grid-template-columns: 1fr; }
    .type-side { position: static; }
    .type-nav { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

.broker-hero { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.2rem 0 1.5rem; }
.broker-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.broker-photo-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: #fff; font-weight: 800; font-size: 1.6rem; }
.broker-name { font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; margin: 0; }
.broker-company { color: var(--ink-500); font-weight: 600; margin-top: .2rem; }
.broker-meta { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: .6rem; font-size: .86rem; color: var(--ink-600); }
.broker-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.broker-cta { min-width: 210px; }
.brk-section { padding: 1.1rem 0 1.3rem; border-bottom: 1px solid var(--ink-100); }
.brk-section:last-child { border-bottom: 0; }
.brk-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 .6rem; }
.broker-body { padding-bottom: 4rem; }
.broker-main { max-width: 900px; }
@media (max-width: 800px) {
    .broker-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .broker-meta { justify-content: center; }
    .broker-cta { width: 100%; }
}

.au-tabs { margin-bottom: 1.4rem; }
.ad-head { padding: 1.2rem 0 .9rem; }
.ad-title { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; margin: 0; }
.ad-prop { color: var(--ink-600); font-size: .95rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; }
.ad-prop:hover { color: var(--brand-700); }
.ad-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
.ad-gallery { margin-bottom: 0; }
.ad-side { min-width: 0; }
.ad-status { margin-bottom: .8rem; }
.ad-live-text { font-weight: 700; color: var(--ink-800); display: flex; align-items: center; gap: .45rem; margin-top: .2rem; }
.ad-live-text i { color: var(--danger); }
.ad-pricebox { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-end; background: var(--ink-50); border-radius: 10px; padding: .8rem; margin-top: .4rem; }
.ad-amount { font-size: 1.4rem; font-weight: 900; color: var(--ink-950); }
.ad-start { font-weight: 700; color: var(--ink-700); }
@media (max-width: 1024px) {
    .ad-layout { grid-template-columns: 1fr; }
}

/* ---------- Businesses ---------- */
.biz-cats .cat-card.active { border-color: var(--brand-600); background: var(--brand-50); }
.biz-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; margin: 1.2rem 0 1.5rem; }
.biz-hero-img { width: 100%; height: 210px; object-fit: cover; }
.biz-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink-800), var(--ink-500)); color: #fff; font-size: 3rem; }
.biz-name { font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; margin: 0; }
.biz-price-col { padding: 0 1.5rem 0 0; min-width: 210px; }
.biz-price { font-size: 1.5rem; font-weight: 900; color: var(--brand-700); }
.biz-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.biz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
@media (max-width: 900px) {
    .biz-hero { grid-template-columns: 1fr; }
    .biz-hero-img { height: 200px; }
    .biz-price-col { padding: 0 1.5rem 1.5rem; }
    .biz-layout { grid-template-columns: 1fr; }
}

/* ---------- List property ---------- */
.lp-page { padding-bottom: 4rem; }
.lp-head { text-align: center; padding: 2.4rem 0 1.4rem; }
.lp-head h1 { font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em; margin: .4rem 0 .3rem; }
.lp-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.lp-form { min-width: 0; }
.lp-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1.5rem; }
.lp-section { padding: 1.1rem 0; border-bottom: 1px solid var(--ink-100); }
.lp-section:last-of-type { border-bottom: 0; }
.lp-section-title { display: flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }
.lp-section-title i { color: var(--brand-600); font-size: 1.1rem; }
.lp-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.lp-features li { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--ink-600); line-height: 1.45; }
.lp-features i { color: var(--brand-600); font-size: 1.15rem; margin-top: .1rem; }
.lp-features strong { display: block; color: var(--ink-900); font-size: .9rem; }
.lp-submit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; flex-wrap: wrap; }
.mv-0 { margin: .4rem 0 0; padding-left: 1.2rem; }
.text-link { color: var(--brand-700); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.legal-page { padding-bottom: 4rem; }
.legal-page .lp-card { max-width: 860px; }
.legal-page .lp-section p { color: var(--ink-600); line-height: 1.6; }
.legal-list { display: grid; gap: .6rem; }
.legal-list p { margin: 0; font-size: .92rem; line-height: 1.6; }
.legal-list strong { color: var(--ink-900); }
@media (max-width: 980px) {
    .lp-layout { grid-template-columns: 1fr; }
    .lp-side .side-card { position: static; }
}

/* ---------- Contact & Help ---------- */
.contact-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
.contact-channel { display: flex; align-items: center; gap: .9rem; }
.contact-channel > i { font-size: 1.4rem; color: var(--brand-600); width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; flex-shrink: 0; }
.contact-note { position: static; }
.help-page { padding-bottom: 4rem; }
.help-search { max-width: 520px; margin: 0 auto 2rem; }
.help-search input { width: 100%; font-size: 1.05rem; padding: .9rem 1rem .9rem 2.6rem; border: 1px solid var(--ink-200); border-radius: 12px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 2.5rem; }
.help-cat { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1.2rem; }
.help-cat-title { display: flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 800; margin-bottom: .7rem; }
.help-cat-title i { color: var(--brand-600); }
.faq { border-bottom: 1px solid var(--ink-100); }
.faq:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-800); padding: .65rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 700; color: var(--brand-600); font-size: 1.1rem; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0 0 .8rem; font-size: .88rem; color: var(--ink-600); line-height: 1.6; }
.faq-hidden { display: none; }
.help-cta { margin-top: 1rem; border-radius: var(--radius-lg); }
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .help-grid { grid-template-columns: 1fr; }
}

/* ---------- Auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: 4rem 1rem; background: radial-gradient(60rem 30rem at 80% -10%, var(--brand-100), transparent), var(--ink-50); min-height: 70vh; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-lg); }
.auth-head { text-align: center; margin-bottom: 1.6rem; }
.auth-head h1 { font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; margin: .8rem 0 .3rem; }
.auth-mark { width: 52px; height: 52px; font-size: 1.5rem; margin: 0 auto; }
.auth-head p { margin: 0; font-size: .92rem; }
.auth-card .field input, .auth-card .field select, .auth-card .field textarea { width: 100%; }
.pr { padding-right: 2.6rem !important; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink-400); cursor: pointer; padding: .4rem; }
.pw-toggle:hover { color: var(--ink-800); }
.check-rem { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-700); cursor: pointer; }
.check-rem input { accent-color: var(--brand-600); width: 16px; height: 16px; }
.demo-hint { text-align: center; margin-top: 1.4rem; }

/* ---------- Error pages ---------- */
.err-page { max-width: 600px; margin: 0 auto; text-align: center; padding: 6rem 1rem; }
.err-code { font-size: 5.2rem; font-weight: 950; letter-spacing: -.03em; color: var(--brand-600); line-height: 1; }
.err-page h1 { font-size: 1.4rem; font-weight: 800; margin: .6rem 0 .4rem; }
.err-detail { color: var(--ink-500); font-size: .85rem; background: var(--ink-100); padding: .5rem .9rem; border-radius: 10px; }
.err-search { max-width: 480px; margin: 1.6rem auto 0; }

/* =========================================================
   ADMIN PANEL + extra utilities
   ========================================================= */
/* Layout utilities */
.ta-right { text-align: right; }
.ta-center { text-align: center; }
.d-inline { display: inline; }
.jc-end { justify-content: flex-end; }
.ms-auto { margin-left: auto; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-0 { margin: 0; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Shell / admin chrome */
.shell-burger { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-700); cursor: pointer; font-size: 1.1rem; align-items: center; justify-content: center; }
.shell-crumb { font-size: .82rem; font-weight: 600; color: var(--ink-500); }
.shell-crumb strong { color: var(--ink-900); }
.shell-foot { padding: 1.2rem 1.5rem; color: var(--ink-400); font-size: .8rem; }
.shell-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 35; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s;}
.shell-backdrop.open { opacity: 1; visibility: visible; }
.shell-side-close { display: none; margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.shell-side-foot { border-top: 1px solid rgba(255,255,255,.08); padding: .9rem 1.1rem; }
.shell-user { display: flex; align-items: center; gap: .7rem; color: #fff; }
.shell-user-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.shell-user-t strong { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-user-t small { font-size: .72rem; color: #8fa0bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-logout { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #9aa9c4; cursor: pointer; font-size: 1rem; }
.shell-logout:hover { background: rgba(255,255,255,.1); color: #fff; }

/* avatar sizes */
.avatar { width: 38px; height: 38px; background: linear-gradient(135deg, var(--brand-900), var(--brand-600)); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .86rem; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar-xs { width: 26px; height: 26px; font-size: .66rem; }
.avatar-dim { filter: grayscale(1); opacity: .5; }

/* Admin head + alerts */
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.admin-h1 { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; margin: 0; }
.admin-alert { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .9rem; font-weight: 600; }
.admin-alert-success { background: rgba(23,121,94,.1); color: var(--sales-green); }
.admin-alert-error { background: rgba(214,40,40,.08); color: var(--danger); }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; }
.stat-label { font-size: .76rem; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; margin-top: .15rem; }
.stat-sub { font-size: .78rem; color: var(--ink-400); margin-top: .15rem; }

/* Admin cards */
.admin-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 1.3rem; }
.admin-card + .admin-card { margin-top: 1rem; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-card-title { font-size: .92rem; font-weight: 800; margin-bottom: .9rem; }
.admin-card-head .admin-card-title { margin-bottom: 0; }

/* Badges extra states */
.badge-rejected { background: rgba(214,40,40,.1); color: var(--danger); }
.badge-purple { background: rgba(111,66,193,.12); color: var(--auction-purple); }
.badge-amber { background: rgba(181,101,29,.14); color: var(--lease-orange); }

/* Tabs + toolbar */
.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.admin-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 10px; background: #fff; border: 1px solid var(--ink-200); color: var(--ink-600); font-size: .85rem; font-weight: 600; text-decoration: none; }
.admin-tab:hover { border-color: var(--ink-300); color: var(--ink-900); }
.admin-tab.active { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
.tab-count { background: rgba(255,255,255,.18); border-radius: var(--radius-pill); padding: .05rem .5rem; font-size: .72rem; }
.admin-tab:not(.active) .tab-count { background: var(--ink-100); color: var(--ink-600); }
.admin-toolbar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Form controls (admin + auth) */
.select-inline { padding: .45rem .7rem; border-radius: 8px; border: 1px solid var(--ink-200); background: #fff; font-size: .85rem; color: var(--ink-800); cursor: pointer; }
.checkbox-inline { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-700); cursor: pointer; user-select: none; }
.checkbox-inline input { accent-color: var(--brand-600); width: 15px; height: 15px; }
.badge-btn { border: 0; border-radius: var(--radius-pill); padding: .28rem .7rem; font-size: .76rem; font-weight: 700; cursor: pointer; font-family: inherit; }

/* Table row emphasis */
.row-new { background: rgba(23,121,94,.04); }

/* Facts grid (used in shows) */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .2rem 1.4rem; }
.fact { padding: .45rem 0; border-bottom: 1px dashed var(--ink-100); }
.fact-lbl { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); }
.fact-val { font-size: .92rem; font-weight: 600; color: var(--ink-900); margin-top: .1rem; word-break: break-word; }

/* Charts */
.chart-bars { display: flex; align-items: flex-end; gap: .45rem; height: 180px; padding-top: .5rem; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .3rem; height: 100%; min-width: 0; }
.chart-bar { width: 100%; max-width: 34px; min-height: 3px; background: linear-gradient(180deg, var(--brand-500), var(--brand-700)); border-radius: 6px 6px 2px 2px; transition: height .4s ease; }
.chart-label { font-size: .6rem; color: var(--ink-400); white-space: nowrap; transform: rotate(-30deg); transform-origin: top center; }
.donut-list { display: grid; gap: .55rem; }
.donut-row { display: flex; align-items: center; gap: .7rem; font-size: .86rem; }
.donut-pct { background: var(--brand-100); color: var(--brand-800); font-weight: 800; border-radius: 8px; padding: .15rem .55rem; min-width: 54px; text-align: center; }
.donut-name { color: var(--ink-700); font-weight: 600; }

/* Admin gallery */
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; }
.adm-img { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--ink-200); }
.adm-img img { width: 100%; height: 92px; object-fit: cover; display: block; }
.adm-cover { position: absolute; top: .35rem; left: .35rem; background: var(--brand-600); color: #fff; font-size: .62rem; font-weight: 700; border-radius: 6px; padding: .1rem .4rem; }
.adm-img-actions { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .35rem .45rem; }
.adm-avatar-xs { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.adm-photo { width: 100%; border-radius: 12px; object-fit: cover; }

/* Standalone admin modals */
.admin-content .modal[hidden] { display: none; }
.admin-content .modal {
    position: fixed; inset: 0; z-index: 120; background: rgba(15,23,42,.55); backdrop-filter: blur(2px);
    display: none; place-items: center; padding: 1rem; overflow-y: auto;
}
.admin-content .modal.open { display: grid; }
.admin-content .modal-box { width: min(100%, 480px); background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 1.4rem; margin: auto; }
.admin-content .modal-sm { max-width: 430px; }

/* Inquiry quote */
.inquiry-quote { margin: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--brand-600); background: var(--ink-50); border-radius: 0 12px 12px 0; color: var(--ink-800); line-height: 1.6; white-space: pre-wrap; }

/* Responsive admin */
@media (max-width: 1180px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .shell-burger { display: inline-flex; }
    .shell-side { position: fixed; left: 0; }
    .shell-side-close { display: inline-flex; align-items: center; justify-content: center; }
    .shell-topbar { padding: 0 .9rem; }
    .shell-content { padding: 1rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-head { align-items: center; }
}
@media (max-width: 760px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   USER DASHBOARD
   ========================================================= */
.dash-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.5rem; align-items: start; padding-top: 2rem; }
.dash-nav { position: sticky; top: 86px; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; }
.dash-user { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem; background: linear-gradient(135deg, var(--ink-950), var(--ink-800)); color: #fff; }
.dash-user-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dash-user-t strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-t small { font-size: .72rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; }
.dash-links { padding: .55rem; display: grid; gap: 2px; }
.dash-link { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 9px; color: var(--ink-700); font-size: .89rem; font-weight: 600; text-decoration: none; transition: background .14s ease, color .14s ease; }
.dash-link i { color: var(--ink-400); font-size: .98rem; width: 1.15rem; }
.dash-link:hover { background: var(--ink-50); color: var(--ink-950); }
.dash-link.active { background: var(--brand-600); color: #fff; }
.dash-link.active i { color: #fff; }
.dash-main { min-width: 0; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.dash-stats .stat-card { text-decoration: none; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.dash-stats .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dash-stats .stat-card .stat-value { color: var(--ink-950); }
.dash-section { margin-bottom: 1.8rem; }
.dash-list { display: grid; gap: .8rem; }
.dash-row { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: .9rem 1rem; text-decoration: none; }
.dash-row-link:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.dash-row-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.dash-row-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.dash-row-t strong { color: var(--ink-900); font-size: .93rem; }
.dash-row-t small { color: var(--ink-400); }
.dash-row-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-wrap: wrap; }
.activity-row { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed var(--ink-100); }
.activity-row:last-child { border-bottom: 0; }
.activity-t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.activity-t strong { font-size: .9rem; color: var(--ink-900); }
.activity-t small { font-size: .76rem; color: var(--ink-400); }
.activity-row > *:last-child { margin-left: auto; }

@media (max-width: 900px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-nav { position: static; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .dash-stats { grid-template-columns: 1fr; }
    .dash-row-actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   LoopNet-inspired home hero
   ============================================================ */
.hero { padding: 5rem 0 4.25rem; }
.hero-head { max-width: 800px; }
.hero-head h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; margin: .75rem 0 1rem; }
.hero-head h1 .accent { display: block; color: #fff; }
.hero-head .eyebrow { letter-spacing: .14em; }
.hero-head .lead { font-size: 1.08rem; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 560px; margin: 0; }

.hero .search-card { margin-top: 2.2rem; padding: 1rem; box-shadow: 0 24px 60px rgba(10,10,12,.35); }
.hero .search-tabs { display: flex; gap: .25rem; padding: .25rem; background: var(--ink-100); border-radius: 12px; width: 100%; margin-bottom: 1rem; }
.hero .search-tab { flex: 1; border: 0; background: transparent; font-family: inherit; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; padding: .62rem 1rem; border-radius: 9px; color: var(--ink-600); cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.hero .search-tab:hover { color: var(--ink-950); }
.hero .search-tab.active { background: var(--brand-500); color: #fff; box-shadow: var(--shadow-brand); }
.hero .search-fields { grid-template-columns: 1.5fr 1.1fr auto; gap: .75rem; }
.hero .search-fields .field input, .hero .search-fields .field select { padding: .85rem .95rem; font-size: .95rem; border-radius: 10px; }
.hero .search-fields .search-btn-wrap button { padding: .9rem 1.9rem; }
.hero .search-popular { padding: .9rem .25rem .35rem; }
.hero .search-popular a { display: inline-flex; align-items: center; padding: .32rem .72rem; border-radius: 8px; background: var(--ink-50); color: var(--ink-700); font-size: .8rem; border: 1px solid var(--ink-100); transition: background .15s ease, border-color .15s ease, color .15s ease; }
.hero .search-popular a:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }

.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin-top: 1.5rem; font-size: .92rem; }
.hero-quick span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.62); font-weight: 700; margin-right: .2rem; }
.hero-quick a { color: #fff; text-decoration: none; font-weight: 600; transition: color .15s ease; }
.hero-quick a:not(:last-of-type)::after { content: '·'; position: absolute; right: -.85rem; color: rgba(255,255,255,.4); }
.hero-quick a { position: relative; }
.hero-quick a:hover { color: #ff8577; text-decoration: none; }
.hero-quick .hero-quick-more { color: #ff8577; }
.hero-quick .hero-quick-more:hover { color: #fff; }

@media (max-width: 1024px) {
    .hero { padding: 3.75rem 0 3.25rem; }
    .hero .search-fields { grid-template-columns: 1fr 1fr; }
    .hero .search-fields .search-btn-wrap { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .hero .search-tab { font-size: .76rem; padding: .6rem .4rem; }
    .hero .search-popular a { padding: .28rem .6rem; }
    .hero-quick { gap: .4rem 1rem; }
    .hero-quick span { width: 100%; }
}

/* ============================================================
   Payments (checkout, instructions, admin)
   ============================================================ */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .01em; }
.hint { font-size: .75rem; color: var(--ink-400); margin-top: .3rem; }

.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.4rem; align-items: start; padding-bottom: 4rem; }
.pay-main { min-width: 0; display: grid; gap: 1.2rem; }
.pay-side { display: grid; gap: 1.2rem; position: sticky; top: 5.5rem; }
.pay-card { padding: 1.4rem; }
.pay-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.pay-card-head h2 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.pay-card-head .text-muted { font-size: .8rem; }

.pay-methods { display: grid; gap: .8rem; }
.pay-method { position: relative; display: block; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-body {
    display: flex; align-items: center; gap: .9rem;
    border: 1.5px solid var(--ink-200); border-radius: 14px; padding: .9rem 1rem;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pay-method:hover .pay-method-body { border-color: var(--ink-300); background: var(--ink-50); }
.pay-method:has(input:checked) .pay-method-body { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(226,35,26,.12); }
.pay-method-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; color: #fff; flex-shrink: 0; }
.pay-method-ic.is-bank { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); }
.pay-method-ic.is-crypto { background: linear-gradient(135deg, #8e24aa, #4a148c); }
.pay-method-t { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.pay-method-t strong { font-size: .95rem; color: var(--ink-900); }
.pay-method-t small { font-size: .8rem; color: var(--ink-500); line-height: 1.4; }
.pay-method-check { margin-left: auto; font-size: 1.1rem; color: transparent; flex-shrink: 0; }
.pay-method:has(input:checked) .pay-method-check { color: var(--brand-500); }

.pay-steps { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .7rem; }
.pay-steps li { display: flex; gap: .8rem; align-items: flex-start; }
.pay-steps li > span { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-weight: 800; font-size: .8rem; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.pay-steps li div { display: flex; flex-direction: column; }
.pay-steps li strong { font-size: .9rem; color: var(--ink-900); }
.pay-steps li small { font-size: .8rem; color: var(--ink-500); }
.pay-agree { margin-top: .2rem; }

.order-card { padding: 1.3rem; }
.order-property { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.order-property img, .order-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.order-thumb { background: var(--ink-100); color: var(--ink-400); display: grid; place-items: center; font-size: 1.3rem; }
.order-type { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-600); }
.order-title { font-weight: 700; color: var(--ink-900); line-height: 1.3; margin-top: .1rem; }
.order-lines { margin: 0; display: grid; gap: .45rem; }
.order-lines div { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.order-lines dt { color: var(--ink-500); }
.order-lines dd { color: var(--ink-900); font-weight: 600; text-align: right; word-break: break-word; }
.order-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--ink-200); margin-top: 1rem; padding-top: .9rem; }
.order-total span { color: var(--ink-500); font-size: .9rem; font-weight: 600; }
.order-total strong { font-size: 1.25rem; font-weight: 900; color: var(--ink-950); letter-spacing: -.02em; }
.pay-trust { display: flex; gap: 1rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--ink-100); flex-wrap: wrap; }
.pay-trust span { font-size: .78rem; color: var(--ink-500); display: inline-flex; align-items: center; gap: .35rem; }
.pay-trust i { color: var(--brand-500); }
.pay-help { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; }
.pay-help i { font-size: 1.4rem; color: var(--brand-500); }
.pay-help strong { font-size: .9rem; }

.pay-status { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 99px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pay-status-pending { background: var(--ink-100); color: var(--ink-600); }
.pay-status-submitted { background: #fff4e0; color: #b26a00; }
.pay-status-verified { background: #e4f7ec; color: #127a3f; }
.pay-status-cancelled { background: var(--ink-100); color: var(--ink-400); }
.pay-head-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.pay-banner { display: flex; gap: .9rem; align-items: flex-start; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.pay-banner i { font-size: 1.5rem; }
.pay-banner strong { font-size: .95rem; }
.pay-banner p { font-size: .85rem; color: var(--ink-600); margin-top: .15rem; }
.pay-banner.is-verified { background: #e4f7ec; color: #127a3f; }
.pay-banner.is-submitted { background: #fff4e0; color: #b26a00; }
.pay-banner.is-cancelled { background: var(--ink-100); color: var(--ink-500); }

.pay-tabs { display: flex; gap: .4rem; margin-bottom: 1.1rem; }
.pay-tab { border: 1px solid var(--ink-200); background: #fff; color: var(--ink-600); font-weight: 700; font-size: .85rem; padding: .55rem 1rem; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; transition: all .15s ease; }
.pay-tab:hover { border-color: var(--ink-300); color: var(--ink-900); }
.pay-tab.active { background: var(--brand-500); border-color: var(--brand-500); color: #fff; box-shadow: var(--shadow-brand); }
.pay-note { font-size: .85rem; color: var(--ink-500); margin: 0 0 1rem; line-height: 1.5; }

.copy-list { display: grid; gap: .5rem; }
.copy-row { display: flex; align-items: center; gap: .7rem; background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: 10px; padding: .6rem .8rem; }
.copy-row.highlight { border-color: var(--brand-200); background: var(--brand-50); }
.copy-row-t { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; }
.copy-lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); }
.copy-val { font-size: .88rem; font-weight: 600; color: var(--ink-900); word-break: break-all; }
.copy-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-500); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: all .15s ease; }
.copy-btn:hover { color: var(--brand-600); border-color: var(--brand-300); }
.copy-btn.copied { color: #127a3f; border-color: #9fd6b8; background: #e4f7ec; }

.crypto-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 1.2rem; align-items: start; }
.crypto-fields { min-width: 0; }
.crypto-qr { background: #fff; border: 1px solid var(--ink-200); border-radius: 14px; padding: .8rem; display: grid; gap: .4rem; place-items: center; }
.crypto-qr img { border-radius: 8px; max-width: 100%; height: auto; }

.pay-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.pay-timeline li { display: flex; gap: .6rem; align-items: flex-start; }
.pay-timeline i { font-size: 1rem; color: var(--ink-300); }
.pay-timeline li.done i { color: var(--brand-500); }
.pay-timeline li.current i { color: #b26a00; }
.pay-timeline div { display: flex; flex-direction: column; min-width: 0; }
.pay-timeline strong { font-size: .85rem; color: var(--ink-900); }
.pay-timeline small { font-size: .75rem; color: var(--ink-400); }

.pay-list { display: grid; gap: .7rem; }
.pay-list-row { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--ink-200); border-radius: 14px; padding: .85rem 1rem; text-decoration: none; transition: all .15s ease; }
.pay-list-row:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.pay-list-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1.05rem; flex-shrink: 0; }
.pay-list-ic.is-bank { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); }
.pay-list-ic.is-crypto { background: linear-gradient(135deg, #8e24aa, #4a148c); }
.pay-list-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pay-list-main strong { font-size: .9rem; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-list-main small { font-size: .76rem; }
.pay-list-amount { font-weight: 800; color: var(--ink-950); font-size: .92rem; white-space: nowrap; }

@media (max-width: 1024px) {
    .pay-layout { grid-template-columns: 1fr; }
    .pay-side { position: static; }
}
@media (max-width: 640px) {
    .crypto-grid { grid-template-columns: 1fr; }
    .pay-list-row { flex-wrap: wrap; }
    .pay-list-amount { margin-left: auto; }
}

/* ============================================================
   Google sign-in + impersonation
   ============================================================ */
.btn-google { background: #fff; color: var(--ink-900); border: 1px solid var(--ink-200); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.btn-google:hover { border-color: var(--ink-300); background: var(--ink-50); box-shadow: var(--shadow-sm); }
.btn-google i { color: #4285F4; font-size: 1.1rem; }
.auth-divider { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0; color: var(--ink-400); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--ink-100); flex: 1; }

.impersonate-bar { background: linear-gradient(90deg, #b26a00, #8a5200); color: #fff; }
.impersonate-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .85rem; flex-wrap: wrap; }
.impersonate-bar .btn { background: #fff; color: #8a5200; border: 0; }
.impersonate-bar .btn:hover { background: #fff4e0; color: #6b3f00; }
@media (max-width: 520px) {
    .impersonate-inner { justify-content: center; }
}

/* ============================================================
   Crypto wallets (admin)
   ============================================================ */
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; }
.wallet-card { display: flex; flex-direction: column; }
.wallet-card-top { display: flex; gap: 1rem; align-items: flex-start; }
.wallet-qr { width: 96px; height: 96px; border-radius: 12px; border: 1px solid var(--ink-200); background: #fff; padding: 4px; flex-shrink: 0; }
.wallet-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wallet-qr-empty { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2rem; color: var(--ink-300); }
.wallet-head { min-width: 0; }
.wallet-badge { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 999px; background: rgba(226,35,26,.1); color: var(--brand-600); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.wchip { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 999px; background: var(--ink-100); color: var(--ink-600); font-size: .72rem; font-weight: 700; }
.wallet-addr { font-size: .78rem; color: var(--ink-700); background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: 10px; padding: .55rem .7rem; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 700; margin-top: .45rem; }
.pill-ok { background: rgba(20,132,60,.1); color: #14843c; }
.pill-off { background: var(--ink-100); color: var(--ink-500); }
.wallet-edit summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .82rem; color: var(--ink-600); border: 1px solid var(--ink-200); border-radius: 10px; padding: .5rem .8rem; display: flex; align-items: center; gap: .5rem; }
.wallet-edit summary::-webkit-details-marker { display: none; }
.wallet-edit summary:hover { border-color: var(--ink-300); background: var(--ink-50); color: var(--ink-900); }
.wallet-del .btn-ghost { color: var(--brand-600); }
.wallet-del .btn-ghost:hover { background: rgba(226,35,26,.08); }

/* ============================================================
   Crypto wallet picker (checkout)
   ============================================================ */
.wallet-picker { border-top: 1px dashed var(--ink-200); padding-top: 1.1rem; }
.wallet-picker-head { margin-bottom: .75rem; }
.wallet-picker-head h3 { font-size: .95rem; }
.wallet-option { position: relative; display: block; cursor: pointer; margin-top: .6rem; }
.wallet-option input { position: absolute; opacity: 0; pointer-events: none; }
.wallet-option-body { display: flex; align-items: center; gap: .9rem; border: 1.5px solid var(--ink-200); border-radius: 14px; padding: .7rem .9rem; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.wallet-option:hover .wallet-option-body { border-color: var(--ink-300); background: var(--ink-50); }
.wallet-option:has(input:checked) .wallet-option-body { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(226,35,26,.12); }
.pick-qr { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--ink-200); background: #fff; padding: 2px; flex-shrink: 0; display: grid; place-items: center; color: var(--ink-300); font-size: 1.4rem; }
.pick-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pick-t { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.pick-t strong { font-size: .9rem; color: var(--ink-900); }
.pick-t small { font-size: .76rem; color: var(--ink-500); }
.pick-btns { display: flex; gap: .35rem; flex-wrap: wrap; margin-left: auto; }
.pick-check { margin-left: .5rem; font-size: 1.05rem; color: transparent; flex-shrink: 0; }
.wallet-option:has(input:checked) .pick-check { color: var(--brand-500); }

/* ============================================================
   Receipt upload + preview
   ============================================================ */
.upload-box { display: flex; align-items: center; gap: .85rem; border: 1.5px dashed var(--ink-300); border-radius: 14px; padding: 1rem 1.1rem; cursor: pointer; transition: border-color .15s ease, background .15s ease; width: 100%; }
.upload-box:hover { border-color: var(--brand-400); background: var(--brand-50); }
.upload-box input { position: absolute; opacity: 0; pointer-events: none; }
.upload-box > i { font-size: 1.7rem; color: var(--brand-500); flex-shrink: 0; }
.upload-box-t { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.upload-box-t strong { font-size: .9rem; color: var(--ink-900); }
.upload-box-t small { font-size: .78rem; color: var(--ink-500); }
.upload-preview { max-width: 110px; max-height: 74px; border-radius: 8px; object-fit: cover; margin-left: auto; flex-shrink: 0; }
.upload-check { margin-left: auto; color: #14843c; font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.upload-box.is-filled { border-style: solid; border-color: rgba(20,132,60,.5); background: rgba(20,132,60,.05); }
.receipt-box { display: flex; align-items: flex-start; gap: 1rem; border: 1px solid var(--ink-200); border-radius: 14px; padding: .9rem; background: var(--ink-50); }
.receipt-box img { width: 130px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ink-200); background: #fff; flex-shrink: 0; }
.receipt-box > div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.receipt-box small { font-size: .76rem; }

@media (max-width: 520px) {
    .pick-btns { margin-left: 0; }
    .wallet-option-body { flex-wrap: wrap; }
    .receipt-box { flex-direction: column; }
}
