html, body { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-optical-sizing: auto;
    font-family: "Montserrat", serif;
    font-weight: 400;
    font-style: normal;
    overflow: hidden;
}

div {
    font-optical-sizing: auto;
    font-family: "Montserrat", serif;
    font-weight: 400;
    font-style: normal;
}

ul {
    padding-left: 15px;
    margin: 5px;
}

#map { 
    height: 100vh; 
    width: 100vw; 
    position: absolute; 
    top: 0; 
    left: 0; 
    touch-action: none;
}

#slider-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--slider-bg);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    width: 90%;
    max-width: 370px;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    flex-wrap: wrap;
    touch-action: none;
}

#date-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--slider-bg);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    width: 90%;
    max-width: 370px;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    flex-wrap: wrap;
    touch-action: none;
}

#time-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: var(--slider-track);
    outline: none;
    opacity: 0.9;
    border-radius: 5px;
    flex: 3 0 auto;
    touch-action: none;
}

#time-display {
    color: var(--text-color);
    flex: 1 1 auto;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    touch-action: none;
}

#day-display {
    color: var(--text-color);
    text-align: center;
    flex: 2 0 auto;
    touch-action: none;
}

.svg-icon path{
    fill: red;
}

.slider-button {
    background-color: #ddd;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    flex: 1 0 auto;
    touch-action: none;
}

:root {
    --bg-color: #F8F9FA;
    --text-color: #343A40;
    --slider-bg: rgba(255, 255, 255, 0.8);
    --slider-track: #6C757D;
    --marker-open: light-dark(#28A745, #28D07A);
    --marker-closing: light-dark(#FFC107, #FFAA33);
    --marker-closed: light-dark(#DC3545, #D9534F);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1E1E1E;
        --text-color: #EAEAEA;
        --slider-bg: rgba(50, 50, 50, 0.8);
        --slider-track: #6C757D;
        --marker-open: #28D07A;
        --marker-closing: #FFAA33;
        --marker-closed: #D9534F;
    }
}

.open {
    color: var(--marker-open)
}
.closed {
    color: var(--marker-closed)
}
.closing {
    color: var(--marker-closing)
}
.closing path {
    fill: var(--marker-closing);
}

.closed path {
    fill: var(--marker-closed);
}

.open path {
    fill: var(--marker-open);
}

.popup-container {
    font-size: 14px;
}
.popup-title {
    font-weight: bold;
    font-size:15px;
    display: flex;
    align-items: center;
}

.popup-subtitle {
    font-weight: 500;
    align-items: center;
}

.popup-title a {
    margin-left: 5px;
    text-decoration: none;
    color: #007bff;
}
.popup-address {
    display: flex;
    align-items: center;
    margin-top: 5px;
}
.popup-address a {
    margin-left: 5px;
    text-decoration: none;
    color: #28a745;
}

.bar {
    height: 25px;
    background-color: #3498db;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    margin: 5px 0;
    border-radius: 5px;
    white-space: nowrap;
}

