:root {
    --dv-ink: #f3f1eb;
    --dv-ink-soft: #f8f7f3;
    --dv-panel: #ffffff;
    --dv-panel-raised: #ffffff;
    --dv-paper: #28231f;
    --dv-muted: #716a63;
    --dv-muted-strong: #4d4741;
    --dv-gold: #b28a31;
    --dv-gold-soft: #866414;
    --dv-gold-line: rgba(178, 138, 49, 0.38);
    --dv-line: rgba(53, 45, 38, 0.16);
    --dv-burgundy: #751827;
    --dv-burgundy-hover: #8d2032;
    --dv-shadow: 0 20px 55px rgba(74, 60, 43, 0.18);
    --dv-radius: 12px;
    --dv-sidebar-width: 400px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body.dv-map-page {
    overflow: hidden;
    background: var(--dv-ink);
    color: var(--dv-paper);
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select {
    font: inherit;
}

button,
a,
select,
input {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 5000;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    border-radius: 8px;
    background: var(--dv-paper);
    color: var(--dv-ink);
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    transform: none;
}

.dv-map-shell {
    display: flex;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 560px;
    background: var(--dv-ink);
}

.dv-sidebar {
    position: relative;
    z-index: 1100;
    flex: 0 0 var(--dv-sidebar-width);
    width: var(--dv-sidebar-width);
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 23px 28px;
    border-right: 1px solid rgba(212, 175, 87, 0.28);
    background:
        radial-gradient(circle at 0 0, rgba(212, 175, 87, 0.055), transparent 25%),
        linear-gradient(150deg, #0b0d0d 0%, #0e1111 100%);
    scrollbar-color: rgba(212, 175, 87, 0.45) transparent;
    scrollbar-width: thin;
}

.dv-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dv-sidebar::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(212, 175, 87, 0.38);
}

.dv-sidebar-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dv-gold-line);
}

.dv-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dv-gold);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.05rem;
    line-height: 1;
    text-decoration: none;
}

.dv-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 1.25rem;
}

.dv-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--dv-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    color: var(--dv-paper);
    cursor: pointer;
}

.dv-icon-button svg {
    width: 20px;
    height: 20px;
}

.dv-sidebar-close,
.dv-mobile-header {
    display: none;
}

.dv-intro {
    padding: 20px 0 18px;
}

.dv-intro h1 {
    margin: 0;
    color: var(--dv-paper);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.8rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.dv-intro h1 em {
    color: #e9e0d1;
    font-weight: 400;
}

.dv-intro p {
    max-width: 310px;
    margin: 20px 0 0;
    color: var(--dv-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.dv-search {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    margin: 0 0 17px;
    border: 1px solid var(--dv-line);
    border-radius: var(--dv-radius);
    background: var(--dv-panel-raised);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dv-search:focus-within {
    border-color: var(--dv-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 87, 0.13);
}

.dv-search > svg {
    width: 22px;
    height: 22px;
    margin-left: 15px;
    color: var(--dv-muted-strong);
}

.dv-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dv-paper);
    padding: 15px 38px 15px 12px;
    font-size: 0.95rem;
}

.dv-search input::placeholder {
    color: #96938d;
}

.dv-search-clear {
    position: absolute;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dv-muted);
    cursor: pointer;
    font-size: 1.25rem;
}

.dv-control-section,
.dv-guide-section {
    padding: 15px 0 17px;
    border-top: 1px solid var(--dv-gold-line);
}

.dv-control-section h2,
.dv-guide-section h2 {
    margin: 0;
    color: var(--dv-paper);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.22rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.dv-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 8px;
    margin-top: 13px;
}

.dv-filter-button {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(243, 236, 223, 0.19);
    border-radius: 9px;
    background: transparent;
    color: #b8b4ad;
    cursor: pointer;
    font-size: 0.79rem;
    font-weight: 500;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dv-filter-button:hover {
    border-color: rgba(212, 175, 87, 0.7);
    color: var(--dv-paper);
    transform: translateY(-1px);
}

.dv-filter-button.is-active {
    border-color: var(--dv-gold);
    background: rgba(212, 175, 87, 0.07);
    color: var(--dv-gold-soft);
}

.dv-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    margin-top: 16px;
    border: 1px solid var(--dv-line);
    border-radius: var(--dv-radius);
    color: var(--dv-muted-strong);
}

.dv-select-wrap > svg {
    position: absolute;
    left: 14px;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.dv-select-wrap select {
    width: 100%;
    min-height: 50px;
    border: 0;
    outline: 0;
    border-radius: inherit;
    appearance: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0 42px 0 48px;
    background-image: linear-gradient(45deg, transparent 50%, var(--dv-paper) 50%), linear-gradient(135deg, var(--dv-paper) 50%, transparent 50%);
    background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    font-size: 0.86rem;
}

.dv-select-wrap select option {
    background: #151717;
    color: var(--dv-paper);
}

.dv-section-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.dv-section-heading-row > a {
    color: var(--dv-gold-soft);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
}

.dv-guide-list {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.dv-guide-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 8px;
    border: 1px solid var(--dv-line);
    border-radius: var(--dv-radius);
    background: rgba(255, 255, 255, 0.012);
}

.dv-guide-artwork {
    width: 52px;
    height: 52px;
    border: 1px solid var(--dv-gold);
    border-radius: 50%;
    object-fit: cover;
    background: #222;
}

.dv-guide-copy {
    min-width: 0;
}

.dv-guide-copy strong {
    display: block;
    overflow: hidden;
    color: var(--dv-paper);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.dv-guide-copy span {
    display: block;
    margin-top: 6px;
    color: var(--dv-muted);
    font-size: 0.67rem;
}

.dv-guide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    white-space: nowrap;
    border: 1px solid var(--dv-gold-line);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--dv-gold-soft);
    font-size: 0.67rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.dv-guide-card.is-unlocked .dv-guide-link {
    border-color: rgba(239, 212, 125, 0.55);
    background: var(--dv-burgundy);
    color: white;
}

.dv-guide-link:hover {
    border-color: var(--dv-gold);
    background: rgba(212, 175, 87, 0.1);
}

.dv-guide-card.is-unlocked .dv-guide-link:hover {
    background: var(--dv-burgundy-hover);
}

.dv-guide-note {
    margin: 10px 2px 0;
    color: #85827c;
    font-size: 0.66rem;
    line-height: 1.45;
}

.dv-map-stage {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #101515;
}

#map {
    width: 100%;
    height: 100%;
    background: #101515;
}

#map .leaflet-tile-pane {
    filter: sepia(0.16) saturate(0.7) brightness(0.86) contrast(1.05);
}

#map .leaflet-control-attribution {
    border-radius: 6px 0 0 0;
    background: rgba(11, 13, 13, 0.78);
    color: #8d8b84;
    font-size: 9px;
}

#map .leaflet-control-attribution a {
    color: #b8a46e;
}

#map .leaflet-control-zoom {
    overflow: hidden;
    border: 1px solid var(--dv-line);
    border-radius: 10px;
    box-shadow: var(--dv-shadow);
}

#map .leaflet-control-zoom a {
    border-color: var(--dv-line);
    background: rgba(18, 20, 20, 0.94);
    color: var(--dv-paper);
}

.dv-map-actions {
    position: absolute;
    z-index: 800;
    top: 28px;
    right: 28px;
    display: grid;
    gap: 9px;
}

.dv-map-action,
.dv-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid rgba(243, 236, 223, 0.28);
    border-radius: 10px;
    background: rgba(19, 21, 21, 0.92);
    color: var(--dv-paper);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
    cursor: pointer;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dv-map-action:hover,
.dv-tool-button:hover {
    border-color: var(--dv-gold);
    background: #1b1e1e;
    transform: translateY(-1px);
}

.dv-map-action svg,
.dv-tool-button svg {
    width: 19px;
    height: 19px;
}

.dv-mobile-tools {
    display: none;
}

.dv-map-stats {
    position: absolute;
    z-index: 800;
    bottom: 22px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid rgba(243, 236, 223, 0.25);
    border-radius: 13px;
    background: rgba(19, 21, 21, 0.93);
    box-shadow: var(--dv-shadow);
    color: var(--dv-paper);
    padding: 8px 13px;
    transition: opacity 180ms ease;
}

.dv-map-stats > span:not(.dv-map-stat-divider) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.dv-map-stats svg {
    width: 20px;
    height: 20px;
    color: var(--dv-paper);
}

.dv-map-stats strong {
    font-weight: 500;
}

.dv-map-stat-divider {
    width: 1px;
    height: 28px;
    margin: 0 12px;
    background: var(--dv-line);
}

.dv-place-panel {
    position: absolute;
    z-index: 900;
    top: 50%;
    right: 28px;
    width: min(370px, calc(100% - 56px));
    max-height: calc(100% - 170px);
    overflow-y: auto;
    border: 1px solid rgba(212, 175, 87, 0.48);
    border-radius: 16px;
    background:
        radial-gradient(circle at 85% 0, rgba(212, 175, 87, 0.06), transparent 30%),
        rgba(18, 20, 20, 0.97);
    box-shadow: var(--dv-shadow);
    color: var(--dv-paper);
    opacity: 0;
    pointer-events: none;
    transform: translate(24px, -50%);
    transition: opacity 180ms ease, transform 220ms ease;
}

.dv-place-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.dv-panel-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--dv-line);
    border-radius: 50%;
    background: rgba(11, 13, 13, 0.72);
    color: var(--dv-muted-strong);
    cursor: pointer;
}

.dv-panel-close svg {
    width: 18px;
    height: 18px;
}

.dv-place-content {
    padding: 22px;
}

.dv-place-artwork {
    width: 86px;
    height: 86px;
    border: 1px solid var(--dv-gold);
    border-radius: 50%;
    object-fit: cover;
    background: #242424;
}

.dv-place-content h2 {
    margin: 18px 0 6px;
    color: var(--dv-paper);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.35rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.dv-place-category {
    margin: 0;
    color: var(--dv-gold-soft);
    font-size: 0.8rem;
    font-weight: 600;
}

.dv-place-district {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 12px 0 0;
    color: var(--dv-muted);
    font-size: 0.8rem;
}

.dv-place-district svg {
    width: 18px;
    height: 18px;
}

.dv-place-rule {
    height: 1px;
    margin: 16px 0;
    border: 0;
    background: var(--dv-gold-line);
}

.dv-place-description,
.dv-place-info {
    margin: 0;
    color: var(--dv-muted-strong);
    font-size: 0.86rem;
    line-height: 1.58;
}

.dv-place-info {
    margin-top: 10px;
    color: var(--dv-muted);
    font-size: 0.76rem;
}

.dv-place-actions {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.dv-place-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    border: 1px solid var(--dv-gold);
    border-radius: 10px;
    color: var(--dv-gold-soft);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dv-place-action svg {
    width: 19px;
    height: 19px;
}

.dv-place-action-primary {
    border-color: rgba(239, 212, 125, 0.62);
    background: var(--dv-burgundy);
    color: white;
}

.dv-place-action:hover {
    background: rgba(212, 175, 87, 0.1);
    transform: translateY(-1px);
}

.dv-place-action-primary:hover {
    background: var(--dv-burgundy-hover);
}

.dv-place-free {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--dv-gold-soft);
    font-size: 0.77rem;
    font-weight: 600;
}

.dv-place-booked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid rgba(239, 212, 125, 0.48);
    border-radius: 10px;
    background: rgba(212, 175, 87, 0.08);
    color: var(--dv-gold-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.dv-sidebar-backdrop {
    display: none;
}

.marker-cluster {
    border-radius: 50%;
    background: rgba(212, 175, 87, 0.16);
    box-shadow: 0 0 0 1px rgba(212, 175, 87, 0.24), 0 10px 22px rgba(0, 0, 0, 0.4);
}

.marker-cluster div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 3px;
    border: 1px solid var(--dv-gold);
    border-radius: 50%;
    background: rgba(16, 18, 18, 0.97);
    color: var(--dv-gold-soft);
    font-family: "Inter", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
}

.marker-cluster span {
    line-height: 1;
}

.dv-marker-container {
    border: 0;
    background: transparent;
}

.dv-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--dv-gold);
    border-radius: 50%;
    background: rgba(13, 15, 15, 0.95);
    color: var(--dv-gold-soft);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.42);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.dv-marker::after {
    content: "";
    position: absolute;
    bottom: -6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dv-gold);
    box-shadow: 0 0 8px rgba(212, 175, 87, 0.6);
}

.dv-marker i {
    font-size: 14px;
}

.dv-marker.is-free {
    color: #e3c986;
}

.dv-marker.is-audio {
    border-color: #f0d67c;
    background: var(--dv-burgundy);
    color: white;
    box-shadow: 0 0 0 4px rgba(117, 24, 39, 0.26), 0 0 22px rgba(212, 175, 87, 0.38);
}

.dv-marker.is-booked {
    border-color: #fff0bd;
    background: #e4c477;
    color: #171512;
    box-shadow: 0 0 0 5px rgba(117, 24, 39, 0.72), 0 0 0 7px rgba(239, 212, 125, 0.26), 0 10px 26px rgba(0, 0, 0, 0.5);
}

.dv-marker-booked-check {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 2px solid #f5dfaa;
    border-radius: 50%;
    background: var(--dv-burgundy);
    color: white;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.dv-marker.is-selected,
.dv-marker:hover {
    transform: scale(1.14);
    border-color: #f5dfa0;
    background: var(--dv-burgundy);
    color: white;
}

.dv-user-marker {
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--dv-burgundy);
    box-shadow: 0 0 0 7px rgba(117, 24, 39, 0.28), 0 4px 14px rgba(0, 0, 0, 0.4);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--dv-gold-soft);
    outline-offset: 3px;
}

body.dv-map-gate-page {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(212, 175, 87, 0.09), transparent 28%),
        radial-gradient(circle at 84% 86%, rgba(117, 24, 39, 0.14), transparent 32%),
        var(--dv-ink);
    color: var(--dv-paper);
    font-family: "Inter", sans-serif;
}

.dv-map-gate {
    width: min(720px, calc(100% - 32px));
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 72px) 0;
}

.dv-map-gate > .dv-brand {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--dv-gold-line);
}

.dv-map-gate-copy {
    padding: clamp(50px, 9vw, 92px) 0 34px;
}

.dv-map-gate-copy h1 {
    max-width: 660px;
    margin: 0;
    color: var(--dv-paper);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 8vw, 5.6rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.dv-map-gate-copy p {
    max-width: 570px;
    margin: 24px 0 0;
    color: var(--dv-muted-strong);
    font-size: 1rem;
    line-height: 1.65;
}

.dv-map-gate-guides {
    display: grid;
    gap: 9px;
    margin-bottom: 24px;
}

.dv-map-gate-guides a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    border: 1px solid var(--dv-line);
    border-radius: var(--dv-radius);
    background: rgba(255, 255, 255, 0.018);
    color: var(--dv-paper);
    padding: 14px 16px;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dv-map-gate-guides a:hover {
    border-color: var(--dv-gold);
    background: rgba(212, 175, 87, 0.06);
    transform: translateY(-1px);
}

.dv-map-gate-guides span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.16rem;
}

.dv-map-gate-guides strong {
    color: var(--dv-gold-soft);
    font-size: 0.78rem;
}

.dv-map-gate-back {
    color: var(--dv-gold-soft);
    font-size: 0.85rem;
    font-weight: 600;
    text-underline-offset: 4px;
}

@media (max-width: 1100px) {
    :root {
        --dv-sidebar-width: 360px;
    }

    .dv-sidebar {
        padding-inline: 20px;
    }

    .dv-place-panel {
        right: 18px;
    }
}

@media (max-width: 840px) {
    .dv-map-shell {
        display: grid;
        grid-template-rows: 72px minmax(0, 1fr);
    }

    .dv-mobile-header {
        position: relative;
        z-index: 1200;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid var(--dv-gold-line);
        background: #0b0d0d;
    }

    .dv-mobile-header .dv-brand {
        font-size: 1rem;
    }

    .dv-mobile-header .dv-brand-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .dv-menu-button {
        border: 0;
        border-radius: 8px;
        background: transparent;
    }

    .dv-menu-lines,
    .dv-menu-lines::before,
    .dv-menu-lines::after {
        display: block;
        width: 28px;
        height: 1.5px;
        background: var(--dv-paper);
        content: "";
    }

    .dv-menu-lines {
        position: relative;
    }

    .dv-menu-lines::before {
        position: absolute;
        top: -8px;
    }

    .dv-menu-lines::after {
        position: absolute;
        top: 8px;
    }

    .dv-sidebar {
        position: fixed;
        z-index: 1400;
        top: 72px;
        bottom: 0;
        left: 0;
        width: min(88vw, 380px);
        height: auto;
        padding: 16px 22px max(28px, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(212, 175, 87, 0.42);
        border-right-color: rgba(212, 175, 87, 0.42);
        border-radius: 0 24px 0 0;
        box-shadow: 28px 10px 70px rgba(0, 0, 0, 0.55);
        transform: translateX(-105%);
        transition: transform 230ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .dv-sidebar.is-open {
        transform: translateX(0);
    }

    .dv-sidebar-topline {
        min-height: 34px;
        justify-content: flex-end;
        padding-bottom: 8px;
        border-bottom: 0;
    }

    .dv-brand-desktop {
        display: none;
    }

    .dv-sidebar-close {
        display: inline-flex;
    }

    .dv-intro {
        padding-top: 10px;
    }

    .dv-intro h1 {
        font-size: clamp(2.55rem, 12vw, 3.3rem);
    }

    .dv-intro p {
        margin-top: 17px;
    }

    .dv-search {
        display: none;
    }

    .dv-map-stage {
        grid-row: 2;
        height: 100%;
    }

    .dv-sidebar-backdrop {
        position: fixed;
        z-index: 1300;
        inset: 72px 0 0;
        display: block;
        border: 0;
        background: rgba(0, 0, 0, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .dv-sidebar-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .dv-mobile-tools {
        position: absolute;
        z-index: 850;
        top: 14px;
        right: 12px;
        left: 12px;
        display: flex;
        gap: 8px;
    }

    .dv-mobile-search {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        height: 46px;
        border: 1px solid rgba(243, 236, 223, 0.28);
        border-radius: 10px;
        background: rgba(19, 21, 21, 0.93);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
    }

    .dv-mobile-search:focus-within {
        border-color: var(--dv-gold);
    }

    .dv-mobile-search > svg {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        margin-left: 12px;
        color: var(--dv-muted-strong);
    }

    .dv-mobile-search input {
        width: 100%;
        min-width: 0;
        height: 44px;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--dv-paper);
        padding: 0 7px 0 9px;
        font-size: 0.82rem;
    }

    .dv-mobile-search input::placeholder {
        color: #aaa79f;
    }

    .dv-mobile-search button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border: 0;
        background: transparent;
        color: var(--dv-muted);
        cursor: pointer;
        font-size: 1.15rem;
    }

    .dv-tool-button {
        width: 46px;
        min-height: 46px;
        padding: 0;
    }

    .dv-tool-button-wide {
        width: auto;
        padding-inline: 13px;
    }

    .dv-map-actions {
        display: none;
    }

    .dv-map-stats {
        bottom: max(16px, env(safe-area-inset-bottom));
        left: 12px;
    }

    body.has-place-panel .dv-map-stats {
        opacity: 0;
    }

    #map .leaflet-control-zoom {
        margin-bottom: 74px;
    }

    .dv-place-panel,
    .dv-place-panel.is-open {
        top: auto;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        width: auto;
        max-height: min(48vh, 440px);
        border-radius: 18px;
        transform: translateY(calc(100% + 30px));
    }

    .dv-place-panel.is-open {
        transform: translateY(0);
    }

    .dv-place-content {
        padding: 18px;
    }

    .dv-place-head {
        display: grid;
        grid-template-columns: 74px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        padding-right: 42px;
    }

    .dv-place-artwork {
        grid-row: 1 / span 3;
        width: 74px;
        height: 74px;
    }

    .dv-place-content h2 {
        margin: 0;
        font-size: clamp(1.9rem, 9vw, 2.35rem);
    }

    .dv-place-category {
        display: none;
    }

    .dv-place-district {
        margin-top: 4px;
    }

    .dv-place-description,
    .dv-place-info {
        display: none;
    }

    .dv-place-rule {
        margin: 15px 0;
    }

    .dv-place-actions {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .dv-mobile-header {
        padding-inline: 13px;
    }

    .dv-mobile-header .dv-brand {
        gap: 8px;
        font-size: 0.9rem;
    }

    .dv-mobile-header .dv-brand-mark {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        font-size: 1.05rem;
    }

    .dv-filter-buttons {
        gap: 8px;
    }

    .dv-filter-button {
        padding-inline: 12px;
        font-size: 0.76rem;
    }

    .dv-tool-button-wide span {
        display: none;
    }

    .dv-tool-button-wide {
        width: 46px;
        padding: 0;
    }

    .dv-map-stats {
        min-height: 48px;
        padding: 7px 10px;
    }

    .dv-map-stats > span:not(.dv-map-stat-divider) {
        font-size: 0.73rem;
    }

    .dv-map-stat-divider {
        margin-inline: 9px;
    }

    .dv-guide-card {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }

    .dv-guide-artwork {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Light, high-legibility map theme */
body.dv-map-page,
.dv-map-shell {
    background: var(--dv-ink);
    color: var(--dv-paper);
}

.dv-sidebar {
    border-right-color: rgba(178, 138, 49, 0.28);
    background: linear-gradient(150deg, #ffffff 0%, #f8f6f0 100%);
    scrollbar-color: rgba(178, 138, 49, 0.45) transparent;
}

.dv-sidebar::-webkit-scrollbar-thumb {
    background: rgba(178, 138, 49, 0.42);
}

.dv-icon-button {
    background: #ffffff;
    color: var(--dv-paper);
}

.dv-intro h1 em {
    color: #4e4740;
}

.dv-search input::placeholder,
.dv-mobile-search input::placeholder {
    color: #817a72;
}

.dv-control-section,
.dv-saved-section,
.dv-guide-section {
    padding: 15px 0 17px;
    border-top: 1px solid var(--dv-gold-line);
}

.dv-control-section h2,
.dv-saved-section h2,
.dv-guide-section h2 {
    margin: 0;
    color: var(--dv-paper);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.22rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.dv-filter-button {
    border-color: rgba(53, 45, 38, 0.18);
    color: #5f5851;
}

.dv-filter-button:hover {
    color: var(--dv-paper);
}

.dv-filter-button.is-active {
    background: rgba(178, 138, 49, 0.12);
    color: #76550c;
}

.dv-select-wrap select option {
    background: #ffffff;
    color: var(--dv-paper);
}

.dv-guide-card {
    background: rgba(255, 255, 255, 0.76);
}

.dv-guide-artwork,
.dv-place-artwork {
    background: #e8e3da;
}

.dv-guide-note {
    color: #777068;
}

.dv-map-stage,
#map {
    background: #e8ece7;
}

#map .leaflet-tile-pane {
    filter: none;
}

#map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.9);
    color: #625c55;
}

#map .leaflet-control-attribution a {
    color: #76550c;
}

#map .leaflet-control-zoom a,
.dv-map-action,
.dv-tool-button,
.dv-mobile-search,
.dv-map-stats {
    border-color: rgba(53, 45, 38, 0.18);
    background: rgba(255, 255, 255, 0.96);
    color: var(--dv-paper);
    box-shadow: 0 12px 30px rgba(74, 60, 43, 0.16);
}

.dv-map-action:hover,
.dv-tool-button:hover {
    background: #ffffff;
}

.dv-place-panel {
    border-color: rgba(178, 138, 49, 0.5);
    background: linear-gradient(155deg, #ffffff 0%, #f8f6f0 100%);
    color: var(--dv-paper);
}

.dv-panel-close {
    background: rgba(255, 255, 255, 0.9);
    color: #5e5750;
}

.dv-place-action {
    background: transparent;
    color: #76550c;
}

.dv-place-action-directions {
    border-color: rgba(117, 24, 39, 0.52);
    color: var(--dv-burgundy);
}

.dv-place-action-danger {
    border-color: rgba(117, 24, 39, 0.3);
    color: var(--dv-burgundy);
    cursor: pointer;
}

.dv-place-booked {
    background: #fff8df;
    color: #76550c;
}

.marker-cluster {
    background: rgba(178, 138, 49, 0.22);
    box-shadow: 0 0 0 1px rgba(178, 138, 49, 0.28), 0 8px 18px rgba(74, 60, 43, 0.2);
}

.marker-cluster div {
    background: #ffffff;
    color: #76550c;
}

.dv-marker {
    background: #ffffff;
    color: #76550c;
    box-shadow: 0 7px 18px rgba(74, 60, 43, 0.24);
}

.dv-marker.is-free {
    color: #76550c;
}

.dv-marker.is-booked {
    border-color: #fff6d4;
    background: #d7b85f;
    color: #2b241c;
    box-shadow: 0 0 0 5px rgba(117, 24, 39, 0.68), 0 0 0 7px rgba(178, 138, 49, 0.24), 0 10px 24px rgba(74, 60, 43, 0.28);
}

body.dv-map-gate-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(178, 138, 49, 0.12), transparent 28%),
        radial-gradient(circle at 84% 86%, rgba(117, 24, 39, 0.08), transparent 32%),
        #f7f5ef;
    color: var(--dv-paper);
}

.dv-map-gate-guides a {
    background: rgba(255, 255, 255, 0.82);
}

/* Saved places */
.dv-section-text-button {
    border: 0;
    background: transparent;
    color: var(--dv-burgundy);
    cursor: pointer;
    padding: 4px 0;
    font-size: 0.72rem;
    font-weight: 700;
}

.dv-saved-list {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.dv-saved-empty {
    margin: 0;
    border: 1px dashed rgba(178, 138, 49, 0.48);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--dv-muted);
    padding: 13px;
    font-size: 0.75rem;
    line-height: 1.5;
}

.dv-saved-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 6px;
    min-height: 58px;
    border: 1px solid var(--dv-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    padding: 6px;
}

.dv-saved-open {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--dv-paper);
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.dv-saved-row-icon,
.dv-saved-place-symbol {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3e8c7;
    color: var(--dv-burgundy);
}

.dv-saved-open strong,
.dv-saved-open small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dv-saved-open strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.94rem;
    font-weight: 600;
}

.dv-saved-open small {
    margin-top: 4px;
    color: var(--dv-muted);
    font-size: 0.66rem;
}

.dv-saved-directions {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--dv-gold-line);
    border-radius: 9px;
    color: var(--dv-burgundy);
}

.dv-saved-directions svg {
    width: 18px;
    height: 18px;
}

.dv-saved-marker {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid #ffffff;
    border-radius: 50% 50% 50% 10px;
    background: var(--dv-burgundy);
    color: #ffffff;
    box-shadow: 0 0 0 3px var(--dv-gold), 0 9px 22px rgba(74, 60, 43, 0.3);
    transform: rotate(-45deg);
    transition: transform 160ms ease;
}

.dv-saved-marker i {
    transform: rotate(45deg);
}

.dv-saved-marker:hover,
.dv-saved-marker.is-selected {
    transform: rotate(-45deg) scale(1.12);
}

.dv-saved-place-symbol {
    width: 62px;
    height: 62px;
    border: 1px solid var(--dv-gold);
    font-size: 1.25rem;
}

/* Save-place dialog */
.dv-save-dialog {
    width: min(520px, calc(100% - 28px));
    max-height: min(720px, calc(100dvh - 28px));
    overflow: auto;
    border: 1px solid rgba(178, 138, 49, 0.48);
    border-radius: 20px;
    background: #ffffff;
    color: var(--dv-paper);
    box-shadow: 0 30px 90px rgba(54, 43, 31, 0.3);
    padding: 0;
}

.dv-save-dialog::backdrop {
    background: rgba(45, 38, 32, 0.44);
    backdrop-filter: blur(3px);
}

.dv-save-form {
    padding: 24px;
}

.dv-save-dialog-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 16px;
    align-items: start;
}

.dv-save-dialog-head .dv-panel-close {
    position: static;
}

.dv-save-dialog h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.dv-save-dialog-head p {
    margin: 8px 0 0;
    color: var(--dv-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.dv-save-label {
    display: block;
    margin-top: 22px;
    color: var(--dv-muted-strong);
    font-size: 0.76rem;
    font-weight: 700;
}

.dv-save-name {
    width: 100%;
    min-height: 50px;
    margin-top: 7px;
    border: 1px solid var(--dv-line);
    border-radius: 11px;
    background: #fbfaf7;
    color: var(--dv-paper);
    padding: 12px 14px;
    font-size: 0.95rem;
}

.dv-save-location-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.dv-save-option {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 94px;
    border: 1px solid var(--dv-gold-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--dv-paper);
    cursor: pointer;
    padding: 13px;
    text-align: left;
}

.dv-save-option:hover {
    background: #fbf7ea;
}

.dv-save-option svg {
    width: 25px;
    height: 25px;
    color: var(--dv-burgundy);
}

.dv-save-option strong,
.dv-save-option small {
    display: block;
}

.dv-save-option strong {
    font-size: 0.78rem;
    line-height: 1.3;
}

.dv-save-option small {
    margin-top: 5px;
    color: var(--dv-muted);
    font-size: 0.67rem;
    line-height: 1.35;
}

.dv-save-coordinates {
    margin: 13px 0 0;
    border-radius: 9px;
    background: #f5f2e9;
    color: var(--dv-muted-strong);
    padding: 10px 12px;
    font-size: 0.72rem;
}

.dv-save-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
}

.dv-save-cancel,
.dv-save-submit {
    min-height: 44px;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 700;
}

.dv-save-cancel {
    border: 1px solid var(--dv-line);
    background: #ffffff;
    color: var(--dv-muted-strong);
}

.dv-save-submit {
    border: 1px solid var(--dv-burgundy);
    background: var(--dv-burgundy);
    color: #ffffff;
}

.dv-save-submit:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.dv-map-toast {
    position: fixed;
    z-index: 2600;
    right: 22px;
    bottom: 22px;
    max-width: min(390px, calc(100% - 32px));
    border: 1px solid var(--dv-gold-line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--dv-paper);
    box-shadow: var(--dv-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    padding: 12px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: opacity 180ms ease, transform 180ms ease;
}

.dv-map-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dv-map-toast.is-error {
    border-color: rgba(117, 24, 39, 0.42);
    color: var(--dv-burgundy);
}

body.is-choosing-saved-place #map {
    cursor: crosshair;
}

@media (max-width: 840px) {
    .dv-mobile-header {
        background: #ffffff;
    }

    .dv-sidebar {
        border-color: rgba(178, 138, 49, 0.34);
        box-shadow: 28px 10px 70px rgba(74, 60, 43, 0.28);
    }

    .dv-map-toast {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        max-width: none;
    }
}

@media (max-width: 520px) {
    .dv-save-form {
        padding: 20px;
    }

    .dv-save-location-options {
        grid-template-columns: 1fr;
    }

    .dv-save-option {
        min-height: 76px;
    }

    .dv-map-stats {
        padding-inline: 9px;
    }

    .dv-map-stat-divider {
        margin-inline: 7px;
    }

    .dv-map-stats > span:not(.dv-map-stat-divider) {
        gap: 4px;
        font-size: 0.7rem;
    }

    .dv-map-stats svg {
        width: 16px;
        height: 16px;
    }
}
