.search-page {
    background: var(--white);
}

.search-wide-container {
    width: min(calc(100% - 32px), 1656px);
    margin-inline: auto;
}

.search-page-heading {
    padding: clamp(30px, 4vw, 50px) 0 12px;
    background: var(--white);
}


.search-results-heading .eyebrow,
.search-aside-card .eyebrow {
    margin: 0 0 8px;
}

.search-page-heading .public-page-title {
    max-width: none;
}

.search-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    margin-top: 24px;
    padding: 10px 12px 10px 18px;
    color: #748179;
    background: #fff;
    border: 1px solid #dce6e0;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(24, 57, 44, .06);
    font-size: .9rem;
}

.search-breadcrumbs a {
    color: #5c6e64;
    text-decoration: none;
}

.search-breadcrumbs a:hover { color: var(--green-700); }
.search-breadcrumbs > span[aria-hidden="true"] { color: #9aa9a0; }

.search-layout {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    gap: clamp(18px, 1.8vw, 28px);
    align-items: start;
    justify-content: center;
    padding-block: 24px clamp(64px, 8vw, 100px);
}

.search-sidebar {
    position: sticky;
    top: 16px;
}

.search-mobile-actions {
    display: none;
}

.search-filter-dialog {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

.search-filter-dialog-close,
.search-filter-dialog-actions {
    display: none;
}

.search-map-preview {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    padding: 12px 17px;
    color: var(--green-700);
    background: #e7f1eb;
    border: 1px solid #b2cdbd;
    border-radius: 10px;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

.search-map-preview-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .84rem;
    font-weight: 650;
    letter-spacing: normal;
    text-transform: none;
}

.search-map-preview-label svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.search-map-preview:hover { background: #dbeadf; border-color: #96b8a4; }
.search-map-preview:focus-visible { outline: 3px solid rgba(45, 106, 79, .22); outline-offset: 3px; }

.search-map-dialog {
    width: min(calc(100% - 32px), 1540px);
    max-width: none;
    height: min(calc(100dvh - 32px), 980px);
    max-height: none;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 28px 90px rgba(12, 35, 25, .28);
}

.search-map-dialog::backdrop {
    background: rgba(15, 35, 27, .68);
    backdrop-filter: blur(4px);
}

.search-map-dialog-panel {
    position: relative;
    display: grid;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
    background: #eaf2ee;
}

.search-map-dialog-header {
    position: relative;
    z-index: 900;
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 15px 70px 15px 22px;
    gap: 18px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #d7e3dc;
}

.search-map-dialog-header > div { min-width: 0; }

.search-map-dialog-header p {
    margin: 0 0 3px;
    color: var(--green-700);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.search-map-dialog-header h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.12;
}

.search-map-dialog-header span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .73rem;
}

.search-map-dialog-header > button {
    position: absolute;
    top: 50%;
    right: 18px;
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: #456158;
    background: #f1f6f3;
    border: 1px solid #dce7e1;
    border-radius: 50%;
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
}

.search-map-dialog-header > button:hover { color: #fff; background: var(--green-700); border-color: var(--green-700); }
.search-map-dialog-header > button:focus-visible { outline: 3px solid rgba(45, 106, 79, .2); outline-offset: 2px; }
.search-map-dialog-header > button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.search-map-canvas {
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: #dfeae4;
}

.search-map-state {
    position: absolute;
    z-index: 850;
    inset: 83px 0 0;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 24px;
    color: #365a49;
    background: rgba(239, 246, 242, .9);
    text-align: center;
}

.search-map-state[hidden] { display: none; }
.search-map-state > span { width: 38px; height: 38px; border: 3px solid #c9ddd2; border-top-color: var(--green-700); border-radius: 50%; animation: search-map-spin .75s linear infinite; }
.search-map-state > p { margin: 12px 0 0; font-size: .8rem; font-weight: 700; }
.search-map-state.is-message h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: 1.35rem; }
.search-map-state.is-message p { max-width: 420px; margin: 8px 0 16px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.search-map-state.is-message button { min-height: 40px; padding: 8px 15px; color: #fff; background: var(--green-700); border: 0; border-radius: 9px; cursor: pointer; font-weight: 750; }

@keyframes search-map-spin { to { transform: rotate(360deg); } }

body:has(.search-map-dialog[open]) { overflow: hidden; }

.search-map-dialog .leaflet-control-zoom {
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(20, 52, 38, .17);
}

.search-map-dialog .leaflet-control-zoom a { color: var(--green-700); border-color: #dbe5df; }
.search-map-dialog .leaflet-control-attribution { padding: 2px 6px; color: #617169; background: rgba(255, 255, 255, .9); font-size: 9px; }
.search-map-dialog .leaflet-control-attribution a { color: var(--green-700); }

.search-map-price-icon,
.search-map-cluster-icon { background: transparent; border: 0; }

.search-map-price-marker,
.search-map-cluster-marker {
    display: inline-flex;
    min-width: max-content;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    color: #173c2d;
    background: #fff;
    border: 1px solid rgba(45, 106, 79, .18);
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(18, 48, 35, .2);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.search-map-price-marker:hover,
.leaflet-marker-icon:focus .search-map-price-marker { color: #fff; background: var(--green-700); transform: translate(-50%, -50%) scale(1.05); }

.search-map-cluster-marker {
    min-width: 36px;
    min-height: 36px;
    padding: 5px;
    color: #fff;
    background: var(--green-700);
    border: 3px solid rgba(255, 255, 255, .86);
    box-shadow: 0 5px 16px rgba(18, 48, 35, .28);
}

.search-map-dialog .search-map-listing-popup .leaflet-popup-content-wrapper {
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 1px solid #1b1b1b;
    border-radius: 15px;
    box-shadow: 0 16px 45px rgba(17, 44, 32, .24);
}

.search-map-dialog .search-map-listing-popup .leaflet-popup-content { width: 310px !important; margin: 0; }
.search-map-dialog .search-map-listing-popup .leaflet-popup-tip { background: #fff; }
.search-map-dialog .search-map-listing-popup .leaflet-popup-close-button { z-index: 8; top: 8px; right: 8px; width: 31px; height: 31px; padding: 3px 0 0; color: #244c3a; background: rgba(255, 255, 255, .94); border-radius: 50%; box-shadow: 0 3px 10px rgba(17, 43, 31, .14); font-size: 20px; }
.search-map-dialog .search-map-listing-popup .listing-card { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.search-map-dialog .search-map-listing-popup .listing-card:hover { transform: none; box-shadow: none; }
.search-map-dialog .search-map-listing-popup .listing-card h3 a { color: var(--ink); }
.search-map-dialog .search-map-listing-popup .listing-card h3 a:hover { color: var(--green-700); }
.search-map-dialog .search-map-listing-popup .favorite-button { right: 48px; }
.search-map-dialog .search-map-listing-popup .listing-body { padding: 15px 16px 17px; }
.search-map-dialog .search-map-listing-popup .listing-media { aspect-ratio: 16 / 9; }

.search-aside-card,
.search-advertisement {
    background: #fff;
    border: 1px solid #dce6e0;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(24, 57, 44, .045);
}

.search-filter-heading,
.search-results-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.search-filter-heading {
    margin-bottom: 14px;
}

.search-aside-card h2,
.search-advertisement h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.42rem;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.1;
}

.search-filter-heading a {
    color: var(--green-700);
    font-size: .73rem;
    font-weight: 750;
    text-decoration: none;
}

.search-filter-field,
.search-range-filter {
    display: grid;
    gap: 7px;
    margin: 0 0 15px;
}

.search-filter-field > span:first-child,
.search-range-filter legend {
    padding: 0;
    color: var(--ink);
    font-size: .76rem;
    font-weight: 780;
}

.search-filter-field .app-custom-select,
.search-filter-field select {
    width: 100%;
}

.search-filter-field .app-custom-select-button,
.search-filter-field > select:not(.app-custom-select-native) {
    min-height: 42px;
    border-radius: 10px;
    font-size: .79rem;
}

.search-filter-input-icon {
    position: relative;
    display: block;
}

.search-filter-input-icon svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 18px;
    height: 18px;
    color: var(--green-700);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
}

.search-filter-input-icon input,
.search-filter-price input:not([type="range"]) {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cbd9d1;
    border-radius: 10px;
    font: inherit;
    font-size: .8rem;
}

.search-filter-input-icon input {
    padding: 10px 12px 10px 39px;
}

.search-filter-location-control {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    padding-inline: 12px;
    background: #fff;
    border: 1px solid #cbd9d1;
    border-radius: 10px;
}

.search-filter-location-control:focus-within {
    border-color: var(--green-700);
    outline: 3px solid rgba(45, 106, 79, .12);
    outline-offset: 0;
}

.search-filter-location-control svg {
    width: 18px;
    height: 18px;
}

.search-filter-location-control input {
    min-height: 40px;
    color: var(--ink);
    border: 0;
}

.search-range-filter.search-filter-price {
    margin-bottom: 0;
}

.search-range-filter.search-guest-range,
.search-filter-field.search-filter-field-with-divider {
    margin-bottom: 0;
}

.search-filter-price {
    margin-bottom: 0;
}

.search-filter-divider {
    height: 1px;
    margin: 0 -3px 15px;
    background: #e8eeea;
}

.search-filter-field-with-divider + .search-filter-divider {
    margin-top: 15px;
}

.search-filter-location-control .search-location-menu {
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    box-sizing: border-box;
}

.search-filter-input-icon input:focus,
.search-filter-price input:not([type="range"]):focus {
    border-color: var(--green-700);
    outline: 3px solid rgba(45, 106, 79, .12);
    outline-offset: 0;
}

.search-filter-location,
.search-filter-pair {
    padding-top: 1px;
}

.search-range-filter {
    min-inline-size: 0;
    padding: 16px 0;
    margin-bottom: 16px;
    border: 0;
}

.search-dual-range,
.search-single-range {
    position: relative;
    height: 24px;
    margin-top: 3px;
}

.search-range-track,
.search-range-fill {
    position: absolute;
    top: 50%;
    height: 3px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.search-range-track {
    right: 0;
    left: 0;
    background: #d6e0da;
}

.search-range-fill {
    left: 0;
    width: 0;
    background: var(--green-700);
}

.search-dual-range input[type="range"],
.search-single-range input[type="range"] {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    width: 100%;
    height: 16px;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    background: transparent;
    transform: translateY(-50%);
}

.search-dual-range input[type="range"]::-webkit-slider-thumb,
.search-single-range input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid var(--green-700);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(24, 45, 34, .18);
    margin-top: -6.5px;
}

.search-dual-range input[type="range"]::-webkit-slider-runnable-track,
.search-single-range input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    background: transparent;
}

.search-dual-range input[type="range"]::-moz-range-thumb,
.search-single-range input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    cursor: pointer;
    pointer-events: auto;
    background: #fff;
    border: 2px solid var(--green-700);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(24, 45, 34, .18);
}

.search-dual-range input[type="range"]::-moz-range-track,
.search-single-range input[type="range"]::-moz-range-track {
    height: 3px;
    background: transparent;
}

.search-dual-range input[type="range"]:focus-visible::-webkit-slider-thumb,
.search-single-range input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 3px solid rgba(45, 106, 79, .2);
    outline-offset: 2px;
}

.search-range-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.2;
}

.search-range-labels-single {
    justify-content: flex-start;
}

.search-range-current {
    margin: 5px 0 0;
    color: var(--green-700);
    font-size: .75rem;
    font-weight: 750;
}


.search-filter-options {
    margin: 0 -3px;
    border-top: 1px solid #e8eeea;
}

.search-filter-options:last-of-type {
    border-bottom: 1px solid #e8eeea;
}

.search-filter-options summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 47px;
    padding: 0 3px;
    color: var(--ink);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 780;
    list-style: none;
}

.search-filter-options summary::-webkit-details-marker { display: none; }
.search-filter-options summary::after { content: '+'; color: var(--green-700); font-size: 1.15rem; font-weight: 500; }
.search-filter-options[open] summary::after { content: '−'; }
.search-filter-options summary span { min-width: 18px; color: var(--green-700); font-size: .72rem; text-align: right; }

.search-filter-options > div {
    display: grid;
    gap: 4px;
    padding: 0 0 14px;
}

.search-amenity-groups > p {
    margin: 10px 0 4px;
    color: #748178;
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 600;
}

.search-check-option {
    display: grid;
    grid-template-columns: 16px 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 4px;
    color: #384d42;
    border-radius: 8px;
    cursor: pointer;
    font-size: .73rem;
    font-weight: 650;
    user-select: none;
}

.search-check-option:hover { background: #f3f8f5; }
.search-check-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--green-700); }
.search-check-icon { display: grid; width: 28px; height: 28px; color: var(--green-700); background: #eef6f1; border-radius: 8px; place-items: center; }
.search-check-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.search-filter-submit { width: 100%; min-height: 45px; margin-top: 17px; font-size: .8rem; }

.search-results {
    min-width: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #dce6e0;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(24, 57, 44, .045);
}
.search-results-heading { align-items: flex-start; padding: 0 0 20px; }
.search-results-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.search-sort {
    position: relative;
    align-self: flex-start;
    margin-left: auto;
    color: var(--green-700);
    font-size: .74rem;
    font-weight: 700;
}

.search-sort summary {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 11px;
    gap: 8px;
    color: var(--green-700);
    background: #fff;
    border: 1px solid #d4e1da;
    border-radius: 8px;
    list-style: none;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.search-sort summary::-webkit-details-marker { display: none; }
.search-sort summary:hover,
.search-sort[open] summary { background: var(--green-50); border-color: #a9c8b8; }
.search-sort summary:focus-visible { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(45, 106, 79, .13); outline: 0; }
.search-sort summary svg { flex: 0 0 auto; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.search-sort .search-sort-chevron { width: 13px; height: 13px; margin-left: 3px; transition: transform 160ms ease; }
.search-sort[open] .search-sort-chevron { transform: rotate(180deg); }

.search-sort-menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 7px);
    right: 0;
    display: grid;
    width: max-content;
    min-width: 100%;
    padding: 6px;
    gap: 2px;
    background: #fff;
    border: 1px solid #d4dfd9;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(16, 42, 31, .17);
}

.search-sort-menu a {
    display: flex;
    min-height: 35px;
    align-items: center;
    padding: 7px 10px;
    color: #415149;
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease;
}

.search-sort-menu a:hover,
.search-sort-menu a:focus-visible { color: var(--green-700); background: var(--green-50); outline: 0; }
.search-sort-menu a.is-active { color: #fff; background: var(--green-700); }
.search-listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.search-empty { padding: clamp(44px, 8vw, 76px) 26px; text-align: center; background: #fff; border: 1px solid #dfe8e3; border-radius: 16px; }
.search-empty > span { display: grid; width: 48px; height: 48px; margin: 0 auto 14px; color: var(--green-700); background: #edf6f0; border-radius: 50%; place-items: center; }
.search-empty svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-empty h3 { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.search-empty p { max-width: 390px; margin: 10px auto 20px; color: var(--muted); font-size: .85rem; }

.search-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 34px; }
.search-pagination a { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 11px; color: var(--green-700); background: #fff; border: 1px solid #d6e3db; border-radius: 9px; font-size: .76rem; font-weight: 750; text-decoration: none; }
.search-pagination a:hover,.search-pagination .is-current { color: #fff; background: var(--green-700); border-color: var(--green-700); }

/* Desktop content density mirrors the previously used 90% browser zoom. */
@media (min-width: 901px) {
    .search-wide-container { width: min(calc(100% - 32px), 1490px); }
    .search-page-heading { padding: clamp(27px, 3.6vw, 45px) 0 11px; }
    .search-breadcrumbs { min-height: 59px; gap: 9px; margin-top: 22px; padding: 9px 11px 9px 16px; border-radius: 14px; font-size: .81rem; }
    .search-layout { grid-template-columns: minmax(234px, 297px) minmax(0, 1fr); gap: clamp(16px, 1.62vw, 25px); }
    .search-filter-field,
    .search-range-filter { gap: 6px; margin-bottom: 14px; }
    .search-filter-field > span:first-child,
    .search-range-filter legend { font-size: .7rem; }
    .search-filter-field .app-custom-select-button,
    .search-filter-field > select:not(.app-custom-select-native),
    .search-filter-input-icon input,
    .search-filter-price input:not([type="range"]) { min-height: 38px; font-size: .74rem; }
    .search-filter-input-icon svg { left: 11px; width: 16px; height: 16px; }
    .search-filter-location-control { min-height: 38px; padding-inline: 11px; }
    .search-filter-location-control svg { width: 16px; height: 16px; }
    .search-filter-location-control input { min-height: 36px; font-size: .74rem; }
    .search-filter-input-icon input { padding: 8px 11px 8px 35px; }
    .search-range-filter { padding-block: 14px; }
    .search-filter-options summary { min-height: 42px; font-size: .74rem; }
    .search-filter-options > div { padding-bottom: 12px; }
    .search-check-option { grid-template-columns: 14px 25px minmax(0, 1fr); gap: 7px; min-height: 32px; font-size: .68rem; }
    .search-check-option input { width: 14px; height: 14px; }
    .search-check-icon { width: 25px; height: 25px; }
    .search-check-icon svg { width: 14px; height: 14px; }
    .search-results { padding: 18px; }
    .search-results-heading { padding-bottom: 18px; }
    .search-results-heading > div > p:last-child { margin-top: 7px; font-size: .76rem; }
    .search-sort { font-size: .68rem; }
    .search-sort summary { min-height: 33px; padding-inline: 10px; }
    .search-sort-menu a { min-height: 33px; }
    .search-listing-grid { gap: 16px; }
}

@media (max-width: 1500px) {
    .search-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
    .search-layout { grid-template-columns: minmax(230px, 330px) minmax(0, 1fr); }
    .search-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .search-layout { grid-template-columns: 1fr; }
    .search-sidebar { position: static; }
    .search-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .search-filter-heading,.search-filter-options,.search-filter-submit { grid-column: 1 / -1; }
    .search-range-filter { align-self: end; }
    .search-filter-location,.search-filter-pair { display: contents; }
    .search-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .search-wide-container { width: min(calc(100% - 30px), 1656px); }
    .search-page-heading { padding-top: 28px; }
    .search-layout { padding-top: 20px; }
    .search-filters { display: block; }
    .search-results { padding: 17px; }
    .search-results-heading { align-items: flex-start; flex-direction: column; }
    .search-sort { width: 100%; margin-left: 0; }
    .search-sort summary { width: 100%; justify-content: flex-start; }
    .search-sort .search-sort-chevron { margin-left: auto; }
    .search-sort-menu { left: 0; width: 100%; }
    .search-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-map-dialog { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
    .search-map-dialog-header { min-height: 75px; padding: 12px 62px 12px 16px; }
    .search-map-dialog-header > button { right: 12px; }
    .search-map-state { inset: 76px 0 0; }
    .search-map-dialog .search-map-listing-popup .leaflet-popup-content { width: min(290px, calc(100vw - 54px)) !important; }
}

@media (max-width: 480px) {
    .search-wide-container { width: min(calc(100% - 24px), 1656px); }
    .search-layout { padding-top: 6px; }
    .search-listing-grid { grid-template-columns: 1fr; }
    .search-pagination { gap: 4px; }
    .search-pagination a { min-width: 34px; padding: 0 8px; }

    .search-mobile-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .search-mobile-action {
        display: inline-flex;
        min-width: 0;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        gap: 8px;
        color: #fff;
        background: var(--green-700);
        border: 1px solid var(--green-700);
        border-radius: 11px;
        box-shadow: 0 6px 18px rgba(24, 67, 48, .12);
        cursor: pointer;
        font: inherit;
        font-size: .74rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .search-mobile-action-map {
        color: var(--green-700);
        background: #fff;
        border-color: #b8cec2;
    }

    .search-mobile-action svg {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .search-mobile-action:focus-visible {
        outline: 3px solid rgba(45, 106, 79, .2);
        outline-offset: 2px;
    }

    .search-map-preview {
        display: none;
    }

    .search-filter-dialog {
        position: fixed;
        z-index: 1200;
        inset: 0;
        display: none;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        padding: 0;
        margin: 0;
        overflow: hidden;
        background: #fff;
    }

    .search-filter-dialog.is-open {
        display: block;
    }

    .search-filter-dialog .search-filters {
        display: block;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 0 18px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .search-filter-dialog .search-filter-heading {
        position: sticky;
        z-index: 30;
        top: 0;
        min-height: 74px;
        align-items: center;
        padding: 14px 64px 14px 18px;
        margin: 0 -18px 18px;
        background: rgba(255, 255, 255, .97);
        border-bottom: 1px solid #dce6e0;
    }

    .search-filter-dialog .search-filter-heading h2 {
        font-size: 1.35rem;
    }

    .search-filter-dialog-close {
        position: absolute;
        top: 50%;
        right: 14px;
        display: grid;
        width: 42px;
        height: 42px;
        padding: 0;
        color: #456158;
        background: #f1f6f3;
        border: 1px solid #dce7e1;
        border-radius: 50%;
        cursor: pointer;
        place-items: center;
        transform: translateY(-50%);
    }

    .search-filter-dialog-close:focus-visible {
        outline: 3px solid rgba(45, 106, 79, .2);
        outline-offset: 2px;
    }

    .search-filter-dialog-close svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 1.8;
    }

    .search-filter-dialog-actions {
        position: sticky;
        z-index: 25;
        bottom: 0;
        display: block;
        padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
        margin: 20px -18px 0;
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid #dce6e0;
        box-shadow: 0 -8px 24px rgba(24, 57, 44, .07);
    }

    .search-filter-dialog-actions button {
        width: 100%;
        min-height: 48px;
        color: #fff;
        background: var(--green-700);
        border: 1px solid var(--green-700);
        border-radius: 11px;
        cursor: pointer;
        font: inherit;
        font-size: .8rem;
        font-weight: 800;
    }

    body.has-search-filter-dialog {
        overflow: hidden;
    }
}
