.list-content.listmap-grid {
    padding: 110px 0 0;
}

.map-results-pane {
    padding: 24px;
    background: #fff;
}

.map-minimal-filter {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #e8ebf2;
    border-radius: 12px;
}

.map-minimal-filter .form-control {
    min-height: 40px;
}

.map-minimal-filter-actions {
    display: flex;
    gap: 8px;
}

.map-minimal-filter-actions .btn {
    flex: 1;
    min-height: 40px;
    white-space: nowrap;
}

.map-pane {
    background: #eef2f7;
}

.listing-map-panel {
    width: 100%;
    height: calc(100vh - 84px);
    min-height: 540px;
    position: sticky;
    top: 84px;
}

.map-listing-card,
.map-grid-card {
    transition: border-color .2s ease, box-shadow .2s ease;
}

.map-card-focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.listing-map-popup {
    display: flex;
    width: 260px;
    gap: 10px;
}

.listing-map-popup-image {
    flex: 0 0 90px;
    width: 90px;
    height: 72px;
    overflow: hidden;
    border-radius: 8px;
}

.listing-map-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-map-popup-body {
    min-width: 0;
}

.listing-map-popup-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
    color: #15233b;
}

.listing-map-popup-price {
    font-size: 13px;
    font-weight: 700;
    color: #0b4dcf;
    margin-bottom: 3px;
}

.listing-map-popup-location {
    font-size: 12px;
    color: #5f697c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.listing-map-popup-link {
    font-size: 12px;
    font-weight: 600;
}

html[data-theme="dark"] .map-results-pane,
html[data-theme="dark"] .map-pane {
    background: #0b1220;
}

html[data-theme="dark"] .map-results-pane .map-minimal-filter,
html[data-theme="dark"] .map-results-pane .card,
html[data-theme="dark"] .map-results-pane .alert {
    background: #121a2b !important;
    border-color: #243047 !important;
    color: #dbe5f0;
}

html[data-theme="dark"] .map-results-pane .map-minimal-filter .form-control,
html[data-theme="dark"] .map-results-pane .map-minimal-filter select {
    background: #0f1727 !important;
    border-color: #243047 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .map-results-pane .map-minimal-filter .form-control::placeholder {
    color: #70839d;
}

html[data-theme="dark"] .map-results-pane .count-search p,
html[data-theme="dark"] .map-results-pane .listing-card-description,
html[data-theme="dark"] .map-results-pane .listing-grid-description,
html[data-theme="dark"] .map-results-pane .listing-card-meta-item,
html[data-theme="dark"] .map-results-pane .listing-grid-meta-item {
    color: #9eb0c8;
}

html[data-theme="dark"] .map-results-pane .listing-card-title a,
html[data-theme="dark"] .map-results-pane .listing-grid-title a,
html[data-theme="dark"] .map-results-pane .listing-card-price,
html[data-theme="dark"] .map-results-pane .listing-grid-price {
    color: #f8fafc;
}

html[data-theme="dark"] .map-results-pane .listing-view-switch .btn {
    background: #192338;
    border-color: #334155;
    color: #dbe5f0;
}

html[data-theme="dark"] .map-results-pane .listing-view-switch .btn:hover {
    background: #243047;
    border-color: #334155;
    color: #ffffff;
}

html[data-theme="dark"] .map-results-pane .listing-view-switch .btn.is-active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

html[data-theme="dark"] .map-results-pane .listing-card-favorite-btn,
html[data-theme="dark"] .map-results-pane .listing-grid-favorite-btn {
    background: #192338;
    border-color: #334155;
    color: #dbe5f0;
}

html[data-theme="dark"] .map-results-pane .listing-card-favorite-btn:hover,
html[data-theme="dark"] .map-results-pane .listing-grid-favorite-btn:hover {
    border-color: #ff6f8d;
    color: #ff8ca4;
}

html[data-theme="dark"] .map-results-pane .listing-card-favorite-btn.is-saved,
html[data-theme="dark"] .map-results-pane .listing-grid-favorite-btn.is-saved {
    background: rgba(255, 59, 100, 0.15);
    border-color: #ff6f8d;
    color: #ff8ca4;
}

html[data-theme="dark"] .map-results-pane .map-card-focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

html[data-theme="dark"] .leaflet-popup-content-wrapper,
html[data-theme="dark"] .leaflet-popup-tip {
    background: #121a2b;
    color: #dbe5f0;
}

html[data-theme="dark"] .listing-map-popup-title {
    color: #f8fafc;
}

html[data-theme="dark"] .listing-map-popup-price {
    color: #9ec5ff;
}

html[data-theme="dark"] .listing-map-popup-location {
    color: #9eb0c8;
}

html[data-theme="dark"] .leaflet-control-zoom a {
    background: #121a2b;
    color: #dbe5f0;
    border-color: #243047;
}

@media (max-width: 991.98px) {
    .list-content.listmap-grid {
        padding-top: 92px;
    }

    .map-results-pane {
        padding: 16px;
    }

    .map-minimal-filter-actions {
        flex-wrap: wrap;
    }

    .listing-map-panel {
        position: relative;
        top: 0;
        height: 360px;
        min-height: 360px;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .list-content.listmap-grid {
        padding-top: 100px;
    }
}
