:root {
    --bg: #f5f0e8;
    --bg2: #ede8dc;
    --surface: #faf7f2;
    --surface-strong: #fffdf9;
    --ink: #1c1712;
    --ink-soft: #6b6458;
    --gold: #b8860b;
    --gold-lt: #d4a017;
    --rust: #8b3a2a;
    --green: #3a5c3a;
    --border: rgba(28, 23, 18, 0.12);
    --shadow: 0 10px 35px rgba(28, 23, 18, 0.12);
    --header-h: 58px;
    --panel-w: 390px;
}

html,
body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    overflow: hidden !important;
}

body > #app.business-map-cityheritage,
.business-map-cityheritage {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    width: 100% !important;
    overflow: hidden !important;
    background: var(--bg);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.business-map-cityheritage *,
.business-map-cityheritage *::before,
.business-map-cityheritage *::after {
    box-sizing: border-box;
}

.business-map-cityheritage button,
.business-map-cityheritage input {
    font: inherit;
}

.business-map-cityheritage header {
    min-height: var(--header-h) !important;
    background: var(--ink) !important;
    color: var(--bg) !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 10px 18px !important;
    border-bottom: 2px solid var(--gold) !important;
    z-index: 100 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    box-shadow: none !important;
    position: relative !important;
}

.business-map-cityheritage .site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.business-map-cityheritage .site-logo img {
    display: block;
    height: 52px;
    width: auto;
    max-height: none;
}

.business-map-cityheritage .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.business-map-cityheritage .lang-pill {
    min-height: 38px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: var(--bg);
    border-radius: 999px;
    padding: 7px 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .2s ease;
}

.business-map-cityheritage .lang-pill:hover {
    background: rgba(255,255,255,.12);
}

.business-map-cityheritage .lang-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.business-map-cityheritage .lang-flag {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    object-fit: cover;
}

.business-map-cityheritage .filterbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    flex-wrap: wrap;
    z-index: 90;
    flex: 0 0 auto;
}

.business-map-cityheritage .header-btn {
    min-height: 38px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.45);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    transition: .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.business-map-cityheritage .header-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: #fff;
}

.business-map-cityheritage .header-btn.primary {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.business-map-cityheritage .header-btn.primary:hover {
    background: var(--gold-lt);
    border-color: var(--gold-lt);
    color: #fff;
}

.business-map-cityheritage .header-btn.is-active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.business-map-cityheritage .filterbar .header-btn:first-child {
    font-weight: 800;
}

.business-map-cityheritage .search-wrap {
    margin-left: auto;
    position: relative;
    min-width: min(320px, 100%);
    max-width: 100%;
    flex: 0 1 280px;
}

.business-map-cityheritage .search-wrap input {
    width: 100%;
    min-height: 38px;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--bg2);
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease;
}

.business-map-cityheritage .search-wrap input:focus {
    border-color: var(--gold);
}

.business-map-cityheritage .search-wrap input::placeholder {
    color: var(--ink-soft);
}

.business-map-cityheritage .search-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-soft);
    pointer-events: none;
}

.business-map-cityheritage .content-area {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    position: relative !important;
}

.business-map-cityheritage .side-panel {
    width: var(--panel-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    z-index: 40;
    transition: transform .3s ease, width .3s ease;
}

.business-map-cityheritage .side-panel.collapsed {
    width: 0;
    border-right: none;
    overflow: hidden;
}

.business-map-cityheritage .location-list {
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.business-map-cityheritage .loc-card {
    width: 100%;
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: background .18s ease;
}

.business-map-cityheritage .loc-card:hover,
.business-map-cityheritage .loc-card.active {
    background: var(--bg2);
}

.business-map-cityheritage .loc-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
}

.business-map-cityheritage .loc-thumb {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: linear-gradient(135deg, #d8cfbc, #e7dfd2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--rust);
    overflow: hidden;
}

.business-map-cityheritage .loc-info {
    min-width: 0;
    flex: 1;
}

.business-map-cityheritage .loc-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.2;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.business-map-cityheritage .loc-desc {
    font-size: 13px;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.business-map-cityheritage .loc-meta {
    font-size: 11px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.business-map-cityheritage .map-area {
    display: block;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.business-map-cityheritage #businessPublicMap {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: #d8cfbc;
}

.leaflet-container {
    background: #d8cfbc;
}

.business-map-cityheritage .toggle-panel {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 45;
    width: 24px;
    height: 56px;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: var(--surface);
    box-shadow: 2px 0 10px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.business-map-cityheritage .toggle-panel svg {
    transition: transform .3s ease;
}

.business-map-cityheritage .toggle-panel.flipped svg {
    transform: rotate(180deg);
}

.business-map-cityheritage .map-controls {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 35;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: min(92vw, 720px);
    padding: 10px 14px;
    background: rgba(250,247,242,.96);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.business-map-cityheritage .map-controls span {
    font-size: 12px;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.business-map-cityheritage .map-controls span::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: var(--gold);
}

.business-map-cityheritage .detail-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: min(400px, calc(100vw - 32px));
    height: auto;
    max-height: none;
    display: none;
    flex-direction: column;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 2000;
    pointer-events: auto;
}

.business-map-cityheritage .detail-overlay.open {
    display: flex;
}

.business-map-cityheritage .detail-hero {
    position: relative;
    min-height: 130px;
    background: linear-gradient(to top, rgba(28,23,18,.72), rgba(28,23,18,.18)), linear-gradient(135deg, #d8cfbc, #e7dfd2);
    display: flex;
    align-items: flex-end;
    padding: 18px;
}

.business-map-cityheritage .detail-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: white;
    padding-right: 34px;
    margin: 0;
}

.business-map-cityheritage .detail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.45);
    color: white;
    cursor: pointer;
}

.business-map-cityheritage .detail-body {
    overflow-y: auto;
    padding: 18px;
    min-height: 0;
}

.business-map-cityheritage .detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.business-map-cityheritage .badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    background: rgba(184,134,11,.12);
    color: #7a5800;
}

.business-map-cityheritage .detail-desc {
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.business-map-cityheritage .detail-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.business-map-cityheritage .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.business-map-cityheritage .info-item {
    background: var(--bg2);
    border-radius: 10px;
    padding: 10px 12px;
}

.business-map-cityheritage .info-item-label {
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.business-map-cityheritage .info-item-value {
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.business-map-cityheritage .link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.business-map-cityheritage .ext-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: .2s ease;
    background: transparent;
    color: var(--ink);
}

.business-map-cityheritage .ext-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.business-map-cityheritage .ext-link-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    flex-shrink: 0;
}

.business-map-cityheritage .empty-state {
    padding: 28px 18px;
    color: var(--ink-soft);
    text-align: center;
    font-style: italic;
}

.business-map-cityheritage .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.business-map-cityheritage .leaflet-popup-content {
    margin: 0;
    width: 250px !important;
}

.business-map-cityheritage .popup-card {
    overflow: hidden;
    background: var(--surface);
    border-radius: 12px;
}

.business-map-cityheritage .popup-top {
    height: 100px;
    background: linear-gradient(135deg, #d8cfbc, #e7dfd2);
    display: flex;
    align-items: flex-end;
    padding: 14px;
}

.business-map-cityheritage .popup-top strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.1;
    color: var(--ink);
}

.business-map-cityheritage .popup-body {
    padding: 12px 14px 14px;
}

.business-map-cityheritage .popup-desc {
    font-size: 12px;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.business-map-cityheritage .popup-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--ink);
    color: var(--bg);
    cursor: pointer;
    text-decoration: none;
}

.business-map-cityheritage .panel-backdrop {
    display: none;
}

.business-map-cityheritage .mobile-panel-open {
    display: none;
}

.business-map-cityheritage .heritage-marker {
    background: transparent;
    border: 0;
}

@media (max-width: 980px) {
    .business-map-cityheritage .search-wrap {
        margin-left: 0;
        width: 100%;
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .business-map-cityheritage header {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 10px 14px;
    }

    .business-map-cityheritage .header-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .business-map-cityheritage .mobile-panel-open {
        display: inline-flex;
    }

    .business-map-cityheritage .filterbar {
        padding: 10px 14px;
        gap: 10px;
        max-height: 45dvh;
        overflow-y: auto;
    }

    .business-map-cityheritage .search-wrap {
        order: 10;
        flex-basis: 100%;
    }

    .business-map-cityheritage .side-panel {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 380px);
        max-width: 100%;
        transform: translateX(-100%);
        box-shadow: var(--shadow);
        z-index: 3000;
    }

    .business-map-cityheritage .side-panel.mobile-open,
    .business-map-cityheritage .side-panel.collapsed.mobile-open {
        transform: translateX(0) !important;
        width: min(88vw, 380px) !important;
        display: flex !important;
        border-right: 1px solid var(--border) !important;
    }

    .business-map-cityheritage .side-panel.collapsed {
        width: min(88vw, 380px);
        transform: translateX(-100%);
        border-right: 1px solid var(--border);
    }

    .business-map-cityheritage .panel-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.28);
        z-index: 2990;
    }

    .business-map-cityheritage .panel-backdrop.open {
        display: block;
    }

    .business-map-cityheritage .toggle-panel {
        display: none;
    }

    .business-map-cityheritage .detail-overlay {
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        height: auto;
        max-height: min(72vh, calc(100% - 24px));
    }

    .business-map-cityheritage .info-grid {
        grid-template-columns: 1fr;
    }

    .business-map-cityheritage .map-controls {
        bottom: 10px;
        border-radius: 16px;
        width: calc(100% - 20px);
        max-height: 35dvh;
        overflow-y: auto;
    }
}

@media (max-width: 520px) {
    .business-map-cityheritage .header-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .business-map-cityheritage .loc-card {
        padding: 14px;
    }

    .business-map-cityheritage .loc-thumb {
        width: 52px;
        height: 52px;
    }

    .business-map-cityheritage .loc-name {
        font-size: 1rem;
    }
}

.business-map-cityheritage .loc-thumb-image {
    background: var(--bg2);
}

    .business-map-cityheritage .loc-thumb-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.business-map-cityheritage .popup-top {
    position: relative;
    overflow: hidden;
}

    .business-map-cityheritage .popup-top.popup-top-image {
        background: var(--ink);
    }

        .business-map-cityheritage .popup-top.popup-top-image img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            z-index: 0;
        }

        .business-map-cityheritage .popup-top.popup-top-image::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(28,23,18,.76), rgba(28,23,18,.12));
            z-index: 1;
        }

    .business-map-cityheritage .popup-top strong {
        position: relative;
        z-index: 2;
    }

    .business-map-cityheritage .popup-top.popup-top-image strong {
        color: #fff;
    }

.business-map-cityheritage .detail-hero.detail-hero-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.business-map-cityheritage .business-marker {
    background: transparent;
    border: 0;
}

    .business-map-cityheritage .business-marker span {
        display: block;
        width: 22px;
        height: 22px;
        border-radius: 999px;
        background: var(--gold);
        border: 3px solid #fff;
        box-shadow: 0 3px 10px rgba(0,0,0,.28);
    }

.business-map-cityheritage .business-marker-active {
    background: transparent;
    border: 0;
}

    .business-map-cityheritage .business-marker-active span {
        position: relative;
        display: block;
        width: 38px;
        height: 38px;
        border-radius: 999px;
        background: var(--rust);
        border: 4px solid #fff;
        box-shadow: 0 0 0 8px rgba(139,58,42,.22), 0 4px 16px rgba(0,0,0,.38);
        animation: businessMarkerPulse 1.35s infinite;
    }

        .business-map-cityheritage .business-marker-active span::after {
            content: '';
            position: absolute;
            inset: 9px;
            border-radius: 999px;
            border: 2px solid rgba(255,255,255,.95);
        }

@keyframes businessMarkerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139,58,42,.42), 0 4px 16px rgba(0,0,0,.38);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(139,58,42,0), 0 4px 16px rgba(0,0,0,.38);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139,58,42,0), 0 4px 16px rgba(0,0,0,.38);
    }
}