body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
}

#menu {
    background: #000;
    position: relative;
    z-index: 9999;
    width: 250px;
    text-align: left;
    font-family: 'franklin-gothic-urw', sans-serif;
    font-weight: 500;
    margin-bottom: 30px;
    text-transform: capitalize;
}

#menu a {
    font-size: 13px;
    color: #404040;
    display: block;
    margin: 0;
    padding: 0;
    padding: 10px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    text-align: left;
    background: #e1e1e1;
}

#link {
    color: #cf3336;
}

a {
    color: #cf3336;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  /* Loader Animation */
  .loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #cf3336; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

.tom-map-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: auto;
    z-index: 10;
    display: flex;
    justify-content: left;
    pointer-events: none;
    position: absolute;
}

.overlay-image {
    width: 10%;
    max-width: 350px;
    height: auto;
}

@media (max-width: 1024px) {
    .overlay-image {
        width: 20%;
    }
}

@media (max-width: 768px) {
    .tom-map-overlay {
        justify-content: center;
        left: 0;
    }
}

#closeButton {
    float: right;
    z-index: 9999;
    position: fixed;
    background-color: white;
    color: #cf3336;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 32px;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    top: 10px;
    margin-left: 10px;
}

#closeButton:hover {
    background-color: #cf3336;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#closeButton:focus {
    outline: none;
    background-color: #e0e0e0;
}

#city-filter {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow-y: auto;
}

#city-filter div {
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#city-filter strong {
    cursor: pointer;
    padding: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#city-filter div:hover, strong:hover {
    background-color: lightgray;
    color: black;
}

#city-filter div.selected {
    color: #cf3336;
}

#city-filter strong.selected {
    color: #cf3336;
}

.mapboxgl-ctrl-geolocate {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, .9) !important;
    width: auto !important;
    /* Allow width to adjust to content */
    white-space: nowrap !important;
    /* Prevent text from wrapping */
    min-width: 140px !important;
    /* Set a minimum width if needed */
}

.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23cf3336'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E");
}

.geolocate-helper-text {
    margin: 0 20px 0 8px !important;
    /* Space between icon and text */
    font-size: 14px !important;
    color: #cf3336 !important;
    /* Adjust text color */
    font-weight: bold;
}

#mobilemenubtn {
    opacity: 0;
}

@media (max-width: 1024px) {
    #mobilemenubtn {
        background-color: #cf3336;
        z-index: 9;
        position: absolute;
        text-align: center;
        color: #fff;
        width: auto;
        font-weight: bold;
        font-family: 'franklin-gothic-urw', sans-serif;
        border-radius: 8px;
        margin: 10px 0 0 10px;
        letter-spacing: .1em;
        padding: 10px;
        opacity: 1;
        cursor: pointer;
    }
}

.info-panel {
    position: absolute;
    top: 0;
    right: -30vw;
    width: 30vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    transition: right 0.5s;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .info-panel {
        right: -100vw;
        width: 100vw;
    }

    .box {
        transition: all 0.7s ease-in-out 0s;
    }

    .menuClosed {
        transform: translateY(100%);
    }

    .navigation_manage_cookies {
        position: absolute;
        left: 150px;
        bottom: 9px;
    }
}

.header-bar {
    height: 250px;
    background-color: #cf3336;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    /* Stack img and p vertically */
    justify-content: center;
    align-items: center;
    padding: 5px;
    overflow: hidden;
}

.static-tom {
    max-height: calc(100% - 125px);
    max-width: calc(100% - 125px);
    object-fit: contain;
}

.dynamic-img {
    height: 60px;
    /* Adjust icon size for SVG */
    width: auto;
    object-fit: contain;
}

.info-panel.open {
    right: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    margin-top: 240px;
}

.info-content img {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
}

.infobox-sponsorlogo {
    display: flex;                   
    align-items: center; 
    justify-content: center;     
    flex-direction: column;
    gap: 10px;      
    background: #000;
    margin: 0;
    width: 100%;
    padding: 20px;
    color: #fff;
    font-family: 'franklin-gothic-urw', sans-serif;
    font-weight: bold;
}

.infobox-sponsorlogo img.sponsor-logo {
    margin-left: 10px;              
    max-height: 40px;              
    width: auto;                    
}

h1 {
    font-family: 'franklin-gothic-urw', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 36px;
    padding: 0;
    margin: 0;
    text-align: left;
    letter-spacing: .02em;
}

@media (max-width: 425px) {
    h1 {
        font-size: 18px;
        width: 90%;
    }
}


h2 {
    font-family: 'franklin-gothic-urw', sans-serif;
    color: #000;
    font-size: 16px;
    margin-top: 0;
}

h2.infobox-name {
    font-size: 36px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: 'franklin-gothic-urw', sans-serif;
    line-height: 1em;
    font-weight: 700;
    text-align: center;
}

h4.infobox-date {
    font-size: 20px;
    margin-bottom: 10px;
    display: inline;
    font-family: 'franklin-gothic-urw', sans-serif;
}

p.infobox-dateline {
    margin: 0;
    display: inline;
    font-family: 'franklin-gothic-urw', sans-serif;
    font-size: 18px;
}

p.infobox-type {
    font-family: 'franklin-gothic-urw', sans-serif;
    font-size: 18px;
    color: #fff;
    text-align: center;
    margin-top: 10px;
}

.box {
    position: absolute;
    bottom: 85px;
    z-index: 1;
    padding: 16px;
    font-family: 'franklin-gothic-urw', sans-serif;
    color: #f7f7ec;
    font-weight: 500;
    background: rgba(0, 0, 0, .65);
}

@media (max-width: 1024px) {
    .box {
        bottom: 0;
        position: fixed;
        top: auto;
        left: auto;
        width: 100%;
        border-radius: 0;
        border-top: solid .5px #fff;
        border-bottom: none;
        border-left: none;
        border-right: none;
        background: rgba(0, 0, 0, .85);
    }
}

.mapboxgl-popup-content {
    background-color: rgba(0, 0, 0, 0.9) !important;
    color: #cf3336 !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    font-family: 'franklin-gothic-urw', sans-serif !important;
}

.mapboxgl-popup-tip {
    border-top-color: rgba(0, 0, 0, 0.9) !important;
}

label img {
    height: 24px;
    width: 24px;
    margin-right: 10px;
}

input {
    cursor: pointer;
    height: 18px;
    width: 18px;
    margin-right: 10px;
    border-radius: 5px;
}

.sp-message-open body {
    height: 100%;
}
