@font-face {
    font-family: "Courier New";
    src: local("CourierNewPSMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-BoldMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-ItalicMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-BoldItalicMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
    font-display: block;
}


@font-face {
    font-family: "Blue Screen";
    src: url("fonts/Blue%20Screen.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

:root {
    color-scheme: dark;
    --map-background: #080908;
    --map-text: #92928c;
    --map-gold: #a79a66;
    --map-border: #292a26;
    --map-popup: #10110f;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

html {
    background: #080908;
}

body {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent;
    color: var(--map-text);
    font-family: "Blue Screen", monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: #11120f;
    background-image: url("images/banner.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.78;
    filter: brightness(0.72) contrast(1.08) saturate(0.75);
    pointer-events: none;
}

.map-page {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0 24px 16px;
    background: transparent;
    border: 10px solid #080908;
}

.map-back:hover,
.map-back:focus-visible {
    color: #555550;
}

.map-title span {
    display: inline;
    margin: 0;
    padding: 0;
}

.map-section {
    position: relative;
    flex: 1 1 auto;
    min-height: 420px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto 20px;
    overflow: hidden;
    border: none;
    background: rgba(17, 18, 15, 0.25);
}

#photo-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    touch-action: pan-x pan-y;
}

#photo-map.leaflet-container {
    background: transparent;
    font-family: "Blue Screen", monospace;
}

#photo-map .leaflet-tile {
    outline: 1px solid transparent;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #11120f;
}

#photo-map .leaflet-tile-pane {
    filter: grayscale(1) brightness(0.72) contrast(1.04);
}

#photo-map .leaflet-control-zoom {
    border: 1px solid #393a34;
    border-radius: 0;
    box-shadow: none;
}

#photo-map .leaflet-control-zoom a {
    width: 30px;
    height: 30px;
    border: 0;
    border-bottom: 1px solid #393a34;
    background: #10110f;
    color: #a5a59d;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 29px;
}

#photo-map .leaflet-control-zoom a:last-child {
    border-bottom: 0;
}

#photo-map .leaflet-control-zoom a:hover {
    background: #22231e;
    color: var(--map-gold);
}

#photo-map .leaflet-control-attribution {
    display: none !important;
}

#photo-map .leaflet-control-attribution a {
    color: #aaa99f;
}

#photo-map .leaflet-popup-content-wrapper,
#photo-map .leaflet-popup-tip {
    background: var(--map-popup);
    color: #92928c;
    border: 1px solid #393a34;
    border-radius: 0;
    box-shadow: none;
}

#photo-map .leaflet-popup-content-wrapper {
    padding: 0;
}

#photo-map .leaflet-popup-content {
    min-width: 130px;
    margin: 14px 16px;
    font-family: "Blue Screen", monospace;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.4px;
}

#photo-map .leaflet-popup-tip {
    box-shadow: none;
}

#photo-map .leaflet-popup-close-button {
    top: 5px;
    right: 6px;
    color: #777770;
    font-size: 18px;
}

#photo-map .leaflet-popup-close-button:hover {
    color: var(--map-gold);
}

.map-popup-name {
    margin: 0 14px 10px 0;
    color: #c0bfb5;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
}

.map-popup-link {
    display: inline-block;
    color: #c7c7c0 !important;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.7px;
}

.map-popup-link:link,
.map-popup-link:visited,
.map-popup-link:active {
    color: #c7c7c0 !important;
}

.map-popup-link:hover,
.map-popup-link:focus-visible {
    color: #e0e0da !important;
    text-decoration: underline;
}

.map-marker-icon {
    display: block;
    width: 18px;
    height: 18px;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
}

.map-marker-icon::before {
    content: "×";
    display: block;
}

.map-marker-icon:hover {
    color: #333;
}

@media screen and (min-width: 601px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .map-page {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        border: none;
    }
}

@media screen and (min-width: 1000px) {
    .map-page {
        padding-right: 32px;
        padding-left: 32px;
    }

    .map-section {
        min-height: 500px;
    }
}

@media screen and (max-width: 600px) {
    body::before {
        inset: 0;
        height: 88vh;
        height: 88dvh;
    }

    .map-page {
        padding: 0 10px 10px;
        border-width: 10px;
    }

    .map-section {
        min-height: 440px;
    }

    #photo-map .leaflet-control-zoom a {
        width: 32px;
        height: 32px;
        line-height: 31px;
    }

    #photo-map .leaflet-control-attribution {
        font-size: 9px;
    }
}

@media screen and (max-width: 380px) {
    .map-section {
        min-height: 400px;
    }

}

nav {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

nav a {
    color: #080908;
    text-decoration: none;
    font-family: "Blue Screen", monospace;
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

nav a:hover {
    color: #33332d;
}

.map-header {
    position: static;
    flex: 0 0 auto;
    width: 100%;
    padding: 94px 0 12px;
    text-align: center;
    background: transparent;
}

.map-title {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    max-width: 1100px;
    margin: 0;
    color: #383834;
    font-family: "Blue Screen", monospace;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    z-index: 5;
}

.map-back {
    position: absolute;
    left: 0;
    top: -4px;
    color: #383834;
    text-decoration: none;
    font-family: "Blue Screen", monospace;
    font-size: 28px;
    line-height: 1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.map-description {
    margin: 0;
    color: #080908;
    font-family: "Blue Screen", monospace;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

@media screen and (max-width: 600px) {
    nav {
        top: 20px;
        width: 94%;
    }

    nav a {
        font-size: 16px;
        letter-spacing: 0.7px;
    }

    .map-header {
        padding: 86px 0 10px;
    }

    .map-title {
        top: 58px;
        width: 88%;
        font-size: 20px;
    }

    .map-back {
        top: -3px;
        font-size: 24px;
    }

    .map-description {
        font-size: 14px;
    }
}

@media screen and (max-width: 380px) {
    nav {
        width: 96%;
    }

    nav a {
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .map-header {
        padding-top: 82px;
    }

    .map-title {
        top: 54px;
        width: 90%;
        font-size: 18px;
    }

    .map-back {
        font-size: 22px;
    }

    .map-description {
        font-size: 13px;
    }
}

.map-view-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    padding: 7px 12px;
    border: 1px solid #393a34;
    border-radius: 0;
    background: #10110f;
    color: #a5a59d;
    font-family: "Blue Screen", monospace;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.5px;
    cursor: pointer;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.map-view-toggle:hover,
.map-view-toggle:focus-visible {
    background: #22231e;
    color: var(--map-gold);
    outline: none;
}

.map-section.is-list #photo-map {
    visibility: hidden;
}

.map-list {
    position: absolute;
    inset: 0;
    z-index: 900;
    overflow-y: auto;
    padding: 22px 70px 26px 22px;
    background: rgba(8, 9, 8, 0.82);
    scrollbar-width: thin;
    scrollbar-color: #080908 transparent;
    overscroll-behavior: contain;
}

.map-list[hidden] {
    display: none;
}

.map-list::-webkit-scrollbar {
    width: 6px;
}

.map-list::-webkit-scrollbar-track {
    background: transparent;
}

.map-list::-webkit-scrollbar-thumb {
    background: #080908;
}

.map-list-group {
    margin: 0 0 22px;
}

.map-list-heading {
    margin: 0 0 12px;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: normal;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.map-list-link {
    display: block;
    width: fit-content;
    padding: 3px 0;
    color: #929292;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.5;
    text-decoration: none;
}

.map-list-link:hover,
.map-list-link:focus-visible {
    color: #d0d0ca;
    text-decoration: underline;
    outline: none;
}

@media screen and (max-width: 600px) {
    .map-list {
        padding: 18px 64px 22px 16px;
    }

    .map-list-heading {
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .map-list-link {
        padding: 5px 0;
        font-size: 12px;
    }

    .map-view-toggle {
        font-size: 13px;
    }
}