/* Zillow-style properties search page */
body.properties-search-page {
    --properties-header-offset: 132px;
    --properties-page-gap: 20px;
    overflow: hidden;
    padding-top: var(--properties-header-offset) !important;
    background: #f5f6f7;
}

body.properties-search-page .cta3-section-area,
body.properties-search-page .vl-footer3-section-area {
    display: none !important;
}

body.properties-search-page #wrapper,
body.properties-search-page .homepage3-body {
    overflow: visible;
}

/* Fixed header + clear separation from page content */
body.properties-search-page .vl-header-savills.vl-transparent-header,
body.properties-search-page .vl-header-savills.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08) !important;
}

body.properties-search-page .vl-header-area {
    z-index: 999;
}

.zillow-search-page {
    --zillow-brand: #c52c2a;
    --zillow-brand-dark: #a82321;
    --zillow-brand-light: #fef2f2;
    --zillow-brand-ring: rgba(197, 44, 42, 0.22);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--properties-header-offset) - var(--properties-page-gap));
    min-height: 600px;
    background: #fff;
    margin-top: var(--properties-page-gap);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 991px) {
    body.properties-search-page {
        --properties-header-offset: 88px;
        --properties-page-gap: 14px;
    }

    .zillow-search-page {
        height: auto;
        min-height: calc(100vh - var(--properties-header-offset) - var(--properties-page-gap));
    }
}

@media (max-width: 767px) {
    body.properties-search-page {
        --properties-page-gap: 12px;
    }
}

/* ---- Filter bar ---- */
.zillow-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 0;
    flex-shrink: 0;
    flex-wrap: wrap;
    z-index: 100;
    position: relative;
}

.zillow-search-input-wrap {
    position: relative;
    flex: 0 1 280px;
    min-width: 180px;
    max-width: 360px;
}

.zillow-search-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 72px 0 16px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    font-size: 15px;
    color: #2a2a33;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.zillow-search-input-wrap input:focus {
    border-color: var(--zillow-brand);
    box-shadow: 0 0 0 2px var(--zillow-brand-ring);
    background-color: #fff;
}

.zillow-search-input-wrap .search-clear {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #696974;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    display: none;
}

.zillow-search-input-wrap .search-clear.visible {
    display: block;
}

.zillow-search-input-wrap .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #2a2a33;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
}

.zillow-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.zillow-pill-wrap {
    position: relative;
}

.zillow-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #2a2a33;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s;
}

.zillow-pill:hover {
    border-color: #2a2a33;
    background: #f6f6f6;
}

.zillow-pill.active {
    border-color: var(--zillow-brand);
    background: var(--zillow-brand-light);
    color: var(--zillow-brand);
}

.zillow-pill svg {
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

.zillow-pill.filters-pill svg.filters-icon {
    width: 16px;
    height: 16px;
}

.zillow-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 12px;
    z-index: 200;
}

.zillow-dropdown.show {
    display: block;
}

.zillow-dropdown.wide {
    min-width: 280px;
}

.zillow-dropdown label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #696974;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.zillow-dropdown select,
.zillow-dropdown input[type="number"],
.zillow-dropdown input[type="text"] {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
    background-color: #fff;
}

.zillow-dropdown select.no-nice-select {
    display: block !important;
    position: relative;
    z-index: 1;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
}

.zillow-dropdown select:focus,
.zillow-dropdown input[type="number"]:focus,
.zillow-dropdown input[type="text"]:focus {
    outline: none;
    border-color: var(--zillow-brand);
    box-shadow: 0 0 0 2px var(--zillow-brand-ring);
    background-color: #fff;
}

.zillow-dropdown .dropdown-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.zillow-dropdown .btn-apply {
    flex: 1;
    height: 40px;
    background: var(--zillow-brand);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.zillow-dropdown .btn-apply:hover {
    background: var(--zillow-brand-dark);
}

.zillow-dropdown .listing-options button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    background: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #2a2a33;
}

.zillow-dropdown .listing-options button:hover,
.zillow-dropdown .listing-options button.selected {
    background: var(--zillow-brand-light);
    color: var(--zillow-brand);
}

.zillow-save-search {
    height: 44px;
    padding: 0 20px;
    background: var(--zillow-brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.zillow-save-search:hover {
    background: var(--zillow-brand-dark);
}

/* Filters panel (advanced) */
.zillow-filters-panel .filter-row {
    margin-bottom: 12px;
}

.zillow-filters-panel .searchable-select-wrapper {
    position: relative;
}

.zillow-filters-panel .searchable-select-wrapper select,
.zillow-filters-panel .searchable-select-wrapper .nice-select {
    display: none !important;
}

.zillow-filters-panel .filter-search-input {
    width: 100%;
    height: 40px;
    padding: 0 32px 0 12px;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.zillow-filters-panel .filter-search-input:focus {
    outline: none;
    border-color: var(--zillow-brand);
    box-shadow: 0 0 0 2px var(--zillow-brand-ring);
    background-color: #fff;
}

.zillow-search-input-wrap input:-webkit-autofill,
.zillow-filters-panel .filter-search-input:-webkit-autofill,
.zillow-dropdown input:-webkit-autofill,
.zillow-dropdown select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #2a2a33 !important;
    caret-color: #2a2a33;
}

.zillow-filters-panel .searchable-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d1d1;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 300;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zillow-filters-panel .searchable-dropdown.show {
    display: block;
}

.zillow-filters-panel .searchable-dropdown .options-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zillow-filters-panel .searchable-dropdown .option-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}

.zillow-filters-panel .searchable-dropdown .option-item:hover,
.zillow-filters-panel .searchable-dropdown .options-list li:hover {
    background: var(--zillow-brand, #c52c2a);
    color: #fff;
}

/* ---- Split layout ---- */
.zillow-split {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.zillow-map-col {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    min-height: 400px;
    background: #e8eef3;
    overflow: hidden;
}

.zillow-map-col #property-map {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

/* Map overlay UI — full column height so bottom-positioned legend stays at map bottom */
.zillow-map-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
    padding: 0;
}

.zillow-map-count {
    position: absolute;
    top: 12px;
    left: 12px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.96);
    color: #2a2a33;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.zillow-map-toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
}

.zillow-map-tool-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #2a2a33;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.zillow-map-tool-btn:hover {
    background: #c52c2a;
    color: #fff;
    transform: scale(1.05);
}

.zillow-map-legend {
    position: absolute;
    bottom: 24px;
    left: 12px;
    max-width: calc(100% - 200px);
    display: flex;
    gap: 12px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1;
}

/* Keep Google Map / Satellite controls above custom overlays */
.zillow-map-col #property-map .gm-style-mtc,
.zillow-map-col #property-map .gm-bundled-control {
    z-index: 10 !important;
}

.zillow-map-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2a2a33;
}

.zillow-map-legend .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.legend-sale .legend-dot {
    background: #c52c2a;
}

.legend-rent .legend-dot {
    background: #006aff;
}

/* Google Maps info window cards (matches /map page) */
.map-info-card {
    font-family: inherit;
    width: 260px;
    max-width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.map-info-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eceef0;
    line-height: 0;
}

.map-info-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-info-card__badges {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.map-info-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    line-height: 1.2;
    background: #2b6cb0;
}

.map-info-badge--deal {
    background: #c52c2a;
}

.map-info-card__body {
    padding: 14px 16px 16px;
}

.map-info-card__price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
}

.map-info-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    font-size: 0.8125rem;
    color: #555;
    margin: 0 0 8px;
}

.map-info-card__specs span:not(:last-child)::after {
    content: '•';
    margin: 0 8px;
    color: #c4c4c4;
}

.map-info-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.35;
}

.map-info-card__title a {
    color: #1b1b1b;
    text-decoration: none;
}

.map-info-card__title a:hover {
    color: #c52c2a;
}

.map-info-card__address {
    font-size: 0.8125rem;
    color: #777;
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-info-card__btn {
    display: inline-block;
    padding: 9px 18px;
    background: #c52c2a;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.map-info-card__btn:hover {
    background: #9e2220;
}

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-width: none !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-c .map-info-card {
    margin: 0;
}

.gm-style .gm-style-iw-chr {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    height: 0;
    z-index: 3;
}

.gm-style .gm-style-iw-chr .gm-style-iw-ch {
    padding: 0 !important;
    height: 0 !important;
}

.gm-style .gm-style-iw-chr button.gm-ui-hover-effect {
    width: 30px !important;
    height: 30px !important;
    margin: 8px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    opacity: 1 !important;
}

.gm-style .gm-style-iw-chr button.gm-ui-hover-effect > span {
    margin: 7px !important;
    width: 16px !important;
    height: 16px !important;
    background-color: #1b1b1b;
}

[dir="rtl"] .map-info-card__body {
    text-align: right;
}

.zillow-list-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-left: 1px solid #e0e0e0;
    background: #fff;
}

.zillow-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    flex-shrink: 0;
    border-bottom: 1px solid #f0f0f0;
}

.zillow-list-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #2a2a33;
    margin: 0 0 4px;
    line-height: 1.3;
}

.zillow-list-header .results-count {
    font-size: 14px;
    color: #696974;
    margin: 0;
}

.zillow-sort-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zillow-sort-wrap label {
    font-size: 13px;
    font-weight: 600;
    color: #696974;
    white-space: nowrap;
    margin: 0;
}

.zillow-sort-wrap select {
    height: 38px;
    padding: 0 36px 0 14px;
    border: 1px solid #d6d6db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2a2a33;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23696974' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.zillow-sort-wrap select:hover {
    border-color: #b5b5bd;
}

.zillow-sort-wrap select:focus {
    outline: none;
    border-color: #1277e1;
    box-shadow: 0 0 0 3px rgba(18, 119, 225, 0.15);
}

[dir="rtl"] .zillow-sort-wrap select {
    padding: 0 14px 0 36px;
    background-position: left 14px center;
}

.zillow-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
}

/* ---- Property cards grid ---- */
.zillow-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .zillow-cards-grid {
        grid-template-columns: 1fr;
    }
}

.zillow-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.zillow-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.zillow-card.highlighted {
    box-shadow: 0 0 0 2px #006aff;
}

.zillow-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8e8e8;
}

.zillow-card-image .card-image-gallery__slide.is-active {
    transition: opacity 0.25s ease;
}

.zillow-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(42, 42, 51, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.zillow-card-image-wrap {
    position: relative;
}

/* Favorite button styles live in favorites.css (.card-favorite-btn) */

.zillow-card-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.zillow-card-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.zillow-card-dots span.active {
    background: #fff;
}

.zillow-card-body {
    padding: 12px 14px 14px;
}

.zillow-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.zillow-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #2a2a33;
    text-decoration: none;
}

.zillow-card-price:hover {
    color: #006aff;
}

.zillow-card-menu {
    background: none;
    border: none;
    color: #696974;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.zillow-card-specs {
    font-size: 14px;
    color: #2a2a33;
    margin: 0 0 4px;
    line-height: 1.4;
}

.zillow-card-specs .sep {
    color: #d1d1d1;
    margin: 0 4px;
}

.zillow-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #2a2a33;
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zillow-card-address {
    font-size: 13px;
    color: #696974;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zillow-card-address i {
    color: #c52c2a;
    margin-inline-end: 4px;
    font-size: 12px;
}

.zillow-card-agency {
    font-size: 11px;
    color: #696974;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

/* Loading & empty */
#properties-list-container.properties-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
    min-height: 200px;
}

#properties-list-container.properties-loading::after {
    content: '';
    position: absolute;
    top: 80px;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    border: 3px solid #e0e0e0;
    border-top-color: #006aff;
    border-radius: 50%;
    animation: zillow-spin 0.7s linear infinite;
}

@keyframes zillow-spin {
    to { transform: rotate(360deg); }
}

.zillow-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
}

.zillow-empty h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.zillow-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}


/* Gallery modal (keep existing) */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.gallery-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.gallery-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 20px;
    cursor: pointer;
}

.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.gallery-thumbnails {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 80%;
    overflow-x: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.gallery-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumbnail.active {
    border-color: #006aff;
}

/* Mobile */
@media (max-width: 991px) {
    .zillow-split {
        flex-direction: column;
    }

    .zillow-map-col {
        flex: none;
        max-width: 100%;
        height: 45vh;
        order: 1;
    }

    .zillow-list-col {
        order: 2;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        max-height: none;
    }

    .zillow-list-scroll {
        max-height: none;
    }

    .zillow-save-search {
        display: none;
    }

    .zillow-filter-bar {
        padding: 10px 12px;
    }

    .zillow-search-input-wrap {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* RTL */
[dir="rtl"] .zillow-search-input-wrap input {
    padding: 0 16px 0 72px;
}

[dir="rtl"] .zillow-search-input-wrap .search-clear {
    right: auto;
    left: 40px;
}

[dir="rtl"] .zillow-search-input-wrap .search-submit {
    right: auto;
    left: 8px;
}

[dir="rtl"] .zillow-list-col {
    border-left: none;
    border-right: 1px solid #e0e0e0;
}

[dir="rtl"] .zillow-card-badge {
    left: auto;
    right: 10px;
}

[dir="rtl"] .card-favorite-btn,
[dir="rtl"] .zillow-card-favorite {
    right: auto;
    left: 12px;
}
