.spotsy-explore-toolbar[hidden],
.spotsy-explore-toolbar [hidden] { display: none !important; }
.spotsy-explore-toolbar {
    --toolbar-accent: #d91e39;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px clamp(12px, 2vw, 28px);
    background: #fff;
    border-bottom: 1px solid #e6e6eb;
    color: #25252c;
}
.spotsy-explore-controls, .spotsy-explore-chips {
    display: flex;
    align-items: center;
    gap: 8px;
}
.spotsy-explore-controls {
    flex: none;
    padding-right: 14px;
    border-right: 1px solid #dedee5;
}
.spotsy-explore-chips {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}
.spotsy-explore-toolbar button {
    min-height: 44px;
    border: 1px solid #dedee5;
    background: white;
    color: inherit;
    font: inherit;
    font-weight: 600;
    border-radius: 10px;
    padding: 6px 12px;
}
.spotsy-explore-toolbar button:focus-visible { outline: 2px solid var(--toolbar-accent); outline-offset: -2px; }
.spotsy-explore-controls button, .spotsy-explore-chips button { white-space: nowrap; flex: none; }
.spotsy-explore-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-color: transparent;
    background: transparent;
}
.spotsy-explore-controls button:hover { background: #f4f5f8; }
.spotsy-filter-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-1px) rotate(45deg);
}
.spotsy-filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding-inline: 4px;
    border-radius: 999px;
    background: #25252c;
    color: white;
    font-size: 11px;
}
.spotsy-explore-chips button { border-radius: 999px; }
.spotsy-explore-controls .is-active,
.spotsy-explore-chips [aria-pressed="true"] {
    color: #ad152d;
    border-color: var(--toolbar-accent);
    background: #fff0f2;
}
.spotsy-explore-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(680px, calc(100vw - 32px));
    max-height: min(760px, calc(100dvh - 32px));
    padding: 0;
    border: 1px solid #dedee5;
    border-radius: 16px;
    background: white;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 14px 46px #2223;
}
.spotsy-explore-dialog::backdrop { background: #14162066; }
.spotsy-explore-dialog form { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
.spotsy-explore-dialog header, .spotsy-explore-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    gap: 12px;
    padding: 12px 20px;
}
.spotsy-explore-dialog header { border-bottom: 1px solid #e6e6eb; }
.spotsy-explore-dialog footer { border-top: 1px solid #e6e6eb; }
.spotsy-explore-dialog h2, .spotsy-explore-dialog h3 { margin: 0; }
.spotsy-explore-dialog h2 { font-size: 20px; }
.spotsy-explore-dialog h3 { font-size: 16px; margin-bottom: 10px; }
.spotsy-explore-dialog [data-close] { font-size: 24px; line-height: 1; min-width: 44px; }
.spotsy-explore-dialog [data-apply] { background: var(--toolbar-accent); border-color: var(--toolbar-accent); color: white; }
.spotsy-explore-dialog [data-show-all] { border-color: transparent; padding-inline: 0; text-decoration: underline; }
.spotsy-explore-fields { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; }
.spotsy-explore-fields section { padding: 16px 0; border-bottom: 1px solid #e6e6eb; }
.spotsy-explore-fields section:last-child { border-bottom: 0; }
.spotsy-explore-fields label { margin: 0; color: inherit; }
.spotsy-explore-fields input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 4px 0 0;
    padding: 8px 10px;
    border: 1px solid #d7d7de;
    border-radius: 8px;
}
.spotsy-explore-range, .spotsy-explore-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.spotsy-explore-options label { display: flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.spotsy-explore-options input[type="checkbox"] { appearance: auto; display: inline-block !important; position: static; margin: 0; accent-color: var(--toolbar-accent); }
.spotsy-explore-range + label { display: block; margin-top: 12px; }
.spotsy-explore-toolbar-ready #finderSearch,
.spotsy-explore-toolbar-ready .mobile-explore-head-top { display: none !important; }
@media (min-width: 768px) {
    .spotsy-explore-dialog[data-panel="price"], .spotsy-explore-dialog[data-panel="metro"] {
        inset: var(--anchor-y, 80px) auto auto var(--anchor-x, 16px);
        margin: 0;
        width: 360px;
        max-height: min(490px, calc(100dvh - 24px));
    }
    .spotsy-explore-dialog:not([data-panel="all"])::backdrop { background: transparent; }
}
@media (min-width: 1201px) {
    .spotsy-explore-toolbar-ready #c27-explore-listings { grid-template-rows: 0 minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .spotsy-explore-toolbar { flex-direction: column; align-items: stretch; gap: 7px; }
    .spotsy-explore-controls { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 6px; }
    .spotsy-explore-controls button { white-space: normal; padding-inline: 4px; font-size: 13px; line-height: 1.15; }
    .spotsy-explore-chips { padding-bottom: 2px; font-size: 13px; }
    .spotsy-explore-dialog { width: 100%; height: 100dvh; max-width: none; max-height: 100dvh; border: 0; border-radius: 0; }
    .spotsy-explore-dialog form { height: 100%; }
    .spotsy-explore-fields { flex: 1; }
    .spotsy-explore-dialog footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
.spotsy-explore-sort { margin: 0 0 0 auto; flex: none; }
.spotsy-explore-sort select {
    min-height: 44px;
    border: 1px solid #dedee5;
    background: white;
    border-radius: 10px;
    color: inherit;
    padding: 6px 8px;
    font: inherit;
}
.spotsy-native-explore .spotsy-explore-studio-link {
    display: block;
    padding: 9px 14px 11px;
    border-top: 1px solid #ebebef;
    color: #414652;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.spotsy-explore-applied {
    display: flex;
    gap: 6px;
    padding: 6px 12px;
    margin: 0 0 8px;
    background: #fff;
    overflow-x: auto;
    scrollbar-width: thin;
}
.spotsy-explore-applied[hidden] { display: none; }
.spotsy-explore-applied button {
    flex: none;
    padding: 6px 12px;
    min-height: 36px;
    border: 1px solid #d7d8df;
    border-radius: 999px;
    background: #f5f5f7;
    color: #25252c;
    font-size: 13px;
}
.spotsy-explore-applied button:hover { background: #e9e9ee; }
.spotsy-explore-applied .spotsy-explore-clear { background: #fff; }

.spotsy-explore-toolbar-ready .spotsy-explore-toolbar {
    position: sticky;
    top: var(--spotsy-catalog-header, 60px);
    z-index: 100;
}

.spotsy-explore-toolbar-ready #finderListings .explore-desktop-head > .load-batch-icon {
    display: none;
}

.spotsy-explore-toolbar-ready #finderListings .listing-preview .lf-item-alternate {
    height: auto;
    min-height: 0;
}
.spotsy-explore-toolbar-ready #finderListings .listing-preview .lf-item-alternate > a {
    height: auto;
    display: block;
}
.spotsy-explore-toolbar-ready #finderListings .listing-preview .lf-item-alternate > a > .lf-background {
    height: clamp(160px, 16vw, 222px);
}
.spotsy-explore-toolbar-ready #finderListings .listing-preview .lf-item-alternate > a > .overlay {
    height: clamp(160px, 16vw, 222px);
    top: 0;
    bottom: auto;
    opacity: 0 !important;
}
.spotsy-explore-toolbar-ready #finderListings .listing-preview .lf-item-info-2 {
    position: relative;
    inset: auto;
    transform: none !important;
    background: #fff;
    padding: 12px 14px;
}
.spotsy-explore-toolbar-ready #finderListings .listing-preview .lf-item-info-2 .lf-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 8px 0 0;
    margin: 0;
    height: auto;
    overflow: visible;
}
.spotsy-explore-toolbar-ready #finderListings .lf-item-info-2 .lf-contact li {
    margin: 0;
}
.spotsy-explore-toolbar-ready #finderListings .lf-item-info-2 .lf-contact li:first-child {
    font-weight: 650;
}

.spotsy-explore-toolbar-ready #finderListings .c27-explore-pagination {
    margin: 0;
    padding: 18px 8px 24px;
    text-align: center;
}
.spotsy-explore-toolbar-ready #finderListings .spotsy-explore-range-summary {
    margin: 0 0 10px;
    color: #555963;
    font-size: 13px;
}
.spotsy-explore-toolbar-ready #finderListings .job-manager-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 auto;
}
.spotsy-explore-toolbar-ready #finderListings .job-manager-pagination ul li {
    margin: 0;
}
.spotsy-explore-toolbar-ready #finderListings .job-manager-pagination li > :is(a, span) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    min-width: 44px;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #dedee5;
    box-shadow: none;
}
.spotsy-explore-toolbar-ready #finderListings .job-manager-pagination li > .gap {
    min-width: 24px;
    border-color: transparent;
}
.spotsy-explore-toolbar-ready #finderListings .job-manager-pagination [aria-disabled="true"] { color: #686b72; }

body.spotsy-explore-toolbar-ready {
    overflow-y: hidden;
}
.spotsy-explore-toolbar-ready :is(.footer, .back-to-top) {
    display: none;
}
.spotsy-explore-toolbar-ready #c27-explore-listings {
    --spotsy-catalog-results-height: calc(100dvh - var(--spotsy-catalog-results-top, 220px) - 10px);
    height: var(--spotsy-catalog-results-height) !important;
}
.spotsy-explore-toolbar-ready #c27-explore-listings #finderListings {
    overscroll-behavior-y: contain;
}

@media (max-width: 767px) {
    .spotsy-explore-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .spotsy-explore-controls { grid-column: 1 / -1; }
    .spotsy-explore-sort select { max-width: 128px; font-size: 12px; }
    .spotsy-explore-toolbar { gap: 4px 8px; padding-block: 5px; }
    .spotsy-explore-toolbar-ready #finderListings .job-manager-pagination li:not(:has([rel], .current, .spotsy-near-page, [aria-disabled="true"])) {
        display: none;
    }
    .spotsy-explore-toolbar-ready #finderListings .listing-preview .lf-item-alternate > a > :is(.lf-background, .overlay) {
        height: clamp(145px, 47vw, 210px);
    }
    .spotsy-explore-toolbar-ready #finderListings .c27-explore-pagination {
        padding-bottom: 72px;
    }
}

@media (min-width: 1201px) {
    .spotsy-native-explore #c27-explore-listings #finderListings .explore-desktop-head {
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        min-height: 44px;
        padding: 0 0 0 5px;
    }
    .spotsy-native-explore #finderListings .explore-desktop-head .fl-results-no {
        margin-right: auto;
        order: -1;
        text-align: left;
    }
    .spotsy-native-explore #finderListings .explore-desktop-head .batch-unavailable {
        display: none;
    }
    .spotsy-native-explore #finderListings .explore-desktop-head .expand-map-btn {
        position: static;
        flex: 0 0 auto;
    }
    .spotsy-native-explore .map-expanded #finderListings .explore-desktop-head .expand-map-btn {
        display: none;
    }

    .spotsy-explore-toolbar-ready #c27-explore-listings:not(.map-expanded) #finderListings .fl-head {
        position: sticky;
        top: 0;
        z-index: 20;
        background: #f7f7f8;
    }
}
@media (max-width: 767px) {
    .spotsy-explore-controls {
        padding-right: 0;
        border-right: 0;
    }
}

@media (max-width: 1200px) {
    .spotsy-explore-toolbar-ready #c27-explore-listings.mobile-tab-results #finderListings {
        height: var(--spotsy-catalog-results-height) !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }
    .spotsy-explore-toolbar-ready #c27-explore-listings.mobile-tab-map #finderMap {
        top: 0;
        height: 100% !important;
    }
}

.spotsy-explore-dialog .spotsy-filter-hint {
    margin: 8px 0 0;
    color: #555863;
    font-size: 13px;
}
