﻿:root {
    --av-accent: #dc3545;
    --av-border: rgba(0,0,0,.08);
    --av-muted: #6c757d;
    --av-bg: #f3f4f6;
    --av-success: #198754;
}

/* IMPORTANT: your app-overrides.css hides .offcanvas on desktop:
        @media (min-width: 992px) {
            .offcanvas

        {
            display: none !important;
        }

        }

        So we override ONLY our filters panel. */
@media (min-width: 992px) {
    #filtersCanvas.offcanvas {
        display: block !important;
    }
}

/* Make it slide DOWN from top */
#filtersCanvas.offcanvas-top {
    height: 78vh;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    overflow: hidden;
}

/* Top bar */
.search-topbar {
    position: sticky;
    top: 12px;
    z-index: 1030;
    background: #fff;
    border: 1px solid var(--av-border);
    border-radius: 16px;
    padding: 10px 12px;
}

/* Mobile collapsible search (maximise results area) */
.av-search-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.av-collapse-btn {
    border: 0;
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

    .av-collapse-btn:active {
        transform: scale(.98);
    }

    .av-collapse-btn .material-icons {
        font-size: 28px;
        color: #6b7280;
        transition: transform .2s ease;
    }

.av-search-panel-2 {
    margin-top: 10px;
    overflow: hidden;
    transition: max-height .25s ease, opacity .2s ease, margin-top .2s ease;
    max-height: 460px;
    opacity: 1;
}

/* Collapsed state */
#avSearchShell.is-collapsed .av-search-panel-2 {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

#avSearchShell.is-collapsed .av-collapse-btn .material-icons {
    transform: rotate(180deg);
}

/* Desktop: never collapse */
@media (min-width: 992px) {
    #avSearchShell .av-search-panel-2 {
        max-height: none !important;
        opacity: 1 !important;
        margin-top: 10px !important;
    }

    #avSearchShell.is-collapsed .av-search-panel-2 {
        max-height: none !important;
        opacity: 1 !important;
        margin-top: 10px !important;
    }
}

.search-topbar .brand img {
    height: 32px;
    width: auto;
}

.chip-btn {
    border: 1px solid var(--av-border);
    background: #fff;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-weight: 200;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

    .chip-btn:hover {
        background: #fafafa;
    }

    .chip-btn .material-icons {
        font-size: 18px;
    }

.search-shell {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.results-pane {
    flex: 0 0 380px;
    width: 380px;
    max-width: 420px;
    min-width: 330px;
}

/* Parkhound-like left rail */
.results-pane {
    background: #f6f7f8;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 10px;
}

.results-scroll {
    height: calc(100vh - 451px);
    overflow: auto;
    /*padding-right: 14px;*/ /* keep content clear of scrollbar */
    /*scrollbar-gutter: stable;*/
    padding-left: 5px;
}


/*.results-scroll {
    padding: 6px 6px 10px 0;
}*/

.map-pane {
    flex: 1;
    min-width: 0;
}

.map-card {
    border: 1px solid var(--av-border);
    border-radius: 16px;
    background: #fff;
    height: calc(90vh - 53px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-card-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--av-border);
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-stage {
    position: relative;
    flex: 1;
    background: var(--av-bg);
    min-height: 520px;
}

.map-pins {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.map-pin {
    border: 1px solid var(--av-border);
    background: #fff;
    border-radius: 999px;
    padding: .0rem .3rem;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

    .map-pin .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: var(--av-accent);
    }

    .map-pin.is-selected {
        border-color: rgba(13,110,253,.35);
        box-shadow: 0 10px 26px rgba(13,110,253,.12);
    }

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9aa0a6;
    font-weight: 200;
    padding: 24px;
}

.results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 10px;
}

    .results-header .count {
        color: var(--av-muted);
        font-size: .9rem;
    }

    .results-header a {
        font-size: .9rem;
        text-decoration: none;
    }

/* ========= Parkhound-like compact card ========= */
.ph-card {
    border: 1px solid var(--av-border);
    border-radius: 14px;
    background: #fff;
    padding: 7px;
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 98%;
}

.ph-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}


.ph-card {
    border-color: rgba(0,0,0,.08);
}

    .ph-card:hover {
        box-shadow: 0 14px 30px rgba(0,0,0,.08);
        transform: translateY(-1px);
    }

    .ph-card.is-selected {
        outline: 2px solid rgba(13,110,253,.25);
    }

.ph-thumb {
    width: 78px;
    height: 62px;
    border-radius: 10px;
    background: #ececec;
    flex: 0 0 78px;
    overflow: hidden;
    position: relative;
}

    .ph-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.ph-badge {
    position: absolute;
    left: 6px;
    top: 6px;
    font-size: 10px;
    font-weight: 400;
    background: rgba(220,53,69,.92);
    color: #fff;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: .2px;
}

.ph-body {
    flex: 1;
    min-width: 0;
}

.ph-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ph-title {
    font-weight: 400;
    font-size: .78rem;
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-sub {
    margin-top: 2px;
    color: var(--av-muted);
    font-size: .68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-price {
    text-align: right;
    flex: 0 0 auto;
    white-space: nowrap;
}

    .ph-price .amt {
        font-weight: 500;
        font-size: 0.9rem;
        line-height: 1.1;
    }

    .ph-price .per {
        color: var(--av-muted);
        font-size: .7rem;
    }

.ph-line {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    color: #374151;
    font-size: .84rem;
    font-weight: 300;
}

.ph-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9ca3af;
    display: inline-block;
}

.ph-meta {
    /* margin-top: 6px;*/
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,.06);
}


/* Compact meta strip like Parkhound (24/7 • distance • walk time + button) */
/*.ph-meta {
    margin-top: 10px;
}*/

.ph-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}


.ph-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}

    .ph-pill .material-icons {
        font-size: 16px;
        color: #6b7280;
    }

.ph-mico {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

    .ph-mico .material-icons {
        font-size: 16px;
        color: #6b7280;
    }

/* Subscribe / notify card (Parkhound style) */
.ph-subscribe {
    background: #2a3340;
    color: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
}

.ph-subscribe-title {
    font-weight: 700;
    margin: 0 0 4px;
    font-size: 14px;
}

.ph-subscribe-sub {
    margin: 0 0 10px;
    font-size: 12px;
    opacity: .9;
}

.ph-subscribe-row {
    display: flex;
    gap: 10px;
}

    .ph-subscribe-row .form-control {
        border-radius: 10px;
        border: 0;
        height: 38px;
    }

    .ph-subscribe-row .btn {
        border-radius: 10px;
        height: 38px;
        padding: 0 14px;
        font-weight: 700;
    }

.ph-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--av-muted);
    font-size: .82rem;
    font-weight: 300;
}

.ph-ico {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

    .ph-ico .material-icons {
        font-size: 16px;
        color: #9aa0a6;
    }

.ph-chip {
    border: 1px solid var(--av-border);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: .56rem;
    font-weight: 400;
    color: #111;
    background: #fff;
}

.ph-btn {
    border: none;
    background: var(--av-success);
    color: #fff;
    font-weight: 400;
    border-radius: 10px;
    padding: .2rem .4rem;
    font-size: .82rem;
    white-space: nowrap;
    text-decoration: none;
}

.ph-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--av-muted);
    font-size: .82rem;
    font-weight: 400;
    white-space: nowrap;
}

    .ph-rating .material-icons {
        font-size: 16px;
        color: #f4b400;
    }

/* Responsive */
@media (max-width: 991.98px) {
    .search-shell {
        flex-direction: column;
    }

    .results-pane {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .results-pane {
        padding: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .results-scroll {
        height: auto;
        overflow: visible;
    }

    .map-card {
        height: 60vh;
    }

    .map-stage {
        min-height: 380px;
    }

    #filtersCanvas.offcanvas-top {
        height: 85vh;
    }
}

/* Filters layout */
.f-section {
    border: 1px solid var(--av-border);
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    margin-bottom: 12px;
}

.fw-bold {
    font-weight: 400 !important;
}

.f-title {
    font-weight: 400;
    margin-bottom: 10px;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.vehicle-tile {
    border: 1px solid var(--av-border);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

    .vehicle-tile:hover {
        background: #fafafa;
    }

.vehicle-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

    .vehicle-ico .material-icons {
        font-size: 20px;
        color: #444;
    }

.chip {
    border: 1px solid var(--av-border);
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    font-weight: 300;
    font-size: 13px;
}

    .chip:hover {
        background: #fafafa;
    }

    .chip.is-on {
        background: rgba(220,53,69,.08);
        border-color: rgba(220,53,69,.35);
        color: #b02a37;
    }

.filters-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px;
    border-top: 1px solid var(--av-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.form-select-search {
    width: auto;
    font-size: 14px;
    min-width: 122px;
    padding: 2px 7px;
}

.address {
    font-size: 13px;
}

.search-page .search-toogle {
    position: absolute;
    right: 0;
    top: 15px;
}

/* ===== Top bar (like screenshots) ===== */
.av-topbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.av-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.av-logo-desktop {
    height: 34px;
    width: auto;
    display: block;
}

.av-logo-mobile {
    height: 34px;
    width: auto;
    display: none;
}

/* center strip */
.av-strip {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1f1f1f;
    color: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    max-width: 860px;
    margin: 0 auto;
}

.av-strip-btn {
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 10px;
}

    .av-strip-btn:hover {
        background: rgba(255,255,255,.08);
    }

.av-strip-range {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

    .av-strip-range input[type="range"] {
        flex: 1;
        height: 4px;
    }

.av-strip-min, .av-strip-max {
    font-size: 13px;
    opacity: .85;
    white-space: nowrap;
}

.av-strip-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.av-strip-sort-label {
    font-size: 13px;
    opacity: .85;
}

.av-strip-select {
    min-width: 170px;
    border-radius: 10px;
    border: 0;
}

/* right search icon */
.av-right {
    position: relative;
    display: flex;
    align-items: center;
}

.av-search-icon {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    display: grid;
    place-items: center;
}

    .av-search-icon .material-icons {
        font-size: 22px;
    }

/* flyout */
.av-search-flyout {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.15);
    padding: 14px;
    display: none;
    z-index: 2001;
}

    .av-search-flyout.open {
        display: block;
    }

.av-fly-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.av-fly-label {
    font-weight: 700;
    font-size: 13px;
}

.av-fly-hr {
    margin: 12px 0;
    opacity: .15;
}

.av-fly-search {
    margin-top: 14px;
    width: 100%;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* click-away overlay */
.av-fly-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.15);
    display: none;
    z-index: 2000;
}

    .av-fly-backdrop.show {
        display: block;
    }

/* ===== Mobile: smaller header + icon logo only ===== */
@media (max-width: 768px) {
    .av-topbar {
        padding: 8px 10px;
        gap: 10px;
    }

    .av-logo-desktop {
        display: none;
    }

    .av-logo-mobile {
        display: block;
        height: 30px;
    }

    .av-strip {
        padding: 8px 10px;
        border-radius: 12px;
        gap: 10px;
    }

    .av-strip-sort-label {
        display: none;
    }

    .av-strip-select {
        min-width: 130px;
    }

    .av-strip-range {
        display: none;
    }
    /* optional: hide slider on small screens */
}

/* Airbnb-like filter modal */
.av-filter-modal {
    max-width: 760px;
}

    .av-filter-modal .modal-content {
        border-radius: 18px;
        overflow: hidden;
    }

    .av-filter-modal .modal-header {
        border-bottom: 1px solid rgba(0,0,0,.08);
    }

    .av-filter-modal .modal-body {
        padding: 16px 18px;
    }

.av-filter-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.08);
    padding: 14px 18px;
    justify-content: space-between;
}

.av-reset {
    color: #198754;
    font-weight: 600;
    text-decoration: underline;
}

.av-fsec {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    background: #fff;
}

.av-fsec-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.av-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.av-tile {
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 600;
}

    .av-tile .material-icons {
        opacity: .75;
    }

.av-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.av-chip {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 999px;
    background: #fff;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
}

    .av-chip.is-on {
        background: rgba(220,53,69,.10);
        border-color: rgba(220,53,69,.30);
        color: #b02a37;
    }

.av-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.av-price-box .form-control {
    border-radius: 12px;
}

@media (max-width: 575px) {
    .av-filter-modal {
        max-width: 96vw;
    }

    .av-price-row {
        grid-template-columns: 1fr;
    }
}

/* SEO footer block (3 columns list) */
.av-seo {
    background: #fff;
    padding: 26px 0 34px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.av-seo__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 18px;
    color: #111;
}

.av-seo__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.av-seo__head {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #111;
}

.av-seo__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.av-seo__link {
    font-size: 13px;
    color: #6b7280; /* subtle grey like screenshot */
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .av-seo__link:hover {
        color: #111;
    }

/* Responsive */
@media (max-width: 991.98px) {
    .av-seo__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .av-seo {
        padding: 22px 0 26px;
    }
}

/* =========================
   Fixes from latest review
   ========================= */

/* Make the WHEN text fully visible (avoid truncation) */
.search-bar .search-field.when-field {
    min-width: 250px;
}

    .search-bar .search-field.when-field input {
        font-size: 13px;
    }


/* ===== Price min/max slider ===== */
.av-price-slider {
    position: relative;
    height: 34px;
    margin-top: 6px;
}

.av-price-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: rgba(0,0,0,.12);
    border-radius: 999px;
}

.av-price-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: rgba(220,53,69,.85);
    border-radius: 999px;
    left: 0%;
    right: 0%;
}

.av-price-slider input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    top: 33%;
    transform: translateY(-50%);
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    height: 34px;
    margin: 0;
}

    .av-price-slider input[type="range"]::-webkit-slider-runnable-track {
        height: 4px;
        background: transparent;
    }

    .av-price-slider input[type="range"]::-webkit-slider-thumb {
        pointer-events: auto;
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid #dc3545;
        box-shadow: 0 6px 18px rgba(0,0,0,.12);
    }

    .av-price-slider input[type="range"]::-moz-range-track {
        height: 4px;
        background: transparent;
    }

    .av-price-slider input[type="range"]::-moz-range-thumb {
        pointer-events: auto;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid #dc3545;
        box-shadow: 0 6px 18px rgba(0,0,0,.12);
    }

/* Mobile: keep price slider in one row */
@media (max-width: 575.98px) {

    .av-strip-range {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap; /* ✅ force one row */
        min-width: 0;
    }

    .av-strip-min,
    .av-strip-max {
        white-space: nowrap; /* ✅ don’t break text */
        font-size: 12px; /* ✅ slightly smaller */
        line-height: 1;
        flex: 0 0 auto;
    }

    .av-strip-range input[type="range"] {
        flex: 1 1 auto; /* ✅ slider takes remaining space */
        min-width: 80px; /* ✅ prevents collapsing too much */
    }
}

/*.nowrap {
    white-space: nowrap;
}

.price-range {
    width: 600px;*/ /* desktop default */
/*}*/

/* Mobile view */
/*@media (max-width: 576px) {
    .price-range {
        width: 200px;
    }
}*/

/* Filter bar responsiveness */
.av-filterbar {
    width: 100%;
}

/* Make slider not tiny */
.av-pricebar .price-range {
    min-width: 120px;
}

/* Tablet: keep 2 columns if space */
@media (max-width: 991.98px) {
    .av-filterbar-right select {
        min-width: 140px !important;
    }
}

/* Mobile: stack, but keep slider one-line */
@media (max-width: 575.98px) {
    .av-filterbar {
        flex-direction: column;
        align-items: stretch !important;
    }

    .av-filterbar-left {
        width: 100%;
    }

    .av-filterbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .av-pricebar {
        width: 100%;
    }

        .av-pricebar .price-range {
            min-width: 80px;
        }

    .av-filterbar-right select {
        min-width: 130px !important;
    }
}

/* Card inner padding – give more room on the right */
.av-ph-card {
    padding-right: 14px;
}

/* Bottom meta row */
.av-ph-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap; /* allow wrap instead of clipping */
}

    /* Ensure button doesn't overflow */
    .av-ph-bottom .av-card__cta,
    .av-ph-bottom .btn,
    .av-ph-bottom a.btn {
        flex: 0 0 auto;
        max-width: 100%;
        white-space: nowrap;
    }

/* If chips are in .av-card__tags and 24/7 chip is the first one */
.av-card__tags .chip-247 {
    display: none;
}
/* (Use your real class/selector for that chip) */

.av-ph-meta-pill {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
}

.results-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .results-pane .results-list-wrap {
        flex: 1 1 auto;
        overflow: auto;
        padding-right: 6px; /* to avoid content under scrollbar */
    }

/* Meta row: allow wrap on very small screens to avoid overflow */
@media (max-width: 420px) {
    .ph-meta {
        flex-wrap: wrap;
    }

    .ph-meta-left {
        flex-wrap: wrap;
    }
}



/* Search map interactions */
.map-marker-badge {
    appearance: none;
    border: 2px solid transparent;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0,0,0,.20);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .map-marker-badge:hover,
    .map-marker-badge.is-selected {
        transform: translateY(-1px) scale(1.03);
        border-color: #6f7bf7;
        box-shadow: 0 14px 30px rgba(55,65,81,.26);
    }

.ph-card.is-selected {
    outline: 2px solid rgba(111,123,247,.32);
    box-shadow: 0 16px 28px rgba(0,0,0,.08);
}

.av-mapbox-popup .mapboxgl-popup-content {
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.20);
    min-width: 590px;
}

.av-mapbox-popup .mapboxgl-popup-close-button {
    display: none;
}

.av-mapbox-popup .mapboxgl-popup-tip {
    border-top-color: #fff;
}

.av-map-card {
    background: #fff;
}

.av-map-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 10px;
    color: #fff;
    background: linear-gradient(90deg, #6f5ed9 0%, #7b61d9 46%, #6d7ef7 100%);
}

.av-map-card__badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.20);
    font-weight: 700;
}

.av-map-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}

.av-map-card__sub {
    font-size: 11px;
    margin-top: 4px;
    opacity: .96;
}

.av-map-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 10px 0;
}

.av-map-tag {
    border-radius: 8px;
    background: #eef2ff;
    color: #4f63da;
    padding: 1px 10px;
    font-size: 11px;
    font-weight: 600;
}

.av-map-card__meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    padding: 5px;
}

.av-map-card__label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 5px;
}

.av-map-card__value {
    font-size: 11px;
    font-weight: 700;
    color: #222;
}

.av-map-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f2a100;
}

    .av-map-card__rating .material-icons {
        font-size: 18px;
    }

.av-map-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.av-map-card__price {
    font-size: 16px;
    font-weight: 800;
    color: #222;
}

    .av-map-card__price span {
        margin-left: 4px;
        font-weight: 500;
        color: #6b7280;
    }

.av-map-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 34px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: #6f7bf7;
}

.av-map-card__head {
    position: relative;
}

.av-map-card__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .av-map-card__close:hover {
        background: rgba(255,255,255,0.35);
        transform: scale(1.05);
    }

@media (max-width: 991px) {
    .av-mapbox-popup .mapboxgl-popup-content {
        min-width: 360px;
    }

    .av-map-card__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .av-map-card__title {
        font-size: 20px;
    }
}

.av-where-wrap {
    position: relative;
}

.av-where-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
    z-index: 1200;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px 0;
}

    .av-where-suggestions.d-none {
        display: none;
    }

.av-where-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    cursor: pointer;
    transition: background .15s ease;
}

    .av-where-item:hover,
    .av-where-item.active {
        background: #f7f7f9;
    }

.av-where-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    font-size: 16px;
}

.av-where-item__title {
    font-weight: 700;
    line-height: 1.2;
    color: #222;
}

.av-where-item__sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.av-where-item--nearby {
    border-bottom: 1px solid #f0f0f0;
}


/* ===== Where autocomplete ===== */
.search-field.position-relative {
    position: relative !important;
}

.av-where-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
    z-index: 3000;
    max-height: 340px;
    overflow-y: auto;
    padding: 6px 0;
}

    .av-where-suggestions.d-none {
        display: none !important;
    }

.av-where-item {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 11px 14px;
    cursor: pointer;
}

    .av-where-item:hover,
    .av-where-item.active {
        background: #f6f7f9;
    }

.av-where-item__icon {
    font-size: 19px;
    line-height: 1;
    color: #6b7280;
    margin-top: 2px;
}

.av-where-item__text {
    display: block;
    min-width: 0;
}

.av-where-item__title {
    display: block;
    font-size: 15px;
    color: #222;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.av-where-item__sub {
    display: block;
    font-size: 13px;
    color: #7b8190;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.av-where-item--nearby {
    border-bottom: 1px solid rgba(0,0,0,.06);
}
