:root {
    --page-bg: #f4f6f8;
    --panel: #ffffff;
    --text: #1f2933;
    --muted: #667085;
    --line: #d0d7de;
    --accent: #176b87;
    --accent-dark: #0f4f63;
    --selected: #e0f2f1;
    --danger: #b42318;
    --sidebar-bg: #172126;
    --sidebar-panel: #202d33;
    --sidebar-line: #34444c;
    --sidebar-text: #f4f7f8;
    --sidebar-muted: #b6c3c8;
}

* {
    box-sizing: border-box;
}

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

body {
    overflow: hidden;
    color: var(--text);
    background: var(--page-bg);
    font-family: Arial, Helvetica, sans-serif;
}

body.modal-open {
    overflow: hidden;
}

.site-shell {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    min-height: 100vh;
}

.sidebar {
    position: relative;
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100vh;
    padding: 28px 14px 14px;
    overflow: visible;
    border-right: 1px solid #10171b;
    background: var(--sidebar-bg);
}

.sidebar-header {
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
}

.brand-logo {
    display: block;
    width: min(180px, 100%);
    max-height: 62px;
    object-fit: contain;
    object-position: center;
}

.sidebar-header h1 {
    margin: 4px 0 0;
    color: var(--sidebar-text);
    font-size: 21px;
    line-height: 1.12;
    letter-spacing: 0;
}

.sidebar-header p,
.muted {
    margin: 0;
    color: var(--muted);
}

.sidebar .muted,
.sidebar-header p {
    color: var(--sidebar-muted);
}

.sidebar-header p {
    max-width: 250px;
    font-size: 13px;
    line-height: 1.35;
}

.desktop-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.desktop-nav-item {
    display: grid;
    gap: 5px;
    justify-items: center;
    align-content: center;
    min-height: 66px;
    border: 1px solid var(--sidebar-line);
    border-radius: 8px;
    padding: 8px 4px;
    color: var(--sidebar-text);
    background: #111a1f;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.desktop-nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.desktop-nav-item:hover,
.desktop-nav-item:focus,
.desktop-nav-item.active {
    border-color: #5bb4c8;
    background: #263940;
    outline: none;
}

.desktop-panel {
    position: absolute;
    top: 14px;
    left: calc(100% + 12px);
    z-index: 820;
    width: min(420px, calc(100vw - 360px));
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .24);
    display: none;
}

.desktop-panel.open {
    display: grid;
    gap: 12px;
}

.filter-panel,
.list-panel,
.movie-panel,
.desktop-panel {
    border: 1px solid var(--sidebar-line);
    border-radius: 8px;
    padding: 10px;
    background: var(--sidebar-panel);
}

.sidebar h2,
.sidebar label {
    color: var(--sidebar-text);
}

label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #52646d;
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--sidebar-text);
    background: #111a1f;
    font: inherit;
}

.sidebar input,
.sidebar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #52646d;
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--sidebar-text);
    background: #111a1f;
    font: inherit;
}

.desktop-search-controls {
    display: grid;
    gap: 10px;
}

.search-view-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.search-view-actions button {
    border: 1px solid #52646d;
    border-radius: 8px;
    padding: 9px 11px;
    color: var(--sidebar-text);
    background: #111a1f;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}

.search-view-actions button.primary-action {
    border-color: #5bb4c8;
    color: #ffffff;
    background: var(--accent);
}

.search-view-actions button:hover,
.search-view-actions button:focus {
    border-color: #5bb4c8;
    background: #263940;
    outline: none;
}

.search-view-actions button.primary-action:hover,
.search-view-actions button.primary-action:focus {
    background: var(--accent-dark);
}

.explore-controls {
    display: grid;
    gap: 10px;
}

.explore-controls button,
.explore-result-card button,
.explore-result-card a {
    border: 1px solid #52646d;
    border-radius: 8px;
    padding: 9px 11px;
    color: var(--sidebar-text);
    background: #111a1f;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.explore-controls button.primary-action {
    border-color: #5bb4c8;
    color: #ffffff;
    background: var(--accent);
}

.explore-controls button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.explore-status {
    margin: 0;
    color: var(--sidebar-muted);
    line-height: 1.4;
}

.explore-range-label {
    gap: 10px;
}

.explore-range-label span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.explore-range-label strong {
    color: #d7f6ff;
    white-space: nowrap;
}

.explore-range-label input[type="range"] {
    width: 100%;
    min-height: 28px;
    border: 0;
    padding: 0;
    accent-color: var(--accent);
    background: transparent;
}

.explore-results {
    display: grid;
    gap: 8px;
    max-height: calc(100vh - 270px);
    overflow-y: auto;
}

.explore-result-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--sidebar-line);
    border-radius: 8px;
    padding: 10px;
    color: var(--sidebar-text);
    background: #172126;
}

.explore-result-card div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.explore-result-card span,
.explore-result-card small {
    color: var(--sidebar-muted);
    font-size: 12px;
}

.explore-result-card strong,
.explore-result-card p {
    margin: 0;
    overflow-wrap: anywhere;
}

.explore-result-actions {
    display: grid;
    gap: 8px;
}

.explore-result-card button,
.explore-result-card a {
    color: #ffffff;
    background: var(--accent);
}

.directions-action,
.map-popup-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff !important;
}

.directions-action span,
.map-popup-action span,
.detail-directions span {
    font-size: 14px;
    line-height: 1;
}

.desktop-panel-title h2 {
    margin: 0;
    color: var(--sidebar-text);
    font-size: 18px;
}

.desktop-result-list {
    display: grid;
    gap: 8px;
}

#desktopSearchPanel {
    max-height: calc(100vh - 28px);
    overflow-y: auto;
}

.desktop-contact-card {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
}

.desktop-about-card {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
}

.desktop-about-card h2,
.desktop-about-card h3 {
    margin: 0;
    color: var(--sidebar-text);
}

.desktop-about-card h2 {
    font-size: 20px;
    letter-spacing: 0;
}

.desktop-about-card h3 {
    font-size: 15px;
}

.about-hero {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(91, 180, 200, .38);
    border-radius: 8px;
    padding: 18px 16px;
    color: var(--sidebar-text);
    background: linear-gradient(135deg, #10171b 0%, #1f333b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.about-hero img {
    display: block;
    width: min(230px, 88%);
    max-height: 82px;
    object-fit: contain;
    object-position: center;
}

.desktop-about-card .about-hero p,
.mobile-about-card .about-hero p {
    margin: 0;
    color: #d7f6ff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.desktop-about-card section {
    display: grid;
    gap: 8px;
    justify-items: center;
    width: 100%;
    border: 1px solid var(--sidebar-line);
    border-radius: 8px;
    padding: 14px 12px;
    background: rgba(17, 26, 31, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.desktop-about-card p {
    margin: 0;
    color: var(--sidebar-muted);
    line-height: 1.45;
}

.desktop-about-card strong {
    color: #d7f6ff;
}

.desktop-about-card a {
    color: #d7f6ff;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.desktop-contact-card img {
    width: min(220px, 100%);
    max-height: 90px;
    object-fit: contain;
}

.desktop-contact-card p {
    margin: 0;
    color: var(--sidebar-text);
    line-height: 1.45;
}

.desktop-contact-card a {
    color: #d7f6ff;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.desktop-menu-footer {
    margin-top: auto;
    padding-top: 12px;
    color: var(--sidebar-muted);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.panel-title h2 {
    margin: 0;
    font-size: 18px;
}

#movieCount {
    display: inline-grid;
    min-width: 32px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #2f8ba5;
    font-weight: 700;
}

.location-list {
    display: grid;
    gap: 6px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.movie-list {
    display: grid;
    gap: 8px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.movie-item {
    display: grid;
    gap: 6px;
    border: 1px solid var(--sidebar-line);
    border-radius: 8px;
    padding: 9px;
    color: var(--sidebar-text);
    background: #172126;
    cursor: pointer;
}

.movie-item:hover,
.movie-item:focus {
    border-color: #5bb4c8;
    background: #263940;
    outline: none;
}

.zone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--sidebar-line);
    border-radius: 8px;
    padding: 11px 12px;
    color: var(--sidebar-text);
    background: #172126;
    text-align: left;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.zone-item:hover,
.zone-item:focus,
.zone-item.active {
    border-color: #5bb4c8;
    background: #263940;
    outline: none;
}

.zone-item strong {
    display: inline-grid;
    min-width: 30px;
    height: 26px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #2f8ba5;
    font-size: 12px;
}

.movie-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--sidebar-line);
}

.movie-item header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.movie-item span {
    color: #d7f6ff;
    font-size: 12px;
    font-weight: 800;
}

.movie-item p,
.movie-item small {
    margin: 0;
    color: var(--sidebar-muted);
}

.movie-item small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.movie-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.movie-actions button,
.movie-actions a {
    border: 1px solid #52646d;
    border-radius: 6px;
    padding: 7px 9px;
    color: #fff;
    background: var(--accent);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.movie-actions button:first-child {
    color: var(--sidebar-text);
    background: #111a1f;
}

.movie-actions button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.location-picker {
    position: relative;
}

.location-picker summary {
    display: inline-flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    border: 1px solid #52646d;
    border-radius: 6px;
    padding: 7px 9px;
    color: #ffffff;
    background: var(--accent);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.location-picker summary::-webkit-details-marker {
    display: none;
}

.location-picker summary::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.location-picker[open] summary::after {
    border-top: 0;
    border-bottom: 5px solid currentColor;
}

.location-picker-menu {
    position: absolute;
    right: 0;
    z-index: 900;
    display: grid;
    gap: 4px;
    width: max-content;
    min-width: 190px;
    max-width: min(280px, 78vw);
    margin-top: 6px;
    border: 1px solid var(--sidebar-line);
    border-radius: 8px;
    padding: 6px;
    background: #111a1f;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .34);
}

.location-picker-menu button,
.movie-actions .location-picker-menu button,
.mobile-result-actions .location-picker-menu button {
    justify-content: flex-start;
    width: 100%;
    border-color: transparent;
    color: #ffffff;
    background: transparent;
    text-align: left;
    white-space: normal;
}

.location-picker-menu button:hover,
.location-picker-menu button:focus {
    background: var(--accent);
    outline: none;
}

.location-picker-menu button {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.location-picker-menu button:not(:has(.location-picker-thumb)) {
    grid-template-columns: 1fr;
}

.location-picker-thumb {
    width: 42px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.location-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--sidebar-line);
    border-radius: 8px;
    padding: 8px;
    text-align: left;
    color: var(--sidebar-text);
    background: #172126;
    cursor: pointer;
}

.location-item:hover,
.location-item.selected {
    border-color: #5bb4c8;
    background: #263940;
}

.item-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.item-main strong,
.item-main small {
    overflow-wrap: anywhere;
}

.item-main small {
    color: var(--sidebar-muted);
}

.item-category {
    align-self: start;
    border-radius: 999px;
    padding: 4px 8px;
    color: #d7f6ff;
    background: #0f4f63;
    font-size: 12px;
    font-weight: 800;
}

.map-panel,
#map {
    min-height: 100vh;
}

.map-panel {
    position: relative;
}

.timeline-control {
    position: fixed;
    top: 72px;
    right: 14px;
    z-index: 880;
    display: grid;
    justify-items: center;
    gap: 14px;
    width: 76px;
    min-height: 360px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    padding: 12px 10px;
    color: #ffffff;
    background: rgba(17, 26, 31, .94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .22);
}

.timeline-control-header,
.timeline-control-footer {
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
}

.timeline-control-header span {
    color: var(--sidebar-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-control-header strong {
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.timeline-control-footer {
    color: var(--sidebar-muted);
    font-size: 11px;
    font-weight: 800;
}

.timeline-control input[type="range"] {
    width: 34px;
    height: 260px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
    direction: rtl;
    writing-mode: vertical-lr;
}

.language-bar {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 950;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(17, 26, 31, .94);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .2);
}

.language-bar-item {
    min-width: 46px;
    height: 34px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .14);
    color: var(--sidebar-muted);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
}

.language-bar-item:last-child {
    border-right: 0;
}

.language-bar-item:hover,
.language-bar-item:focus,
.language-bar-item.active {
    color: #ffffff;
    background: var(--accent);
    outline: none;
}

.gtranslate_engine {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.leaflet-control-attribution {
    font-size: 10px;
    opacity: .72;
}

@media (min-width: 861px) {
    .leaflet-right .leaflet-control {
        margin-right: 10px;
    }
}

.cinema-marker {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--osm-icon-color, #734a08);
    background: transparent;
    font-size: 20px;
    line-height: 1;
    text-shadow:
        0 1px 0 #ffffff,
        1px 0 0 #ffffff,
        0 -1px 0 #ffffff,
        -1px 0 0 #ffffff,
        0 3px 9px rgba(15, 23, 42, .3);
}

.osm-marker-icon {
    display: block;
    width: 24px;
    height: 24px;
    color: transparent;
    background: var(--osm-icon-color, #734a08);
    -webkit-mask: var(--osm-icon-url) center / contain no-repeat;
    mask: var(--osm-icon-url) center / contain no-repeat;
    filter:
        drop-shadow(0 1px 0 #ffffff)
        drop-shadow(1px 0 0 #ffffff)
        drop-shadow(0 -1px 0 #ffffff)
        drop-shadow(-1px 0 0 #ffffff)
        drop-shadow(0 3px 7px rgba(15, 23, 42, .3));
}

.custom-marker-icon {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter:
        drop-shadow(0 1px 0 #ffffff)
        drop-shadow(1px 0 0 #ffffff)
        drop-shadow(0 -1px 0 #ffffff)
        drop-shadow(-1px 0 0 #ffffff)
        drop-shadow(0 3px 7px rgba(15, 23, 42, .3));
}

.marker-fallback-icon {
    color: var(--osm-icon-color, #734a08);
}

.map-popup {
    display: grid;
    gap: 8px;
    min-width: 190px;
}

.map-popup h3,
.map-popup p {
    margin: 0;
}

.map-popup p {
    color: var(--muted);
}

.popup-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.map-popup button,
.map-popup-action {
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
    color: #fff;
    background: var(--accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.detail-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-dark);
    font-weight: 800;
}

.detail-external-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 6px;
    padding: 9px 12px;
    color: #ffffff;
    background: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.detail-external-link:hover,
.detail-external-link:focus {
    background: var(--accent-dark);
    outline: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.modal.open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
}

.modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(560px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    overflow-y: auto;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .28);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, .94);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.detail-content {
    padding: 0;
}

.detail-card {
    overflow: hidden;
}

.detail-hero {
    position: relative;
    min-height: 210px;
    background: #edf2f5;
}

.detail-hero img,
.detail-hero-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 210px;
    object-fit: cover;
}

.detail-hero img.portrait {
    max-height: min(72vh, 680px);
    object-fit: contain;
    background: #edf2f5;
}

.detail-hero-placeholder {
    background:
        linear-gradient(135deg, rgba(23, 107, 135, .22), rgba(23, 33, 38, .08)),
        #edf2f5;
}

.detail-share-wrap {
    position: absolute;
    bottom: -22px;
    left: 22px;
    z-index: 2;
}

.detail-share {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .24);
    cursor: pointer;
}

.detail-share.shared {
    background: var(--success, #027a48);
}

.detail-share svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.detail-share-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    display: grid;
    gap: 4px;
    min-width: 210px;
    overflow: hidden;
    border: 1px solid #dbe3ea;
    border-radius: 10px;
    padding: 6px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .32);
}

.detail-share-menu[hidden] {
    display: none;
}

.detail-share-menu button {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text);
    background: #ffffff;
    text-align: left;
    font: inherit;
    font-weight: 800;
}

.detail-share-menu button:hover,
.detail-share-menu button:focus {
    color: var(--accent-dark);
    background: #e8f4f7;
    outline: none;
}

.share-option-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
}

.share-option-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.share-option-icon.mail {
    background: #176b87;
}

.share-option-icon.whatsapp {
    background: #128c7e;
}

.share-option-icon.copy {
    background: #344054;
}

.detail-body {
    display: grid;
    gap: 16px;
    padding: 34px 24px 24px;
    line-height: 1.55;
}

.detail-header {
    display: grid;
    gap: 4px;
}

.detail-header p {
    margin: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.detail-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.15;
}

.detail-meta {
    display: grid;
    gap: 10px;
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.detail-meta div {
    display: grid;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf1f4;
}

.detail-meta div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.detail-location-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-location-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.detail-location-list li:not(:has(.detail-location-image)) {
    grid-template-columns: 1fr;
}

.detail-location-image {
    width: 86px;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
}

.detail-location-list li > div {
    display: grid;
    gap: 3px;
}

.detail-location-list strong {
    color: var(--text);
}

.detail-location-list span {
    color: var(--muted);
    font-size: 13px;
}

.detail-production-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.detail-production-meta div {
    display: grid;
    gap: 3px;
}

.detail-production-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.detail-production-meta dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.detail-section {
    display: grid;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.detail-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-section h3 {
    margin: 0;
    color: var(--accent-dark);
    font-size: 15px;
}

.detail-section p {
    margin: 0;
    color: #344054;
}

.detail-video {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #10171b;
}

.detail-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.detail-gallery-button {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
}

.detail-gallery-button:hover,
.detail-gallery-button:focus {
    border-color: var(--accent);
    outline: none;
}

.detail-gallery-button img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.detail-gallery-viewer {
    display: none;
}

.detail-gallery-viewer.open {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: block;
}

.detail-gallery-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
}

.detail-gallery-viewer-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(960px, calc(100vw - 28px));
    height: calc(100vh - 28px);
    margin: 0;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 22px 70px rgba(15, 23, 42, .42);
}

.detail-gallery-viewer-dialog img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #10171b;
}

.detail-gallery-viewer-dialog figcaption {
    max-height: 72px;
    overflow-y: auto;
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
}

.detail-gallery-viewer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, .72);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.error-text {
    color: var(--danger);
}

.mobile-bottom-nav,
.mobile-panel {
    display: none;
}

@media (max-width: 860px) {
    body {
        overflow: hidden;
    }

    .site-shell {
        grid-template-columns: 1fr;
        min-height: 100dvh;
    }

    .map-panel,
    #map {
        min-height: calc(100dvh - 72px);
    }

    .timeline-control {
        top: calc(58px + env(safe-area-inset-top));
        right: 10px;
        z-index: 840;
        width: 64px;
        min-height: 230px;
        padding: 10px 8px;
    }

    .timeline-control input[type="range"] {
        width: 32px;
        height: 148px;
        margin: 0;
    }

    .timeline-control-header strong {
        font-size: 18px;
    }

    .language-bar {
        top: calc(10px + env(safe-area-inset-top));
        right: 10px;
    }

    .language-bar-item {
        min-width: 42px;
        height: 32px;
        font-size: 11px;
    }

    .sidebar {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: 72px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        border-top: 1px solid #10171b;
        background: #172126;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
    }

    .mobile-nav-item {
        display: grid;
        gap: 3px;
        justify-items: center;
        align-content: center;
        min-width: 0;
        border: 0;
        border-radius: 8px;
        padding: 6px 2px;
        color: #ffffff;
        background: transparent;
        font: inherit;
        font-size: 10px;
        font-weight: 800;
        cursor: pointer;
    }

    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    .mobile-nav-item.active {
        color: #ffffff;
        background: #263940;
    }

    .mobile-panel {
        position: fixed;
        right: 10px;
        bottom: 82px;
        left: 10px;
        z-index: 850;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        height: min(72dvh, 620px);
        max-height: min(72dvh, 620px);
        overflow: hidden;
        transform: translateY(calc(100% + 96px));
        transition: transform .22s ease;
        border: 1px solid #d7dee5;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 18px 46px rgba(15, 23, 42, .24);
    }

    #mobileSearchPanel {
        grid-template-rows: auto auto auto minmax(0, 1fr);
    }

    #mobileAboutPanel {
        grid-template-rows: auto auto minmax(0, 1fr);
    }

    .mobile-panel.open {
        transform: translateY(0);
    }

    .mobile-panel-handle {
        width: 42px;
        height: 4px;
        margin: 10px auto 4px;
        border-radius: 999px;
        background: #c4ccd3;
    }

    .mobile-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 14px 10px;
        border-bottom: 1px solid #eef1f4;
    }

    .mobile-panel-header h2 {
        margin: 0;
        font-size: 18px;
    }

    .mobile-panel-close {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 1px solid #b42318;
        border-radius: 999px;
        color: #ffffff;
        background: #d92d20;
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .mobile-search-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        min-height: 0;
        padding: 12px 14px;
        border-bottom: 1px solid #eef1f4;
    }

    .mobile-search-controls label:first-child {
        grid-column: 1 / -1;
    }

    .mobile-search-actions {
        padding: 12px 14px;
        border-bottom: 1px solid #eef1f4;
    }

    .mobile-search-actions button {
        border-color: #c8d1da;
        color: var(--text);
        background: #ffffff;
    }

    .mobile-search-actions button.primary-action,
    .mobile-search-actions button.primary-action:hover,
    .mobile-search-actions button.primary-action:focus {
        border-color: var(--accent);
        color: #ffffff;
        background: var(--accent);
    }

    .mobile-panel label {
        color: #344054;
        font-size: 12px;
    }

    .mobile-panel input,
    .mobile-panel select {
        width: 100%;
        min-height: 40px;
        border: 1px solid #c8d1da;
        border-radius: 8px;
        padding: 8px 10px;
        color: var(--text);
        background: #ffffff;
        font: inherit;
    }

    .mobile-explore-content {
        display: grid;
        gap: 12px;
        padding: 12px 14px 16px;
    }

    .mobile-explore-content .explore-controls button,
    .mobile-explore-content .explore-result-card button,
    .mobile-explore-content .explore-result-card a {
        border-color: #c8d1da;
        color: var(--text);
        background: #ffffff;
    }

    .mobile-explore-content .explore-controls button.primary-action,
    .mobile-explore-content .explore-result-card button,
    .mobile-explore-content .explore-result-card a {
        border-color: var(--accent);
        color: #ffffff;
        background: var(--accent);
    }

    .mobile-explore-content .explore-status,
    .mobile-explore-content .explore-result-card span,
    .mobile-explore-content .explore-result-card small {
        color: var(--muted);
    }

    .mobile-explore-content .explore-range-label strong {
        color: var(--accent-dark);
    }

    .mobile-explore-content .explore-results {
        max-height: calc(min(72dvh, 620px) - 230px);
        overflow-y: auto;
    }

    .mobile-explore-content .explore-result-card {
        border-color: #dbe2e8;
        color: var(--text);
        background: #ffffff;
    }

    .mobile-result-list {
        display: grid;
        align-content: start;
        gap: 10px;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        padding: 12px 14px 24px;
    }

    #mobileMoviesPanel .mobile-result-list {
        max-height: none;
    }

    .mobile-result-list .zone-item {
        border-color: #dbe2e8;
        color: var(--text);
        background: #ffffff;
    }

    .mobile-result-list .zone-item:hover,
    .mobile-result-list .zone-item:focus,
    .mobile-result-list .zone-item.active {
        border-color: var(--accent);
        color: var(--accent-dark);
        background: #e8f4f7;
    }

    .mobile-result-card {
        display: grid;
        grid-template-columns: 86px 1fr;
        gap: 10px;
        border: 1px solid #dbe2e8;
        border-radius: 10px;
        padding: 9px;
        background: #ffffff;
    }

    .mobile-result-card > img,
    .mobile-thumb-placeholder {
        width: 86px;
        height: 86px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #dbe2e8;
    }

    .mobile-thumb-placeholder {
        background: #edf2f5;
    }

    .mobile-result-card > div:first-of-type {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .mobile-result-card span {
        color: var(--accent-dark);
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-result-card strong,
    .mobile-result-card p {
        overflow-wrap: anywhere;
    }

    .mobile-result-card p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
    }

    .mobile-result-actions {
        grid-column: 1 / -1;
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }

    .mobile-result-actions button,
    .mobile-result-actions a {
        border: 1px solid #c8d1da;
        border-radius: 8px;
        padding: 8px 10px;
        color: #ffffff;
        background: var(--accent);
        font: inherit;
        font-size: 13px;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
    }

    .mobile-result-actions button:first-child {
        color: var(--text);
        background: #ffffff;
    }

    .mobile-result-actions button:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    .mobile-empty {
        margin: 0;
        color: var(--muted);
    }

    .mobile-about-card {
        display: grid;
        align-content: start;
        gap: 12px;
        justify-items: center;
        min-height: 0;
        overflow-y: auto;
        padding: 14px;
        text-align: center;
    }

    .mobile-about-card .about-hero {
        border-color: rgba(23, 107, 135, .3);
        overflow: visible;
        padding: 16px 14px;
    }

    .mobile-about-card .about-hero img {
        width: min(240px, 92%);
        max-height: none;
        height: auto;
    }

    .mobile-about-card section {
        display: grid;
        gap: 8px;
        justify-items: center;
        width: 100%;
        border: 1px solid #dbe2e8;
        border-radius: 10px;
        padding: 14px 12px;
        background: #ffffff;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    }

    .mobile-about-card h3,
    .mobile-about-card p {
        margin: 0;
    }

    .mobile-about-card h3 {
        color: var(--text);
        font-size: 15px;
    }

    .mobile-about-card p {
        color: var(--muted);
        line-height: 1.45;
    }

    .mobile-about-card strong {
        color: var(--accent-dark);
    }

    .mobile-about-card a {
        color: var(--accent-dark);
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .modal {
        padding: calc(12px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom));
        overflow: hidden;
    }

    .modal.open {
        display: grid;
        align-items: start;
    }

    .modal-dialog {
        position: relative;
        top: auto;
        left: auto;
        width: min(560px, 100%);
        max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        margin: 0 auto;
        transform: none;
    }

    .modal-close {
        position: sticky;
        top: 10px;
        display: grid;
        place-items: center;
        margin: 10px 10px -48px auto;
    }

    .detail-gallery-viewer-close {
        top: calc(10px + env(safe-area-inset-top));
        right: calc(10px + env(safe-area-inset-right));
    }

    .detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .sidebar {
        padding: 14px;
    }

    .location-item {
        grid-template-columns: 1fr;
    }

    .item-category {
        justify-self: start;
    }

    .modal-dialog {
        width: 100%;
        max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }

    .detail-header h2 {
        font-size: 22px;
    }

    .detail-body {
        padding: 34px 18px 20px;
    }

    .detail-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .detail-gallery-button img {
        aspect-ratio: 1 / 1;
    }

    .detail-gallery-viewer.open {
        position: fixed;
        inset: 0;
    }

    .detail-gallery-viewer-dialog {
        top: 50dvh;
        width: calc(100vw - 18px);
        height: calc(100dvh - 18px);
    }

    .detail-gallery-viewer-dialog img {
        max-height: none;
    }
}
