body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
#map {
    flex-grow: 1;
    height: calc(100vh - 80px) !important; /* Adjust 80px to match your footer height */
    margin-top: 30px;
    z-index: 1;
}


.bottom-menu {
        position: fixed;       /* Fixed position to keep it at the bottom */
        bottom: 0;             /* Aligns to the bottom */
        left: 0;               /* Spans from the left edge */
        right: 0;              /* Spans to the right edge */
        background-color: #fff; /* Light background for the menu */
        box-shadow: 0 -2px 4px rgba(0,0,0,0.1); /* Subtle shadow for a floating effect */
    z-index: 100;          /* Ensures it is above other content */
    text-align: center;    /* Centers the content within */
}

.toggle-button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px;
    background: white;
    border: 1px solid #ccc;
    cursor: pointer;
}
#serverBanner {
    display: none;
    background-color: #000000;
    color: #e59a01;
    padding: 10px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
}



.tab-content {
    display: inline-block; /* Inline-block for horizontal alignment */
    padding: 10px 15px;    /* Padding for spacing */
    text-decoration: none; /* Removes underline from links */
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    z-index: 10; /* Ensure it's above the map but below the menu */
    transition: left 0.3s; /* Smooth transition for sliding in */
    background-color: rgba(0, 0, 0, 0.7); /* Corrected semi-transparent black */
    color: white;

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

}
.tab-content.active {
    /*display: block;*/
    left: 0;
    background-color: #007bff; /* Example active color, adjust as needed */
    color: white;
    /* Bring the active tab onscreen */
}
.leaflet-popup-pane {
    z-index: 1200;
}
h3 {
    position: absolute;
    z-index: 1000; /* Ensure the heading appears above the map */
    margin-left: 60px; /* Adjust as needed */
    background-color: white; /* Make it visible on top of the map */
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px;
    border-radius: 5px;
}
.leaflet-marker-icon, .leaflet-div-icon {
    border: none !important;
    background: none !important;
}

.transfer-marker-icon {
    position: relative;
    width: 30px;
    height: 30px;
}

.transfer-marker-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #fb923c, #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-weight: bold;
}

.transfer-marker-bus {
    font-size: 16px;
    transform: translateY(-1px);
}

.transfer-marker-arrow {
    position: absolute;
    color: #ffffff;
    font-size: 14px;
    top: -5px;
    right: -3px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.custom-marker-container img {
    border: none !important;
    background-color: transparent !important;
}

.pin-container {
    width: 2rem;
    height: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: bottom;
}

.behind {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1; /* Behind */
}
.almost-on-top {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 700; /* On top */
}
.on-top {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1000; /* On top */
}

.beacon-effect::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 255, 0.3); /* Blue color */
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.5); opacity: 1; }
     100% { transform: scale(1.5); opacity: 0; }
}

.marker:after {
    content: '';
    width: 1em;
    height: 1em;
    margin: 1em 0 0 .7em;
    background: #ffffff;
    position: absolute;
    border-radius: 50%;
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    -moz-box-shadow: inset -2px 2px 4px hsla(0, 0, 0, .5);
    -webkit-box-shadow: inset -2px 2px 4px hsla(0, 0, 0, .5);
    box-shadow: inset -2px 2px 4px hsla(0, 0, 0, .5);
}
.beacon {
    position: absolute;
    top: 0;
    left: 0;
    height: 50px; /* The beacon effect will be slightly larger than the icon */
    width: 50px;
    border-radius: 50%;
    transform: translate(0%, 0%);
    z-index: 1; /* Lower than the icon */
}
.user-icon {
    width: 50px; /* Width of the user icon */
    height: 50px; /* Height of the user icon */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Higher than the beacon effect */
}

.beacon-effect::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 255, 0.3);
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
    z-index: 350; /* Same as .beacon to keep effect beneath the icon */
}
.beacon:after {
    position: absolute;
    content: "";
    height: 3em;
    width: 3em;
    left: 0;
    top: 0;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #1f41ed;
    -webkit-animation: active 2s infinite linear;
    -moz-animation: active 2s infinite linear;
    animation: active 3s infinite linear;
}

@media (max-width: 768px) {
    .bottom-menu {
        height: 40px; /* Adjust for mobile */
    }
}

@keyframes active {
    0% {
        transform: scale(.1);
        transform: box-shadow(0px 0px 0px 1px #1f41ed);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Styles moved from index.html */
.leaflet-popup-content-wrapper {
    max-height: 80vh; /* Set maximum height to 80% of the viewport height */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds max height */
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000; /* Higher than footer */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow: auto;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 15px;
    border: 1px solid #888;
    width: 80%;
    max-width: 350px; /* Reduced from 400px */
    border-radius: 10px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content h2 {
    margin-bottom: 12px;
    font-size: 1.4em;
}

.qr-code-image {
    max-width: 80%;
    height: auto;
    margin: 20px 0;
    display: block;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.modal-content button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#close-modal {
    background-color: #3b82f6;
    color: white;
}

#native-share-button {
    background-color: #10b981;
    color: white;
}

.modal-content button:hover {
    opacity: 0.9;
}

/* ProdCamp elements */
#prodcamp-widget,
#prodcamp-changelog,
.prodcamp-modal,
.prodcamp-modal-backdrop,
[data-prodcamp-changelog="true"],
.prodcamp-widget-container,
.prodcamp-widget-iframe {
    z-index: 2147483647 !important; /* Maximum z-index value */
}

/* Ensure the widget is visible in fullscreen */
:-webkit-full-screen #prodcamp-widget,
:-moz-full-screen #prodcamp-widget,
:-ms-fullscreen #prodcamp-widget,
:fullscreen #prodcamp-widget,
:-webkit-full-screen .prodcamp-widget-container,
:-moz-full-screen .prodcamp-widget-container,
:-ms-fullscreen .prodcamp-widget-container,
:fullscreen .prodcamp-widget-container,
:-webkit-full-screen .prodcamp-widget-iframe,
:-moz-full-screen .prodcamp-widget-iframe,
:-ms-fullscreen .prodcamp-widget-iframe,
:fullscreen .prodcamp-widget-iframe {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
    width: 300px !important;
    height: 500px !important;
    z-index: 2147483647 !important;
}

/* Footer styles */
.menu-container {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 4px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Adjust body to account for footer */
body {
    padding-bottom: 80px; /* Match this to your footer height */
}

/* Ensure buttons in the footer are clickable */
.menu-container button,
.menu-container a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 12px;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.menu-container button:hover,
.menu-container a:hover {
    color: #334155;
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-container button.routes-active,
.menu-container a.routes-active {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
}

.tab-button.bg-blue-500 {
    color: #2563eb !important;
    background-color: transparent !important;
}

.menu-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 4px;
}

/* Style for the buttons */
button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

/* Update the modal styles to match shadcn aesthetic */
.modal-content, .route-filter-content, .routes-modal-content, .routes-list-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Adjust map height */
#map {
    height: calc(100vh - 60px) !important; /* Adjust to new footer height */
}

/* Adjust controls position */
.leaflet-bottom {
    bottom: 60px !important; /* Adjust to new footer height */
}

/* Adjust body padding */
body {
    padding-bottom: 60px; /* Match new footer height */
}

/* Ensure the active "Map" button in footer has white text */
.menu-container .tab-button.bg-blue-500 {
    color: white;
}

/* Add this to your existing CSS */



/* Adjust header styles to accommodate the GTFS status */
header {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 30px;
}
 

header > div:first-child {
    display: flex;
    gap: 10px;
}

#share-button {
    z-index: 1002;
}

/* Add these new styles */
#gtfs-status {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #f0f0f0;
    padding: 5px 10px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}




/* Rest of your existing styles... */

/* Adjust zoom control buttons to be 40x40 */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 18px !important;
}

/* Style for the locate button to match zoom controls */
.leaflet-control-locate {
    width: 40px !important;
    height: 40px !important;
}

.leaflet-control-locate a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 18px !important;
    text-align: center;
}

/* Ensure the locate icon is centered */
.leaflet-control-locate a .leaflet-control-locate-icon {
    margin: 7px;
}

/* Adjust the position of these controls */
.leaflet-top.leaflet-right {
    top: 60px; /* Adjust this value to position below the GTFS status and header buttons */
    right: 10px;
}

/* ... (rest of your existing styles) ... */

.header-buttons {
    position: fixed;
    top: 40px; /* Adjust this value to position below the GTFS status */
    left: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#share-button,
#changelog {
    font-size: 0.7em;
    z-index: 1000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* You may want to adjust the widths of the buttons if needed */
#share-button {
    width: 70px;
}

#show-stops-button {
    position: fixed;
    bottom: 70px; /* Adjust this value to position it above the footer */
    right: 10px;
    z-index: 1000;
    font-size: 0.8em;
    padding: 3.5px 5.25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#changelog {
    width: auto;
}

.leaflet-control-locate {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
}

.leaflet-control-locate a {
    display: block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
}

.leaflet-control-locate svg {
    fill: #464646;
    vertical-align: middle;
    padding: 6px;
}

.leaflet-control-locate:hover svg {
    fill: #000;
}

.leaflet-control-locate {
    margin-top: 10px !important;
}

.leaflet-control-locate a {
    background-color: #fff;
    border-bottom: none;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
}

.leaflet-control-locate a:hover {
    background-color: #f4f4f4;
}

/* Match zoom control size */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
}

/* Update control styles */
.leaflet-control-zoom {
    margin-bottom: 0 !important;
}

.leaflet-control-locate {
    margin-top: 0 !important;
    margin-right: 13px !important;  /* Move it left by 5px */
    position: relative !important;
    top: -5px !important;  /* Move it up by 5px */
}

.leaflet-control-locate a {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: white !important;
    border-radius: 4px !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
}

/* Ensure controls are stacked properly */
.leaflet-right .leaflet-control {
    clear: both !important;
    margin-bottom: 0 !important;
}

/* Bus stop marker styling */
.bus-stop-marker {
    width: 12px;
    height: 12px;
    background-color: #3388ff;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.bus-stop-icon {
    background: none !important;
}

/* Make sure markers don't have backgrounds */
.leaflet-marker-icon {
    background: none !important;
}

/* Routes Modal Styles - Merged from styles.css */
.routes-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.routes-modal-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.routes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.global-actions button {
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f5f5f5;
}

.city-section {
    margin: 20px 0;
}

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

.city-header h3 {
    margin: 0;
    color: #333;
}

.route-item {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.route-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.route-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.route-item input[type="checkbox"] {
    min-width: 16px;
    min-height: 16px;
}

.routes-list {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Fix for the Route button in the footer */
.routes-active {
    background-color: #4CAF50 !important;
    color: white !important;
}

/* Route Filter Modal Styles */
.route-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-filter-content {
    background: white;
    border-radius: 8px;
    padding: 15px;
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.route-filter-content h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.route-filter-content h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #444;
}

.route-filter-content h4 {
    margin: 8px 0;
    font-size: 1rem;
    color: #555;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

#city-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#city-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.2s;
}

#city-checkboxes label:hover {
    background-color: #e9e9e9;
}

.route-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.route-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
}

/* Style for buttons in the filter modal */
.select-all-routes, .deselect-all-routes {
    padding: 4px 8px;
    background: #e9e9e9;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.select-all-routes:hover, .deselect-all-routes:hover {
    background: #d9d9d9;
}

/* Action buttons at the bottom of the modal */
#reset-filters, #apply-filters {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#reset-filters {
    background: #f1f1f1;
    border: 1px solid #ccc;
    color: #333;
}

#reset-filters:hover {
    background: #e1e1e1;
}

#apply-filters {
    background: #4CAF50;
    color: white;
    border: none;
}

#apply-filters:hover {
    background: #45a049;
}

/* Close button */
#close-filter-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

#close-filter-modal:hover {
    color: #333;
}

/* Ensure zoom controls and locate button are above the footer */
.leaflet-bottom {
    bottom: 60px !important; /* Adjust this value to match your footer height */
}

.leaflet-control-zoom,
.leaflet-control-locate {
    z-index: 1001 !important; /* Ensure these controls are above the footer */
}