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

/* Base styles */
html, body {
    background-color: #2b2929;
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: proximaNova;
}

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

h3 {
    width: fit-content;
}

/* Typography */
.t1, .t2 {
    font-family: proximaNova;
    font-size: 20px;
    display: inline-block;
}

.t1 {
    color: darkgray;
}

.t2 {
    color: orangered;
    font-weight: 20;
}

/* Cursor fix */
.mapboxgl-canvas-container.mapboxgl-interactive,
.mapboxgl-canvas-container.mapboxgl-interactive:active {
    cursor: default;
}

/* Shared button base */
.btn, .btn-error, .mobbtn, .mobcurrent, .moberror, .dropdown-btn {
    font-family: proximaNova;
    font-weight: 500;
    font-size: 16px;
    background-color: transparent;
    padding: 4px 10px;
    border: none;
    box-shadow: none;
    border-radius: 5px;
    transition: 122ms;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

/* Text colors */
.btn, .mobbtn, .dropdown-btn {
    color: #d6d6d6;
}

.btn-error, .moberror {
    color: #9e9e9e;
}

.mobcurrent {
    font-size: 18px;
    text-decoration: underline;
    color: #c62127;
}

/* Hover effects */
.btn:hover, .mobbtn:hover, .dropdown-btn:hover, 
.btn-error:hover, .moberror:hover {
    transform: translateY(-3px) scale(1.1);
    color: #c0c0c0;
}

.mobbtn:hover, .mobcurrent:hover, .moberror:hover {
    transform: translateX(20px) scale(1.1);
}

.mobcurrent:hover {
    color: #c62127;
}

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

.current:hover {
    transform: translateY(-3px) scale(1.1);
    color: #c62127;
}

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

.mobile-container {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 200px;
    height: 189px;
    overflow: hidden;
}

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

.mobile-list {
    position: absolute;
    display: flex;
    top: 50px;
    right: -220px;
    background-color: #bd1e1e;
    width: 200px;
    z-index: 1000;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: right 0.3s ease, opacity 0.3s ease;
}

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

    .btn-container {
        display: none;
    }

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

    .mobile-btn:hover + .mobile-list,
    .mobile-list:hover {
        right: 0;
        opacity: 1;
        pointer-events: auto;
        background-color: #2b2929;
    }
}

/* Bars and headers */
.grey-bar {
    background-color: #2b2929;
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    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%);
}

/* Images & Logo */
.logo {
    width: 200px;
    height: auto;
    margin: 0 0 0 1%;
    margin-right: -325px;
}

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

/* Text Blocks */
.temp, .error {
    color: #d6d6d6;
    width: fit-content;
    font-family: proximaNova;
    text-align: center;
}

.temp {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 200px;
    font-size: 25px;
}

.error {
    width: 100%;
    height: 60%;
    margin-top: 20%;
    font-size: 40px;
}

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

.hover-popup, .custom-popup {
    font-family: proximaNova;
    font-weight: 500;
    font-size: 16px;
    padding: 10px;
}

.hover-popup {
    background-color: transparent;
    color: white;
}

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

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

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

/* Hub Buttons */
#hub-buttons {
    position: absolute;
    left: 25px;
    top: 62px;
    border-radius: 6px;
    padding: 10px;
    background: #2b2929;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}


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

.hub-button:hover {
    background: #c62127;
}

/* Route Toggle */
#route-toggle-buttons {
    position: absolute;
    top: 86%;
    left: 1%;
    z-index: 10;
    padding: 10px;
    background: #2b2929;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Fleet Range */
#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-radius: 6px;
}

#fleet-range div {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

#fleet-range label {
    font-size: 14px;
    cursor: pointer;
}

#fleet-range input[type="checkbox"] {
    display: inline-block !important;
    width: 20px;
    height: 20px;
    transform: scale(1.2);
    accent-color: #5f5f5f;
    margin-right: 6px;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #2b2929;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    right: 0;
    min-width: 150px;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-btn.current {
    font-weight: 600;
    color: #c62127;
    text-decoration: underline;
}



