@font-face {
    font-family: proximaNova;
    src: url('media/Proxima\ Nova\ Bold\ Italic.otf');
}

.mapboxgl-canvas-container.mapboxgl-interactive,
.mapboxgl-canvas-container.mapboxgl-interactive:active {
    cursor: default;
}

html {
    background-color: #2b2929;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
}

h3{
    font-family: proximaNova;
    width: fit-content;
}

.t1 {
    color: darkgray;
    font-family: proximaNova;
    font-size: 20px;
    display: inline-block;
}

.t2 {
    color: orangered;
    font-family: proximaNova;
    font-size: 20px;
    font-weight: 20;
    display: inline-block;
}

.btn-container {
    flex: 1;
    display: flex;
    justify-content: right;
    margin-right: 5%;
}

.mobile-container {
    display:none;
    position: absolute;
    right: 0%;
    top: 0px;
    width: 200px;
    height: 189px;
    overflow: hidden; /* Hide overflow to keep the menu off-screen */
}

.mobile-list {
    position: absolute;
    display: flex;
    top: 50px;
    right: -220px; /* Start off-screen */
    background-color: #bd1e1e;
    width: 200px;
    height: auto;
    z-index: 1000;
    flex-direction: column;
    opacity: 0;
    pointer-events: none; /* Prevent interaction when hidden */
    transition: right 0.3s ease, opacity 0.3s ease;
}

.mobile-btn {
    display: inline-flex;
    position: absolute;
    height: 50px;
    width: 50px;
    right: 1%;
    transition: transform 0.3s ease;
}

.mobbtn {
    font-family: proximaNova;
    font-weight: 500;
    font-size: 16px;
    color: #d6d6d6;
    background-color: transparent;
    padding: 4px 10px;
    border: transparent;
    box-shadow: rgb(0, 0, 0) 0px 0px 0px 0px;
    border-radius: 5px;
    transition: 122ms;
    transform: translateX(0);
    display: inline-flex;
    flex-direction: row;
    align-items: relative;
    cursor: pointer;
}

.mobbtn:hover {
    transition: 122ms;
    transform: translateX(20px) scale(1.1);
    background-color: transparent;
    color: #c0c0c0;
}

.mobcurrent {
    font-family: proximaNova;
    font-weight: 500;
    font-size: 18px;
    text-decoration: underline;
    color: #c72129;
    background-color: transparent;
    padding: 4px 10px;
    border: transparent;
    box-shadow: rgb(0, 0, 0) 0px 0px 0px 0px;
    border-radius: 5px;
    transition: 122ms;
    transform: translateX(0);
    display: inline-flex;
    flex-direction: row;
    align-items: relative;
    cursor: pointer;
}

.mobcurrent:hover {
    transition: 122ms;
    padding: 4px 10px;
    transform: translateX(20px) scale(1.1);
    background-color: transparent;
    color: #c72129;
}

.moberror {
    font-family: proximaNova;
    font-weight: 500;
    font-size: 16px;
    color: #9e9e9e;
    background-color: transparent;
    padding: 4px 10px;
    border: transparent;
    box-shadow: rgb(0, 0, 0) 0px 0px 0px 0px;
    border-radius: 5px;
    transition: 122ms;
    transform: translateX(0);
    display: inline-flex;
    flex-direction: row;
    align-items: relative;
    cursor: pointer;
}

.moberror:hover {
    transition: 122ms;
    transform: translateX(20px) scale(1.1);
    background-color: transparent;
    color: #9e9e9e;
}

@media (max-width: 1300px) {
    .mobile-container {
        display: flex;
    }
    .btn-container {
        display: none;
    }

    .mobile-btn {
        display: inline-flex;
    }

    .mobile-btn:hover {
        transform: rotate(90deg);
    }

    /* Ensure menu stays open when hovering */
	.mobile-btn:hover + .mobile-list,
    .mobile-list:hover {
        right: 0; /* Slide in */
        opacity: 1; /* Make visible */
        pointer-events: auto; /* Allow interactions */
        background-color: #2b2929;
    }
}

.btn {
    font-family: proximaNova;
    font-weight: 500;
    font-size: 16px;
    color: #d6d6d6;
    background-color: transparent;
    padding: 4px 10px;
    border: transparent;
    box-shadow: rgb(0, 0, 0) 0px 0px 0px 0px;
    border-radius: 5px;
    transition: 122ms;
    transform: translateY(0);
    display: inline-flex;
    flex-direction: row;
    align-items: relative;
    cursor: pointer;
}

.btn:hover {
    transition: 122ms;
    transform: translateY(-3px) scale(1.1);
    background-color: transparent;
    color: #c0c0c0;
}

.btn-error {
    font-family: proximaNova;
    font-weight: 500;
    font-size: 16px;
    color: #9e9e9e;
    background-color: transparent;
    padding: 4px 10px;
    border: transparent;
    box-shadow: rgb(0, 0, 0) 0px 0px 0px 0px;
    border-radius: 5px;
    transition: 122ms;
    transform: translateY(0);
    display: inline-flex;
    flex-direction: row;
    align-items: relative;
    cursor: pointer;
}

.btn-error:hover {
    transition: 122ms;
    transform: translateY(-3px) scale(1.1);
    background-color: transparent;
    color: #9e9e9e;
}


.grey-bar {
    position: relative;
    background-color: #2b2929;
    height: 50px;
    width: 100%;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
}

.logo {
    width: 200px;  
    height: auto;
    margin-right: -325px;
    margin-left: 1%;
}

.temp {
    color: #d6d6d6;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    height: fit-content;
    margin-top: 200px;
    font-size: 25px;
    font-family: proximaNova;
    text-align: center;
}

.error {
    color: #d6d6d6;
    width: 100%;
    height: 60%;
    margin-top: 20%;
    font-size: 40px;
    font-family: proximaNova;
    text-align: center;
}

.bottom-grey-bar {
    background-color: #474747;
    opacity: 0.6;
    width: fit-content;
    height: 3%;
    position: fixed;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
}


.current {
    font-size: 18px;
    text-decoration: underline;
    color: #c72129;
}

.current:hover {
    transition: 122ms;
    padding: 4px 10px;
    transform: translateY(-3px) scale(1.1);
    background-color: transparent;
    color: #c72129;
}

.top-left-image {
    position: absolute;
    top: -12px;
    left: 36px;
    margin: 0px;
}

#map-container {
    position: absolute;
    width: calc(100vw - 1%);
    height: calc(100vh - 80px);
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}


.hover-popup {
    background-color: transparent;
    color: white;
    font-family: proximaNova;
    font-weight: 500;
    font-size: 16px;
    padding: 10px;
}

.mapboxgl-popup-content {
    width: fit-content;
    max-height: fit-content;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-popup {
    background-color: rgb(27, 27, 27);
    opacity: 0.8;
    color: white;
    font-family: proximaNova;
    font-weight: 300;
    font-size: 12px;
    padding: 10px;
}

.mapboxgl-popup-tip {
    display: none;
}

#hub-buttons {
    position: absolute;
    left: 25px;
    top: 62px;
    border-radius: 5px;
}

.hub-button {
    font-family: proximaNova;
    font-weight: 300;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    padding: 8px 12px;
    cursor: pointer;
    background: #424242;
    color: #d6d6d6;
    border: none;
    border-radius: 3px;
}

.hub-button:hover {
    background: #0056b3;
}



h1, h2, h3, h4, h5, h6, p {
    margin: 0;
  }


  #fleet-range.mapbox-controls {
    position: absolute;
    top: 5%;
    left: 1%;
    z-index: 10;
    font-family: proximaNova;
    font-weight: 300;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px;
    background: #424242;
    color: #d6d6d6;
    border: none;
    border-radius: 6px;
  }
  
  #fleet-range div {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
  }
  
  #fleet-range label {
    color: #d6d6d6;
    font-size: 14px;
    font-family: proximaNova;
    cursor: pointer;
  }
  
  #fleet-range input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #5f5f5f;
    margin-right: 6px;
  }
  
  #fleet-range input[type="checkbox"] {
    display: inline-block !important;
    background: red;
    width: 20px;
    height: 20px;
  }
