/* ===== Base ===== */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

/* ===== Search page: 2-column flex layout ===== */
html, body {
    height: 100%;
    overflow: hidden;
}

.search-layout {
    display: flex;
    height: calc(100vh - 56px);  /* 56px = Bootstrap navbar actual height */
}

.filter-panel {
    width: 500px;
    min-width: 360px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-right: 1px solid #dee2e6;
    background: #fff;
}

/* Phần filter — cố định, không scroll */
.fp-filter-fixed {
    flex-shrink: 0;
    overflow: hidden;
}

/* Phần danh sách BĐS — scroll riêng */
.fp-list-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border-top: 1px solid #dee2e6;
}
.fp-list-area::-webkit-scrollbar { width: 4px; }
.fp-list-area::-webkit-scrollbar-track { background: #f8f9fa; }
.fp-list-area::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 2px; }

.map-panel {
    flex: 1;
    min-width: 0;
    min-height: 0;
    position: relative;  /* anchor for #map absolute fill */
}

/* Absolute fill guarantees Leaflet always gets the real container size */
#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Prevent Bootstrap's img max-width from distorting Leaflet tiles */
.leaflet-container img {
    max-width: none;
    max-height: none;
}

/* Responsive < 860px: stack vertically, map on top */
@media (max-width: 860px) {
    html, body {
        height: auto;
        overflow: auto;
    }
    .search-layout {
        flex-direction: column;
        height: auto;
    }
    .map-panel {
        height: 55vw;
        min-height: 240px;
        order: -1;
    }
    .filter-panel {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-top: 1px solid #dee2e6;
        overflow: auto;
        display: block;
    }
    .fp-list-area {
        max-height: 40vh;
    }
}

/* ===== Filter panel — redesign ===== */

/* BÁN / THUÊ toggle */
.fp-listing-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 14px 0;
}

.fp-toggle-btn {
    padding: 10px 0;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.01em;
}

.fp-toggle-btn:hover {
    border-color: #e63946;
    color: #e63946;
}

.fp-toggle-btn.active {
    border-color: #e63946;
    background: #fff1f2;
    color: #e63946;
}

/* Sections */
.fp-section {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f3f3;
}

.fp-section-reset {
    border-bottom: none;
    padding-bottom: 4px;
}

.fp-label {
    display: block;
    font-size: 0.73rem;
    font-weight: 700;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.fp-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fp-unit-badge {
    font-size: 0.7rem;
    color: #adb5bd;
    font-weight: 500;
}

/* Price range display */
.fp-range-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 8px;
}

.fp-range-val {
    font-size: 0.8rem;
    color: #495057;
}

.fp-range-val strong {
    color: #e63946;
    font-size: 0.9rem;
}

.fp-range-sep {
    color: #dee2e6;
    font-size: 0.8rem;
}

.fp-slider {
    margin-bottom: 2px;
}

/* Chip groups (diện tích, phòng ngủ) */
.fp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fp-chip {
    padding: 5px 11px;
    border: 1.5px solid #dee2e6;
    border-radius: 20px;
    background: #fff;
    color: #495057;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s;
    white-space: nowrap;
    line-height: 1.2;
}

.fp-chip:hover {
    border-color: #e63946;
    color: #e63946;
    background: #fff1f2;
}

.fp-chip.active {
    border-color: #e63946;
    background: #e63946;
    color: #fff;
}

/* Reset button */
.fp-reset-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    background: none;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.12s;
}

.fp-reset-btn:hover {
    border-color: #e63946;
    color: #e63946;
}

/* Results header */
.fp-results-header {
    padding: 10px 14px 6px;
    font-size: 0.78rem;
    color: #6c757d;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.fp-results-header strong {
    color: #e63946;
    font-size: 0.88rem;
}

/* ===== Property list ===== */
.property-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.property-item {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.1s;
}

.property-item:hover,
.property-item.hovered {
    background: #eff6ff;
}

.property-name {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-meta {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 2px;
}

.empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 0.88rem;
}

/* ===== Focus ring ===== */
.btn:focus, .form-control:focus,
.form-select:focus, .form-range:focus {
    box-shadow: 0 0 0 0.15rem rgba(37, 140, 251, 0.35);
    outline: none;
}

/* ===== Address autocomplete dropdown ===== */
.address-search-wrapper {
    position: relative;
}

.address-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 2000;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    max-height: 220px;
    overflow-y: auto;
}

.address-suggestions.visible {
    display: block;
}

.suggestion-item {
    padding: 7px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f3f3f3;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: #eff6ff;
}

.sug-main {
    font-size: 0.82rem;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sug-sub {
    font-size: 0.73rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Leaflet custom controls (GPS, Fullscreen, Measure) ===== */
.leaflet-custom-action {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 30px !important;
    line-height: 1 !important;
    text-decoration: none;
}

/* ===== Measure distance hint bar ===== */
.measure-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
}

/* ===== BDS Map Popup ===== */
.bds-popup-wrapper .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    border: none;
}
.bds-popup-wrapper .leaflet-popup-content {
    margin: 0;
    width: 272px !important;
}
.bds-popup-wrapper .leaflet-popup-tip {
    background: #fff;
}

.bds-popup-img {
    position: relative;
    height: 158px;
    background: #c8d0db;
}
.bds-popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bds-popup-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
    pointer-events: none;
}
.bds-popup-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.93);
    color: #e63946;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.bds-popup-price {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    z-index: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.bds-popup-body {
    padding: 12px 14px 14px;
    background: #fff;
}
.bds-popup-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bds-popup-loc {
    font-size: 0.74rem;
    color: #6c757d;
    margin: 0 0 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.bds-popup-stats {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}
.bds-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
}
.bds-stat-sep {
    width: 1px;
    height: 30px;
    background: #dee2e6;
    flex-shrink: 0;
}
.bds-stat-val {
    font-size: 1rem;
    font-weight: 800;
    color: #e63946;
    line-height: 1.2;
}
.bds-stat-label {
    font-size: 0.67rem;
    color: #868e96;
    margin-top: 2px;
    white-space: nowrap;
}
.bds-popup-cta {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: #fff !important;
    border-radius: 9px;
    padding: 9px 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.04em;
    transition: filter 0.15s;
}
.bds-popup-cta:hover {
    filter: brightness(1.09);
}

/* ===== Multi-unit building pin (divIcon) ===== */
.bds-pin-container {
    background: transparent !important;
    border: none !important;
}
.bds-pin-multi {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.5);
    border: 2px solid #fff;
    transition: transform 0.12s, opacity 0.15s;
    cursor: pointer;
}
.bds-pin-multi.bds-pin-hover {
    transform: scale(1.2);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.5);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}
.bds-pin-multi.bds-pin-dimmed {
    opacity: 0.3;
    box-shadow: none;
}

/* ===== Multi-unit popup: unit list ===== */
.bds-unit-list-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.bds-unit-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    padding-right: 2px;
}
.bds-unit-list::-webkit-scrollbar { width: 4px; }
.bds-unit-list::-webkit-scrollbar-track { background: #f1f3f5; border-radius: 2px; }
.bds-unit-list::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 2px; }

.bds-unit-row {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #e9ecef;
}
.bds-unit-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}
.bds-unit-code {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a2e;
}
.bds-unit-status {
    font-size: 0.67rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.bds-status-dang-ban {
    background: #d1fae5;
    color: #065f46;
}
.bds-status-dat-coc {
    background: #fef3c7;
    color: #92400e;
}
.bds-status-da-ban {
    background: #f1f3f5;
    color: #6c757d;
}
.bds-unit-row-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6c757d;
}
.bds-unit-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}
.bds-unit-row-bot strong {
    color: #e63946;
    font-size: 0.82rem;
}
.bds-per-sqm {
    font-size: 0.65rem;
    color: #868e96;
    white-space: nowrap;
}

/* ===== Sidebar building badge (unit count) ===== */
.bds-list-badge {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    vertical-align: middle;
}

/* ===== Measure distance tooltip label ===== */
.leaflet-tooltip.measure-label {
    background: #f97316;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.76rem;
    padding: 2px 8px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}
.leaflet-tooltip.measure-label::before {
    border-top-color: #f97316;
}

/* ===== Admin page ===== */
.adm-layout {
    display: flex;
    height: calc(100vh - 56px);
    overflow: hidden;
    background: #f4f6f9;
}

.adm-sidebar {
    width: 540px;
    min-width: 360px;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
    background: #f4f6f9;
}
.adm-sidebar::-webkit-scrollbar { width: 4px; }
.adm-sidebar::-webkit-scrollbar-track { background: #f0f0f0; }
.adm-sidebar::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 2px; }

.adm-map-panel {
    flex: 1;
    min-width: 0;
    position: relative;
    background: #e9ecef;
}
#adminMap {
    position: absolute;
    inset: 0;
}

/* Tab bar */
.adm-tabs {
    display: flex;
    gap: 0;
    padding: 12px 12px 0;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}
.adm-tab {
    padding: 9px 18px;
    border: none;
    background: none;
    font-size: 0.84rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.12s, border-color 0.12s;
}
.adm-tab:hover { color: #0d6efd; }
.adm-tab.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.adm-tab-pane { padding: 12px; }

/* Cards */
.adm-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 12px;
}
.adm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.84rem;
    font-weight: 600;
    color: #212529;
}
.adm-form-card {
    border-left: 3px solid #0d6efd;
}

/* Form inside card */
.adm-form {
    padding: 12px 14px;
}
.adm-field {
    margin-bottom: 10px;
}
.adm-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.adm-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.adm-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.adm-hint {
    font-size: 0.73rem;
    color: #adb5bd;
    font-style: italic;
    margin: 4px 0 0;
}
.adm-close-btn {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.adm-close-btn:hover { color: #e63946; }

/* ListingType toggle */
.adm-type-toggle {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.adm-type-btn {
    padding: 5px 14px;
    border: 1.5px solid #dee2e6;
    border-radius: 20px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s;
}
.adm-type-btn:hover { border-color: #0d6efd; color: #0d6efd; }
.adm-type-btn.active {
    border-color: #0d6efd;
    background: #e7f1ff;
    color: #0d6efd;
}

/* Search row */
.adm-search-row {
    padding: 8px 14px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.adm-search-row .form-control { flex: 1; min-width: 140px; }
.adm-area-filter { width: auto; min-width: 130px; flex-shrink: 0; }
.adm-filter-btns { display: flex; gap: 3px; flex-shrink: 0; }
.adm-filter-btn {
    padding: 3px 11px;
    font-size: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    color: #6c757d;
    white-space: nowrap;
    transition: all 0.12s;
}
.adm-filter-btn:hover { border-color: #0d6efd; color: #0d6efd; }
.adm-filter-btn.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }

/* Table */
.adm-table-wrap {
    overflow-x: auto;
    max-height: 360px;
    overflow-y: auto;
}
.adm-table-wrap::-webkit-scrollbar { width: 4px; height: 4px; }
.adm-table-wrap::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 2px; }

.adm-table {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
}
.adm-table th {
    padding: 8px 10px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1;
}
.adm-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f3f3;
    color: #212529;
    vertical-align: middle;
}
.adm-table tbody tr:hover { background: #f8f9fa; }

/* Badges */
.adm-badge {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.adm-badge-sale { background: #e7f1ff; color: #0d6efd; }
.adm-badge-rent { background: #d1fae5; color: #065f46; }
.adm-badge-dang-ban   { background: #d1fae5; color: #065f46; }
.adm-badge-dat-coc    { background: #fef3c7; color: #92400e; }
.adm-badge-da-ban     { background: #f1f3f5; color: #6c757d; }
.adm-badge-dang-thue  { background: #d1fae5; color: #065f46; }
.adm-badge-da-thue    { background: #f1f3f5; color: #6c757d; }

/* Empty state in table */
.adm-empty-row td {
    text-align: center;
    color: #adb5bd;
    font-style: italic;
    padding: 20px;
}

/* Action buttons in table */
.adm-action-btn {
    font-size: 0.72rem;
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid;
    cursor: pointer;
    background: none;
    font-weight: 500;
}
.adm-btn-edit  { color: #0d6efd; border-color: #0d6efd; }
.adm-btn-edit:hover  { background: #0d6efd; color: #fff; }
.adm-btn-del   { color: #dc3545; border-color: #dc3545; margin-left: 4px; }
.adm-btn-del:hover   { background: #dc3545; color: #fff; }
.adm-btn-units { color: #20c997; border-color: #20c997; margin-left: 4px; }
.adm-btn-units:hover { background: #20c997; color: #fff; }

/* Searchable select dropdown */
.adm-select-wrapper { position: relative; }
.adm-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0; right: 0;
    z-index: 2000;
    list-style: none;
    padding: 4px 0; margin: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    max-height: 220px;
    overflow-y: auto;
}
.adm-select-dropdown.visible { display: block; }
.adm-select-dropdown::-webkit-scrollbar { width: 4px; }
.adm-select-dropdown::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 2px; }
.adm-select-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #212529;
    border-bottom: 1px solid #f3f3f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.adm-select-item:last-child { border-bottom: none; }
.adm-select-item:hover { background: #e7f1ff; }
.adm-select-item.selected { background: #e7f1ff; font-weight: 600; }
.adm-select-item-name { flex: 1; }
.adm-select-item-meta { font-size: 0.72rem; color: #6c757d; white-space: nowrap; }

/* Quick-unit inline section */
.adm-quick-toggle-row { margin: 8px 0 4px; }
.adm-quick-toggle-btn {
    background: none; border: none; cursor: pointer;
    color: #0d6efd; font-size: 0.78rem; font-weight: 600; padding: 0;
    display: flex; align-items: center; gap: 5px;
}
.adm-quick-toggle-btn:hover { text-decoration: underline; }
.adm-quick-unit {
    border: 1px dashed #b8d4ff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f0f6ff;
}
.adm-quick-unit-header {
    font-size: 0.73rem; font-weight: 700; text-transform: uppercase;
    color: #0d6efd; letter-spacing: 0.04em; margin-bottom: 10px;
}

/* Admin map address search overlay */
.adm-map-search {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(420px, calc(100% - 32px));
}
.adm-map-search .input-group .form-control {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.adm-map-search .btn-primary {
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

@media (max-width: 860px) {
    .adm-layout { flex-direction: column; height: auto; overflow: auto; }
    .adm-sidebar { width: 100%; min-width: unset; border-right: none; }
    .adm-map-panel { height: 300px; }
}
