﻿/* ═══════════════════════════════════════════════════════════════
   Search.css
   Styles for SVCDispatch\Search.aspx
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --white: #FFFFFF;
    --off: #F7F8FC;
    --off2: #EEF0F7;
    --ink: #0A0E1A;
    --body: #4A5270;
    --muted: #8892AA;
    --border: #E2E6F0;
    --border2: #CDD3E5;
    --blue: #2563EB;
    --blue2: #1D4ED8;
    --blue-lt: #EEF3FD;
    --blue-md: #DBEAFE;
    --amber: #F59E0B;
    --amber-lt: #FEF3C7;
    --green: #059669;
    --green-lt: #D1FAE5;
    --green2: #10B981;
    --red: #DC2626;
    --red-lt: #FEE2E2;
    --shadow-sm: 0 1px 3px rgba(10,14,26,0.06), 0 1px 2px rgba(10,14,26,0.04);
    --shadow: 0 4px 16px rgba(10,14,26,0.08), 0 2px 4px rgba(10,14,26,0.04);
    --shadow-lg: 0 12px 40px rgba(10,14,26,0.1), 0 4px 12px rgba(10,14,26,0.06);
    --blue-glow: 0 6px 24px rgba(37,99,235,0.22);
    --font-h: 'Fraunces', serif;
    --font-b: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-b);
    background: var(--off);
    color: var(--ink);
    min-height: 100vh;
}



/* Search bar in nav */
.nav-search {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: stretch;
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .nav-search:focus-within {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    }

.ns-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.85rem;
    flex: 1;
    position: relative;
}

    .ns-field svg {
        color: var(--muted);
        flex-shrink: 0;
    }

    .ns-field input {
        border: none;
        outline: none;
        background: transparent;
        font-family: var(--font-b);
        font-size: 0.875rem;
        color: var(--ink);
        width: 100%;
    }

        .ns-field input::placeholder {
            color: var(--muted);
        }

.ns-divider {
    width: 1px;
    background: var(--border);
    margin: 8px 0;
}

.ns-loc {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.85rem;
    min-width: 140px;
}

    .ns-loc svg {
        color: var(--blue);
        flex-shrink: 0;
    }

    .ns-loc input {
        border: none;
        outline: none;
        background: transparent;
        font-family: var(--font-b);
        font-size: 0.875rem;
        color: var(--ink);
        width: 100%;
    }

.ns-btn {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 0 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

    .ns-btn:hover {
        background: var(--blue2);
    }

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-ghost {
    font-family: var(--font-b);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--body);
    background: none;
    border: 1.5px solid var(--border2);
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

    .btn-ghost:hover {
        color: var(--ink);
        border-color: var(--ink);
    }

.btn-primary {
    font-family: var(--font-b);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    background: var(--blue);
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

    .btn-primary:hover {
        background: var(--blue2);
    }

/* ── FILTER BAR ───────────────────────────────────────────────── */
.filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
    position: sticky;
    top: 64px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

    .filter-bar-inner::-webkit-scrollbar {
        display: none;
    }

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--body);
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .filter-chip:hover {
        border-color: var(--blue);
        color: var(--blue);
        background: var(--blue-lt);
    }

    .filter-chip.active {
        border-color: var(--blue);
        color: var(--blue);
        background: var(--blue-lt);
    }

    .filter-chip.has-value {
        border-color: var(--blue);
        color: var(--white);
        background: var(--blue);
    }

        .filter-chip.has-value:hover {
            background: var(--blue2);
        }

.fc-icon {
    font-size: 0.75rem;
}

.fc-arrow {
    font-size: 0.65rem;
    opacity: 0.7;
}

.filter-sep {
    width: 1px;
    height: 24px;
    background: var(--border);
    flex-shrink: 0;
}

.view-toggle {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    background: var(--off);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
}

.vt-btn {
    padding: 0.4rem 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.85rem;
    transition: all 0.2s;
}

    .vt-btn.active {
        background: var(--blue);
        color: var(--white);
    }

    .vt-btn:hover:not(.active) {
        background: var(--off2);
        color: var(--ink);
    }

/* ── DROPDOWN PANELS ──────────────────────────────────────────── */
.dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(10,14,26,0.15);
    display: none;
}

    .dropdown-overlay.open {
        display: block;
    }

.filter-dropdown {
    position: absolute;
    top: calc(64px + 56px + 8px);
    z-index: 160;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    display: none;
}

    .filter-dropdown.open {
        display: block;
        animation: dropIn 0.18s ease;
    }

.dd-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.85rem;
}

.dd-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dd-opt {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--body);
}

    .dd-opt:hover {
        background: var(--off);
        color: var(--ink);
    }

    .dd-opt.selected {
        background: var(--blue-lt);
        color: var(--blue);
        font-weight: 700;
    }

.dd-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--border2);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: all 0.15s;
}

.dd-opt.selected .dd-check {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.dd-apply {
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.65rem;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-b);
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
}

    .dd-apply:hover {
        background: var(--blue2);
    }

/* Price range */
.price-range {
    margin: 0.75rem 0;
}

.range-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.range-input {
    flex: 1;
}

    .range-input label {
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--muted);
        display: block;
        margin-bottom: 0.25rem;
    }

    .range-input input {
        width: 100%;
        padding: 0.5rem 0.7rem;
        border: 1.5px solid var(--border2);
        border-radius: 8px;
        font-family: var(--font-b);
        font-size: 0.85rem;
        color: var(--ink);
        outline: none;
    }

        .range-input input:focus {
            border-color: var(--blue);
        }

/* Rating filter */
.rating-opts {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rating-opt {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s;
}

    .rating-opt:hover {
        background: var(--off);
    }

    .rating-opt.sel {
        background: var(--blue-lt);
    }

.r-stars {
    color: var(--amber);
    font-size: 0.82rem;
    letter-spacing: -1px;
}

.r-label {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--body);
}

.rating-opt.sel .r-label {
    color: var(--blue);
}

/* ── RESULTS LAYOUT ───────────────────────────────────────────── */
.results-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 120px);
}

    .results-wrap.map-mode {
        grid-template-columns: 1fr 1fr;
    }

/* ── LEFT SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    overflow-y: auto;
    position: sticky;
    top: 120px;
    height: calc(100vh - 120px);
}

.sidebar-section {
    margin-bottom: 1.75rem;
}

.sidebar-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-clear {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

    .sidebar-clear:hover {
        color: var(--blue2);
    }

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--body);
    border: 1.5px solid transparent;
}

    .cat-item:hover {
        background: var(--off);
        color: var(--ink);
    }

    .cat-item.active {
        background: var(--blue-lt);
        border-color: rgba(37,99,235,0.2);
        color: var(--blue);
    }

.cat-item-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.cat-item-count {
    font-size: 0.72rem;
    color: var(--muted);
    background: var(--off2);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

.cat-item.active .cat-item-count {
    background: rgba(37,99,235,0.12);
    color: var(--blue);
}

/* Slider */
.slider-wrap {
    padding: 0.25rem 0.1rem;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border2);
    outline: none;
    margin-bottom: 0.5rem;
}

    .range-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--blue);
        cursor: pointer;
        border: 2px solid var(--white);
        box-shadow: 0 1px 4px rgba(37,99,235,0.3);
    }

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

/* Checkboxes */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

    .check-item:hover {
        background: var(--off);
    }

.check-box {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1.5px solid var(--border2);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: all 0.15s;
}

.check-item.checked .check-box {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.check-label {
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--body);
}

.check-item.checked .check-label {
    color: var(--ink);
    font-weight: 600;
}

/* ── RESULTS COLUMN ───────────────────────────────────────────── */
.results-col {
    padding: 1.5rem;
    overflow-y: auto;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.results-title {
    font-family: var(--font-h);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.5px;
}

.results-count {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 0.1rem;
}

.sort-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.sort-select {
    font-family: var(--font-b);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: 8px;
    padding: 0.35rem 2rem 0.35rem 0.7rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238892AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
}

.results-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--blue-lt);
    border: 1.5px solid rgba(37,99,235,0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: var(--blue);
    font-weight: 500;
}

.ra-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.ra-close {
    margin-left: auto;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── PRO CARD ─────────────────────────────────────────────────── */
.pro-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 1.4rem;
    margin-bottom: 1rem;
    transition: all 0.22s;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.1rem;
    align-items: start;
    text-decoration: none;
    color: inherit;
    position: relative;
    animation: fadeUp 0.3s ease both;
}

    .pro-card:hover {
        border-color: var(--blue);
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

    .pro-card.featured {
        border-color: rgba(245,158,11,0.4);
        background: linear-gradient(135deg, var(--white) 0%, #FFFBEB 100%);
    }

        .pro-card.featured:hover {
            border-color: var(--amber);
        }

.featured-tag {
    position: absolute;
    top: -1px;
    left: 20px;
    background: var(--amber);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.7rem;
    border-radius: 0 0 7px 7px;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

.pro-ava {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border: 2px solid var(--border);
    position: relative;
}

.ava-online {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green2);
    border: 2px solid var(--white);
}

.pro-info {
    min-width: 0;
}

.pro-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.pro-name {
    font-family: var(--font-h);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}

.pro-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.pb-v {
    color: var(--green);
    background: var(--green-lt);
    border: 1px solid rgba(5,150,105,0.2);
}

.pb-t {
    color: #92400E;
    background: var(--amber-lt);
    border: 1px solid rgba(245,158,11,0.25);
}

.pro-title-sm {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.pro-rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.p-stars {
    color: var(--amber);
    font-size: 0.82rem;
    letter-spacing: -1px;
}

.p-rating {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
}

.p-reviews {
    font-size: 0.78rem;
    color: var(--muted);
}

.p-dot {
    color: var(--border2);
    font-size: 0.6rem;
}

.p-jobs {
    font-size: 0.78rem;
    color: var(--muted);
}

.p-resp {
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 600;
}

.pro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.p-tag {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--body);
    background: var(--off);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.pro-bottom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pro-svc-area {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.pro-avail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
    background: var(--green-lt);
    border: 1px solid rgba(5,150,105,0.2);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.avail-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green2);
    animation: pulse2 2s infinite;
}

/* Card right column */
.pro-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    flex-shrink: 0;
    min-width: 110px;
}

.diag-block {
    text-align: right;
}

.diag-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.diag-price {
    font-family: var(--font-h);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.diag-note {
    font-size: 0.68rem;
    color: var(--muted);
}

.btn-book-sm {
    font-family: var(--font-b);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    background: var(--blue);
    border: none;
    border-radius: 9px;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

    .btn-book-sm:hover {
        background: var(--blue2);
        box-shadow: var(--blue-glow);
    }

.btn-view-sm {
    font-family: var(--font-b);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--body);
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: 9px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

    .btn-view-sm:hover {
        color: var(--ink);
        border-color: var(--ink);
    }

.save-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 1.1rem;
    transition: all 0.2s;
    padding: 0.2rem;
}

    .save-btn:hover {
        color: var(--red);
        transform: scale(1.15);
    }

    .save-btn.saved {
        color: var(--red);
    }

/* ── MAP PANEL ────────────────────────────────────────────────── */
.map-panel {
    display: none;
    position: sticky;
    top: 120px;
    height: calc(100vh - 120px);
    background: var(--off2);
    border-left: 1px solid var(--border);
    overflow: hidden;
}

    .map-panel.active {
        display: flex;
        flex-direction: column;
    }

.map-placeholder-full {
    flex: 1;
    background: linear-gradient(135deg, #EEF3FD 0%, #E0E9FD 50%, #D8E4FC 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

    .map-placeholder-full::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 40%, rgba(37,99,235,0.08) 0%, transparent 50%), radial-gradient(circle at 70% 60%, rgba(14,165,233,0.06) 0%, transparent 50%);
    }

.map-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
    background-size: 50px 50px;
}

.map-roads {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.5) 3px, transparent 3px), linear-gradient(90deg, rgba(255,255,255,0.5) 3px, transparent 3px), linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 200px 200px, 200px 200px, 50px 50px, 50px 50px;
}

.map-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 1;
}

    .map-pin:hover {
        transform: scale(1.1) translateY(-2px);
    }

    .map-pin.active-pin {
        z-index: 2;
    }

.pin-bubble {
    background: var(--white);
    border: 2px solid var(--blue);
    border-radius: 12px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--blue);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    transition: all 0.2s;
}

.map-pin:hover .pin-bubble,
.map-pin.active-pin .pin-bubble {
    background: var(--blue);
    color: var(--white);
}

.pin-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--blue);
    margin-top: -1px;
}

.map-pin:hover .pin-arrow,
.map-pin.active-pin .pin-arrow {
    border-top-color: var(--blue2);
}

.map-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 3;
}

.map-ctrl-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

    .map-ctrl-btn:hover {
        border-color: var(--blue);
        background: var(--blue-lt);
    }

.map-card-preview {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1rem;
    display: none;
}

    .map-card-preview.show {
        display: block;
        animation: fadeUp 0.2s ease;
    }

.mcp-inner {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.mcp-ava {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--blue-lt);
    border: 1.5px solid rgba(37,99,235,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.mcp-name {
    font-family: var(--font-h);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

.mcp-meta {
    font-size: 0.75rem;
    color: var(--muted);
}

.mcp-price {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.mcp-price-num {
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.mcp-price-label {
    font-size: 0.68rem;
    color: var(--muted);
}

.mcp-btn {
    display: block;
    margin-top: 0.65rem;
    width: 100%;
    padding: 0.55rem;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-b);
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}

    .mcp-btn:hover {
        background: var(--blue2);
    }

/* ── PAGINATION ───────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem 0 0.5rem;
}

.pg-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--body);
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
}

    .pg-btn:hover {
        border-color: var(--blue);
        color: var(--blue);
        background: var(--blue-lt);
    }

    .pg-btn.active {
        background: var(--blue);
        border-color: var(--blue);
        color: var(--white);
    }

    .pg-btn.prev-next {
        width: auto;
        padding: 0 0.85rem;
        gap: 0.3rem;
        font-size: 0.8rem;
    }

/* ── NO RESULTS ───────────────────────────────────────────────── */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-cta-wrap {
    margin-top: 1.75rem;
}

.no-results-cta-btn {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-b);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: var(--blue-glow);
    transition: background 0.2s, transform 0.2s;
}

    .no-results-cta-btn:hover {
        background: var(--blue2);
        transform: translateY(-2px);
    }

.no-results-note {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ── ACTIVE FILTERS STRIP ─────────────────────────────────────── */
.active-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.af-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.af-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-lt);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    cursor: pointer;
    transition: all 0.15s;
}

    .af-chip:hover {
        background: var(--blue-md);
    }

.af-chip-x {
    font-size: 0.7rem;
    opacity: 0.7;
}

.af-clear-all {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    cursor: pointer;
    margin-left: 0.25rem;
}

    .af-clear-all:hover {
        text-decoration: underline;
    }

/* ── ANIMATIONS ───────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse2 {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 960px) {
    .results-wrap {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .map-panel {
        position: fixed;
        top: 0;
        inset: 0;
        z-index: 500;
        height: 100%;
        border: none;
    }

    .results-wrap.map-mode .results-col {
        display: none;
    }

    .results-wrap.map-mode .map-panel {
        display: flex;
    }
}

@media (max-width: 640px) {
    .nav-search {
        display: none;
    }

    .pro-card {
        grid-template-columns: auto 1fr;
    }

    .pro-card-right {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .diag-block {
        text-align: left;
    }
}
/* ── SEARCH BAR WRAP (replaces old nav search) ────────────────── */
.search-bar-wrap {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .search-bar-wrap .nav-search {
        flex: 1;
        max-width: 680px;
        height: 46px;
    }
/* ── Search error banner ──────────────────────────────────────── */
.search-error-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #856404;
    font-size: 0.9rem;
    font-weight: 500;
}
/* ── Category autocomplete suggestions ───────────────────────── */
.cat-suggest-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--ink, #111827);
    border-bottom: 1px solid var(--border, #f3f4f6);
    transition: background 0.12s;
}

    .cat-suggest-item:last-child {
        border-bottom: none;
    }

    .cat-suggest-item:hover {
        background: var(--blue-lt, #eff6ff);
        color: var(--blue, #2563eb);
    }

.cat-suggest-sr {
    color: var(--muted, #6b7280);
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
}

    .cat-suggest-sr:hover {
        background: #fef9c3;
        color: #92400e;
    }

/* ── No results panel (remove display:none — ASP.NET Panel controls visibility) */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}
/* ── HERO SEARCH — full-bleed centered (append at bottom of file) ── */
/* ── HERO SEARCH — full-bleed centered (append at bottom of file) ── */
.search-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.8rem 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.55) 0%, rgba(37, 99, 235, 0.50) 60%, rgba(59, 130, 246, 0.45) 100%);
    text-align: center;
    box-sizing: border-box;
    margin: 0;
}

.search-hero-label {
    font-family: var(--font-h);
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.1rem;
    letter-spacing: -0.01em;
    width: 100%;
    text-align: center;
}

.search-hero-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 780px !important;
    min-height: 58px;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.22) !important;
    border: none !important;
    overflow: visible;
    background: #fff;
    margin: 0 auto;
}

    .search-hero-bar .ns-field {
        flex: 2 !important;
        padding: 0 1.2rem !important;
        display: flex;
        align-items: center;
        position: relative !important;
    }

        .search-hero-bar .ns-field input,
        .search-hero-bar .ns-loc input {
            font-size: 1rem !important;
            height: 58px !important;
            line-height: 58px !important;
        }

    .search-hero-bar .ns-loc {
        min-width: 190px !important;
        padding: 0 1.1rem !important;
        display: flex;
        align-items: center;
    }

    .search-hero-bar .ns-btn {
        padding: 0 2rem !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        min-width: 110px !important;
        height: 58px !important;
        border-radius: 0 !important;
        flex-shrink: 0;
    }
.ns-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.85rem;
    flex: 1;
    position: relative;
}

.cat-suggest-box {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 6px;
    left: -1.2rem;
    right: -1.2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
}

.cat-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #1e293b;
}

    .cat-suggest-item:hover {
        background: #f1f5f9;
    }

.cat-suggest-sr {
    color: #64748b;
    font-size: 0.875rem;
    font-style: italic;
    padding: 0.75rem 1rem;
}