:root {
    --zg-map-accent: #1b5e20;
    --zg-map-accent-soft: #e7f3e8;
    --zg-map-accent-strong: #124317;
    --zg-map-panel: rgba(255, 255, 255, 0.96);
    --zg-map-border: rgba(18, 24, 33, 0.08);
    --zg-map-shadow: 0 20px 50px rgba(18, 24, 33, 0.10);
    --zg-map-shadow-soft: 0 8px 20px rgba(18, 24, 33, 0.06);
    --zg-map-shadow-hover: 0 12px 30px rgba(18, 24, 33, 0.12);
    --zg-map-muted: #64748b;
    --zg-map-text: #0f172a;
    --zg-map-bg: #f8faf9;
    --zg-map-mobile-search-h: 76px;
    --zg-map-mobile-peek: 120px;
    --zg-map-mobile-mid: 50vh;
    --zg-map-mobile-max: 82vh;
    --zg-map-radius: 20px;
    --zg-map-radius-lg: 24px;
    --zg-map-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body,
.zg-main.zg-main-full,
.zg-main.zg-main-full>div {
    min-height: 100vh;
}

.zg-main.zg-main-full {
    padding: 0 !important;
    margin: 0 !important;
}

.zg-main.zg-main-full>div {
    height: 87vh;
}

.zg-map-page {
    position: relative;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(27, 94, 32, 0.08), transparent 35%),
        linear-gradient(135deg, var(--zg-map-bg) 0%, rgba(231, 243, 232, 0.3) 100%);
    color: var(--zg-map-text);
    overflow: hidden;
}

.zg-map-shell {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    height: 100%;
    min-height: 87vh;
}

.zg-map-results-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--zg-map-panel);
    border-right: 1px solid var(--zg-map-border);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 10;
}

.zg-map-results-header,
.zg-map-results-footer,
.zg-map-mobile-search,
.zg-map-sheet-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.zg-map-results-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 20px 20px 14px;
    border-bottom: 1px solid var(--zg-map-border);
}

.zg-map-results-summary {
    color: var(--zg-map-muted);
    font-size: 0.93rem;
    line-height: 1.5;
    min-height: 24px;
}

.zg-map-results-summary strong {
    color: var(--zg-map-text);
}

.zg-map-results-scroll,
.zg-map-sheet-results {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 12px 16px 18px;
    background: linear-gradient(180deg, rgba(250, 252, 251, 0.96) 0%, rgba(243, 245, 242, 1) 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(27, 94, 32, 0.2) transparent;
}

.zg-map-results-scroll::-webkit-scrollbar,
.zg-map-sheet-results::-webkit-scrollbar {
    width: 8px;
}

.zg-map-results-scroll::-webkit-scrollbar-track,
.zg-map-sheet-results::-webkit-scrollbar-track {
    background: transparent;
}

.zg-map-results-scroll::-webkit-scrollbar-thumb,
.zg-map-sheet-results::-webkit-scrollbar-thumb {
    background: rgba(27, 94, 32, 0.2);
    border-radius: 999px;
}

.zg-map-results-scroll::-webkit-scrollbar-thumb:hover,
.zg-map-sheet-results::-webkit-scrollbar-thumb:hover {
    background: rgba(27, 94, 32, 0.35);
}

.zg-map-results-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--zg-map-border);
}

.zg-map-footer-note {
    color: var(--zg-map-muted);
    font-size: 0.82rem;
}

.zg-map-home-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 11px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff 0%, rgba(231, 243, 232, 0.4) 100%);
    border: 1.5px solid rgba(27, 94, 32, 0.12);
    color: var(--zg-map-accent-strong);
    text-decoration: none;
    box-shadow: var(--zg-map-shadow-soft);
    font-weight: 600;
    transition: var(--zg-map-transition);
}

.zg-map-home-chip:hover,
.zg-map-home-chip:focus-visible {
    color: var(--zg-map-accent-strong);
    border-color: rgba(27, 94, 32, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--zg-map-shadow-hover);
}

.zg-map-search-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #fff;
    border: 1.5px solid rgba(18, 24, 33, 0.1);
    border-radius: var(--zg-map-radius);
    padding: 0 16px;
    min-height: 58px;
    box-shadow: var(--zg-map-shadow-soft);
    transition: var(--zg-map-transition);
}

.zg-map-search-shell:focus-within {
    border-color: rgba(27, 94, 32, 0.5);
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1), var(--zg-map-shadow-hover);
    transform: translateY(-1px);
}

.zg-map-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--zg-map-text);
    font-size: 1rem;
    padding: 15px 0;
    outline: 0;
}

.zg-map-search-input::placeholder {
    color: #7b8794;
}

.zg-map-search-icon,
.zg-map-search-clear,
.zg-map-filter-trigger i,
.zg-map-control-btn i {
    font-size: 1.1rem;
}

.zg-map-search-icon {
    color: #6b7785;
}

.zg-map-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 24, 33, 0.06);
    color: #475569;
    cursor: pointer;
    transition: var(--zg-map-transition);
}

.zg-map-search-clear:hover,
.zg-map-search-clear:focus-visible {
    outline: none;
    background: rgba(18, 24, 33, 0.1);
    transform: scale(1.05);
}

.zg-map-filter-trigger:hover,
.zg-map-filter-trigger:focus-visible,
.zg-map-control-btn:hover,
.zg-map-control-btn:focus-visible {
    outline: none;
    transform: translateY(-2px);
    box-shadow: var(--zg-map-shadow-hover);
}

.zg-map-sheet-handle:hover,
.zg-map-sheet-handle:focus-visible {
    outline: none;
}

.zg-map-filter-trigger,
.zg-map-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid rgba(18, 24, 33, 0.1);
    background: #fff;
    color: var(--zg-map-text);
    border-radius: 999px;
    min-height: 48px;
    cursor: pointer;
    transition: var(--zg-map-transition);
    box-shadow: var(--zg-map-shadow-soft);
}

.zg-map-filter-trigger {
    padding: 0 18px;
    font-weight: 600;
    font-size: 0.95rem;
}

.zg-map-canvas-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
}

.zg-map-canvas {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #dfe8de;
}

.zg-map-controls {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zg-map-control-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: var(--zg-map-shadow);
}

.zg-map-toast {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 500;
    max-width: min(360px, calc(100vw - 44px));
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.93rem;
    line-height: 1.5;
    animation: zg-toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zg-toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zg-map-empty-state {
    display: grid;
    gap: 14px;
}

.zg-map-empty-state.is-empty {
    place-items: center;
    padding: 40px 24px;
    border: 1.5px dashed rgba(18, 24, 33, 0.12);
    border-radius: var(--zg-map-radius);
    color: var(--zg-map-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
}

.zg-map-empty-state.is-empty i {
    font-size: 2.5rem;
    color: rgba(27, 94, 32, 0.6);
    margin-bottom: 12px;
}

.zg-map-skeleton-card,
.zg-map-result-card {
    border-radius: var(--zg-map-radius);
    border: 1px solid rgba(18, 24, 33, 0.07);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--zg-map-shadow-soft);
}

.zg-map-skeleton-card {
    min-height: 130px;
    background: linear-gradient(90deg,
            rgba(241, 245, 249, 0.9) 0%,
            rgba(248, 250, 252, 0.95) 50%,
            rgba(241, 245, 249, 0.9) 100%);
    background-size: 200% 100%;
    animation: zg-map-skeleton 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes zg-map-skeleton {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.zg-map-result-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: var(--zg-map-transition);
}

.zg-map-result-card:hover,
.zg-map-result-card:focus-visible {
    border-color: rgba(27, 94, 32, 0.25);
    transform: translateY(-2px);
    outline: none;
    box-shadow: var(--zg-map-shadow-hover);
}

.zg-map-result-card.is-selected {
    border-color: rgba(27, 94, 32, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(231, 243, 232, 0.3) 100%);
    box-shadow: 0 10px 30px rgba(27, 94, 32, 0.15), 0 0 0 2px rgba(27, 94, 32, 0.08);
}

.zg-map-result-card.is-hovered {
    border-color: rgba(27, 94, 32, 0.35);
    box-shadow: var(--zg-map-shadow-hover);
}

.zg-map-result-thumb {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.zg-map-result-body {
    min-width: 0;
}

.zg-map-result-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.zg-map-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--zg-map-accent-soft) 0%, rgba(200, 230, 201, 0.6) 100%);
    color: var(--zg-map-accent-strong);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(27, 94, 32, 0.12);
}

.zg-map-result-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zg-map-text);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.zg-map-result-location,
.zg-map-result-summary {
    margin: 0;
    color: var(--zg-map-muted);
    font-size: 0.91rem;
    line-height: 1.5;
}

.zg-map-result-location {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.zg-map-result-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--zg-map-accent-strong);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.93rem;
    transition: var(--zg-map-transition);
}

.zg-map-result-link:hover,
.zg-map-result-link:focus-visible {
    color: var(--zg-map-accent);
    text-decoration: none;
    gap: 8px;
}

.zg-map-detail-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    background: linear-gradient(180deg, rgba(250, 252, 251, 0.96) 0%, rgba(243, 245, 242, 1) 100%);
}

.zg-map-detail-panel[hidden] {
    display: none !important;
}

.zg-map-detail-header {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 14px 16px;
    border-bottom: 1px solid var(--zg-map-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.zg-map-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(18, 24, 33, 0.1);
    background: #fff;
    color: var(--zg-map-text);
    border-radius: 999px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--zg-map-transition);
}

.zg-map-detail-back:hover,
.zg-map-detail-back:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: var(--zg-map-shadow-soft);
}

.zg-map-detail-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
}

.zg-map-detail-card {
    border-radius: var(--zg-map-radius);
    border: 1px solid rgba(18, 24, 33, 0.07);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--zg-map-shadow-soft);
    overflow: hidden;
}

.zg-map-detail-hero {
    height: 190px;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.12) 0%, rgba(18, 67, 23, 0.22) 100%);
}

.zg-map-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zg-map-detail-body {
    padding: 16px;
    display: grid;
    gap: 10px;
}

.zg-map-detail-topline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.zg-map-detail-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--zg-map-text);
}

.zg-map-detail-location,
.zg-map-detail-description {
    margin: 0;
    color: var(--zg-map-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.zg-map-detail-section {
    border: 1px solid rgba(18, 24, 33, 0.08);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
}

.zg-map-detail-section h4 {
    margin: 0 0 8px;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
}

.zg-map-detail-section p {
    margin: 0 0 6px;
    color: var(--zg-map-muted);
    font-size: 0.9rem;
}

.zg-map-detail-section p:last-child {
    margin-bottom: 0;
}

.zg-map-detail-facts {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 6px;
}

.zg-map-detail-facts li {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.4;
}

.zg-map-detail-loading,
.zg-map-detail-error {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.88rem;
}

.zg-map-detail-loading {
    background: rgba(27, 94, 32, 0.08);
    color: #1f4d27;
}

.zg-map-detail-error {
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
}

.zg-map-detail-actions {
    padding-top: 4px;
}

.zg-map-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--zg-map-accent-strong);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.93rem;
}

.zg-map-detail-link:hover,
.zg-map-detail-link:focus-visible {
    text-decoration: none;
    color: var(--zg-map-accent);
}

.zg-map-mobile-search {
    display: none;
}

.zg-map-mobile-sheet {
    display: none;
}

.zg-map-sheet-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 0 4px;
    border: 0;
    background: transparent;
}

.zg-map-sheet-handle span {
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: rgba(18, 24, 33, 0.18);
}

.zg-map-sheet-header {
    padding: 2px 16px 10px;
    border-bottom: 1px solid var(--zg-map-border);
}

.zg-map-filter-panel .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.zg-map-filter-actions {
    display: flex;
    gap: 10px;
}

.zg-map-filter-list {
    display: grid;
    gap: 10px;
}

.zg-map-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border-radius: 14px;
    border: 1.5px solid rgba(18, 24, 33, 0.08);
    background: rgba(255, 255, 255, 0.98);
    transition: var(--zg-map-transition);
}

.zg-map-filter-item:hover {
    border-color: rgba(27, 94, 32, 0.2);
    background: rgba(231, 243, 232, 0.15);
}

.zg-map-filter-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.zg-map-filter-item input {
    width: 22px;
    height: 22px;
    accent-color: var(--zg-map-accent);
    cursor: pointer;
}

.zg-map-filter-count {
    color: var(--zg-map-muted);
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(27, 94, 32, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
    min-width: 32px;
    text-align: center;
}

.zg-map-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #fff;
    border: 2.5px solid #fff;
    box-shadow: 0 8px 20px rgba(18, 24, 33, 0.25),
        0 2px 8px rgba(18, 24, 33, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.zg-map-marker i {
    font-size: 1.1rem;
}

.zg-map-marker__modifier {
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
}

.zg-map-marker.is-selected {
    transform: scale(1.25);
    box-shadow: 0 12px 32px rgba(18, 24, 33, 0.35),
        0 4px 12px rgba(18, 24, 33, 0.2);
    border-width: 3px;
}

.zg-map-marker.is-hovered {
    transform: scale(1.15);
    box-shadow: 0 10px 28px rgba(18, 24, 33, 0.3),
        0 3px 10px rgba(18, 24, 33, 0.18);
}

.zg-map-marker--place {
    background: #1b5e20;
}

.zg-map-marker--masjid {
    background: #106c72;
}

.zg-map-marker--organization {
    background: #4457c4;
}

.zg-map-marker--institution {
    background: #7c3aed;
}

.zg-map-marker--listing {
    background: #b45309;
}

.zg-map-marker--entrance {
    background: #b45309;
}

.zg-map-marker--location {
    background: #4b5563;
}

.zg-map-shape-label {
    display: inline-block;
    max-width: 240px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.26);
    pointer-events: none;
}

/* Belt-and-suspenders: admin boundary SVG paths must never be click targets.
   Leaflet sets pointer-events:none automatically when interactive:false is used,
   but this rule covers any browser/version edge case where that attribute is lost. */
.zg-admin-boundary path {
    pointer-events: none !important;
    cursor: default !important;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--zg-map-radius);
    box-shadow: var(--zg-map-shadow);
    border: 1px solid rgba(18, 24, 33, 0.08);
}

.leaflet-popup-content {
    margin: 16px 18px;
    min-width: 220px;
}

.leaflet-popup-content h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zg-map-text);
    line-height: 1.4;
}

.leaflet-popup-content p {
    margin: 0 0 8px;
    color: var(--zg-map-muted);
    font-size: 0.91rem;
    line-height: 1.5;
}

.leaflet-popup-content a {
    color: var(--zg-map-accent-strong);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.93rem;
    transition: var(--zg-map-transition);
}

.leaflet-popup-content a:hover {
    color: var(--zg-map-accent);
}

*:focus-visible {
    outline: 3px solid rgba(27, 94, 32, 0.35);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (max-width: 991.98px) {
    .zg-map-shell {
        display: block;
    }

    .zg-map-results-panel {
        display: none;
    }

    .zg-map-mobile-search {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: max(14px, env(safe-area-inset-top)) 14px 12px;
        border-bottom: 1px solid rgba(18, 24, 33, 0.06);
    }

    .zg-map-mobile-search .zg-map-home-chip {
        margin-bottom: 0;
        padding: 10px 12px;
        min-width: 0;
    }

    .zg-map-canvas-panel {
        height: 100vh;
        min-height: 100vh;
    }

    .zg-map-controls {
        top: calc(var(--zg-map-mobile-search-h) + env(safe-area-inset-top));
        right: 14px;
    }

    .zg-map-toast {
        left: 14px;
        right: 14px;
        bottom: calc(var(--zg-map-mobile-peek) + 18px + env(safe-area-inset-bottom));
        max-width: none;
    }

    .zg-map-mobile-sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 550;
        display: flex;
        flex-direction: column;
        height: var(--zg-map-mobile-max);
        max-height: calc(100vh - 76px);
        transform: translateY(calc(var(--zg-sheet-offset, 0px)));
        border-top-left-radius: var(--zg-map-radius-lg);
        border-top-right-radius: var(--zg-map-radius-lg);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -10px 40px rgba(18, 24, 33, 0.12);
        border-top: 1px solid rgba(18, 24, 33, 0.06);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        touch-action: none;
        will-change: transform;
    }

    .zg-map-sheet-results {
        flex: 1;
        padding-bottom: 16px;
    }

    .zg-map-detail-scroll {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .zg-map-detail-hero {
        height: 170px;
    }

    .zg-map-result-card {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .zg-map-result-thumb {
        width: 90px;
        height: 90px;
    }

    .zg-map-control-btn {
        width: 56px;
        height: 56px;
    }

    .zg-map-filter-panel.offcanvas-bottom {
        height: min(72vh, 580px);
        border-top-left-radius: var(--zg-map-radius-lg);
        border-top-right-radius: var(--zg-map-radius-lg);
    }
}

@media (min-width: 992px) {

    .zg-map-mobile-search,
    .zg-map-mobile-sheet {
        display: none !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (hover: none) {

    .zg-map-result-card:hover,
    .zg-map-marker:hover {
        transform: none;
    }
}
