.search-page {
    padding-bottom: 56px;
    background: #f7f9fb;
}

.search-page__top {
    padding: 22px 0;
    border-bottom: 1px solid #deeaed;
    background: #edf4f5;
}

.search-page__top .search-panel {
    box-shadow: 0 4px 16px rgb(6 75 97 / 5%);
}

.search-page__results {
    padding-top: 30px;
}





.search-page .search-layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.search-filters {
    position: sticky;
    top: 90px;
    padding: 20px;
    border: 1px solid #e0e8ec;
    border-radius: 16px;
    background: var(--white);
}

.filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eaf0f2;
}

.filter-heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
}

.search-page .filter-reset {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--orange);
    font-size: 12px;
    font-weight: 600;
}

.filter-group {
    float: none;
    min-width: 0;
    margin: 18px 0 0;
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid #eaf0f2;
}

.filter-group legend {
    float: none;
    width: auto;
    margin: 0 0 12px;
    padding: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.filter-group legend span {
    color: #7c909a;
    font-size: 11px;
    font-weight: 400;
}

.filter-region > label,
.filter-region-label {
    display: block;
    margin-bottom: 7px;
    color: #6b808a;
    font-size: 11px;
    font-weight: 500;
}

.filter-province-options {
    max-height: 220px;
    margin: 0 -7px 15px;
    padding: 0 7px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8d9df transparent;
}

.filter-ward-options {
    max-height: 220px;
    margin: 0 -7px;
    padding: 0 7px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8d9df transparent;
}

#amenityFilters {
    max-height: min(240px, 40dvh);
    padding: 3px 7px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #c8d9df transparent;
    scrollbar-gutter: stable;
}

#amenityFilters .filter-check > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.filter-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.filter-prices label {
    min-width: 0;
    color: #6b808a;
    font-size: 11px;
}

.filter-prices label > div {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 6px;
    min-height: 40px;
    padding: 9px 8px;
    border: 1px solid #d5e2e7;
    border-radius: 10px;
    background: #f7fafb;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.filter-prices input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    caret-color: var(--navy);
    appearance: textfield;
}

.filter-prices input::-webkit-inner-spin-button,
.filter-prices input::-webkit-outer-spin-button {
    appearance: none;
}

.filter-prices label > div:hover {
    border-color: #a4bfc8;
}

.filter-prices label > div:focus-within {
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgb(6 75 97 / 10%);
}

.filter-prices label > div:has([aria-invalid="true"]) {
    border-color: var(--orange);
}

.search-page .filter-prices input:focus-visible {
    outline: none;
}

.filter-prices input::placeholder {
    color: #8a9ba3;
}

.search-page .filter-check {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    margin: 0 -7px;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #526c78;
    font-size: 12px;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}

.search-page .filter-check:hover {
    background: #f4f8f9;
}

.search-page .filter-check:has(input:checked) {
    /* border-color: #dcebed; */
    /* background: #edf5f5; */
    color: var(--navy);
}

.filter-check input[type="checkbox"] {
    position: relative;
    display: grid;
    flex: 0 0 18px;
    place-items: center;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid #b5c8cf;
    border-radius: 5px;
    background: var(--white);
    appearance: none;
    cursor: pointer;
    transition: background .16s, border-color .16s, box-shadow .16s;
}

.filter-check input[type="checkbox"]::after {
    content: '';
    width: 9px;
    height: 5px;
    border-bottom: 1.8px solid var(--white);
    border-left: 1.8px solid var(--white);
    transform: translateY(-1px) rotate(-45deg) scale(0);
}

.filter-check input[type="checkbox"]:checked {
    border-color: var(--navy);
    background: var(--navy);
}

.filter-check input[type="checkbox"]:checked::after {
    transform: translateY(-1px) rotate(-45deg) scale(1);
}

.filter-check input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(6 75 97 / 16%);
}

.filter-check input[type="checkbox"]:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.filter-check > span {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 7px;
}

.filter-check:has(input:checked) > span {
    font-weight: 600;
}

.filter-check .filter-media-icon {
    display: inline-flex;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--navy);
}

.property-media-svg {
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.filter-media-icon .property-media-svg {
    width: 18px;
    height: 18px;
}

.filter-check .bi-star-fill {
    color: #c78520;
}

.filter-check small {
    color: #82949e;
    font-size: 11px;
}

.filter-note {
    margin: 16px 0 0;
    color: #7a8d97;
    font-size: 11px;
    line-height: 1.7;
}

.filter-note i {
    margin-right: 3px;
}

.filter-error {
    margin: 8px 0 0;
    color: #a84908;
    font-size: 11px;
    line-height: 1.5;
}

.search-results {
    min-width: 0;
}

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 38px;
    margin-bottom: 18px;
}

.results-count {
    margin: 0;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.active-filters:empty {
    display: none;
}

.active-filters button {
    padding: 6px 10px;
    border: 1px solid #d5e5e8;
    border-radius: 20px;
    background: #edf5f5;
    color: var(--navy);
    font-size: 11px;
    line-height: 1.5;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    color: #728590;
    font-size: 12px;
}

.results-sort select {
    width: 190px;
    max-width: 100%;
    min-height: 40px;
    padding: 9px 38px 9px 15px;
    border: 1px solid #d5e2e7;
    border-radius: 22px;
    background-color: #f7fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 6.5 3.5 3.5 3.5-3.5' stroke='%235c7b88' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 13px center;
    background-repeat: no-repeat;
    color: var(--navy);
    font: inherit;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
    transition: border-color .18s, background-color .18s, box-shadow .18s;
}

.results-sort select:hover {
    border-color: #a4bfc8;
    background-color: #f0f6f7;
}

.search-page .results-sort select:focus-visible {
    border-color: var(--navy);
    outline: none;
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgb(6 75 97 / 10%);
}

.results-sort select option {
    background: var(--white);
    color: var(--text);
    font-weight: 500;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    scroll-margin-top: 95px;
}

.property-card {
    min-width: 0;
    border: 1px solid #e0e8ec;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 3px 10px rgb(25 48 66 / 3%);
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.property-card:hover {
    transform: translateY(-3px);
    border-color: #aac6ce;
    box-shadow: 0 10px 24px rgb(6 75 97 / 9%);
}

.property-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

.property-card__link:hover {
    color: inherit;
}

.property-card__image {
    position: relative;
    aspect-ratio: 1.45;
    overflow: hidden;
    background: #e9eff1;
}

.property-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.property-card:hover img {
    transform: scale(1.035);
}

.property-card__discount {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #fff5e9;
    color: #a84908;
    font-size: 10px;
    font-weight: 750;
    box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
}

.property-card__media {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 5px;
}

.property-card__media-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 5px 8px;
    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 18px;
    background: rgb(255 255 255 / 95%);
    color: var(--navy);
    box-shadow: 0 2px 8px rgb(6 36 48 / 14%);
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.property-card__media-icon .property-media-svg {
    width: 18px;
    height: 18px;
}

.property-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.property-card__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 18px;
    margin-bottom: 8px;
    font-size: 11px;
}

.property-card__rating i {
    color: #c78520;
    font-size: 10px;
}

.property-card__rating strong {
    color: var(--text);
    font-size: 12px;
}

.property-card__rating span {
    color: #7a8c96;
}

.property-card__name {
    display: -webkit-box;
    min-height: 0;
    margin: 0 0 4px;
    overflow: hidden;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-card__address {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin: 0 0 10px;
    color: #70838e;
    font-size: 11px;
    line-height: 1.45;
}

.property-card__address > span {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #edf1f3;
}

.property-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-width: 0;
}

.property-card__price del {
    margin: 0;
    white-space: nowrap;
    color: #95a1a8;
    font-size: 11px;
}

.property-card__price > div {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 7px;
    white-space: nowrap;
}

.property-card__price strong {
    color: var(--orange);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.6px;
    line-height: 1.3;
}

.property-card__price strong > span {
    margin-left: 1px;
    font-size: 14px;
}

.property-card__price small {
    color: #758b97;
    font-size: 11px;
}

.property-card__price .property-card__contact {
    font-size: 16px;
}

.property-card__detail {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    height: 32px;
    border-radius: 50%;
    background: #edf5f5;
    color: var(--navy);
    font-size: 15px;
    transition: background .18s, color .18s;
}

.property-card:hover .property-card__detail {
    background: var(--navy);
    color: var(--white);
}

.search-empty {
    padding: 56px 24px;
    border: 1px dashed #cbdce2;
    border-radius: 15px;
    background: var(--white);
    text-align: center;
}

.search-empty__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #edf5f5;
    color: var(--navy);
    font-size: 22px;
}

.search-empty h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 20px;
}

.search-empty p {
    margin: 0 0 18px;
    color: #728590;
    font-size: 13px;
    line-height: 1.7;
}

.search-empty button {
    padding: 10px 18px;
    border: 0;
    border-radius: 24px;
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
}

.search-page .search-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 0 0;
    color: #7a8c96;
    font-size: 12px;
}

.search-pagination p {
    margin: 0;
}

.search-pagination nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-pagination button {
    width: 36px;
    height: 36px;
    border: 1px solid #dce6ea;
    border-radius: 9px;
    background: var(--white);
    color: var(--navy);
}

.search-pagination button:hover:not(:disabled):not([aria-current]) {
    border-color: #aac5cf;
    background: #edf5f5;
}

.search-pagination button:disabled {
    border-color: #e6edef;
    background: #f3f6f7;
    color: #b2c1c8;
    cursor: not-allowed;
}

.search-pagination .pagination-step {
    font-size: 11px;
}

.search-pagination button[aria-current] {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.search-page [hidden] {
    display: none !important;
}

.search-page button:focus-visible,
.search-page a:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
}

.filter-toggle,
.search-mobile-filterbar {
    display: none;
}

@media (max-width: 1199px) {
    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .search-page .search-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }
    .search-filters {
        padding: 16px;
    }
}

@media (max-width: 900px) {
    .search-page .search-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .search-filters {
        position: static;
        display: none;
    }
    .search-filters.is-open {
        display: block;
    }
    .search-mobile-filterbar {
        display: flex;
        margin-bottom: 14px;
    }
    .filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        flex: 0 0 auto;
        min-height: 40px;
        padding: 9px 13px;
        border: 1px solid #d1e2e6;
        border-radius: 10px;
        background: var(--white);
        color: var(--navy);
        font-size: 12px;
        font-weight: 600;
    }
    .filter-toggle > span {
        display: grid;
        place-items: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--navy);
        color: var(--white);
        font-size: 10px;
    }
}

@media (max-width: 575px) {
    .search-page__top {
        padding: 14px 0;
    }
    .search-page__results {
        padding-top: 22px;
    }
    .property-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .property-card__image {
        aspect-ratio: 1.6;
    }
    .property-card__name {
        min-height: 0;
        font-size: 16px;
    }
    .property-card__body {
        padding: 16px;
    }
    .property-card__address > span {
        min-height: 0;
    }
    .property-card__address {
        font-size: 12px;
    }
    .property-card__price strong {
        font-size: 23px;
    }
    .filter-prices input {
        font-size: 16px;
    }
    .filter-check {
        min-height: 40px;
    }
    .results-toolbar {
        margin-bottom: 14px;
    }
}

/* Boundary search shares the existing filters and cards. */
.boundary-map-panel {
    position: sticky;
    top: 90px;
    min-width: 0;
    height: calc(100dvh - 110px);
    min-height: 420px;
    border: 1px solid #d5e2e7;
    border-radius: 16px;
    overflow: hidden;
    background: #edf4f5;
}

.boundary-map {
    width: 100%;
    height: 100%;
}

.boundary-map-status {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    left: 16px;
    right: 16px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgb(255 255 255 / 95%);
    color: var(--navy);
    font-size: 12px;
    box-shadow: 0 2px 12px #0002;
    pointer-events: none;
}

.boundary-map-retry {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 10px 20px;
    border: 1px solid #aac6ce;
    border-radius: 20px;
    background: white;
    color: var(--navy);
}

.boundary-price {
    padding: 7px 11px;
    border: 1px solid #c9dade;
    border-radius: 22px;
    background: white;
    color: #064b61;
    box-shadow: 0 2px 8px #0003;
    font: 700 12px/1.4 sans-serif;
    white-space: nowrap;
    transition: background .15s, transform .15s;
    cursor: pointer;
}

.boundary-cluster {
    background: #064b61;
    border-color: white;
    color: white;
}

.boundary-price.is-highlighted {
    transform: scale(1.13);
    background: #e47432;
    border-color: #e47432;
    color: white;
}

.is-map-mode .search-page__results > .container {
    width: calc(100% - 48px);
    max-width: none;
    padding-inline: 0;
}

.search-page.is-map-mode .search-layout {
    grid-template-columns: minmax(340px, 2fr) minmax(0, 3fr);
    gap: 24px;
}

.is-map-mode .search-filters,
.is-map-mode .filter-region {
    display: none;
}

.is-map-mode .property-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.is-map-mode .property-card__link {
    flex-direction: row;
}

.is-map-mode .property-card__image {
    flex: 0 0 39%;
    min-height: 185px;
    aspect-ratio: auto;
}

.is-map-mode .property-card__body {
    min-width: 0;
}

.is-map-mode .property-card__media-icon span {
    display: none;
}

.is-map-mode .property-card__price > div {
    flex-wrap: wrap;
}

.is-map-mode .property-card__price strong {
    font-size: 18px;
}

.property-card.is-map-selected {
    border-color: #e47432;
    box-shadow: 0 0 0 3px rgb(228 116 50 / 25%);
    scroll-margin-top: 100px;
}

@media (max-width: 1100px) {
    .is-map-mode .search-page__results > .container {
        width: calc(100% - 32px);
    }
    .search-page.is-map-mode .search-layout {
        grid-template-columns: minmax(270px, 0.5fr) minmax(0, 1fr);
        gap: 16px;
    }
    .is-map-mode .property-card__link {
        flex-direction: column;
    }
    .is-map-mode .property-card__image {
        flex-basis: auto;
        min-height: 0;
        aspect-ratio: 2;
    }
}

@media (max-width: 700px) {
    .is-map-mode .search-page__results > .container {
        width: calc(100% - 28px);
    }
    .search-page.is-map-mode .search-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .is-map-mode .boundary-map-panel {
        position: relative;
        top: 0;
        grid-row: 1;
        height: 45dvh;
        min-height: 300px;
    }
    .is-map-mode .property-card__link {
        flex-direction: row;
    }
    .is-map-mode .property-card__image {
        flex: 0 0 36%;
        aspect-ratio: auto;
    }
}

/* Controls belong to the listing column; filters expand below their trigger. */
.search-filter-controls {
    display: none;
    position: relative;
    z-index: 12;
    margin-bottom: 16px;
}

.is-map-mode .search-filter-controls {
    display: block;
}

.is-map-mode .search-mobile-filterbar {
    display: none;
}

.search-listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.search-listing-toolbar .results-sort {
    margin-left: 0;
    min-width: 0;
}

.search-listing-toolbar .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d1e2e6;
    border-radius: 10px;
    background: white;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
}

.filter-toggle > span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    font-size: 11px;
}

.filter-close,
.filter-actions {
    display: none;
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(380px, 100%);
    max-height: min(520px, 65dvh, var(--filter-dropdown-height, 520px));
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d5e2e7;
    border-radius: 14px;
    background: white;
    color: var(--text);
    box-shadow: 0 10px 30px rgb(6 36 48 / 12%);
}

.filter-dropdown #propertyFilters {
    padding: 0 18px;
}

.filter-dropdown .filter-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 58px;
    margin: 0 -18px;
    padding: 10px 18px;
    background: white;
}

.filter-dropdown .filter-heading > .filter-reset {
    display: none;
}

.filter-dropdown .filter-close {
    display: inline-grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e0e8ec;
    border-radius: 50%;
    background: #f7f9fb;
    color: var(--navy);
}

.filter-dropdown .filter-group {
    margin-top: 12px;
    padding-bottom: 12px;
}

.filter-dropdown .filter-group legend {
    margin-bottom: 8px;
    font-size: 13px;
}

.filter-dropdown .filter-check {
    min-height: 36px;
    padding-block: 5px;
    font-size: 13px;
}

.filter-dropdown .filter-check:has(input:checked) {
    border-color: #dcebed;
    background: #edf5f5;
}

.filter-dropdown .filter-prices input {
    font-size: 16px;
}

.filter-dropdown #amenityFilters {
    max-height: none;
    overflow: visible;
    padding: 0;
}

.filter-dropdown .filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px -18px 0;
    padding: 10px 18px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid #e0e8ec;
    background: white;
    box-shadow: 0 -6px 18px rgb(6 36 48 / 4%);
}

.filter-dropdown .filter-reset {
    min-height: 44px;
    color: var(--navy);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.filter-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 40px;
    padding: 9px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--navy);
    color: white;
    font-size: 14px;
    font-weight: 650;
}

.filter-apply:hover {
    background: #08394a;
}

.filter-more {
    display: none;
}

.filter-dropdown .filter-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.filter-dropdown #amenityFilters:not(.is-expanded) .filter-check:nth-child(n+7):not(:has(input:checked)) {
    display: none;
}

.search-filters,
.boundary-map-panel {
    top: 90px;
}

.boundary-map-panel {
    height: calc(100dvh - 110px);
}

@media (max-width: 700px) {
    .search-listing-toolbar .results-sort {
        flex: 1;
    }

    .search-listing-toolbar .results-sort > label {
        display: none;
    }

    .search-listing-toolbar .ui-select {
        width: 100%;
    }

    .is-map-mode .boundary-map-panel {
        top: 0;
    }
}

html:has(.search-page) {
    scrollbar-gutter: stable;
}

.filter-toggle:disabled {
    opacity: .5;
    cursor: wait;
}


.filter-dropdown #propertyTypeFilters,
.filter-dropdown #amenityFilters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 10px;
}

.filter-dropdown #propertyTypeFilters .filter-check,
.filter-dropdown #amenityFilters .filter-check {
    margin-inline: 0;
    padding-inline: 4px;
}

.filter-dropdown #rentalByFilters .filter-check {
    display: inline-flex;
    width: calc(50% - 4px);
    margin-inline: 0;
}

@media (max-width: 900px) {
    .filter-dropdown .filter-check,
    .filter-dropdown .filter-close {
        min-height: 44px;
    }
}
