/* =====================================================================
   Built-in services: Auto Market (/auto) and Honda Bass (/bass).
   Shared building blocks are prefixed .svc-; they reuse the site's
   colour variables, so light/dark themes and admin brand colours apply.
   ===================================================================== */

.svc { --svc-gap: 1.4rem; }
.svc .small { font-size: .85rem; }
.svc .grow { flex: 1; min-width: 0; }
.svc [hidden] { display: none !important; }

/* ---------- Hero + search ---------- */
.svc-hero {
    background: radial-gradient(900px 380px at 90% -20%, var(--brand-soft), transparent), var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 2.6rem 0 1.4rem;
}
.svc-hero-top { display: flex; gap: 1.5rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.svc-hero h1, .svc-hero .svc-h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: .8rem 0 .4rem; }
.svc-hero p { max-width: 60ch; }
.svc-search {
    display: flex; gap: .5rem; margin-top: 1.6rem; padding: .5rem; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.svc-search .input { width: auto; flex: 0 1 190px; border-color: transparent; background: var(--bg-alt); }
.svc-search .input.grow { flex: 1 1 220px; }
.svc-search .btn { flex: none; }

/* Type chips (Auto) */
.svc-chips { display: flex; gap: .55rem; margin-top: 1.2rem; overflow-x: auto; padding: .15rem .1rem .7rem; scroll-behavior: smooth; scroll-snap-type: x proximity; }
.svc-chips .svc-chip { scroll-snap-align: start; }
.svc-chip {
    flex: none; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
    padding: .5rem .9rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface);
    font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink); transition: .15s;
}
.svc-chip:hover { border-color: var(--brand); }
.svc-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.svc-chip .n { font-size: .75rem; font-weight: 700; opacity: .7; }

/* ---------- Scrollbars (chips, photo strips, filter panel) ----------
   Thin, rounded, brand-tinted; the thumb darkens on hover. */
.svc-chips, .svc-thumbs, .svc-filters, .svc-modal {
    --svc-sb-thumb: color-mix(in srgb, var(--brand) 45%, transparent);
    --svc-sb-thumb-hover: var(--brand);
    --svc-sb-track: color-mix(in srgb, var(--brand) 10%, transparent);
}
/* Firefox. Chrome ignores the ::-webkit-scrollbar rules below once these
   standard properties are set, so they apply only where those rules don't. */
@supports not selector(::-webkit-scrollbar) {
    .svc-chips, .svc-thumbs, .svc-filters, .svc-modal {
        scrollbar-width: thin;
        scrollbar-color: var(--svc-sb-thumb) var(--svc-sb-track);
    }
}
.svc-chips::-webkit-scrollbar, .svc-thumbs::-webkit-scrollbar,
.svc-filters::-webkit-scrollbar, .svc-modal::-webkit-scrollbar { width: 8px; height: 6px; }
.svc-chips::-webkit-scrollbar-track, .svc-thumbs::-webkit-scrollbar-track,
.svc-filters::-webkit-scrollbar-track, .svc-modal::-webkit-scrollbar-track { background: var(--svc-sb-track); border-radius: 99px; margin: 0 4px; }
.svc-chips::-webkit-scrollbar-thumb, .svc-thumbs::-webkit-scrollbar-thumb,
.svc-filters::-webkit-scrollbar-thumb, .svc-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px;
}
.svc-chips::-webkit-scrollbar-thumb:hover, .svc-thumbs::-webkit-scrollbar-thumb:hover,
.svc-filters::-webkit-scrollbar-thumb:hover, .svc-modal::-webkit-scrollbar-thumb:hover { background: var(--svc-sb-thumb-hover); }
.svc-filters::-webkit-scrollbar-thumb, .svc-modal::-webkit-scrollbar-thumb { background: var(--svc-sb-thumb); }
.svc-chips::-webkit-scrollbar-button, .svc-thumbs::-webkit-scrollbar-button { display: none; }
/* Soft fade at the edges that still have chips to scroll to (auto.js sets the classes) */
.svc-chips.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.svc-chips.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.svc-chips.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

/* ---------- Body / tabs ---------- */
.svc-setup { margin-bottom: 1.2rem; padding: .9rem 1.1rem; border-radius: 12px; background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; }
html[data-theme="dark"] .svc-setup { background: #3b2a0a; color: #fde68a; border-color: #92400e; }
.svc-body { padding: 1.6rem 0 3.5rem; }
.svc-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.svc-tab {
    background: none; border: 0; border-bottom: 3px solid transparent; padding: .7rem 1rem; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--ink-soft);
}
.svc-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.svc-layout { display: grid; grid-template-columns: 270px 1fr; gap: var(--svc-gap); align-items: start; }
.svc-filters {
    position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow);
}
.svc-filters .field { margin-bottom: .8rem; }
.svc-filters .field > span { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.svc-filters .input { padding: .5rem .7rem; }
.svc-filters-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.svc-filters-head strong { flex: 1; font-size: 1.05rem; }
.svc-filters-head .svc-x { display: none; }
.svc-apply { display: none; position: sticky; bottom: 0; margin-top: .4rem; }
.svc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }

.svc-toolbar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .9rem; }
.svc-toolbar #autoTotal, .svc-toolbar #bassTotal, .svc-toolbar #propTotal { margin-right: auto; font-weight: 600; }
.svc-sort { display: flex; align-items: center; gap: .5rem; }
.svc-sort .input { width: auto; padding: .45rem .7rem; }
.svc-filter-btn { display: none; }
.svc-toggle { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-weight: 500; user-select: none; }
.svc-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }

.svc-active { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.svc-active:empty { display: none; }
.svc-tag {
    display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .4rem .25rem .7rem; border-radius: 99px;
    background: var(--brand-soft); color: var(--brand); font-size: .85rem; font-weight: 600; border: 0; cursor: pointer; font-family: inherit;
}
.svc-tag::after { content: '✕'; font-size: .7rem; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .06); }

/* ---------- Result cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.svc-card {
    display: flex; flex-direction: column; text-align: left; cursor: pointer; padding: 0; font: inherit; color: inherit;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; position: relative;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.svc-thumb { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--bg-alt); }
.svc-thumb.ph { display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--bg-alt), var(--brand-soft)); }
.svc-card-body { padding: .8rem .95rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.svc-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.svc-price { font-size: 1.15rem; font-weight: 800; color: var(--brand); }
.svc-price .neg { font-size: .75rem; font-weight: 600; color: var(--ink-soft); margin-left: .3rem; }
.svc-specs { display: flex; flex-wrap: wrap; gap: .25rem .7rem; font-size: .82rem; color: var(--ink-soft); }
.svc-meta { margin-top: auto; padding-top: .35rem; font-size: .8rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: .5rem; }
.svc-ribbon {
    position: absolute; top: .6rem; left: .6rem; padding: .2rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 800;
    background: var(--accent); color: #fff; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.svc-ribbon.sold { background: #64748b; }
.svc-count { position: absolute; top: .6rem; right: .6rem; padding: .15rem .5rem; border-radius: 8px; font-size: .75rem; background: rgba(0, 0, 0, .55); color: #fff; }

.svc-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.svc-empty .big { font-size: 2.6rem; display: block; margin-bottom: .4rem; }
.svc-skel { aspect-ratio: 3 / 4; border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-alt), var(--skeleton-mid), var(--bg-alt)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

/* People cards (Bass) */
.svc-grid.people { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.svc-person { padding: 1rem; gap: .6rem; }
.svc-person-head { display: flex; gap: .8rem; align-items: center; }
.svc-avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--brand-soft);
    display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--brand); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.svc-avatar.lg { width: 96px; height: 96px; font-size: 2.4rem; }
.svc-person h3 { display: flex; align-items: center; gap: .35rem; }
.svc-trade { color: var(--brand); font-weight: 600; font-size: .9rem; }
.svc-verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff; font-size: .7rem; flex: none; }
.svc-avail { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--success); }
.svc-avail::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.svc-avail.off { color: var(--ink-soft); }
.svc-stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.svc-stars .off { color: var(--line); }
.svc-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .4rem; font-size: .85rem; }
.svc-rating .muted { white-space: nowrap; }
.svc-actions { display: flex; gap: .4rem; margin-top: auto; }
.svc-actions .btn { flex: 1; padding: .45rem .6rem; font-size: .9rem; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; }

/* Trade tiles (Bass) */
.svc-trades { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1.6rem; }
.svc-trade-tile {
    display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; cursor: pointer; text-align: left;
    background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); transition: .15s;
}
.svc-trade-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.svc-trade-tile.active { border-color: var(--brand); background: var(--brand-soft); }
.svc-trade-tile .ico { font-size: 1.5rem; flex: none; }
.svc-trade-tile strong { display: block; font-size: .88rem; line-height: 1.2; }
.svc-trade-tile small { display: block; color: var(--ink-soft); font-size: .72rem; }
.svc-trades.collapsed .svc-trade-tile:nth-child(n+12):not(.more):not(.active) { display: none; }
.svc-trade-tile.more { justify-content: center; color: var(--brand); font-weight: 700; }

.svc-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.svc-how .step { display: flex; gap: .8rem; padding: 1.1rem; }
.svc-how .step-n { flex: none; margin: 0; }

/* ---------- My ads ---------- */
.svc-mine { display: grid; gap: .8rem; }
.svc-row {
    display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; box-shadow: var(--shadow);
}
.svc-row img, .svc-row .svc-thumb { width: 120px; height: 90px; border-radius: 10px; object-fit: cover; aspect-ratio: auto; }
.svc-row .btns { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.svc-status { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.svc-status.active { background: #dcfce7; color: #15803d; }
.svc-status.sold { background: #e2e8f0; color: #475569; }
.svc-status.hidden { background: #fee2e2; color: #b91c1c; }

/* ---------- Modal dialogs ---------- */
.svc-modal {
    position: fixed; inset: 0; z-index: 300; background: rgba(8, 18, 30, .55); backdrop-filter: blur(3px);
    display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; overflow-y: auto;
}
.svc-dialog {
    position: relative; width: min(720px, 100%); background: var(--surface); color: var(--ink);
    border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow-lg); margin: auto 0; animation: svcIn .18s ease-out;
}
.svc-dialog.wide { width: min(1000px, 100%); }
.svc-dialog h2 { font-size: 1.4rem; margin-bottom: .3rem; padding-right: 2.5rem; }
@keyframes svcIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body.svc-lock { overflow: hidden; }
.svc-x {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
    cursor: pointer; font-size: 1rem; display: grid; place-items: center; flex: none;
}
.svc-x:hover { color: var(--ink); border-color: var(--ink-soft); }
.svc-dialog > .svc-x { position: absolute; top: 1rem; right: 1rem; z-index: 2; }

.svc-dialog form { margin-top: 1rem; }
.svc-dialog .field-row.three { grid-template-columns: repeat(3, 1fr); }
.svc-inline { display: flex; align-items: center; gap: .5rem; padding-top: 1.7rem; cursor: pointer; }
.svc-inline input { width: 18px; height: 18px; accent-color: var(--brand); }
.svc-inline > span { margin: 0 !important; }
.svc-other { margin-top: .4rem; }
.svc-checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.svc-checks label {
    display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1.5px solid var(--line);
    border-radius: 99px; font-size: .85rem; cursor: pointer; user-select: none;
}
.svc-checks input { accent-color: var(--brand); }
.svc-checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.svc-form-actions { display: flex; gap: .6rem; justify-content: flex-end; align-items: center; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.svc-danger { color: var(--danger); }

.svc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.svc-photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-photo button {
    position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(0, 0, 0, .65); color: #fff; font-size: .75rem;
}
.svc-photo .cover { position: absolute; left: 4px; bottom: 4px; font-size: .65rem; font-weight: 700; background: var(--brand); color: #fff; padding: .05rem .4rem; border-radius: 6px; }
.svc-add-photo {
    aspect-ratio: 1; border-radius: 10px; border: 2px dashed var(--line); background: transparent; cursor: pointer;
    display: grid; place-items: center; color: var(--ink-soft); font: inherit; font-size: .8rem; text-align: center;
}
.svc-add-photo:hover { border-color: var(--brand); color: var(--brand); }
.svc-photo-row { display: flex; gap: 1rem; align-items: center; margin-bottom: .6rem; }
.svc-avatar-pick {
    width: 96px; height: 96px; border-radius: 50%; border: 2px dashed var(--line); cursor: pointer; overflow: hidden; flex: none;
    display: grid; place-items: center; text-align: center; font-size: 1.6rem; color: var(--ink-soft);
}
.svc-avatar-pick small { display: block; font-size: .7rem; }
.svc-avatar-pick img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Detail views ---------- */
.svc-detail { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.6rem; }
.svc-gallery-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--bg-alt); cursor: zoom-in; }
.svc-gallery-main.ph { display: grid; place-items: center; font-size: 5rem; cursor: default; }
.svc-thumbs { display: flex; gap: .4rem; margin-top: .5rem; overflow-x: auto; padding-bottom: .2rem; }
.svc-thumbs button { flex: none; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.svc-thumbs button.active { border-color: var(--brand); }
.svc-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail h1, .svc-detail h2 { padding-right: 2.5rem; font-size: 1.45rem; }
.svc-detail .svc-price { font-size: 1.7rem; margin: .4rem 0 .6rem; }
.svc-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; margin: .8rem 0; }
.svc-spec-grid div { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.svc-spec-grid dt { color: var(--ink-soft); }
.svc-spec-grid dd { font-weight: 600; text-align: right; }
.svc-desc { white-space: pre-line; margin-top: 1rem; line-height: 1.65; }
.svc-section-title { font-size: 1rem; margin: 1.3rem 0 .5rem; }
.svc-contact {
    margin-top: 1rem; padding: 1rem; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line);
    display: grid; gap: .6rem;
}
.svc-contact .who { display: flex; align-items: center; gap: .6rem; }
.svc-contact .btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.svc-contact .btns .btn { flex: 1 1 140px; }
.svc-safety { font-size: .8rem; color: var(--ink-soft); margin-top: .6rem; }

.svc-profile-head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1rem; padding-right: 2.5rem; }
.svc-profile-head h2 { padding-right: 0; display: flex; align-items: center; gap: .4rem; }
.svc-review { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.svc-review:last-child { border-bottom: 0; }
.svc-review .top { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.svc-review p { margin-top: .25rem; white-space: pre-line; }
.svc-star-pick { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.svc-star-pick input { display: none; }
.svc-star-pick label { font-size: 1.8rem; color: var(--line); cursor: pointer; line-height: 1; transition: color .1s; }
.svc-star-pick input:checked ~ label, .svc-star-pick label:hover, .svc-star-pick label:hover ~ label { color: #f59e0b; }
.svc-review-form { margin-top: .8rem; padding: 1rem; background: var(--bg-alt); border-radius: 12px; }
.svc-review-form textarea { margin: .5rem 0; }
.svc-gallery-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.svc-gallery-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }

/* Full-screen photo viewer */
.svc-viewer { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .92); display: grid; place-items: center; cursor: zoom-out; }
.svc-viewer img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }

/* ---------- Phone check before publishing (Svc.phoneCheck) ---------- */
.svc-phone-check {
    margin: -.3rem 0 1rem; padding: .7rem .8rem; border-radius: 12px;
    background: var(--bg-alt); border: 1px dashed var(--line);
}
.svc-phone-check.ok { border-style: solid; border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.svc-phone-check.warn { border-color: var(--danger); border-style: solid; }
.svc-phone-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.svc-phone-row:has(> :not([hidden])) { margin-bottom: .45rem; }
.svc-phone-row .input { width: 9.5rem; flex: 0 1 auto; padding: .45rem .7rem; letter-spacing: .15em; }
.svc-phone-status { display: block; font-size: .86rem; color: var(--ink-soft); }
.svc-phone-check.ok .svc-phone-status { color: var(--success); font-weight: 600; }
.svc-phone-check.warn .svc-phone-status { color: var(--danger); }

/* ---------- Searchable dropdowns (Svc.combo) ---------- */
.svc-combo-native {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important;
    opacity: 0; pointer-events: none; clip-path: inset(50%); border: 0 !important;
}
.svc-combo-btn {
    position: relative; display: flex; align-items: center; text-align: left; cursor: pointer; padding-right: 2.1rem !important;
    min-width: 0; color: var(--ink);
}
.svc-combo-btn::after {
    content: ""; position: absolute; right: .85rem; top: 50%; width: 7px; height: 7px; margin-top: -5px;
    border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .15s, margin .15s;
}
.svc-combo-btn.is-open::after { transform: rotate(-135deg); margin-top: -1px; border-color: var(--brand); }
.svc-combo-btn.is-open { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.svc-combo-btn.is-empty .svc-combo-val { color: var(--ink-soft); }
.svc-combo-btn.is-invalid { border-color: var(--danger); }
.svc-combo-btn:disabled { cursor: not-allowed; opacity: .55; }
.svc-combo-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.svc-combo-pop {
    position: fixed; z-index: 500; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lg); animation: svcComboIn .12s ease-out;
}
.svc-combo-pop[hidden] { display: none; }
.svc-combo-pop.up { animation-name: svcComboUp; }
@keyframes svcComboIn { from { opacity: 0; transform: translateY(-4px); } }
@keyframes svcComboUp { from { opacity: 0; transform: translateY(4px); } }
.svc-combo-search { padding: .5rem; border-bottom: 1px solid var(--line); flex: none; }
.svc-combo-pop.no-search .svc-combo-search { display: none; }
.svc-combo-q {
    width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zooming in */ color: var(--ink);
    padding: .5rem .7rem; border: 1.5px solid var(--line); border-radius: 9px; background: var(--bg-alt);
}
.svc-combo-q:focus { outline: none; border-color: var(--brand); background-color: var(--surface); }
.svc-combo-list { list-style: none; margin: 0; padding: .3rem; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; outline: none; }
.svc-combo-opt {
    padding: .5rem .7rem; border-radius: 8px; cursor: pointer; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svc-combo-opt.is-any { color: var(--ink-soft); }
.svc-combo-opt.is-active { background: var(--brand-soft); }
.svc-combo-opt.is-sel { font-weight: 600; color: var(--brand); }
.svc-combo-opt.is-sel::after { content: " ✓"; }
.svc-combo-opt mark { background: none; color: var(--brand); font-weight: 700; padding: 0; }
.svc-combo-none { padding: .8rem .7rem; color: var(--ink-soft); font-size: .92rem; }
.svc-combo-list::-webkit-scrollbar { width: 6px; }
.svc-combo-list::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 99px; }
.svc-combo-list::-webkit-scrollbar-track { background: transparent; }

/* ---------- Property ---------- */
.prop-purpose { display: inline-flex; gap: .25rem; margin-top: 1.4rem; padding: .25rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.prop-purpose button {
    border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 700; padding: .45rem 1.2rem;
    border-radius: 9px; cursor: pointer;
}
.prop-purpose button:hover { color: var(--ink); }
.prop-purpose button.active { background: var(--brand); color: #fff; }
.prop-purpose + .svc-search { margin-top: .7rem; }
.prop-badge { display: inline-block; padding: .08rem .5rem; border-radius: 6px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.prop-badge.sale { background: #dbeafe; color: #1d4ed8; }
.prop-badge.rent { background: #fef3c7; color: #b45309; }
html[data-theme="dark"] .prop-badge.sale { background: #1e3a5f; color: #93c5fd; }
html[data-theme="dark"] .prop-badge.rent { background: #3b2a0a; color: #fcd34d; }
.prop-card-top { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.svc-status.pending { background: #fef3c7; color: #92400e; }
.svc-status.rejected { background: #fee2e2; color: #b91c1c; }
.prop-reason { margin: .4rem 0; padding: .45rem .7rem; border-radius: 8px; background: #fee2e2; color: #991b1b; font-size: .85rem; }
html[data-theme="dark"] .prop-reason { background: #3f1515; color: #fca5a5; }
.prop-feat-filter { margin-top: .2rem; }
.prop-feat-filter summary { cursor: pointer; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); padding: .3rem 0; }
.prop-feat-filter .svc-checks { margin-top: .5rem; }
.prop-feat-filter .svc-checks label { font-size: .78rem; padding: .25rem .6rem; }

/* ---------- Property: "Post a property ad" page ---------- */
.pp-narrow { max-width: 820px; }
.pp-head { background: radial-gradient(700px 300px at 90% -30%, var(--brand-soft), transparent), var(--bg-alt); border-bottom: 1px solid var(--line); padding: 1.6rem 0 1.8rem; }
.pp-back { display: inline-block; font-weight: 600; color: var(--ink-soft); margin-bottom: .6rem; }
.pp-back:hover { color: var(--brand); }
.pp-head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: .4rem; }
.pp-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }
.pp-body { padding: 1.6rem 0 3rem; }
.pp-loading { padding: 2rem; text-align: center; color: var(--ink-soft); font-size: 1.1rem; }
.pp-remove { text-align: center; margin: .5rem 0 1rem; }
.pp-step {
    border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 1.5rem 1.6rem 1.3rem;
    margin: 0 0 1.4rem; min-width: 0; box-shadow: var(--shadow);
}
.pp-step > legend { float: left; width: 100%; display: flex; align-items: center; gap: .7rem; font-size: 1.35rem; font-weight: 800; margin-bottom: .6rem; padding: 0; }
.pp-step > legend + * { clear: both; }
.pp-n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.1rem; }
.pp .field { margin-bottom: 1.25rem; }
.pp .field:last-child { margin-bottom: .2rem; }
.pp-label { display: block; font-size: 1.08rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; text-transform: none; letter-spacing: 0; }
.pp-help { display: block; font-size: .95rem; color: var(--ink-soft); margin: 0 0 .55rem; line-height: 1.45; }
.pp .input, .pp .svc-combo-btn { font-size: 1.08rem; padding: .8rem 1rem; min-height: 52px; }
.pp textarea.input { min-height: 170px; line-height: 1.55; }
.pp-q { font-size: 1.08rem; font-weight: 700; margin: 1.3rem 0 .6rem; }
.pp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.pp-opt {
    position: relative; display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 14px;
    cursor: pointer; font-weight: 600; font-size: 1rem; background: var(--surface); user-select: none; transition: border-color .15s, background .15s;
}
.pp-opt:hover { border-color: var(--brand); }
.pp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pp-opt .ico { font-size: 1.5rem; line-height: 1; }
.pp-opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.pp-opt.on::after { content: '✓'; margin-left: auto; font-weight: 800; }
.pp-opt:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.pp-tiles .pp-opt { flex-direction: column; align-items: flex-start; gap: .35rem; min-height: 84px; }
.pp-tiles .pp-opt.on::after { position: absolute; top: .55rem; right: .7rem; }
.pp-choice { display: flex; gap: .6rem; flex-wrap: wrap; }
.pp-choice .pp-opt { flex: 1 1 180px; font-size: 1.05rem; padding: 1rem 1.1rem; }
.pp-choice.small .pp-opt { flex: 0 1 auto; padding: .7rem 1rem; }
.pp-row { display: flex; gap: .7rem; align-items: stretch; flex-wrap: wrap; }
.pp-row > .input { flex: 1 1 160px; width: auto; }
.pp-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pp-count { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.pp-count button { width: 56px; height: 52px; border: 0; background: var(--bg-alt); font-size: 1.5rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.pp-count button:hover { background: var(--brand-soft); color: var(--brand); }
.pp-count output { min-width: 84px; text-align: center; font-size: 1.15rem; font-weight: 700; }
.pp-feats label { font-size: .98rem; padding: .55rem .95rem; }
.pp-money { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.pp-money span { display: grid; place-items: center; padding: 0 1rem; font-weight: 800; background: var(--bg-alt); color: var(--ink-soft); }
.pp-money .input { border: 0; border-radius: 0; font-size: 1.25rem; font-weight: 700; }
.pp-words { display: block; margin-top: .45rem; font-weight: 700; color: var(--brand); min-height: 1.2em; }
.pp-tick { display: flex; align-items: center; gap: .7rem; font-size: 1.05rem; font-weight: 600; cursor: pointer; padding: .3rem 0; }
.pp-tick input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }
.pp-photos { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
.pp-photos .svc-add-photo { font-size: 1rem; font-weight: 600; }
.pp .svc-phone-check .btn { font-size: 1rem; padding: .6rem 1rem; }
.pp-note { color: var(--ink-soft); font-size: 1rem; margin: .4rem 0 1rem; }
.pp-submit {
    position: sticky; bottom: 0; z-index: 5; display: flex; gap: .8rem; justify-content: flex-end; padding: .9rem 0;
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -10px 20px -14px rgba(10, 30, 60, .35);
}
.pp-submit .btn-primary { min-width: 220px; font-size: 1.15rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .svc-layout { grid-template-columns: 1fr; }
    .svc-filter-btn { display: inline-flex; }
    .svc-filters {
        position: fixed; inset: 0 auto 0 0; top: 0; width: min(340px, 88vw); max-height: none; z-index: 320;
        border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .22s ease; padding-top: 1.2rem;
    }
    .svc-filters.open { transform: none; box-shadow: 0 0 0 100vmax rgba(8, 18, 30, .5); }
    .svc-filters-head .svc-x { display: grid; }
    .svc-chips.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
    .svc-chips.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
    .svc-chips.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
    .svc-apply { display: block; }
    .svc-detail { grid-template-columns: 1fr; row-gap: .6rem; }
    /* One column: photos, then title, price and the Call / WhatsApp box,
       then description, reviews and the rest (they come first in the
       desktop markup, so buyers had to scroll past them to the price). */
    .svc-detail > div:first-child { display: contents; }
    .svc-detail > div:first-child > * { order: 2; }
    .svc-detail > div:first-child > .svc-gallery-main,
    .svc-detail > div:first-child > .svc-thumbs { order: 0; }
    .svc-detail > div:last-child { order: 1; }
    .svc-how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .svc-hero { padding-top: 1.8rem; }
    .svc-hero-top .btn-lg { width: 100%; }
    .svc-search .input { flex: 1 1 45%; }
    .svc-search .input.grow { flex: 1 1 100%; }
    .svc-search .btn { flex: 1 1 100%; }
    #autoSearch select, #autoSearch .svc-combo-btn { display: none; } /* the Filters drawer has them on phones */
    #autoSearch .input.grow { flex: 1 1 0; }
    #autoSearch .btn { flex: none; }
    #propSearch select, #propSearch .svc-combo-btn { display: none; }
    #propSearch .input.grow { flex: 1 1 0; }
    #propSearch .btn { flex: none; }
    .prop-purpose { display: flex; }
    .pp-step { padding: 1.2rem 1rem 1rem; border-radius: 14px; }
    .pp-step > legend { font-size: 1.2rem; }
    .pp-tiles { grid-template-columns: 1fr 1fr; }
    .pp-row.two { grid-template-columns: 1fr; gap: 0; }
    .pp-submit .btn { flex: 1; min-width: 0; }
    .prop-purpose button { flex: 1; }
    .svc-grid { grid-template-columns: 1fr; gap: .9rem; }
    .svc-grid.people { grid-template-columns: 1fr; }
    .svc-dialog { padding: 1.2rem 1rem; border-radius: 16px; }
    .svc-modal { padding: .6rem; }
    .svc-dialog .field-row, .svc-dialog .field-row.three { grid-template-columns: 1fr; gap: 0; }
    .svc-inline { padding-top: 0; }
    .svc-row { grid-template-columns: 84px 1fr; }
    .svc-row img, .svc-row .svc-thumb { width: 84px; height: 64px; }
    .svc-row .btns { grid-column: 1 / -1; justify-content: flex-start; }
    .svc-spec-grid { grid-template-columns: 1fr; }
    .svc-how { grid-template-columns: 1fr; }
    .svc-sort { margin-left: auto; }
}

/* ---------- Popular searches (crawlable links under the results) ---------- */
.svc-seo { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.svc-seo h2 { font-size: 1.35rem; margin-bottom: .2rem; }
.svc-seo .hv-title { font-size: 1rem; margin: 1.3rem 0 .7rem; }
.svc-seo-text { margin-top: 1.6rem; line-height: 1.65; max-width: 900px; }
a.svc-card { text-decoration: none; }
a.page-btn { display: inline-grid; place-items: center; text-decoration: none; }
