:root {
    --navy: #0d2137;
    --navy-2: #14304d;
    --teal: #00b4a6;
    --teal-d: #009b8f;
    --teal-l: #2ad0c2;
    --orange: #ff6b35;
    --ink: #1f2a37;
    --muted: #6b7280;
    --line: #e6eaf0;
    --bg: #f5f7fa;
    --bg-soft: #f1f5f9;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 11px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    --shadow-h: 0 10px 24px rgba(16, 24, 40, .12), 0 24px 56px rgba(13, 33, 55, .16);
    --shadow-3d: 0 2px 4px rgba(13, 33, 55, .06), 0 18px 40px -12px rgba(13, 33, 55, .22);
    --shadow-glow: 0 8px 30px -6px rgba(0, 180, 166, .45);
    /* Gradients for modern, fluid surfaces */
    --grad-teal: linear-gradient(135deg, #14c8ba 0%, #00b4a6 55%, #009b8f 100%);
    --grad-accent: linear-gradient(135deg, #ff8a4c 0%, #ff6b35 60%, #f4511e 100%);
    --grad-navy: linear-gradient(135deg, #14304d 0%, #0d2137 100%);
    --grad-sheen: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,0) 45%);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --t-fast: .16s var(--ease);
    --t-med: .3s var(--ease);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1100px 520px at 88% -8%, rgba(0, 180, 166, .08), transparent 60%),
        radial-gradient(900px 480px at 0% 6%, rgba(255, 107, 53, .06), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Sticky footer: fill the viewport, let main grow, footer sits at bottom. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page-load entrance for the main content. */
main.container { animation: page-rise .5s var(--ease) both; }
@keyframes page-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

a { color: var(--teal-d); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 4vw, 38px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }

.container { max-width: 1120px; width: 100%; margin: 0 auto; padding: 28px 20px 56px; flex: 1 0 auto; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 33, 55, .92);
    backdrop-filter: saturate(140%) blur(8px);
    color: #fff;
}
.topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.3px; display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand .mate { color: var(--teal); }
/* White-bg logo shown as a rounded chip so it reads on the dark topbar. */
.brand-logo { height: 42px; width: auto; border-radius: 9px; display: block; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
    color: #cdd7e3; padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav a.cta { background: var(--teal); color: #042; font-weight: 700; }
.nav a.cta:hover { background: #2ad0c2; }

/* ---------- Notification bell + badge ---------- */
.nav-bell { position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.nav-bell:hover { background: rgba(255, 255, 255, .08); }
.bell-icon { font-size: 17px; line-height: 1; filter: grayscale(.2); }
.notif-badge {
    position: absolute; top: 2px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center;
    background: #ef4444; color: #fff; font-size: 11px; font-weight: 800;
    line-height: 1; border-radius: 999px; border: 2px solid var(--navy);
}
.notif-badge[hidden] { display: none; }
.notif-badge-inline {
    position: static; margin-left: 6px; border: 0; vertical-align: middle;
}

/* ---------- Live toast notifications ---------- */
.toast-stack {
    position: fixed; top: 76px; right: 18px; z-index: 1000;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 360px; pointer-events: none;
}
.toast {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fff; color: var(--navy);
    border: 1px solid var(--line); border-left: 4px solid var(--teal);
    border-radius: 10px; padding: 12px 12px 12px 14px;
    box-shadow: 0 10px 30px rgba(13, 33, 55, .18);
    text-decoration: none; pointer-events: auto;
    transform: translateX(120%); opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast:hover { text-decoration: none; box-shadow: 0 12px 34px rgba(13, 33, 55, .24); }
.toast-bell { font-size: 18px; line-height: 1.2; flex: 0 0 auto; }
.toast-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toast-title { font-weight: 700; font-size: 14px; }
.toast-text { font-size: 13px; color: var(--muted); overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.toast-close {
    margin-left: auto; flex: 0 0 auto; border: 0; background: transparent;
    color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.toast-close:hover { color: var(--navy); }
@media (max-width: 560px) {
    .toast-stack { left: 12px; right: 12px; max-width: none; }
}

.notif-row { position: relative; display: block; color: inherit; }
.notif-link { cursor: pointer; transition: box-shadow .12s ease, transform .12s ease; }
.notif-link:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(13, 33, 55, .1); transform: translateY(-1px); }
.notif-link .row-main { color: var(--navy); }
.notif-unread { border-left: 3px solid var(--teal); background: #f3fcfb; }
.notif-dot { position: absolute; top: 14px; right: 14px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--teal); }

/* ---------- Profile dropdown ---------- */
.usermenu { position: relative; }
.usermenu-trigger {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, .06); color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 5px 10px 5px 6px; border-radius: 999px;
    font-size: 14px; font-weight: 600; cursor: pointer;
}
.usermenu-trigger:hover { background: rgba(255, 255, 255, .12); }
.usermenu .avatar-sm {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
}
.usermenu .avatar-initials {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--teal); color: #042; font-size: 12px; font-weight: 800;
}
.usermenu-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu-caret { font-size: 11px; color: #cdd7e3; transition: transform .15s ease; }
.usermenu.open .usermenu-caret { transform: rotate(180deg); }
.usermenu-panel {
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 210px; background: #fff; color: var(--ink);
    border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 40px rgba(13, 33, 55, .18);
    padding: 6px; display: none; z-index: 60;
}
.usermenu.open .usermenu-panel { display: block; }
.usermenu-panel a {
    display: block; padding: 9px 12px; border-radius: 8px;
    color: var(--ink); font-size: 14px; font-weight: 500;
}
.usermenu-panel a:hover { background: var(--bg-soft, #f1f5f9); text-decoration: none; }
.usermenu-panel .usermenu-danger { color: #c0392b; }
.usermenu-logout { margin: 0; }
.usermenu-logout button {
    display: block; width: 100%; text-align: left;
    padding: 9px 12px; border-radius: 8px; border: 0;
    background: none; color: #c0392b; font: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer;
}
.usermenu-logout button:hover { background: var(--bg-soft, #f1f5f9); }
.usermenu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- Buttons ---------- */
.btn, button {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--grad-teal); color: #fff; border: 0; padding: 11px 22px;
    border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(0, 180, 166, .55), inset 0 1px 0 rgba(255,255,255,.22);
    transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
}
.btn::after, button::after {
    /* moving sheen on hover */
    content: ""; position: absolute; inset: 0; background: var(--grad-sheen);
    opacity: 0; transition: opacity var(--t-med);
}
.btn:hover, button:hover {
    text-decoration: none; transform: translateY(-2px);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,.25);
    filter: saturate(1.05);
}
.btn:hover::after, button:hover::after { opacity: 1; }
.btn:active, button:active { transform: translateY(0) scale(.985); }
.btn:focus-visible, button:focus-visible { outline: 3px solid rgba(0,180,166,.4); outline-offset: 2px; }
.btn-accent { background: var(--grad-accent); box-shadow: 0 6px 16px -6px rgba(255,107,53,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-accent:hover { box-shadow: 0 10px 30px -6px rgba(255,107,53,.5), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { background: #fff; color: var(--teal-d); border-color: var(--teal); box-shadow: var(--shadow-h); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 28px; font-size: 16px; }

/* Click ripple (added by ui.js) */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
    background: rgba(255, 255, 255, .5); animation: ripple .6s var(--ease); }
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }

/* Utility / icon buttons opt out of the primary-button chrome (glow + sheen). */
.nav-toggle, .usermenu-trigger, .usermenu-logout button, .cal-nav, .gallery-thumb,
.toast-close, .suburb-suggest-item, .tab-label {
    box-shadow: none; background-image: none;
}
.nav-toggle::after, .usermenu-trigger::after, .usermenu-logout button::after,
.cal-nav::after, .gallery-thumb::after, .toast-close::after, .suburb-suggest-item::after { content: none; }
.usermenu-trigger:hover, .cal-nav:hover, .gallery-thumb:hover, .toast-close:hover,
.suburb-suggest-item:hover, .nav-toggle:hover { box-shadow: none; transform: none; filter: none; }

/* ---------- Forms ---------- */
input, select, textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 15px; background: #fff; color: var(--ink); font-family: inherit;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
input:hover, select:hover, textarea:hover { border-color: #cfd8e3; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(0, 180, 166, .15); background: #fff;
}
label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 4px; }
form p { margin: 0 0 14px; }

/* ---------- Hero ---------- */
.hero {
    /* Left-darkened overlay keeps the headline + search readable; the brand SVG
       banner shows through to the right. Final gradient is the fallback if the
       image is missing (or if a photo is later dropped at img/hero.jpg, swap the
       url below). */
    position: relative; overflow: hidden; isolation: isolate;
    background:
        linear-gradient(90deg, rgba(11,31,51,.94) 0%, rgba(11,31,51,.78) 42%, rgba(11,31,51,.30) 100%),
        url('../img/hero.svg') center/cover no-repeat,
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 64px 40px; margin-bottom: 28px;
    box-shadow: var(--shadow-3d);
}
.hero::before {
    /* slow-drifting teal glow for a living, fluid feel */
    content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1;
    right: -8%; top: -30%; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,166,.45), transparent 65%);
    filter: blur(20px); animation: hero-float 12s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-26px, 26px) scale(1.12); }
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .accent { color: var(--teal); }
.hero p { color: #c7d3e0; margin: 0 0 22px; font-size: 16px; max-width: 52ch; }

.searchbar {
    display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px;
    background: #fff; padding: 10px; border-radius: var(--radius); max-width: 720px;
}
.searchbar input, .searchbar select { border: 1px solid transparent; background: #f3f6f9; }
.searchbar .btn { white-space: nowrap; }
.hero-trust { margin: 16px 0 0; color: #9fb2c6; font-size: 13px; }
.hero-trust span { margin-right: 16px; display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--teal-l); flex: none; }

/* hero search: what / where / button */
.searchbar-lg {
    display: grid; grid-template-columns: 1.6fr 1.2fr auto; gap: 8px;
    align-items: end; max-width: 720px;
}
.searchbar-lg .sb-field { display: flex; flex-direction: column; gap: 2px; }
.searchbar-lg label { margin: 0 0 0 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.searchbar-lg input { border: 1px solid transparent; background: #f3f6f9; }
.searchbar-lg .btn { white-space: nowrap; height: 44px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
    padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--navy);
}
.chip:hover { border-color: var(--teal); color: var(--teal-d); text-decoration: none; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

/* ---------- Section heading ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.section-head a { font-size: 14px; font-weight: 600; }

/* ---------- Card grid + listing cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.listing-card {
    overflow: hidden; transform-style: preserve-3d; will-change: transform;
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.listing-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-3d);
    border-color: rgba(0, 180, 166, .35); text-decoration: none;
}
/* Pointer-tilt 3D (driven by ui.js): inner content lifts toward the cursor. */
.tilt-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.5), transparent 42%);
    transition: opacity var(--t-med); mix-blend-mode: overlay; }
.listing-card:hover .tilt-glow { opacity: 1; }
.thumb {
    position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; letter-spacing: .5px; font-size: 18px; text-transform: uppercase;
}
.thumb-label { opacity: .9; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-img ~ .thumb-label { display: none; }
.thumb-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge {
    position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, .35); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .3px;
    text-transform: uppercase;
}
.thumb-badges .badge { position: static; top: auto; left: auto; }
.badge-instant { background: var(--teal); }
.badge-featured { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.badge-sale { background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; }
.listing-body { padding: 14px 15px 16px; }
.listing-title { font-size: 16px; margin: 0 0 4px; color: var(--ink); }
.listing-meta { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.listing-price { margin: 0; color: var(--navy); font-weight: 800; font-size: 18px; }
.listing-price span { color: var(--muted); font-weight: 500; font-size: 13px; }

.badge-rating { left: auto; right: 10px; background: rgba(0, 0, 0, .55); }

/* inline SVG glyphs that replace emoji/dingbats */
.badge { display: inline-flex; align-items: center; gap: 4px; }
.badge-ico { width: 11px; height: 11px; }
.owner-verified svg { width: 10px; height: 10px; }
.card-owner-rating { display: inline-flex; align-items: center; gap: 3px; }
.card-owner-rating .rating-star { width: 13px; height: 13px; color: #f59e0b; }
.loc-icon svg { width: 18px; height: 18px; color: var(--teal-d); display: block; }
.btn .btn-ico { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }

/* owner row on listing cards */
.card-owner {
    display: flex; align-items: center; gap: 8px; margin-top: 12px;
    padding-top: 12px; border-top: 1px solid var(--line);
}
.avatar {
    width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
    object-fit: cover; background: #e6eaf0;
}
.avatar-initials {
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
}
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-md { width: 42px; height: 42px; font-size: 15px; }

/* ---------- Chat ---------- */
.chat-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.chat { min-width: 0; }
.chat-details { padding: 18px; position: sticky; top: 84px; }
.chat-details-title { margin: 0 0 12px; font-size: 16px; }
.chat-details-sub { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.chat-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.chat-item:hover { background: var(--bg-soft, #f1f5f9); text-decoration: none; }
.chat-item .row-thumb { width: 52px; height: 52px; }
.chat-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-item-title { font-weight: 700; color: var(--ink); }
.chat-facts .summary-row { padding: 6px 0; }
@media (max-width: 860px) {
    .chat-layout { grid-template-columns: 1fr; }
    .chat-details { position: static; order: -1; }
}
.chat-header {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px;
}
.chat-head-info { display: flex; flex-direction: column; line-height: 1.3; }
.chat-head-info strong { color: var(--ink); }
.chat-sub { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }
.presence { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.presence-dot { width: 8px; height: 8px; border-radius: 50%; background: #c2c9d2; }
.presence.is-online .presence-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.presence.is-online #presence-text, .presence.is-online .presence-text { color: #16a34a; }

.chat-thread {
    display: flex; flex-direction: column; gap: 8px;
    height: 56vh; overflow-y: auto; padding: 16px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.chat-empty { text-align: center; margin: auto; }
.bubble-row { display: flex; }
.bubble-row.mine { justify-content: flex-end; }
.bubble-row.theirs { justify-content: flex-start; }
.bubble {
    max-width: 72%; padding: 9px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45;
    white-space: pre-wrap; word-wrap: break-word;
}
.bubble-row.theirs .bubble { background: #eef2f6; color: var(--ink); border-bottom-left-radius: 4px; }
.bubble-row.mine .bubble { background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }

.chat-composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.chat-composer textarea {
    flex: 1; resize: none; padding: 11px 14px; border: 1px solid var(--line);
    border-radius: 22px; font: inherit; line-height: 1.4; max-height: 120px;
}
.chat-composer textarea:focus { outline: none; border-color: var(--teal); }
.btn-send {
    flex: 0 0 auto; padding: 11px 22px; border-radius: 22px; border: none;
    background: var(--teal); color: #fff; font-weight: 700; cursor: pointer;
}
.btn-send:hover { background: var(--teal-d); }
.card-owner-name {
    color: var(--ink); font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.owner-verified {
    flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
    background: var(--teal); color: #fff; font-size: 10px; font-weight: 900;
    display: inline-flex; align-items: center; justify-content: center;
}
.card-owner-rating { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.card-owner-rating .muted { font-weight: 500; }

/* thumbnail palettes */
.t1 { background: linear-gradient(135deg, #93c5fd, #3b82f6); }
.t2 { background: linear-gradient(135deg, #6ee7b7, #10b981); }
.t3 { background: linear-gradient(135deg, #fcd9b6, #fb923c); }
.t4 { background: linear-gradient(135deg, #c4b5fd, #8b5cf6); }
.t5 { background: linear-gradient(135deg, #5eead4, #14b8a6); }
.t6 { background: linear-gradient(135deg, #fda4af, #f43f5e); }

/* ---------- Listing detail ---------- */
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.gallery {
    aspect-ratio: 16 / 9; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 32px; text-transform: uppercase; letter-spacing: 1px;
}
.gallery.has-photo { overflow: hidden; background: #0b1f33; }
.gallery-main { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
    width: 84px; height: 64px; padding: 0; border: 2px solid transparent;
    border-radius: 10px; overflow: hidden; cursor: pointer; background: none;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--teal); }
.detail-meta { color: var(--muted); margin: 14px 0; }
.spec-list { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.spec-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; }
.spec-list .k { color: var(--muted); }
.price-card { position: sticky; top: 86px; padding: 20px; }
.price-card .price { font-size: 30px; font-weight: 800; color: var(--navy); }
.price-card .price span { font-size: 15px; color: var(--muted); font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 14px 0; }
.checklist li { padding: 5px 0 5px 24px; position: relative; color: #374151; font-size: 14px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

.availability { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-weight: 700; color: var(--navy); font-size: 14px; }
.cal-nav { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; color: var(--navy); font-size: 16px; line-height: 1; }
.cal-nav:hover { background: #f3f5f9; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { margin-bottom: 4px; }
.cal-dow span { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.cal-day { text-align: center; font-size: 13px; padding: 6px 0; border-radius: 6px; }
.cal-free { background: #e7f8f6; color: #0a7a72; cursor: pointer; }
.cal-free:hover { background: #cdeee9; }
.cal-busy { background: #f1f3f7; color: var(--muted); text-decoration: line-through; }
.cal-past { color: #c3c9d4; }
.cal-sel { background: #b8ece6; color: var(--navy); }
.cal-sel-edge { background: var(--teal); color: #fff; font-weight: 700; }
.cal-sel-edge:hover { background: var(--teal); }
.cal-selection { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--navy); }
.availability .btn[data-cal-cta] { margin-top: 10px; }
.cal-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-dot-free { background: #b8ece6; }
.cal-dot-busy { background: #d8dde6; }

.guidelines { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.guidelines h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.guidelines .next-step {
    background: #f0fbfa; border: 1px solid #b9ece7; color: #045f57;
    padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; margin: 0;
}

/* ---------- Badges / pills ---------- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-verified { background: #e6f9f6; color: #047a70; }
.pill-status { background: #eef2f7; color: #374151; }
.pill-confirmed { background: #e6f9f6; color: #047a70; }
.pill-pending { background: #fff4e5; color: #b45309; }
.pill-cancelled, .pill-declined, .pill-expired { background: #fdeced; color: #b42318; }
.pill-completed { background: #eef2ff; color: #3730a3; }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.step .num { width: 24px; height: 24px; border-radius: 50%; background: #e6eaf0; color: var(--muted);
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.step.active { color: var(--navy); font-weight: 700; }
.step.active .num { background: var(--navy); color: #fff; }
.step.done .num { background: var(--teal); color: #fff; }

/* ---------- Summary / rows ---------- */
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-row.total { font-weight: 800; font-size: 17px; color: var(--navy); border-bottom: 0; padding-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat { padding: 18px; }
.stat .stat-num { font-size: 26px; font-weight: 800; color: var(--navy); }
.stat .stat-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }

/* ---------- List rows ---------- */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; }
.row-card .row-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.row-card .row-main { font-weight: 600; color: var(--ink); }
.row-thumb {
    flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px;
    object-fit: cover; background: var(--bg-soft, #f1f5f9);
    display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.row-thumb-label { font-size: 14px; font-weight: 800; color: rgba(255, 255, 255, .9); }

/* ---------- Tabs (CSS-only) ---------- */
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.tab-bar { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab-label {
    padding: 10px 18px; cursor: pointer; font-weight: 600; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab-label:hover { color: var(--ink); }
.tab-count {
    display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px;
    border-radius: 10px; background: var(--bg-soft, #eef2f6); color: var(--muted);
    font-size: 12px; text-align: center;
}
.tab-panel { display: none; }
#tab-renter:checked ~ .tab-bar label[for="tab-renter"],
#tab-owner:checked ~ .tab-bar label[for="tab-owner"] {
    color: var(--teal); border-bottom-color: var(--teal);
}
#tab-renter:checked ~ .tab-bar label[for="tab-renter"] .tab-count,
#tab-owner:checked ~ .tab-bar label[for="tab-owner"] .tab-count {
    background: var(--teal); color: #fff;
}
#tab-renter:checked ~ #panel-renter,
#tab-owner:checked ~ #panel-owner { display: block; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 420px; margin: 30px auto; }
.auth-card { padding: 26px; }

/* ---------- Banner ---------- */
.banner { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.banner-ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.banner-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.banner .errorlist { margin: 0; padding: 0; list-style: none; }
.banner .errorlist li { margin: 0; }
.banner .errorlist li + li { margin-top: 4px; }
.field-error { display: block; margin-top: 4px; color: #b91c1c; font-size: 13px; }
.field-error .errorlist, ul.errorlist { margin: 0; padding-left: 1.1em; }

/* ---------- Rating breakdown ---------- */
.rating-breakdown { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.rb-item {
    display: flex; flex-direction: column; gap: 2px; padding: 8px 14px;
    background: #f6f8fb; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.rb-item .rb-label { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.rb-item strong { color: var(--teal); }
.review-subratings { display: block; margin-top: 2px; }

/* ---------- Agreement paper ---------- */
.agreement-paper { padding: 28px 30px; line-height: 1.55; }
.agreement-paper h2 { margin-top: 0; }
.agreement-details { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
.agreement-details th {
    text-align: left; width: 38%; color: var(--muted); font-weight: 600;
    padding: 7px 10px 7px 0; vertical-align: top; border-bottom: 1px solid var(--line);
}
.agreement-details td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.agreement-clauses { padding-left: 20px; }
.agreement-clauses li { margin-bottom: 8px; }
.agreement-signatures { list-style: none; padding: 0; margin: 6px 0; }
.agreement-signatures li { margin-bottom: 4px; font-size: 14px; }
.agree-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; }
.agree-check input { margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 22px 20px; text-align: center; background: #fff; }
.footer-base { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-logo { height: 56px; width: auto; }
/* Brand logo on auth cards (login / signup). */
.auth-logo { display: block; width: 120px; height: auto; margin: 0 auto 14px; }

/* ---------- Pagination ---------- */
.pager { display: flex; gap: 12px; align-items: center; margin-top: 22px; color: var(--muted); font-size: 14px; }

/* ---------- Home sections ---------- */
.home-section { margin: 48px 0; }
.home-section h2.centered { text-align: center; margin-bottom: 26px; }

.steps-grid, .why-grid {
    display: grid; gap: 18px;
}
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.why-grid { grid-template-columns: repeat(4, 1fr); }

.step-card, .why-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 24px 20px; text-align: center;
}
.icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; margin: 0 auto 14px;
    border-radius: 15px; color: var(--teal-d);
    background: rgba(0, 180, 166, .1);
    border: 1px solid rgba(0, 180, 166, .18);
}
.icon-badge svg { width: 26px; height: 26px; }
.step-card h3, .why-card h3 { margin: 0 0 6px; }
.step-card p, .why-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* trust stats band */
.stats-band {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    border-radius: 20px; padding: 32px 24px; margin: 48px 0; text-align: center;
}
.stat-band-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-band-num { display: block; font-size: 34px; font-weight: 800; color: var(--teal); }
.stat-band-label { color: #c7d3e0; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

/* testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 22px; margin: 0;
}
.testimonial blockquote { margin: 0 0 16px; color: var(--ink); font-size: 15px; line-height: 1.6; }
.testimonial figcaption { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }

/* closing CTA */
.cta-band {
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: var(--shadow); padding: 40px 28px; text-align: center; margin: 48px 0 8px;
}
.cta-band p { color: var(--muted); margin: 0 0 20px; }

/* ---------- Public profile ---------- */
.profile-header { display: flex; gap: 20px; align-items: center; padding: 24px; }
.profile-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700; color: #fff;
}
.profile-headinfo h1 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-rating { margin: 0 0 4px; font-weight: 600; }
.profile-bio { margin: 8px 0 0; max-width: 60ch; }

/* ---------- Location ---------- */
.location-bar { padding: 12px 16px; margin-bottom: 20px; }
.loc-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; }
.loc-current { font-size: 14px; }
.loc-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.loc-controls input[type=text] { min-width: 220px; }
.btn.small { padding: 6px 12px; font-size: 13px; }
[data-suburb-field] { position: relative; }
.suburb-suggest {
    position: absolute; z-index: 50; left: 0; right: 0; top: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: var(--shadow); margin-top: 4px; max-height: 260px; overflow-y: auto;
}
.suburb-suggest-item {
    display: block; width: 100%; text-align: left; background: none; border: none;
    padding: 10px 12px; cursor: pointer; color: var(--ink); font-size: 14px;
}
.suburb-suggest-item:hover { background: #f3f6f9; }

/* ---------- Instalment schedule ---------- */
.installments { border-collapse: collapse; }
.installments th, .installments td {
    text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.installments th { color: var(--muted); font-weight: 600; }

/* ---------- Condition photos ---------- */
.condition-list { display: flex; flex-direction: column; gap: 14px; }
.condition-report {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fafbfc;
}
.condition-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.condition-photos img {
    width: 88px; height: 88px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    display: block;
}

/* Dispute evidence */
.evidence-list { display: flex; flex-direction: column; gap: 12px; }
.evidence { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fafbfc; }
.evidence-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-band, .testimonials { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .detail { grid-template-columns: 1fr; }
    .price-card { position: static; }
    .searchbar-lg { grid-template-columns: 1fr 1fr; }
    .searchbar-lg .btn { grid-column: 1 / -1; }
    .steps-grid, .testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .container { padding: 18px 14px 44px; }
    .searchbar { grid-template-columns: 1fr; }
    .searchbar-lg { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: 1fr; gap: 22px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .hero { padding: 34px 22px; }
    .spec-list { grid-template-columns: 1fr; }
    .section-head { flex-wrap: wrap; gap: 6px; }
}

/* ===================================================================
   Modern UI overhaul: loader · nav progress · mobile menu · reveal · 3D
   =================================================================== */

/* ---------- Loading screen ---------- */
.app-loader {
    position: fixed; inset: 0; z-index: 4000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    background: var(--grad-navy);
    transition: opacity .5s var(--ease), visibility .5s var(--ease);
    /* Failsafe: hide even if JS never runs, so the overlay can't trap the page. */
    animation: loader-failsafe .4s ease 2.4s forwards;
}
.app-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; animation: none; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader-brand { font-size: 30px; font-weight: 800; letter-spacing: -.4px; color: #fff;
    animation: loader-pulse 1.6s var(--ease) infinite; }
.loader-brand .mate { color: var(--teal); }
/* Brand logo on the loading splash (white-bg logo → rounded card on navy). */
.loader-logo { width: 132px; height: auto; border-radius: 18px; box-shadow: var(--shadow-h);
    animation: loader-pulse 1.6s var(--ease) infinite; }
.loader-ring {
    width: 52px; height: 52px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--teal);
    animation: loader-spin .8s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .75; transform: scale(.97); } }

/* ---------- Top navigation progress bar ---------- */
.nav-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    z-index: 5000; background: var(--grad-teal); box-shadow: 0 0 10px rgba(0,180,166,.7);
    opacity: 0; transition: width .3s var(--ease), opacity .3s var(--ease);
}
.nav-progress.active { opacity: 1; }

/* ---------- Mobile hamburger menu ---------- */
.nav-toggle {
    display: none; width: 42px; height: 42px; padding: 0; flex: 0 0 auto;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px; box-shadow: none; cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,.16); transform: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
    position: relative; transition: transform var(--t-med), opacity var(--t-fast); margin: 0 auto;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.topbar.nav-open .nav-toggle span { background: transparent; }
.topbar.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.topbar.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: rgba(13, 33, 55, .98);
        backdrop-filter: saturate(140%) blur(10px);
        padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 24px 40px rgba(0,0,0,.3);
        transform: translateY(-10px); opacity: 0; visibility: hidden;
        transition: transform var(--t-med), opacity var(--t-med), visibility var(--t-med);
    }
    .topbar.nav-open .nav { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav a { width: 100%; padding: 11px 12px; border-radius: 10px; }
    .nav a.cta { text-align: center; justify-content: center; margin-top: 4px; }
    .nav-bell { width: auto; height: auto; justify-content: flex-start; padding: 11px 12px; }
    .nav-bell::after { content: "Alerts"; margin-left: 8px; color: #cdd7e3; font-size: 14px; font-weight: 500; }
    .usermenu { width: 100%; }
    .usermenu-trigger { width: 100%; border-radius: 12px; }
    .usermenu-name { max-width: none; margin-right: auto; }
    .usermenu-panel { position: static; width: 100%; margin-top: 6px; box-shadow: none;
        border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
    .usermenu-panel a, .usermenu-logout button { color: #e6edf5; }
    .usermenu-panel a:hover, .usermenu-logout button:hover { background: rgba(255,255,255,.08); }
}

/* ---------- Scroll reveal (ui.js adds .reveal-in) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); will-change: opacity, transform; }
.reveal.reveal-in { opacity: 1; transform: none; }

/* ---------- Extra 3D / interactive polish ---------- */
.brand { transition: transform var(--t-fast); display: inline-block; }
.brand:hover { transform: translateY(-1px) scale(1.02); }
.stat, .step-card, .why-card, .testimonial {
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.stat:hover, .step-card:hover, .why-card:hover, .testimonial:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-3d); border-color: rgba(0,180,166,.3);
}
.icon-badge { transition: transform var(--t-med), background var(--t-med), border-color var(--t-med); }
.step-card:hover .icon-badge, .why-card:hover .icon-badge {
    transform: translateY(-3px); background: rgba(0, 180, 166, .16); border-color: rgba(0, 180, 166, .32);
}
.chip { transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pill { box-shadow: inset 0 0 0 1px rgba(0,0,0,.02); }
.row-card { transition: transform var(--t-fast), box-shadow var(--t-fast); }
a.row-card:hover, .row-card.notif-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.stats-band { position: relative; overflow: hidden; box-shadow: var(--shadow-3d); }
.stats-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(600px circle at 80% -20%, rgba(0,180,166,.25), transparent 60%); }
.stat-band-num { transition: transform var(--t-med); }
.stat-band-item:hover .stat-band-num { transform: scale(1.08); }
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; z-index: 0; width: 380px; height: 380px; right: -120px; top: -160px;
    border-radius: 50%; background: radial-gradient(circle, rgba(0,180,166,.14), transparent 65%); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- SEO landing pages (category × suburb) ---------- */
.crumbs { margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.landing-hero { padding: 8px 0 4px; }
.landing-hero h1 { margin: 0 0 8px; }
.landing-hero .lead { color: var(--muted); max-width: 60ch; font-size: 16px; }
.landing-search { display: flex; gap: 10px; margin-top: 16px; max-width: 460px; }
.landing-search input { flex: 1; }
.landing-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
                 gap: 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.landing-links h2 { font-size: 18px; margin: 0 0 12px; }
.link-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line);
                border-radius: 999px; font-size: 14px; color: var(--ink); text-decoration: none; background: #fff; }
.link-cloud a:hover { border-color: var(--teal); color: var(--teal-d); }

/* SEO footer link cloud */
.footer-seo { max-width: 1120px; margin: 0 auto 18px; padding: 0 20px; }
.footer-seo-label { display: block; font-size: 12px; text-transform: uppercase;
                    letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.footer-base { opacity: .85; }

/* SEO landing: live stats strip + FAQ */
.stats-strip { margin-top: 14px; padding: 10px 14px; background: var(--bg-soft);
               border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink); display: inline-block; }
.stats-strip strong { color: var(--navy); }
.faq { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 4px 14px; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 10px 0; color: var(--navy); }
.faq-item .faq-a { padding: 0 0 12px; color: var(--ink); font-size: 14px; }

/* ---------- Listing photo uploader (add-one-by-one) ---------- */
.photo-uploader { margin: 0 0 14px; }
.photo-uploader > label { display: block; margin-bottom: 6px; }
.photo-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px; padding: 6px; border: 2px dashed transparent; border-radius: var(--radius-sm);
    transition: border-color var(--t-fast), background var(--t-fast);
}
.photo-grid.dragging { border-color: var(--teal); background: rgba(0, 180, 166, .06); }
.photo-tile {
    position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-sm);
    overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft);
    box-shadow: var(--shadow);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove {
    position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
    border: none; border-radius: 50%; background: rgba(13, 33, 55, .72); color: #fff;
    font-size: 17px; line-height: 1; cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: background var(--t-fast), transform var(--t-fast);
}
.photo-remove:hover { background: #c0392b; transform: scale(1.08); }
.photo-cover-tag {
    position: absolute; bottom: 6px; left: 6px; padding: 2px 8px; border-radius: 999px;
    background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.photo-add {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    aspect-ratio: 1 / 1; border: 2px dashed var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.photo-add:hover { border-color: var(--teal); color: var(--teal-d); background: rgba(0, 180, 166, .05); }
.photo-add svg { width: 26px; height: 26px; }

/* ---------- Review reminder modal ---------- */
.review-modal {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center;
    justify-content: center; padding: 20px; opacity: 0; transition: opacity var(--t-med);
}
.review-modal.show { opacity: 1; }
.review-modal-backdrop { position: absolute; inset: 0; background: rgba(13, 33, 55, .55); backdrop-filter: blur(2px); }
.review-modal-card {
    position: relative; background: #fff; border-radius: var(--radius-lg); padding: 28px 26px;
    max-width: 400px; width: 100%; text-align: center; box-shadow: var(--shadow-h);
    transform: translateY(14px) scale(.98); transition: transform var(--t-med);
}
.review-modal.show .review-modal-card { transform: none; }
.review-modal-card h2 { margin: 4px 0 8px; }
.review-modal-stars { color: #f59e0b; font-size: 30px; letter-spacing: 3px; }
.review-modal-close {
    position: absolute; top: 10px; right: 12px; border: none; background: none;
    font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer;
}
.review-modal-close:hover { color: var(--navy); }
.review-modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }

/* ---------- Standalone review page ---------- */
.review-page { max-width: 560px; margin: 24px auto; }
.review-page .back-link { display: inline-block; margin-bottom: 12px; }
.review-card { padding: 26px 24px; }
.review-listing { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.review-thumb { width: 84px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.review-thumb .thumb-img { width: 100%; height: 100%; object-fit: cover; }
.review-listing-title { font-size: 17px; margin: 0; }
.review-form label { display: block; margin-top: 12px; font-weight: 600; }
.review-form select, .review-form textarea { width: 100%; }

/* ---------- Error pages (404 / 403) ---------- */
.error-page { max-width: 560px; margin: 40px auto; text-align: center; padding: 20px; }
.error-page .error-code { font-size: clamp(64px, 14vw, 120px); font-weight: 800; line-height: 1;
    color: var(--teal); letter-spacing: -2px; }
.error-page h1 { margin: 6px 0 10px; }
.error-page .muted { max-width: 42ch; margin: 0 auto 22px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
