html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body {
    display: flex;
}

.content-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.map-container svg {
    width: 100%;
    height: 100%;
    max-width: 1200px; /* Adjust this value based on your needs */
    object-fit: contain;
}

.side-nav {
    height: 100vh;
    overflow-y: auto;
    display: flex;
    align-items: center;
    width: 200px;
    padding-left: 20px; /* Add space from the left window edge */
}

* {
    font-family: 'Inter', sans-serif;
}

.map {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hotspot {
    fill: orange;
    cursor: pointer;
    stroke: transparent;
    stroke-width: 3px;
    transition: all 0.3s ease;
}

.hotspot:hover {
    fill: #ff6600;
}

.hotspot.active {
    stroke: #ff6600;
    stroke-width: 3px;
    fill: orange;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: auto;
    border: 2px solid black;
    border-radius: 10px;
    padding: 20px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.location-coords {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.close-button {
    font-size: 24px;
    cursor: pointer;
    color: black;
    padding: 0 0 0 20px;
}

.audio-players {
    margin: 20px 0;
}

.audio-player {
    margin: 10px 0;
}

/* Player container styling */
.player-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.player-graphic {
    flex: 0 0 50px;
}

.player-icon {
    width: 100%;
    height: auto;
    display: block;
}

.player-content {
    flex: 1;
}

/* Audio player styling */
audio {
    width: 100%;
    margin: 10px 0;
    background: transparent !important;
}

/* Webkit (Chrome, Safari) specific styles */
audio::-webkit-media-controls-panel {
    background: transparent !important;
}

audio::-webkit-media-controls-enclosure {
    background: transparent !important;
}

audio::-webkit-media-controls {
    background: transparent !important;
}

/* Make all controls black */
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-timeline-container,
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-volume-slider-container,
audio::-webkit-media-controls-seek-back-button,
audio::-webkit-media-controls-seek-forward-button,
audio::-webkit-media-controls-fullscreen-button,
audio::-webkit-media-controls-rewind-button,
audio::-webkit-media-controls-return-to-realtime-button,
audio::-webkit-media-controls-toggle-closed-captions-button {
    color: black !important;
    filter: brightness(0) !important;
}

/* Firefox specific styles */
@-moz-document url-prefix() {
    audio {
        background: transparent !important;
    }
}

/* Remove any filters that might affect the color */
audio {
    filter: none !important;
}

/* Additional styles to ensure contrast */
.audio-player label {
    color: black;
    font-weight: 500;
}

/* Additional specific targeting */
audio::-webkit-media-controls-timeline {
    background-color: transparent !important;
}

audio::-webkit-media-controls-play-button {
    background-color: transparent !important;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: black !important;
}

audio::-webkit-media-controls-volume-slider {
    background-color: transparent !important;
}

/* Adjust for iPad Pro landscape */
@media only screen 
and (min-device-width: 1024px) 
and (max-device-width: 1366px) 
and (orientation: landscape) {
    .map-container {
        padding: 20px;
        box-sizing: border-box;
    }
}

/* Remove the previous modal background overlay styles */
.modal::before {
    display: none;
}

.custom-audio-player {
    width: 100%;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-button {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: black;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.timeline {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    border-radius: 2px;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: black;
    border-radius: 2px;
    width: 0%;
}

.time {
    font-size: 12px;
    color: black;
    min-width: 100px;
    text-align: right;
}

.time span {
    margin: 0 5px;
}

.audio-section {
    margin: 5px 0;
}

.medium-heading {
    text-align: left;
    margin-bottom: 5px;
    font-size: 1.2em;
    color: #333;
}

.nav-item {
    padding: 15px 25px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 15px 0;
    border: 2px solid transparent;
}



.nav-item.active {
    border: 2px solid black;
    border-radius: 10px;
}

.nav-item span {
    color: #333;
    font-size: 16px;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Add subtle separation between maps */
.map-container + .map-container {
    border-top: 1px solid #eee;
}
