@font-face {
    font-family: 'Fira Sans';
    src: local('Fira Sans Bold'),
        url('/fonts/FiraSans-Bold.woff2') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Fira Sans';
    src: local('Fira Sans Regular'),
        url('/fonts/FiraSans-Regular.woff2') format('woff');
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: Helvetica, sans-serif;
    font-size: 100%;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
    margin: auto;
    max-width: 530px;
}

header {
    background: #054a32;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px -1px;
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    height: 60px;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
}

.dark-mode header {
    background-color: hsl(159.1, 41.3%, 15.5%);
}

header h1 {
    color: #89bd6b;
    text-shadow: #000 0px 0px 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('/img/logo.png');
    background-repeat: no-repeat;
    background-size: 33px;
    background-position: 13px 12px;
    padding: 0;
    margin: -4px 0 0 0;
    font-family: 'Fira Sans';
    font-weight: 700;
    font-size: 1.3em;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.dark-mode header h1 {
    color: hsl(98, 34.3%, 49%);
}

header h1 a {
    color: #FFF;
    text-decoration: none;
}

header h1 #subheader {
    font-size: 0.6em;
    font-weight: normal;
    text-shadow: none;
    color: #CCC;
    display: inline-block;
    position: absolute;
    top: 30px;
}

input[type=number],
input[type=text] {
    margin-left: 10px;
    padding: 10px;
    margin-right: 5px;
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;

}

input#stopNumber {
    border-bottom: 1px solid #DDD;
    background: url('/img/location-gray.png') no-repeat;
    background-size: 15px;
}

input#lineNumber {
    background: url('/img/bus-gray.png') no-repeat;
    background-size: 19px;
}

input#stopNumber,
input#lineNumber {
    height: auto;
    padding: 10px 0 10px 35px;
    background-position: 5px 9px;
    font-size: 0.9em;
}

button,
.dialog button:last-child {
    padding: 10px 20px;
    background-color: hsl(168.8, 48.2%, 32.5%);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

button.secondary,
.dialog-content button:first-child {
    color: hsl(168.8, 48.2%, 32.5%);
    border: 1px solid hsl(168.8, 48.2%, 32.5%);
    background-color: white;
}

button.terciary {
    color: hsl(168.8, 48.2%, 32.5%);
    text-decoration: underline;
    background-color: transparent;
}

button:disabled,
.dialog-content button:last-child:disabled {
    background-color: hsl(168.8, 18.2%, 32.5%);
    opacity: 0.5;
}

.dark-mode .dialog-content button:first-child {
    color: hsl(0, 0%, 92.9%);
    border: 1px solid hsl(0, 0%, 92.9%);
    background-color: hsl(0, 0%, 20%);
}

button#addButton {
    margin: 0em 19px 0 0;
    background-color: #c1c4ca;
    background-image: url("/img/add.png");
    background-size: 16px;
    width: 16px;
    height: 16px;
    text-indent: -9999px;
    cursor: pointer;
    padding: 16px;
    background-repeat: no-repeat;
    color: rgb(5, 5, 6);
    border-radius: 50%;
    border: 1px solid #cdcdcd;
    display: block;
    background-position: 8px 8px;
    z-index: 2;
}

button#addButton:active {
    background-color: #73767a;
}

button#removeAllButton {
    color: hsl(0, 0%, 44%);
    font-size: 0.9em;
    font-weight: normal;
}

.dark-mode button#removeAllButton {
    color: hsl(0, 0%, 55%);
}

button#installButton {
    background-color: #a7cafb;
    border-radius: 2em;
    height: 39px;
    position: absolute;
    left: 10px;
    top: 5px;
    padding: 10px 17px;
    font-weight: bold;
    font-size: 14px;
    color: #304868;
}

button#installIosButton {
    background-color: #007aff;
    border-radius: 2em;
    height: 34px;
    position: absolute;
    left: 10px;
    top: 7px;
    padding: 7px 17px;
    font-size: 14px;
    color: #FFF;
    font-weight: bold;
    font-family: SF Pro Text, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
}

#formulario {
    padding: 0;
    z-index: 101;
    position: relative;
    max-width: 95%;
    margin: 50px auto 0 auto;
}

#formulario form {
    background: #FFF;
    margin: 2px auto 4px auto;
    position: relative;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 7px 0px #E4E4E4;
    height: auto;
    max-width: 360px;
}

#formulario form.featured {
    box-shadow: 0 0 3px 2px #bbd5d0;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 3px 2px #57978b;
    }

    to {
        box-shadow: 0 0 5px 3px #bbd5d0;
    }
}

#formulario #inputs {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clear-input {
    position: absolute;
    right: 82px;
    top: 25%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 0 5px;
    z-index: 2;
}

.clear-input:hover {
    color: #333;
}

.dark-mode .clear-input {
    color: #ccc;
}

.dark-mode .clear-input:hover {
    color: #fff;
}

#stopNumber,
#lineNumber {
    padding-right: 30px;
}

#formulario #inputs input {
    position: relative;
}

#autocompleteResults {
    margin-top: 12px;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
}

.autocomplete-header {
    font-size: 0.8em;
    background-color: rgb(51, 51, 51);
    text-align: center;
    color: rgb(238, 238, 238);
    padding: 3px 0;
}

.autocomplete-result {
    cursor: pointer;
    margin: 2px;
    padding: 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
}

.dark-mode .autocomplete-result {
    border-bottom: 1px solid #444;
}

.autocomplete-result .numParada {
    background-color: #054a32;
    color: #EEE;
    padding: 0 3px;
    border-radius: 5px;
    font-size: 0.9em;
    margin-right: 10px;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.autocomplete-result .stop-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
}

.autocomplete-result .stopName {
    font-size: 0.9em;
}

.autocomplete-result .stopLines {
    font-size: 0.8em;
    color: #666;
    margin: 5px 0;
}

.autocomplete-result .stopLines .linea {
    padding: 1px 3px;
    margin-right: 4px;
    text-align: center;
    border-radius: 10px;
    display: inline-block;
    min-width: 15px;
}

.autocomplete-result .distance {
    color: #999;
    font-size: 0.8em;
    margin-left: auto;
    padding-left: 10px;
    flex-shrink: 0;
    align-self: flex-start;
}

/* Placeholder mientras se buscan paradas cercanas */
.searching-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-style: italic;
    color: #666;
}

.searching-message .spinner {
    margin-left: 10px;
    width: 20px;
    height: 20px;
}

/* Color de parada para otras empresas */

.autocomplete-result .numParada.ecsa {
    background-color: #052d4a;
}

.autocomplete-result .numParada.regi {
    background-color: #ff83006e;
    color: #333;
}

.autocomplete-result .numParada.line {
    background-color: #006680;
}

.autocomplete-result.nearbyStopsSuggestion {
    background-color: transparent;
    background-image: url('/img/find-nearby.png');
    background-size: 15px;
    background-repeat: no-repeat;
    font-size: 0.8em;
    justify-content: center;
    background-position: 13px;
    padding: 5px;
    font-weight: bold;
}

#lineSuggestions {
    margin-top: 7px;
    background-color: white;
    box-sizing: border-box;
    width: 100%;
    position: fixed;
    z-index: 1000;
}

#lineSuggestions .line-suggestion {
    display: inline-block;
    margin: 10px 0px 10px 12px;
}

#lineSuggestions .line-suggestion span.linea {
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
    max-width: 130px;
    cursor: pointer;
    display: inline-block;
    padding: 0 4px;
}

/* Efectos de glow para el formulario */
.glow-blue {
    box-shadow: 0 0 10px 5px rgba(0, 123, 255, 0.7);
    transition: box-shadow 0.3s ease-in-out;
}

.glow-red {
    box-shadow: 0 0 10px 0px rgba(255, 0, 0, 0.7);
    transition: box-shadow 0.3s ease-in-out;
}

#addButton.glow-blue {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Estilos para el botón del menú hamburguesa */
#menuButton {
    width: 32px;
    height: 32px;
    background-size: 28px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    border: none;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 25px;
    transform: translateY(-50%);
    background-color: transparent;
    z-index: 1000;
}

#menuButton.icon-menu {
    background-image: url('/img/menu.svg');
}

#menuButton.icon-close {
    background-image: url('/img/close.svg');
}

/* Estilos para el panel lateral */
.sidebar {
    height: 100%;
    position: fixed;
    width: 250px;
    /* Ajusta este valor al ancho deseado */
    transition: right 0.5s ease-in-out;
    /* Ajusta la duración y la función de tiempo según tus preferencias */
    right: -100%;
    /* Oculta el sidebar por defecto */
    z-index: 1001;
    top: 0;
    background-color: #fffffff9;
    border-left: 1px solid #d0d0d0;
    overflow-x: auto;
    margin-top: 50px;
}

.dark-mode .sidebar {
    background-color: #323232;
    border-left: 1px solid #262626;
}

.sidebar a {
    padding: 8px 8px 8px 0px;
    text-decoration: none;
    font-size: 0.9em;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

.sidebar-open {
    right: 0;
    /* Muestra el sidebar cuando se agrega la clase 'sidebar-open' */
}

.sidebar ul {
    margin: 0;
    padding: 0;
}

.sidebar ul li {
    list-style: none;
}

.sidebar h2 {
    font-size: 0.8em;
    margin: 25px 0 5px 0;
    text-transform: uppercase;
}

.sidebar .sidebar-links {
    margin: 0 0 0 32px;
}

.sidebar #sidebar-stops {
    padding-left: 32px;
    padding-bottom: 90px;
}

.sidebar #scrollTop {
    background-color: transparent;
    background-image: url('/img/arrow-up.png');
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: 3px center;
    padding: 0 0 0 35px;
    margin: 20px 0px;
}

.sidebar #nearestStops {
    display: flex;
}

.sidebar .sidebar-footer {
    background-image: url("/img/pin-transparent.png");
    background-size: 10px;
    background-repeat: no-repeat;
    font-size: 0.75em;
    padding-left: 18px;
    background-position: 0px 3px;
    color: #CCC;
}

.dark-mode .sidebar .sidebar-footer {
    background-image: url("/img/pin-transparent-light.png");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: 0px 3px;
    max-width: 100%;
    overflow: auto;
}

/* Destinos rápidos */

#fav-destinations {
    background-color: #fff;
    box-shadow: 0 2px 6px 0px #E9E9E9;
    border: 1px solid #CCCCCCBA;
    border-radius: 4px;
    margin: 10px 4px;
    position: relative;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    padding: 10px;
    overflow: hidden;
}

.dark-mode #fav-destinations {
    background-color: #333 !important;
    color: #eeeeee;
    border: 1px solid #404040BA !important;
    box-shadow: 0 2px 16px 0 rgba(41, 41, 48, 0.2);
}

#fav-destinations p {
    font-weight: bold;
    background-image: url("/img/directions.png");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    min-width: 20px;
    height: 20px;
    text-indent: -9999px;
    overflow: hidden;
    margin: 0 4px 0 0;
}

#fav-destinations ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-grow: 1;
    max-height: 40px;
}

#fav-destinations ul::-webkit-scrollbar {
    display: none;
}

#addFavoriteButton,
#configFavoritesButton {
    flex-shrink: 0;
    margin-left: 12px;
    background-image: url("/img/gear.png");
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: center;
    width: 15px;
    height: 15px;
    text-indent: -9999px;
    overflow: hidden;
}

#fav-destinations li {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 5px 15px 3px 35px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    background-image: url("/img/star.png");
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: 10px center;
    white-space: nowrap;
    overflow: clip;
    text-overflow: ellipsis;
    max-width: 115px;
}

.dark-mode #fav-destinations li {
    background-color: #404040;
    color: #eeeeee;
}

#fav-destinations #home-destination {
    background-image: url("/img/home.png");
}

#fav-destinations li:hover {
    background-color: #e0e0e0;
}

.dark-mode #fav-destinations li:hover {
    background-color: #404040;
}

.gray-emoji {
    filter: grayscale(100%);
}

.gray-text {
    color: #808080;
    /* O cualquier tono de gris que prefieras */
}

#addFavoriteButton {
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    padding: 5px;
    font-size: 1.2em;
    background-image: url("/img/add.png");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    text-indent: -9999px;
    overflow: hidden;
}

.dark-mode #addFavoriteButton {
    background-color: #404040;
    background-image: url("/img/add-light.png");
}

.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #ccc;
    clear: both;
}

.dark-mode .toggle-container {
    border-top-color: #444;
}

.toggle-container label {
    font-size: 0.9em;
}

.toggle-container input[type="checkbox"] {
    appearance: none;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-container input[type="checkbox"]:checked {
    background-color: hsla(168.8, 48.2%, 32.5%, 0.79);
}

.toggle-container input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    background-color: white;
    transition: transform 0.3s;
}

.toggle-container input[type="checkbox"]:checked::before {
    transform: translateX(26px);
}

.dark-mode .toggle-container input[type="checkbox"] {
    background-color: #555;
}

.dark-mode .toggle-container input[type="checkbox"]:checked {
    background-color: #45a049;
}

.add-favorite-button {
    margin: 10px auto !important;
    font-size: 0.8em;
    height: 20px;
    background-image: url("/img/add-light.png");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: left;
    background-color: transparent;
    color: hsl(0, 0%, 50.2%);
    padding: 0 0 0 16px !important;
    width: 60px;
    float: right;
}

.dark-mode .add-favorite-button {
    color: #eeeeee;
}

.dark-mode .add-favorite-button:hover {
    background-color: #505050;
}

.map-instruction {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Welcome box */

#welcome-box {
    position: relative;
    border-radius: 12px;
    overflow: auto;
    background: #fff;
    box-shadow: 0 9px 20px 0px #E9E9E9;
    margin: 0 4px 15px 4px;
    padding: 10px 0 5px 0;
    border: 1px solid #CCCCCCBA;
    display: none;
}

#welcome-box h2 {
    font-size: 1.2em;
    line-height: 1em;
    color: #0c0c0e;
    font-weight: bold;
    padding: 0;
    text-align: center;
    margin: 6px auto 30px auto;
}

#welcome-box-content {
    background-image: url("/img/list.png");
    background-size: 105px;
    background-repeat: no-repeat;
    background-position: 15px center;
    padding: 0px 0 0 112px;
    min-height: 72px;
    max-width: 260px;
    margin: auto;
}

#welcome-box p {
    padding: 0 20px;
    font-size: 0.8em;
    color: #636363;
}

#welcome-box #welcome-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-top: 2em;
}

#welcome-box button {
    flex: 1;
    margin: 10px 5px;
    padding: 0;
    cursor: pointer;
    display: block;
    background-repeat: no-repeat;
    background-position: center 10px;
    background-size: 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.8em;
    text-align: center;
    min-height: 60px;
}

#welcome-box button a {
    color: #fff;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    padding: 40px 0px 12px 0px;
}

#welcome-box #viewCercanasButton {
    background-image: url("/img/find-nearby-white.png");
}

#welcome-box #routePlannerButton {
    background-image: url("/img/routes-white.png");
}

#welcome-box #install-tip {
    margin-top: 4em;
    color: #666;
    font-size: 0.7em;
    text-align: center;
}

.ios-only {
    display: none;
}

/* en iOS mostramos la clase */
html.ios .ios-only {
    display: inline-block;
}

.center {
    text-align: center;
}

#welcome-box .ios-only video {
    max-width: 75%;
    margin: auto;
    display: block;
}

#welcome-box span.button-sample {
    margin: -3px 0 0 3px;
    background-color: #c1c4ca;
    background-image: url("/img/add.png");
    background-size: 10px;
    width: 0px;
    height: 0px;
    text-indent: -9999px;
    padding: 10px;
    background-repeat: no-repeat;
    color: rgb(5, 5, 6);
    border-radius: 50%;
    border: 1px solid #cdcdcd;
    display: inline-block;
    background-position: 5px 5px;
    position: absolute;
}

.stop-block,
#nearestStopsResults .stopResult {
    background-color: #fff;
    box-shadow: 0px 4px 10px 0px #E4E4E4;
    border: 1px solid #CCCCCCBA;
    border-radius: 4px;
    margin: 15px 4px 0px 4px;
    position: relative;
}

.dark-mode .stop-block,
.dark-mode #nearestStopsResults .stopResult {
    box-shadow: 0 2px 16px 0 rgba(41, 41, 48, 0.2);
}

.stop-block.suprimida .suppressedStopAlert {
    background-color: #ffe6e6;
    color: #721c1c;
    border: 1px solid #ffe6e6;
    padding: 10px;
    font-size: 0.8em;
    text-align: center;
}

.dark-mode .stop-block.suprimida .suppressedStopAlert {
    border-top: 3px solid #9c2828;
    color: rgb(238, 238, 238);
    background-color: #333333;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.stop-block .stop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 0 17px;
}

.stop-block h2 {
    text-align: center;
    font-size: 0.8em;
    max-width: 260px;
}

.stop-block h2 span.stopId {
    font-weight: normal;
    color: #CCC;
}

.stop-block .pin-icon {
    background-image: url("/img/pin-transparent.png");
    background-size: 11px;
    display: inline-block;
    width: 11px;
    height: 14px;
    cursor: pointer;
    background-repeat: no-repeat;
}

.dark-mode .stop-block .pin-icon {
    background-image: url("/img/pin-transparent-light.png");
    background-size: 11px;
}

.stop-block .pin-icon.fixed {
    background-image: url("/img/pin-solid.png");
    background-size: cover;
    display: inline-block;
}

.dark-mode .stop-block .pin-icon.fixed {
    background-image: url("/img/pin-solid-light.png");
    background-size: cover;
}

.stop-block .mapIcon,
.stopResult .mapIcon {
    background-image: url("/img/directions.png");
    background-size: 22px;
    display: inline-block;
    width: 22px;
    height: 22px;
    text-indent: -9999px;
    cursor: pointer;
}

.showMapIcon {
    background-image: url("/img/bus-location.png");
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: 15px center;
    font-size: 0.7em;
    cursor: pointer;
    margin: 0;
    text-indent: -9999px;
    display: inline-block;
    padding: 0 10px;
    width: 20px;
    height: 20px;
}

.showMapIcon.noLocationData {
    background-image: url("/img/bus-location-white.png");
    font-weight: normal;
    color: #CCC;
}

.dark-mode .showMapIcon {
    background-image: url("/img/bus-location-white.png");
}

.line-info {
    border-top: 1px solid #eee;
    display: flex;
    padding: 5px 25px 0 10px;
    position: relative;
    overflow: hidden;
    min-height: 64px;
    max-height: 64px;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.line-info.clicked,
.highlight.clicked {
    background-color: #00c3ff17 !important;
    transform: scale(0.98);
}

.line-info .hora-programada {
    margin-top: 12px;
    margin-bottom: 0px;
}

.additional-info-panel {
    width: 77%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    right: -74%;
    /* Inicialmente oculto a la derecha */
    background-color: #FFF;
    overflow-x: hidden;
    /*Que el contenido no se desborde */
    transition: right 0.5s ease-in-out;
    /* Transición suave para la propiedad right */
    z-index: 1;
    font-size: 0.7em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 0 0;
    border-radius: 12px 0 0 12px;
}

.highlight .additional-info-panel {
    background-color: #f6fbff;
}

.dark-mode .additional-info-panel {
    background-color: #333333;
    color: #FFF;
    box-shadow: none;
}

.dark-mode .highlight .additional-info-panel {
    background-color: #3b3d3d;
}

.additional-info-panel.open {
    right: 0;
    background-color: #FFF;
    box-shadow: -11px 0px 72px rgba(149, 149, 149, 0.2);
}

.dark-mode .additional-info-panel.open {
    background-color: #333;
}

.additional-info-panel p,
.additional-info-panel h2,
.additional-info-panel ul,
.additional-info-panel li {
    margin: 0 15px 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.additional-info-panel .proximos-buses {
    display: flex;
    align-items: center;
    justify-content: center;
}

.additional-info-panel .proximos-buses ul {
    display: flex;
    flex-direction: row;
}

.additional-info-panel .proximos-buses span {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.additional-info-panel .proximos-buses span strong {
    font-size: 1.3em;
    margin-bottom: 3px;
}

.additional-info-panel .proximos-buses span.programado strong {
    background: url('/img/clock.png') no-repeat;
    background-size: 12px;
    background-position: 0px 5px;
    padding-left: 17px;
}

.additional-info-panel .proximos-buses span.realtime strong {
    background: url('/img/feed.png') no-repeat;
    background-size: 12px;
    background-position: 0px 5px;
    padding-left: 17px;
}

.additional-info-panel .proximos-buses span.ocupacion {
    background-size: 17px;
    margin: 0;
    background-position: 3px 0px;
}

.additional-info-panel .actions-buttons {
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.stop-block,
.line-info {
    animation: fadeIn 0.5s ease-in-out;
}

.highlight {
    background-color: #f0f9ff9c;
}

.highlight-update {
    background-color: #ffff99c4;
    transition: background-color 1s ease;
}

.dark-mode .highlight-update {
    background-color: #ffff994c;
}

.line-info:first-child {
    border-top: none;
}

.line-info h3 {
    border-radius: 10px;
    text-align: center;
    max-width: 76px;
    min-width: 29px;
    box-shadow: 1px 1px 10px 0 rgba(12, 12, 14, .2), 0 4px 8px 0 rgba(6, 6, 7, 0.12);
    font-weight: bold;
    font-size: 1.7em;
    display: inline-block;
    padding: 0 6px;
}

.line-info .alert-icon {
    font-size: 0.7em;
    cursor: pointer;
    background: url('/img/warning.png') no-repeat;
    background-size: 15px;
    background-position: 0px center;
    text-indent: -9999px;
    overflow: hidden;
    width: 15px;
    display: inline-block;
    margin: 0 0 0 6px;
}

.dark-mode .line-info .alert-icon {
    background: url('/img/warning-light.png') no-repeat;
    background-size: 15px;
    background-position: 0px center;
}

button.mostrar-horarios {
    cursor: pointer;
    background: url('/img/calendar-clock.png') no-repeat;
    background-size: 15px;
    background-position: 0px;
    color: HSL(0, 0%, 45%);
    font-size: 0.8em;
    display: block;
    margin: auto;
    padding: 10px 0px 10px 20px;
    font-weight: normal;
}

.dark-mode button.mostrar-horarios {
    color: HSL(0, 0%, 61%);
}

button.remove-stop {
    cursor: pointer;
    background: url('/img/trash-light-gray.png') no-repeat;
    background-size: 13px;
    background-position: 0px;
    color: #CCC;
    font-size: 0.8em;
    display: block;
    margin: auto;
    float: right;
    text-indent: -999px;
    font-size: 0px;
    padding: 34px 34px 0 0;
}

.line-info .alert-box,
#horarios-box,
#nearestStopsResults,
.dialog-data {
    position: fixed;
    border-radius: 12px;
    overflow: auto;
    background: #fff;
    box-shadow: 0 8px 64px 0 rgba(12, 12, 14, .12);
    width: 85%;
    margin: 0 auto;
    padding: 1em;
    top: 50%;
    /* Centra verticalmente */
    left: 50%;
    /* Centra horizontalmente */
    transform: translate(-50%, -50%);
    /* Desplaza el elemento hacia atrás para centrarlo perfectamente */
    z-index: 1100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.line-info .alert-box {
    box-shadow: 0 4px 8px hsla(0, 0%, 0%, 0.1);
    border: 1px solid hsl(0, 0%, 80%);
    font-size: 0.9em;
}

.dark-mode .line-info .alert-box {
    box-shadow: 0 4px 8px hsla(0, 0%, 0%, 0.1);
    border: 1px solid hsl(0, 0%, 17%);
}

.line-info .alert-box ul {
    padding: 0 20px;
}

.line-info .alert-box ul li {
    margin-bottom: 10px;
}

.line-info .alert-box h2,
#horarios-box h2 {
    padding: 0;
}

/* Skeleton placeholder */

.skeleton {
    background: linear-gradient(90deg, #f0f9ff9c 25%, #e0e0e0 50%, #f0f9ff9c 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.stop-block.skeleton .line-info {
    height: 1rem;
    margin-bottom: 0.7rem;
}

.stop-block.skeleton .stop-header {
    color: transparent;
}

.dark-mode .skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

.dark-mode .stop-block.skeleton {
    border-color: #3a3a3a;
}

.dark-mode .stop-block.skeleton .line-info.highlight {
    background-color: #3b3d3d;
}

/* Estados de carga y error */
.tiempo.loading {
    color: #666;
    font-size: 0.85em;
    font-weight: normal;
    position: relative;
}

.dark-mode .tiempo.loading {
    color: #999;
}

.tiempo.loading::after {
    content: '.';
    animation: dots 1.5s steps(4, end) infinite;
    display: inline-block;
    width: 1em;
}

.dark-mode .tiempo.loading::after {
    /* Heredar el color del texto padre */
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60% {
        content: '...';
    }

    90%,
    100% {
        content: '';
    }
}

.tiempo.error-state {
    color: #FF9800;
    font-size: 0.85em;
    font-weight: normal;
}

.error-subtitle {
    font-size: 0.7em;
    color: #666;
    margin-top: 3px;
    opacity: 0.8;
    font-style: italic;
}

.dark-mode .error-subtitle {
    color: #999;
}

.loading-state {
    opacity: 0.7;
}

/* Mejorar skeleton para hora-tiempo */
.hora-tiempo.skeleton {
    height: 2.5em;
    border-radius: 4px;
}

.trip-info.skeleton {
    height: 1.8em;
    border-radius: 4px;
    margin: 0.3em 0;
}

.ocupacion.skeleton {
    height: 1.2em;
    width: 60%;
    border-radius: 4px;
}

#horarios-box,
.dialog-data {
    width: calc(100%);
    height: 100%;
    overflow-y: auto;
    margin-top: 50px;
    padding: 1em 2em 4em 2em;
    box-sizing: border-box;
    border-radius: 0;
}

#horarios-box div {
    margin: 1em 0;
    clear: both;
}

.horarios-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 !important;
}

.horarios-actions-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 !important;
}

.horarios-actions-row #stopDateInput {
    margin-left: auto;
    font-size: 0.8em;
}

.horarios-actions-explanation {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0 0 1em 0 !important;
}

.horarios-actions-explanation #stopDateExplanation {
    color: #CCC;
    margin: 0 !important;
    text-align: right;
    font-size: 0.7em;
    color: #CCC;
}

#horarios-box .add-stop-to-list {
    display: inline-flex;
    align-items: center;
    font-size: 0.75em;
    color: #696969;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px 10px 5px 30px;
    font-weight: 500;
    cursor: pointer;
    background-image: url('../img/add-light.png');
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-position: 7px center;
}

.dark #horarios-box .add-stop-to-list {
    background: #404040;
    color: #eee;
    border: 1px solid #505050;
    background-image: url('../img/add-light.png');
}

#horarios-box .subheader {
    font-size: 0.9em;
}

/* Botón de cierre de diálogos */
#horarios-box .horarios-close,
#nearestStopsResults #close-nearest-stops,
.dialog-data .closeDialogBtn,
.dialog-close {
    background-image: url("/img/close.png");
    background-size: 16px;
    width: 16px;
    height: 16px;
    text-indent: -9999px;
    cursor: pointer;
    padding: 16px;
    background-repeat: no-repeat;
    color: rgb(5, 5, 6);
    position: sticky;
    right: 0;
    top: 0;
    float: right;
    margin: 0;
    border-radius: 50%;
    border: 1px solid #cdcdcd;
    display: block;
    background-color: #FFF;
    background-position: 8px 8px;
    z-index: 1000;
}

.dark-mode #horarios-box .horarios-close,
.dark-mode #nearestStopsResults #close-nearest-stops,
.dark-mode .dialog-data,
.dark-mode .dialog-close {
    background-color: #2d2d2d;
}

.dialog-close {
    position: absolute;
    right: 10px;
    top: 54px;
    border: none;
}

#horarios-box #indice-lineas {
    margin: auto;
}

#horarios-box span.indice-linea {
    margin: 7px 3px;
    border-radius: 10px;
    font-size: 1em;
    padding: 2px 5px;
    display: inline-block;
    min-width: 23px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 1px 1px 10px 0 rgba(12, 12, 14, .2), 0 4px 8px 0 rgba(6, 6, 7, 0.12);
}

#horarios-box .hora {
    border-left: 2px solid #7B7B7B;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 5px;
    margin: 3px 3px;
    display: inline-block;
}

#horarios-box .destino {
    display: inline-block;
    margin-left: 1em;
    margin-bottom: 0;
    font-weight: bold;
}

#horarios-box h2 {
    font-size: 1.1em;
    margin-top: 0;
}

#horarios-box h3 {
    border-radius: 10px;
    text-align: center;
    max-width: 85px;
    min-width: 35px;
    box-shadow: 1px 1px 10px 0 rgba(12, 12, 14, .2), 0 4px 8px 0 rgba(6, 6, 7, 0.12);
    font-weight: bold;
    font-size: 1.8em;
    margin: 0.4em 0.2em 0 0;
    display: inline-block;
    cursor: pointer;
    padding: 0 5px;
}

#horarios-box .notice {
    font-size: 0.9em;
    font-style: italic;
}

#nearestStopsResults {
    width: calc(100%);
    height: 100%;
    overflow-y: auto;
    margin-top: 50px;
    padding: 1em 0 4em 0;
    box-sizing: border-box;
    border-radius: 0;
}

#nearestStopsResults>* {
    padding: 0 15px;
}

#nearestStopsResults #close-nearest-stops {
    right: 15px;
}

#nearestStopsResults h2 {
    font-size: 1.2em;
    margin-top: 0;
}

#nearestStopsResults p {
    font-size: 0.8em;
}

#nearestStopsResults .stopResult h2 {
    font-size: 0.9em;
    padding: 9px 0 9px 24px;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-image: url('/img/bus-stop.png');
    background-size: 17px;
    background-repeat: no-repeat;
    background-position: left;
}

.dark-mode #nearestStopsResults .stopResult h2 {
    background-image: url('/img/bus-stop-dark.png');
}

#nearestStopsResults .stopResult h2 .mapIcon {
    position: relative;
    right: 0;
    background-size: contain;
    width: 23px;
    height: 22px;
    background-repeat: no-repeat;
}

#nearestStopsResults .stopResult h2 .numParada {
    font-weight: normal;
    color: #CCC;
}

#nearestStopsResults #mapaParadasCercanas {
    height: 400px;
    width: 100%;
    padding: 0;
}


/* Enlaces a lineas en la info de paradas */
#nearestStopsResults .stopResult .addLineButton,
#lineas-correspondencia span.linea,
#nearestStopsResults .stopResult .destino,
#nearestStopsResults .leaflet-popup-content .destino {
    display: inline-block;
    padding: 6px 8px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    width: 33px;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    margin: 5px 0;
    max-width: 130px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#nearestStopsResults .stopResult .lineas-correspondencia {
    margin-top: 10px;
}

#nearestStopsResults .stopResult .lineas-correspondencia div,
#nearestStopsResults #mapaParadasCercanas #lineas-correspondencia div {
    display: inline-block;
}


#nearestStopsResults .stopResult .addLineButton,
#nearestStopsResults .stopResult .destino,
#nearestStopsResults .leaflet-popup-content .destino {
    font-size: 0.7em;
}

#nearestStopsResults .stopResult .destino,
#nearestStopsResults .leaflet-popup-content .destino {
    border-top-left-radius: 0px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 10px;
    opacity: 0.7;
    width: 58px;
}

#nearestStopsResults .leaflet-popup-content .destino {
    margin: 0 6px 0 0;
    line-height: 0.8em;
    width: 45px;
}

.dialog-data h2 {
    font-size: 1.2em;
    margin: 0;
}

.dialog-data button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.dialog-data a {
    color: #828282;
}

.dark-mode .dialog-data .closeDialogBtn {
    background-color: #2d2d2d;
}

.dark-mode .dialog-data h2 {
    color: #eeeeee;
}

.dark-mode .dialog-data p,
.dark-mode .dialog-data ul {
    color: #eeeeee;
}

#statusDialog .status-summary {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 3em;
}

#statusDialog .status-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#statusDialog .status-icon::after {
    font-size: 30px;
    color: white;
}

#statusDialog .all-active .status-icon {
    background-color: #2EB67D;
}

#statusDialog .all-active .status-icon::after {
    content: '✓';
}

#statusDialog .some-inactive .status-icon {
    background-color: #ECB22E;
}

#statusDialog .some-inactive .status-icon::after {
    content: '!';
}

#statusDialog .all-inactive .status-icon {
    background-color: #E01E5A;
}

#statusDialog .all-inactive .status-icon::after {
    content: '✕';
}

#statusDialog .status-message {
    font-size: 16px;
    color: #1d1c1d;
    margin-bottom: 5px;
}

#statusDialog .status-submessage {
    font-size: 14px;
    color: #616061;
}

#statusDialog .status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

#statusDialog .status-item {
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#statusDialog .status-item-name {
    font-weight: bold;
    color: #1d1c1d;
    margin-bottom: 5px;
}

#statusDialog .status-item-status {
    font-weight: bold;
}

#statusDialog .status-active {
    color: #2EB67D;
}

#statusDialog .status-inactive {
    color: #E01E5A;
}

.dark-mode #statusDialog .status-summary {
    margin-top: 2em;
}

.dark-mode #statusDialog .status-icon {
    background-color: #2d2d2d;
}

.dark-mode #statusDialog .status-icon::after {
    color: #eeeeee;
}

.dark-mode #statusDialog .all-active .status-icon {
    background-color: #2EB67D;
}

.dark-mode #statusDialog .some-inactive .status-icon {
    background-color: #ECB22E;
}

.dark-mode #statusDialog .all-inactive .status-icon {
    background-color: #E01E5A;
}

.dark-mode #statusDialog .status-message {
    color: #eeeeee;
}

.dark-mode #statusDialog .status-submessage {
    color: #CCCCCC;
}

.dark-mode #statusDialog .status-grid {
    gap: 10px;
}

.dark-mode #statusDialog .status-item {
    background-color: #252525;
    border-radius: 2px;
    padding: 10px;
}

.dark-mode #statusDialog .status-item-name {
    color: #eeeeee;
}

.dark-mode #statusDialog .status-item-status {
    color: #eeeeee;
}

.dark-mode #statusDialog .status-active {
    color: #45a049;
}

.dark-mode #statusDialog .status-inactive {
    color: #E01E5A;
}

@media (min-width: 768px) {
    #statusDialog .status-icon {
        width: 70px;
        height: 70px;
    }

    #statusDialog .status-icon::after {
        font-size: 40px;
    }

    #statusDialog .status-message {
        font-size: 18px;
    }

    #statusDialog .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #statusDialog .status-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #statusDialog .status-item-name {
        margin-bottom: 0;
    }
}

#lineas-correspondencia {
    margin: 8px 0;
}

#lineas-correspondencia span.linea {
    padding: 1px 6px;
    margin: 0px 2px;
    border-radius: 10px;
}

#mapaParadasCercanas .leaflet-popup-content #lineas-correspondencia span.linea {
    margin: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

#lineas-correspondencia p {
    font-style: italic;
    font-size: 0.9em;
    margin: 5px 0 0 0;
}

#nearestStopsResults .stopResult .stopResultFooter {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#nearestStopsResults .stopResult .addStopButton {
    background-color: #c1c4ca;
    background-image: url("/img/add.png");
    background-size: 8px;
    width: 9px;
    height: 9px;
    text-indent: -9999px;
    cursor: pointer;
    touch-action: manipulation;
    padding: 11px;
    background-repeat: no-repeat;
    color: rgb(5, 5, 6);
    border-radius: 50%;
    border: 1px solid #cdcdcd;
    display: inline-block;
    background-position: 7px 7px;
}

/* Custom css para evitar que los controles se oculten */
#mapaParadasCercanas .leaflet-control {
    position: relative;
    z-index: 1500;
    -webkit-transform: translate3d(0, 0, 0);
    /* Fix para Safari iOS*/
}

#mapaParadasCercanas .leaflet-popup-content .mapIcon {
    background-image: url("/img/directions.png");
    background-size: 22px;
    background-repeat: no-repeat;
    display: inline-block;
    width: 22px;
    height: 22px;
    text-indent: -9999px;
    cursor: pointer;
    touch-action: manipulation;
    position: absolute;
    bottom: 20px;
    right: 20px;
    /* Aumenta el área de clic */
    padding: 9px;
    margin: -20px;
}

#nearestStopsResults .bike-control {
    margin-left: 0;
}

#nearestStopsResults #show-bikes {
    cursor: pointer;
    touch-action: manipulation;
    color: #143325;
    font-weight: bold;
    background-color: #f265229e;
    width: 30px;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    margin: 0;
    background-image: url("/img/toggle-off.png");
    background-size: 19px;
    padding: 3px 18px 3px 35px;
    background-repeat: no-repeat;
    background-position: 7px center;
    font-size: 1em;
    position: relative;
    z-index: 1500;
    -webkit-transform: translate3d(0, 0, 0);
    /* Fix para Safari iOS*/
}

#nearestStopsResults #show-bikes.enabled {
    background-color: #f26522d1;
    background-image: url("/img/toggle-on.png");
}

#mapaParadasCercanas .leaflet-popup-content .bike-agency {
    color: #143325;
    font-weight: bold;
    background-color: #f26522;
    max-width: 23px;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    position: absolute;
    display: block;
    padding: 2px 10px 2px 5px;
    left: 0;
    top: 12px;
}

#mapaParadasCercanas .leaflet-popup-content .bikestop-name {
    padding-left: 22px;
}

#mapaParadasCercanas .leaflet-popup-content .bikestop-info .bikes-available {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 10px;
}

#mapaParadasCercanas .leaflet-popup-content .bikestop-info .bikes-available p {
    align-content: center;
    text-align: center;
    margin: 0 6px;
}

#mapaParadasCercanas .leaflet-popup-content .bikestop-info .bikes-available p.e-bikes {
    border-right: 1px solid #CCC;
    padding-right: 10px;
    background-image: url('../img/electric.png');
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: left 8px;
}

#mapaParadasCercanas .leaflet-popup-content .bikestop-info .bikes-available p.m-bikes {
    background-image: url('../img/bike.png');
    background-size: 17px;
    background-repeat: no-repeat;
    background-position: 2px 7px;
}

#mapaParadasCercanas .leaflet-popup-content .bikestop-info .bikes-available p.m-bikes .count {
    padding-left: 11px;
}


#mapaParadasCercanas .leaflet-popup-content .bikestop-info .slots-bikes {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-right: 10px;
}

#mapaParadasCercanas .leaflet-popup-content .bikestop-info .count {
    font-weight: bold;
    font-size: 2em;
    display: block;
}

/* Enlaces en el sidebar */
#routesButton,
#viewLinesButton,
#nearestStopsButton,
#quickDestinationsButton,
#communityButton,
#informesButton {
    color: #818181;
    font-size: 0.9em;
    text-align: center;
    margin: 7px 0 20px 0;
    padding: 0 0 0 35px;
    display: block;
    text-align: left;
    min-height: 20px;
    line-height: 20px;
}

#nearestStopsButton {
    background-color: transparent;
    background-image: url('/img/find-nearby.png');
    background-size: 20px;
    background-repeat: no-repeat;
}

#routesButton {
    background-color: transparent;
    background-image: url('/img/routes.png');
    background-size: 20px;
    background-repeat: no-repeat;
}

#viewLinesButton {
    background-color: transparent;
    background-image: url('/img/bus-gray.png');
    background-size: 20px;
    background-repeat: no-repeat;
}

#quickDestinationsButton {
    background-color: transparent;
    background-image: url('/img/directions-darker.png');
    background-size: 20px;
    background-repeat: no-repeat;
}

#communityButton {
    background-color: transparent;
    background-image: url('/img/users.png');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: 0px 2px;
}

#informesButton {
    background-color: transparent;
    background-image: url('/img/file-gray.png');
    background-size: 13px;
    background-repeat: no-repeat;
    background-position: 3px 2px
}

.closeRoutesButton {
    position: absolute;
    top: 8px;
    right: 14px;
    z-index: 1001;
    background-image: url("/img/close-light.png");
    background-size: 12px;
    width: 12px;
    height: 12px;
    text-indent: -9999px;
    cursor: pointer;
    padding: 15px;
    background-repeat: no-repeat;
    color: rgb(5, 5, 6);
    border-radius: 50%;
    border: 1px solid #646262;
    display: block;
    background-color: #444;
    background-position: 9px 9px;
}

#mapContainer {
    position: fixed;
    width: 98%;
    height: 80%;
    margin: 0 auto;
    top: 420px;
    left: 50%;
    transform: translate(-50%, 100%);
    /* Posición inicial: fuera de la vista hacia abajo */
    z-index: 1000;
    transition: transform 0.5s ease-in-out;
}

#mapContainer.show {
    transform: translate(-50%, -290px);
    /* Posición final: dentro de la vista hacia arriba */
}

#mapContainer #busMap {
    width: 100%;
    height: 100%;
    box-shadow: 0 8px 64px 0 rgba(12, 12, 14, .12);
    background: #fff;
    overflow: none;
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 5px #1da1f2, 0 0 10px #1da1f2;
    }

    50% {
        box-shadow: 0 0 10px #1da1f2, 0 0 20px #1da1f2;
    }

    100% {
        box-shadow: 0 0 5px #1da1f2, 0 0 10px #1da1f2;
    }
}

#mapContainer #busMap .bus-icon {
    border-radius: 50%;
    border: 1px solid #fff;
    text-align: center;
    width: 40px;
    height: 40px;
    box-shadow: 1px 1px 10px 0 rgba(12, 12, 14, .2), 0 4px 8px 0 rgba(6, 6, 7, 0.12);
    font-weight: bold;
    font-size: 1.8em;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    animation: glowing 1s ease-in-out infinite;
}

.dark-mode #mapContainer #busMap .bus-icon {
    border: 1px solid #0000001f;
}

#mapContainer #busMap .user-location-icon {
    animation: glowing 1s ease-in-out infinite;
    border-radius: 50%;
}

#mapContainer #busMap .busInfo {
    background-image: url("/img/bus-cover.png");
    background-size: 120px;
    padding: 20px 10px;
    background-repeat: no-repeat;
    background-position: 50%;
    position: relative;
    margin: 0;
    height: 37px;
    width: 128px;
    border: 1px solid #CCC;
    border-radius: 13px;
    background-color: #ebf4f6;
}

.dark-mode #mapContainer #busMap .busInfo {
    background-color: #333333;
    border: 1px solid #444;
    background-image: url("/img/bus-cover-gray.png");
    background-size: 120px;
}

#mapContainer #busMap .busInfo li {
    list-style-type: none;
    border: 1px solid #CCC;
    border-radius: 5px;
    padding: 3px;
    background-color: #FFF;
}

.dark-mode #mapContainer #busMap .busInfo li {
    color: #FFF;
    background-color: #333333;
}

#mapContainer #busMap .busInfo li.vehicle-id {
    position: absolute;
    top: -9px;
    left: 64px;
}

#mapContainer #busMap .busInfo li.matricula {
    position: absolute;
    bottom: -9px;
    left: 40px;
    padding: 0px 3px 0px 12px;
    background-image: url("/img/matricula-e.png");
    background-size: 8px;
    background-repeat: no-repeat;
    background-position: 0px 0px;
    border-radius: 3px;
}

#mapContainer .direction-icon {
    font-size: 9px;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    line-height: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: sans-serif;
    cursor: grab;
}

#mapContainer #mapFooter {
    background: #fff;
    font-size: 0.8em;
    text-align: center;
    padding: 1px 8px 100px 0;
    margin: 0px 0 0 0;
}

#mapContainer #mapFooter .map-close {
    background-image: url("/img/close.png");
    background-size: 15px;
    width: 15px;
    height: 15px;
    text-indent: -9999px;
    cursor: pointer;
    padding: 15px;
    background-repeat: no-repeat;
    color: rgb(5, 5, 6);
    right: 10px;
    top: 10px;
    position: absolute;
    margin: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.25);
    display: block;
    background-color: #FFF;
    background-position: 7px 8px;
    z-index: 1000;
}

.dark-mode #mapContainer #mapFooter .map-close {
    background-image: url("/img/close-light.png");
    border: 1px solid #646262;
}

#mapContainer #mapFooter #busMapLastUpdate {
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    position: absolute;
    background-color: #FFF;
    padding: 1em 0;
    width: 90%;
    bottom: 7px;
    z-index: 1000;
    left: 17px;
    font-size: 0.9em;
}

.dark-mode #mapContainer #mapFooter #busMapLastUpdate {
    background-color: #333333;
    border: 1px solid #444;
}

.dark-mode #mapContainer .leaflet-control-attribution {
    background-color: #060606;
}

/* Modo oscuro para popups */
.dark-mode .leaflet-popup-content-wrapper,
.dark-mode .leaflet-popup-tip {
    background-color: #484b4d;
    color: #eeeeee;
}


#iframe-container {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background-color: white;
    z-index: 1100;
    display: none;
    /* Inicialmente oculto */
}

.dark-mode #mapContainer #mapFooter {
    background-color: #333;
    color: #fff;
}

.line-info .hora-programada .hora {
    background: url('/img/clock.png') no-repeat;
    background-size: 15px;
    background-position: 0px;
    padding: 0 0 0 20px;
    font-size: 0.8em;
    color: #868686;
}

.dark-mode .line-info .hora-programada .hora {
    color: #bebebe;
}

.hora-tiempo {
    display: flex;
    flex-direction: column;
    align-items: end;
    margin-right: 5px;
}

.line-info .horaLlegada {
    display: flex;
    align-items: center;
    margin: 2px 0px 16px 0;
    font-size: 0.9em;
    opacity: 0.7;
}

.line-info .diferencia {
    font-size: 0.75em;
    color: hsl(0, 0%, 43.5%);
}

.dark-mode .line-info .diferencia {
    color: hsl(0, 0%, 80%);
    opacity: 0.8;
}


.line-info.retrasado .hora-programada .hora,
.line-info.adelantado .hora-programada .hora {
    text-decoration: line-through;
}

.line-info.retrasado .diferencia {
    color: hsl(0, 47.1%, 44.5%);
}

.dark-mode .line-info.retrasado .diferencia {
    color: hsl(0, 47.1%, 80.5%);
}

.line-info.adelantado .diferencia {
    color: hsl(120, 45.5%, 23.7%);
}

.dark-mode .line-info.adelantado .diferencia {
    color: hsl(120, 45.5%, 70.7%);
}

.line-info .ocupacion {
    display: inline-block;
    position: relative;
    width: 20px;
    text-indent: -9999px;
    cursor: pointer;
    margin: 0px 10px;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: 0 center;
}

.line-info .ocupacion.empty,
.line-info .ocupacion.many {
    background-image: url("/img/seats-empty-many.png");
    display: inline-block;
}

.dark-mode .line-info .ocupacion.empty,
.dark-mode .line-info .ocupacion.many {
    background-image: url("/img/seats-empty-many-light.png");
    display: inline-block;
}

.line-info .ocupacion.few {
    background-image: url("/img/seats-few.png");
    display: inline-block;
}

.dark-mode .line-info .ocupacion.few {
    background-image: url("/img/seats-few-light.png");
    display: inline-block;
}

.line-info .ocupacion.crushed,
.line-info .ocupacion.full {
    background-image: url("/img/seats-full.png");
    display: inline-block;
}

.line-info .ocupacion.not {
    background-image: url("/img/seats-notaccepting.png");
    display: inline-block;
}

.line-info .ocupacion.standing {
    background-image: url("/img/seats-standing.png");
    display: inline-block;
}

/* No mostramos nada si los datos son nulos, vacíos o no_data_available */
.line-info .ocupacion.null,
.line-info .ocupacion.undefined,
.line-info .ocupacion.no {
    cursor: default;
    z-index: -100;
    /* Evitamos que se pueda hacer clic */
}

/* Estilo extra para los iconos en el panel de info de próximos buses */

.additional-info-panel .ocupacion {
    line-height: 17px;
    margin-left: 0px;
}

.line-info.realtime .hora-tiempo .horaLlegada {
    background: url('/img/feed-green.png') no-repeat;
    background-size: 15px;
    background-position: 0px;
    padding: 0 0 0 20px;
}

.line-info.realtime.propagated .hora-tiempo .horaLlegada {
    background: url('/img/feed.png') no-repeat;
    background-size: 15px;
    background-position: 0px;
    padding: 0 0 0 20px;
}

.line-info.programado .hora-tiempo .horaLlegada {
    background: url('/img/clock.png') no-repeat;
    background-size: 15px;
    background-position: 0px;
    padding: 0 0 0 20px;
}

.line-info .linea {
    text-align: left;
}

.dark-mode .line-info .linea {
    opacity: 0.8;
}

.line-info .linea,
.line-info .tiempo.futuro {
    font-size: 0.8em;
}

.line-info .tiempo.futuro {
    opacity: 0.8;
}

.line-info .trip-info {
    flex: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.line-info .trip-info .ruta {
    display: flex;
    flex-direction: column;
    min-width: 110px;
}

.line-info .trip-info .destino {
    display: inline-block;
    font-size: 0.85em;
    font-weight: bold;
    margin: 0;
    color: hsl(0, 0%, 37.2%);
}

.dark-mode .line-info .trip-info .destino {
    color: hsl(0, 0%, 81.5%);
}

.line-info .tiempo {
    font-size: 1.45em;
    align-items: center;
    display: flex;
}

.line-info .tiempo.sin-servicio {
    font-size: 0.85em;
    color: #CCC;
    margin: 0 0 0 10px;
}

.line-info .tiempo p {
    font-size: 0.5em;
    display: inline-block;
    margin: 0 0 0 4px;
    opacity: 0.8;
}

.bell-button {
    background: transparent no-repeat center center;
    background-image: url('/img/bell-gray.png');
    background-size: 15px 15px;
    border: none;
    font-size: 0;
    cursor: pointer;
    font-size: 16px;
    margin: 0 0 20px 0;
    padding: 0 10px;
    width: 15px;
    text-indent: -9999px;
}

.remove-button {
    background: transparent no-repeat center center;
    background-image: url('/img/trash-gray.png');
    background-size: 15px 15px;
    border: none;
    font-size: 0;
    cursor: pointer;
    font-size: 16px;
    margin: 0;
    padding: 0 10px;
    width: 15px;
    text-indent: -9999px;
}

.arrow-button {
    background: transparent no-repeat center center;
    background-image: url('/img/arrow-light.png');
    background-size: 25px 25px;
    border: none;
    font-size: 0;
    cursor: pointer;
    padding: 13px;
    width: 15px;
}

.error,
.success {
    color: white;
    padding: 10px;
    border-radius: 5px;
    position: fixed;
    top: 278px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1100;
    display: none;
    text-align: center;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.32);
}

.error a,
.success a {
    color: #FFF;
}

.error.show,
.success.show {
    opacity: 1;
    display: block;
}

.error {
    background-color: #f34949;
}

.success {
    background-color: #2b7b6c;
}

.success p {
    margin: 4px 0;
    font-size: 0.9em;
}

.notification-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
    /* Ensure it is above other elements */
    min-width: 250px;
    text-align: center;
}

.notification-popup.show {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#tips-banner,
#instagram-warning {
    font-size: 0.8em;
    box-shadow: 0 1px 9px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 20px auto 1px auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.dark-mode #tips-banner,
.dark-mode #instagram-warning {
    color: #CCC;
}

#tips-banner p,
#instagram-warning p {
    display: none;
    /* Ocultos por defecto */
    margin: 0;
    padding: 5px 30px 5px 10px;
    color: hsl(168.8, 23.2%, 19.5%);
    background-color: hsl(168.8, 9.2%, 92.5%);
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: 15px center;
    position: relative;
    border-left: 6px solid hsl(168.8, 23.2%, 30.5%);
    line-height: 1.5em;
}

.dark-mode #tips-banner p,
.dark-mode #instagram-warning p {
    background-color: #333;
    color: #CCC;
}

#tips-banner p a,
#instagram-warning p a {
    color: hsl(168.8, 23.2%, 19.5%);
    text-decoration: none;
    font-weight: bold;
}

#tips-banner img {
    width: 90%;
}

.dark-mode #tips-banner p a,
.dark-mode #instagram-warning p a {
    color: hsl(168.8, 23.2%, 93%);
}

#instagram-warning p {
    display: block !important;
    padding: 7px 7px 7px 10px;
    text-align: left;
    border-left: 6px solid HSL(339.7, 74.7%, 53.5%);
    color: HSL(339.7, 25.7%, 19.5%);
    background-color: HSL(339.7, 12.2%, 92.5%);
}

#instagram-warning p strong {
    margin-bottom: 4px;
    display: inline-block;
}

.close-tip {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: hsl(168.8, 23.2%, 30.5%);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.dark-mode .close-tip {
    color: hsl(168.8, 23.2%, 93%);
}

/* Css para los banners inidividuales */

#status-banner {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: hsl(41.7, 60.3%, 85.3%) !important;
    border-left: 6px solid hsl(41.7, 60.3%, 48.3%) !important;
    color: hsl(41.7, 60.3%, 48.3%) !important;
    font-weight: bold;
}

.dark-mode #status-banner {
    background-color: hsl(41.7, 60.3%, 15.3%) !important;
    color: hsl(41.7, 60.3%, 55.3%) !important;
}

#status-banner a {
    margin-left: 10px;
    color: hsl(41.7, 60.3%, 25.3%) !important;
}

.dark-mode #status-banner a {
    color: hsl(41.7, 60.3%, 55.3%) !important;
}

#status-banner.all-inactive {
    background-color: hsl(9.7, 60.3%, 85.3%) !important;
    border-left: 6px solid hsl(9.7, 60.3%, 48.3%) !important;
    color: hsl(9.7, 60.3%, 48.3%) !important;
}

#status-banner.all-inactive a {
    color: hsl(9.7, 60.3%, 48.3%) !important;
}

#status-banner .status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


#status-banner .status-icon::before {
    content: '!';
    font-weight: bold;
    color: white;
}

#status-banner .status-icon.all-inactive {
    background-color: hsl(9.7, 60.3%, 48.3%);
}

#status-banner .status-icon.some-inactive {
    background-color: hsl(41.7, 60.3%, 48.3%);
}

/* Banners con tips personalizados */

#tips-banner .warning {
    background-color: HSL(41.7, 83.3%, 90.3%);
    color: hsl(54.5, 70.2%, 24.8%);
    border-left-color: HSL(41.7, 83.3%, 55.3%);
}

#tips-banner .warning a {
    color: hsl(54.5, 70.2%, 24.8%);
}

#tips-banner .close-tip {
    color: hsl(54.5, 70.2%, 24.8%);
}

#tips-banner #share-whatsapp {
    margin: 0;
    color: #0e4f0b;
    background-color: hsl(142.1, 23.8%, 88.9%);
    background-image: url('/img/share.png');
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: 15px center;
    border-left: none;
}

.dark-mode #tips-banner #share-whatsapp {
    background-image: url('/img/share-gray.png');
    background-color: hsl(142.1, 22.8%, 16.9%);
}

#tips-banner #share-whatsapp a {
    color: #0e4f0b;
    text-decoration: none;
    display: inline-block;
    font-weight: normal;
    padding-left: 30px;
}

.dark-mode #tips-banner #share-whatsapp a {
    color: #efefef;
}

#tips-banner .share-app {
    cursor: pointer;
    background-image: url('/img/share.png');
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 30px;
    background-color: HSL(200, 58.3%, 98%);
    color: hsl(200, 81.6%, 14.9%);
    border-left-color: HSL(200, 58.3%, 73.3%);
}

.dark-mode #tips-banner .share-app {
    background-image: url('/img/share-gray.png');
    border-left-color: HSL(200, 58.3%, 27.3%);
}

#tips-banner .share-app .close-tip {
    color: hsl(200, 81.6%, 14.9%);
}

.dark-mode #tips-banner .share-app .close-tip {
    color: hsl(281.5, 21.3%, 90%);
}

#tips-banner #community-banner {
    background-image: url('/img/comments-gray.png');
    background-size: 22px;
    background-repeat: no-repeat;
    background-position: 15px center;
    border-left: none;
}

#tips-banner .blog-banner {
    background-image: url('/img/file.png');
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: 15px center;
    border-left: none;
}

#tips-banner .blog-banner a {
    font-weight: normal;
}

#tips-banner .guia-banner {
    background-image: url('/img/sparkles-green.png');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: 15px center;
    border-left: none;
    padding-left: 20px;
}

.dark-mode #tips-banner .guia-banner {
    background-image: url('/img/sparkles.png');
}

#tips-banner .guia-banner a {
    font-weight: normal;
}

#tips-banner .guia-banner .close-tip {
    color: hsl(168.8, 23.2%, 30.5%);
}

.dark-mode #tips-banner .guia-banner .close-tip {
    color: hsl(168.8, 23.2%, 93%);
}

#tips-banner #map-tip {
    background-image: url('/img/bus-location-white.png');
    background-size: 22px;
    background-repeat: no-repeat;
    background-position: 15px center;
    padding: 5px 5px 5px 22px;
    border-left: none;
}

.dark-mode #tips-banner #map-tip {
    background-image: url('/img/bus-location-white.png');
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: 13px center;
}

#tips-banner .ruta-pucela {
    margin: 0;
    color: hsl(282, 100%, 98%);
    background-color: hsl(281.5, 9%, 78.2%);
    background-image: url('/img/overlays/pucela.png');
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: 10px center;
    border-left: none;
    border-top: 3px solid hsl(281.5, 9%, 53.2%);
}

.dark-mode #tips-banner .ruta-pucela {
    background-color: hsl(281.5, 9%, 25.2%);
}

#tips-banner .ruta-pucela a {
    color: hsl(281.5, 21.3%, 24%);
    text-decoration: none;
    display: inline-block;
    padding: 5px 5px 5px 30px;
}

.dark-mode #tips-banner .ruta-pucela a {
    color: hsl(281.5, 21.3%, 90%);
}

#tips-banner .ruta-pucela .close-tip {
    color: hsl(281.5, 21.3%, 24%);
}

.dark-mode #tips-banner .ruta-pucela .close-tip {
    color: hsl(281.5, 21.3%, 90%);
}

#tips-banner #basuracero-0924 {
    margin: 0;
    color: hsl(282, 100%, 98%);
    background-color: hsl(257.1, 14.9%, 49.4%);
    background-image: url('/img/overlays/basuracero.png');
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: 9px center;
    border-left: none;
}

.dark-mode #tips-banner #basuracero-0924 {
    background-color: hsl(257.1, 14.9%, 27.4%);
}

#tips-banner #basuracero-0924 a {
    color: #fcf5ff;
    text-decoration: none;
    display: inline-block;
    padding: 5px 5px 5px 26px;
    font-weight: normal;
}

.dark-mode #tips-banner #basuracero-0924 a {
    color: #efefef;
}

#tips-banner #basuracero-0924 a span {
    font-weight: bold;
}

#tips-banner #basuracero-0924 .close-tip {
    color: hsl(168.8, 23.2%, 93%);
}

#tips-banner .informe a {
    font-weight: normal;
}

/* Banner de petición */

#tips-banner .peticion {
    padding: 0;
}

#tips-banner .peticion a {
    position: relative;
    display: block;
    padding: 15px;
    background: white;
    text-decoration: none;
    color: #333;
}

.dark-mode #tips-banner .peticion a {
    background: #333333;
}

/*
#tips-banner .peticion a::after {
    content: '';
    display: block;
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-top: 10px;
}


.dark-mode #tips-banner .peticion a::after {
    background: #3b3d3d;
}

#tips-banner .peticion a::before {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 68%;
    height: 8px;
    background: #f3047a;
    border-radius: 4px;
    z-index: 1;
} 
*/

#tips-banner .peticion a span {
    font-weight: normal;
}

/* Fin de los banners individuales */


.global-alerts-box {
    background-image: url('../img/bell-gray.png');
    background-repeat: no-repeat;
    background-size: 12px;
    background-color: hsl(54.5, 12.2%, 93%);
    color: hsl(54.5, 70.2%, 24.8%);
    border-left: 6px solid hsl(58.7, 70.1%, 53.9%);
    padding: 6px 5px 6px 25px;
    margin-bottom: 10px;
    display: none;
    font-size: 0.8em;
    background-position: 8px center;
}

.dark-mode .global-alerts-box {
    background-color: #333;
    color: hsl(0, 0%, 86.3%);
    border-left: 6px solid hsl(58.7, 70.1%, 39.9%);
}

.global-alerts-box ul {
    padding: 0;
    margin: 0;
}

.global-alerts-box ul li {
    list-style: none;
    margin: 0;
}

.global-alerts-box .global-alert-title {
    font-weight: bold;
}

.global-alerts-box .viewall-header {
    cursor: pointer;
    text-align: center;
}

.global-alerts-box .alert-text-container {
    padding: 0px 26px 0px 2px;
    height: 14px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in;
}

/* Si tiene mucho contenido lo limitamos */
.global-alerts-box .alert-text-container.has-more {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

.global-alerts-box .alert-text-container.expanded {
    padding: 0px 11px;
    white-space: wrap;
    text-overflow: none;
    max-height: auto;
    height: auto;
    line-height: 1.4em;
}

.global-alerts-box .alert-text-container .read-more-button {
    position: absolute;
    top: -11px;
    right: 0px;
    background-color: transparent;
    padding: 8px 10px;
    cursor: pointer;
    display: inline-block;
    color: #72711c;
    font-weight: bold;
    font-size: 1.2em;
    text-indent: -9999px;
    background-image: url('../img/arrow-down.png');
    background-repeat: no-repeat;
    background-size: 15px;
    background-position: 0 center;
}

.dark-mode .global-alerts-box .alert-text-container .read-more-button {
    background-color: #333;
    color: #CCC;
}

.global-alerts-box .alert-text-container.expanded .read-more-button {
    display: none;
}

.global-alerts-box .alert-text-container.has-more .read-more-button {
    display: block;
}

#import-block {
    width: 95%;
    margin: 84px auto 30px auto;
}

#import-block h2 {
    font-size: 20px;
}

#import-block #uploadForm {
    margin: 1em auto;
    width: 334px;
    text-align: center;
}

#import-block #fileInput {
    display: none;
}

#import-block .custom-file-upload {
    padding: 8px;
    background-color: #b17cb5;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    display: inline-block;
}

#import-block #import-complete {
    background-color: #f8f5d7;
    color: #72711c;
    border: 1px solid #f5f4c6;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 0.8em;
    text-align: center;
    display: block;
}

.foot-note {
    padding: 0 1em;
    font-size: 0.85em;
    text-align: center;
}

.foot-note a {
    color: #828282;
}

.foot-note #footer-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 3em 0;
}

.foot-note #created-by {
    margin-top: 3.5em;
    padding: 9px 7px 9px 50px;
    color: #636363;
    border-radius: 10px;
    background: url('../img/heart.png') no-repeat 17px center #FFFFFFBF;
    background-size: 25px;
}

.dark-mode .foot-note #created-by {
    background-color: #00000024;
    color: #8d8d8d;
}

.foot-note #social-share {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    margin: 2em 0;
}

.foot-note #social-share a {
    width: calc(40% - 10px);
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
}

.foot-note a#twitter-share-button,
.foot-note a#telegram-button,
.foot-note a#facebook-share-button,
.foot-note a#whatsapp-share-button,
.foot-note a#instagram-button,
.foot-note a#bluesky-button {
    display: inline-block;
    padding: 10px 0 10px 15px;
    margin: 5px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    width: 135px;
}

.foot-note a#twitter-share-button {
    background-color: #000000;
    /* NEgro de X */
    background-image: url('/img/share-white.png');
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: 20px center;
}

.foot-note a#twitter-share-button:hover {
    background-color: #0a76cf;
}

.foot-note a#whatsapp-share-button {
    background-color: #25d366;
    background-image: url('../img/share-white.png');
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: 20px center;
}

.foot-note a#instagram-button {
    background-color: #E1306C;
    background-image: url('../img/instagram.png');
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: 20px center;
}

.foot-note a#bluesky-button {
    background-color: #0d8bf2;
    background-image: url('../img/share-white.png');
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: 20px center;
}

.foot-note #legend {
    color: hsl(0, 0%, 38%);
    text-align: center;
    display: none;
}

.dark-mode .foot-note #legend {
    color: HSL(0, 0%, 60%);
}

.foot-note #legend span {
    margin-right: 10px;
}

.foot-note #legend img {
    height: 11px;
    margin: 0px;
}

.foot-note a#facebook-share-button {
    background-color: #3B5998;
    /* Azul de Facebook */
    background-image: url('../img/share-white.png');
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: 20px center;
}

.foot-note a#facebook-share-button:hover {
    background-color: #334d84;
}

.foot-note a#telegram-button {
    background-color: #24a1dd;
    background-image: url('/img/logo.png');
    background-repeat: no-repeat;
    background-size: 15px;
    background-position: 20px center;
}

.foot-note a#telegram-button:hover {
    background-color: #1f8bbc;
}

button#theme-toggle {
    background-color: #ffffff;
}

.foot-note #data-notice {
    padding: 9px 7px;
    color: #636363;
}

.dark-mode .foot-note #data-notice {
    color: #8d8d8d;
}

footer {
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
    margin-top: 2em;
    line-height: 2.1;
}

footer a {
    color: #333;
    text-decoration: none;
    margin: 0 0.5rem;
}

.dark-mode footer a {
    color: #BBB;
}

footer a:hover {
    text-decoration: underline;
}

#spinnerOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Asegúrate de que esté por encima de otros elementos */
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.new-feature::after {
    content: "";
    background: #0898d0;
    display: inline-block;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    margin-right: 5px;
    position: absolute;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    /* Oculto a menos que lo cambiemos desde JS*/
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    background-color: #629ade;
    box-shadow: 0 2px 16px 0 rgba(12, 12, 14, .57), 0 4px 8px 0 rgba(12, 12, 14, .12);
    border-radius: 5px;
    position: absolute;
    font-size: 0.9em;
    padding: 10px 15px;
    color: #EEE;
}

.overlay-content h2 {
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 0 10px 0;
    color: #FFF;
}

.overlay-content ul {
    margin: 0;
    padding-left: 20px;
}

.overlay-content ul li {
    margin: 4px 0;
}

.overlay-content a:link,
.overlay-content a:visited,
.overlay-content a:hover,
.overlay-content a:active {
    color: #48cbb2;
}

.overlay-content .close-overlay {
    float: right;
    font-weight: bold;
    background-color: #2b7b6c;
    color: #FFF;
    font-size: 0.9em;
    padding: 6px 15px;
    margin-top: 5px;
}

.overlay-content .close-overlay:hover {
    background-color: #41b7a1;
}

.arrow {
    width: 0;
    height: 0;
    position: absolute;
}

#overlay-installIos .overlay-content {
    top: 60px;
    width: 308px;
    background-color: #054a3dfa;
    font-size: 0.85em;
    left: 50%;
    /* Mueve el elemento hacia la derecha */
    transform: translateX(-50%);
    /* Ajusta el elemento hacia la izquierda */
}

#overlay-installIos .overlay-content video {
    max-height: 400px;
    width: 100%;
    margin: 0 auto 15px auto;
    display: block;
    background-color: #2b282b;
}

/* Posiciones específicas para diferentes overlays */

#overlay-nueva-ui0624 .overlay-content {
    top: 60px;
    width: 308px;
    background-color: #054a3dfa;
    font-size: 0.85em;
    left: 50%;
    /* Mueve el elemento hacia la derecha */
    transform: translateX(-50%);
    /* Ajusta el elemento hacia la izquierda */
}

#overlay-nueva-ui0624 .overlay-content video {
    max-height: 400px;
    width: 100%;
    margin: 0 auto 15px auto;
    display: block;
    background-color: #064a3d;
}

#overlay-guia-voz-2026 .overlay-content {
    top: auto;
    bottom: 110px;
    width: 320px;
    background-color: #054a3dfa;
    font-size: 0.9em;
    background-image: url('/img/logo.png');
    padding: 85px 25px 25px 25px;
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px;
}

#overlay-guia-voz-2026 h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.25em;
}

#overlay-guia-voz-2026 ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

#overlay-guia-voz-2026 ul li {
    margin-bottom: 8px;
    line-height: 1.4;
}

#overlay-guia-voz-2026 .close-overlay {
    width: 100%;
    margin-top: 10px;
    float: none;
    padding: 12px;
}

#overlay-guia-voz-2026 .arrow {
    bottom: -10px;
    left: 84%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #054a3dfa;
    position: absolute;
}

#overlay-cercanas-biki0624 .overlay-content {
    top: 60px;
    width: 308px;
    background-color: #054a3dfa;
    font-size: 0.85em;
    background-image: url('/img/overlays/cercanas-biki.jpg');
    padding-top: 380px;
    background-size: contain;
    background-repeat: no-repeat;
    left: 50%;
    /* Mueve el elemento hacia la derecha */
    transform: translateX(-50%);
    /* Ajusta el elemento hacia la izquierda */
}

#overlay-estimaciones0624 .overlay-content {
    top: 60px;
    width: 308px;
    background-color: #054a3dfa;
    font-size: 0.85em;
    background-image: url('/img/overlays/estimados.jpg');
    padding-top: 350px;
    background-size: contain;
    background-repeat: no-repeat;
    left: 50%;
    /* Mueve el elemento hacia la derecha */
    transform: translateX(-50%);
    /* Ajusta el elemento hacia la izquierda */
}

#overlay-estimaciones0624 .overlay-content li {
    list-style: none;
    padding-left: 19px;
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: 0px 3px;
}

#overlay-estimaciones0624 .overlay-content li.programado {
    background-image: url('/img/clock.png');
}

#overlay-estimaciones0624 .overlay-content li.estimado {
    background-image: url('/img/feed.png');
}

#overlay-estimaciones0624 .overlay-content li.actualizado {
    background-image: url('/img/feed-green.png');
}

#overlay-arroyolaguna0524 .overlay-content {
    top: 60px;
    width: 308px;
    background-color: #054a3dfa;
    font-size: 0.85em;
    background-image: url('/img/overlays/lineas-laguna-arroyo.jpg');
    padding-top: 350px;
    background-size: contain;
    background-repeat: no-repeat;
    left: 50%;
    /* Mueve el elemento hacia la derecha */
    transform: translateX(-50%);
    /* Ajusta el elemento hacia la izquierda */
}

#overlay-newnaming0424 .overlay-content {
    top: 60px;
    width: 308px;
    background-color: #054a3dfa;
    font-size: 0.85em;
    background-image: url('/img/renaming-overlay.jpg');
    padding-top: 350px;
    background-size: contain;
    background-repeat: no-repeat;
    left: 50%;
    /* Mueve el elemento hacia la derecha */
    transform: translateX(-50%);
    /* Ajusta el elemento hacia la izquierda */
}

#overlay-newmenu20240311 .arrow {
    top: -10px;
    left: 90%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #629ade;
}

#overlay-newmenu20240311 .overlay-content {
    top: 55px;
    right: 4px;
}

#overlay-fixedstops0324 .overlay-content {
    top: 80px;
    margin-right: 17px;
    margin-left: 17px;
}

#overlay-fixedstops0324 .arrow {
    top: 145px;
    left: 10px;
    transform: translateX(-50%);
    border-top: 10px solid #629ade;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

/* Dark mode */
html.dark-mode body {
    background-color: #262626;
    color: #eeeeee;
}

.dark-mode h1 {
    background-image: url('/img/logo.png');
}

.dark-mode #formulario form {
    box-shadow: 0 2px 16px 0 rgba(41, 41, 48, 0.2);
    background-color: #323232;
}

.dark-mode #formulario form input {
    background-color: #323232;
    color: #eeeeee;
}

.dark-mode input#stopNumber {
    border-bottom: 1px solid #444;
    background: url('/img/location-white.png') no-repeat;
    background-size: 15px;
    background-position: 5px 9px;
}

.dark-mode input#lineNumber {
    background: url('/img/bus-white.png') no-repeat;
    background-size: 19px;
    background-position: 5px 9px;
}

.dark-mode #autocompleteResults,
.dark-mode #lineSuggestions {
    background-color: #333;
}

.dark-mode #welcome-box {
    box-shadow: 0 8px 64px 0 rgba(12, 12, 14, .12);
    background-color: #2d2d2d;
    border: 1px solid #404040BA !important;
}

.dark-mode .alert-box,
.dark-mode #horarios-box,
.dark-mode #nearestStopsResults {
    box-shadow: 0 8px 64px 0 rgba(12, 12, 14, .12);
    background: #2d2d2d;
}

.dark-mode #welcome-box h2,
.dark-mode .alert-box h2,
.dark-mode #horarios-box h2,
.dark-mode #nearestStopsResults h2 {
    color: #eeeeee;
}

.dark-mode #welcome-box p,
.dark-mode .alert-box p,
.dark-mode #horarios-box p,
.dark-mode #nearestStopsResults p {
    color: #eeeeee;
}

.dark-mode .stop-block,
.dark-mode .stopResult {
    background-color: #333 !important;
    color: #eeeeee;
    border: 1px solid #404040BA !important;
}

.dark-mode .highlight {
    background-color: #3b3d3d;
}

.dark-mode .line-info {
    border-top: 1px solid #404040;
}

.dark-mode .line-info h3 {
    box-shadow: 1px 1px 10px 0 rgba(12, 12, 14, .2), 0 4px 8px 0 rgba(6, 6, 7, 0.12);
}

.dark-mode button#theme-toggle {
    background-color: #222;
}

.dark-mode .stop-block .mapIcon,
.dark-mode .stopResult .mapIcon {
    background-image: url("/img/directions.png");
}

.dialog {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1100;
    top: 0;
    left: 0;
    overflow-y: auto;
    /* Permite desplazamiento vertical si el contenido es largo */
}

.dialog-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 85%;
    max-width: 500px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    /* Limita la altura máxima al 80% de la altura de la ventana */
    overflow-y: auto;
    /* Permite desplazamiento vertical si el contenido excede la altura máxima */
}

body.dialog-open {
    overflow: hidden;
    /* Previene el desplazamiento del body cuando el diálogo está abierto */
    position: fixed;
    width: 100%;
}

.dialog h2 {
    margin-top: 0;
    color: #333;
    font-size: 1em;
}

.dialog-content .dialog-subtitle {
    font-size: 0.8em;
    margin-bottom: 10px;
}

.dialog input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dialog-actions {
    text-align: right;
    margin-top: 20px;
}

.dialog button {
    margin-left: 10px;
}

.dark-mode .dialog-content {
    background-color: hsl(0, 0%, 20%);
    color: hsl(0, 0%, 92.9%);
    border: 1px solid hsl(0, 0%, 23.3%);
    box-shadow: 0 4px 8px hsla(0, 0%, 54%, 0.1);
}

.dark-mode .dialog h2 {
    color: #ededed;
}

.dark-mode .dialog input {
    background-color: #444;
    color: #fff;
    border-color: #555;
}

#configFavoritesDialog .dialog-content h2,
#favoriteDialog .dialog-content h2 {
    background-image: url('/img/directions.png');
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 25px;
}

#homeDialog .dialog-content h2 {
    background-image: url('/img/home.png');
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 25px;
}

#configFavoritesButton {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

#configFavoritesButton img {
    width: 15px;
    height: 15px;
}

#favoritesList {
    list-style-type: none;
    padding: 0;
}

#favoritesList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #cccccc1c;
    touch-action: pan-y;
    transition: transform 0.2s ease;
}

.favorite-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.favorite-name {
    flex-grow: 1;
}

.favorite-icons {
    display: flex;
    align-items: center;
}

.drag-icon {
    cursor: move;
    padding: 0 10px;
    color: #888;
    font-size: 1.2em;
}

.delete-favorite-icon {
    width: 17px;
    height: 17px;
    background-image: url('../img/trash-gray.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.favorite-item.dragging {
    opacity: 0.8;
    transform: scale(1.05);
    z-index: 1000;
    box-shadow: 0 4px 6px hsla(0, 0%, 0%, 0.2);
}

#reorder-tip {
    opacity: 0.6;
    text-align: center;
    display: none;
}

.route-favorite-icon {
    width: 20px;
    height: 20px;
    background-image: url('../img/directions.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    background-color: transparent !important;
    cursor: pointer;
    margin-right: 12px;
    margin-left: 0 !important;
    padding-left: 0 !important;
    border: none !important;
}

.search-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.search-input {
    flex-grow: 1;
}

.search-button,
#closeConfigDialog {
    background-color: hsl(169.3, 6.3%, 95%) !important;
}

.dark-mode .search-button,
.dark-mode #closeConfigDialog {
    background-color: hsl(169.3, 6.3%, 14%) !important;
}

.search-icon {
    background-image: url("../img/search.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    display: inline-block;
}

.dialog .error-message {
    color: #f34949;
    display: block;
    font-size: 0.9em;
    margin: 1em 0;
}

#homeCurrentLocationButton,
#favoriteCurrentLocationButton {
    font-size: 0.8em;
    padding: 10px;
}

.location-icon {
    background-image: url("../img/location-white.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

.map-container {
    height: 300px;
    width: 100%;
    margin-top: 10px;
}

.current-location-button {
    display: flex;
    align-items: center;
    margin: 15px auto 30px auto !important;
}

.dialog-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.search-results {
    display: none;
    position: absolute;
    z-index: 1001;
    background-color: white;
    list-style-type: none;
    padding: 5px;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    top: 156px;
    left: 7px;
}

.dark-mode .search-results {
    background-color: #333;
    color: #ededed;
}

.search-result-item {
    cursor: pointer;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

#lineSelectionDialog .line-pill {
    display: inline-block;
    margin: 5px;
    cursor: pointer;
    max-width: 120px;
    width: 120px;
}

#lineSelectionDialog .line-pill input[type="checkbox"] {
    display: none;
}

#lineSelectionDialog .pill-content {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s;
    filter: brightness(65%) grayscale(65%);
    opacity: 0.7;
}

#lineSelectionDialog .line-pill input[type="checkbox"]:checked+.pill-content {
    filter: brightness(100%) grayscale(0%);
    opacity: 1;
}

#lineSelectionDialog .line-pill input[type="checkbox"]:checked+.pill-content .line-number {
    color: inherit;
}

#lineSelectionDialog .line-number {
    font-weight: bold;
    margin-right: 5px;
    padding: 2px 5px;
    border-radius: 10px;
    background-color: inherit;
    color: white;
    transition: all 0.3s;
}

#lineSelectionDialog .line-destination {
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

#lineSelectionDialog #addSelectedLines,
#lineSelectionDialog #addAllLines {
    letter-spacing: -0.5px;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 576px) {
    .container {
        padding: 1rem;
    }
}

/* Estilos para pantallas medianas */
@media (min-width: 577px) and (max-width: 768px) {
    .container {
        padding: 2rem;
    }
}

/* Colores de las lineas */
.bus-icon.linea-1,
.linea-1 h3,
#busMap .linea-1,
span.linea-1 {
    background-color: #5ebd5a;
    stroke: #5ebd5a;
    ;
    color: #fff;
}

.bus-icon.linea-2,
.linea-2 h3,
#busMap .linea-2,
span.linea-2 {
    background-color: #f2c435;
    stroke: #f2c435;
    color: #000;
}

.bus-icon.linea-3,
.linea-3 h3,
#busMap .linea-3,
span.linea-3 {
    background-color: #ee4ba4;
    stroke: #ee4ba4;
    color: #000;
}

.bus-icon.linea-4,
.linea-4 h3,
#busMap .linea-4,
span.linea-4 {
    background-color: #aa541a;
    stroke: #aa541a;
    color: #FFF;
}

.bus-icon.linea-5,
.linea-5 h3,
#busMap .linea-5,
span.linea-5 {
    background-color: #2fb7b7;
    stroke: #2fb7b7;
    color: #fff;
}

.bus-icon.linea-6,
.linea-6 h3,
#busMap .linea-6,
span.linea-6 {
    background-color: #f29cc2;
    stroke: #f29cc2;
    color: #000;
}

.bus-icon.linea-7,
.linea-7 h3,
#busMap .linea-7,
span.linea-7 {
    background-color: #7a2b37;
    stroke: #7a2b37;
    color: #FFF;
}

.bus-icon.linea-8,
.linea-8 h3,
#busMap .linea-8,
span.linea-8 {
    background-color: #ea5d00;
    stroke: #ea5d00;
    color: #FFF;
}

.bus-icon.linea-9,
.linea-9 h3,
#busMap .linea-9,
span.linea-9 {
    background-color: #009ee6;
    stroke: #009ee6;
    color: #FFF;
}

.bus-icon.linea-10,
.linea-10 h3,
#busMap .linea-10,
span.linea-10 {
    background-color: #a01a4a;
    stroke: #a01a4a;
    color: #FFF;
}

.bus-icon.linea-13,
.linea-13 h3,
#busMap .linea-13,
span.linea-13 {
    background-color: #0051a1;
    stroke: #0051a1;
    color: #FFF;
}

.bus-icon.linea-14,
.linea-14 h3,
#busMap .linea-14,
span.linea-14 {
    background-color: #887cb9;
    stroke: #887cb9;
    color: #000;
}

.bus-icon.linea-16,
.linea-16 h3,
#busMap .linea-16,
span.linea-16 {
    background-color: #84cef5;
    stroke: #84cef5;
    color: #000;
}

.bus-icon.linea-17,
.linea-17 h3,
#busMap .linea-17,
span.linea-17 {
    background-color: #c2d403;
    stroke: #c2d403;
    color: #000;
}

.bus-icon.linea-18,
.linea-18 h3,
#busMap .linea-18,
span.linea-18 {
    background-color: #b9b8b8;
    stroke: #b9b8b8;
    color: #000;
}

.bus-icon.linea-19,
.linea-19 h3,
#busMap .linea-19,
span.linea-19 {
    background-color: #eaa874;
    stroke: #eaa874;
    color: #000;
}

.bus-icon.linea-23,
.linea-23 h3,
#busMap .linea-23,
span.linea-23 {
    background-color: #FCC600;
    stroke: #FCC600;
    color: #000;
}

.bus-icon.linea-24,
.linea-24 h3,
#busMap .linea-24,
span.linea-24 {
    background-color: #11459f;
    stroke: #11459f;
    color: #FFF;
}

.bus-icon.linea-26,
.linea-26 h3,
#busMap .linea-26,
span.linea-26 {
    background-color: #80D0F7;
    stroke: #80D0F7;
    color: #000;
}

.bus-icon.linea-C1,
.bus-icon.linea-C2,
.bus-icon.linea-C0,
.linea-C1 h3,
.linea-C2 h3,
.linea-C0 h3,
#busMap .linea-C1,
#busMap .linea-C2,
#busMap .linea-C0,
span.linea-C1,
span.linea-C2,
span.linea-C0 {
    background-color: #555553;
    stroke: #555553;
    color: #FFF;
}

.bus-icon.linea-H,
.linea-H h3,
#busMap .linea-H,
span.linea-H {
    background-color: #e5232e;
    stroke: #e5232e;
    color: #000;
}

.bus-icon.linea-M1,
.linea-M1 h3,
#busMap .linea-M1,
span.linea-M1,
.bus-icon.linea-M2,
.linea-M2 h3,
#busMap .linea-M2,
span.linea-M2,
.bus-icon.linea-M3,
.linea-M3 h3,
#busMap .linea-M3,
span.linea-M3,
.bus-icon.linea-M5,
.linea-M5 h3,
#busMap .linea-M5,
span.linea-M5,
.bus-icon.linea-M4,
.linea-M4 h3,
#busMap .linea-M4,
span.linea-M4,
.bus-icon.linea-M6,
.linea-M6 h3,
#busMap .linea-M6,
span.linea-M6,
.bus-icon.linea-M7,
.linea-M7 h3,
#busMap .linea-M7,
span.linea-M7 {
    background-color: #532FA2;
    stroke: #532FA2;
    color: #fff;
}

.bus-icon.linea-P1,
.linea-P1 h3,
#busMap .linea-P1,
span.linea-P1,
.bus-icon.linea-P2,
.linea-P2 h3,
#busMap .linea-P2,
span.linea-P2,
.bus-icon.linea-P3,
.linea-P3 h3,
#busMap .linea-P3,
span.linea-P3,
.bus-icon.linea-P6,
.linea-P6 h3,
#busMap .linea-P6,
span.linea-P6,
.bus-icon.linea-P7,
.linea-P7 h3,
#busMap .linea-P7,
span.linea-P7,
.bus-icon.linea-P13,
.linea-P13 h3,
#busMap .linea-P13,
span.linea-P13,
.bus-icon.linea-PSC1,
.linea-PSC1 h3,
#busMap .linea-PSC1,
span.linea-PSC1,
.bus-icon.linea-PSC2,
.linea-PSC2 h3,
#busMap .linea-PSC2,
span.linea-PSC2,
.bus-icon.linea-PSC3,
.linea-PSC3 h3,
#busMap .linea-PSC3,
span.linea-PSC3 {
    background-color: #792B37;
    stroke: #792B37;
    color: #fff;
}

.bus-icon.linea-U1,
.linea-U1 h3,
#busMap .linea-U1,
span.linea-U1,
.bus-icon.linea-U8,
.linea-U8 h3,
#busMap .linea-U8,
span.linea-U8 {
    background-color: #FF3067;
    stroke: #FF3067;
    color: #fff;
}

.bus-icon.linea-B1,
.linea-B1 h3,
#busMap .linea-B1,
span.linea-B1,
.bus-icon.linea-B2,
.linea-B2 h3,
#busMap .linea-B2,
span.linea-B2,
.bus-icon.linea-B3,
.linea-B3 h3,
#busMap .linea-B3,
span.linea-B3,
.bus-icon.linea-B4,
.linea-B4 h3,
#busMap .linea-B4,
span.linea-B4,
.bus-icon.linea-B5,
.linea-B5 h3,
#busMap .linea-B5,
span.linea-B5 {
    background-color: #000;
    stroke: #000;
    color: #FFF;
}

/* En dark mode debemos aclarar el color de la linea en el mapa */
.dark-mode #busMap .linea-B1,
.dark-mode #busMap .linea-B2,
.dark-mode #busMap .linea-B3,
.dark-mode #busMap .linea-B4,
.dark-mode #busMap .linea-B5 {
    stroke: #505050;
}

.bus-icon.linea-LP,
.linea-LP h3,
#busMap .linea-LP,
span.linea-LP {
    background-color: #2fb7b7;
    stroke: #2fb7b7;
    color: #FFF;
}

.bus-icon.linea-LC,
.linea-LC h3,
#busMap .linea-LC,
span.linea-LC {
    background-color: #5ebd5a;
    stroke: #5ebd5a;
    color: #FFF;
}

.bus-icon.linea-LD,
.linea-LD h3,
#busMap .linea-LD,
span.linea-LD {
    background-color: #ee4ba4;
    stroke: #ee4ba4;
    color: #FFF;
}

.bus-icon.linea-F1,
.linea-F1 h3,
#busMap .linea-F1,
span.linea-F1,
.bus-icon.linea-F2,
.linea-F2 h3,
#busMap .linea-F2,
span.linea-F2,
.bus-icon.linea-F3,
.linea-F3 h3,
#busMap .linea-F3,
span.linea-F3,
.bus-icon.linea-F4,
.linea-F4 h3,
#busMap .linea-F4,
span.linea-F4,
.bus-icon.linea-F5,
.linea-F5 h3,
#busMap .linea-F5,
span.linea-F5,
.bus-icon.linea-F6,
.linea-F6 h3,
#busMap .linea-F6,
span.linea-F6 {
    background-color: #006d38;
    stroke: #006d38;
    color: #FFF;
}

/* Lanzadera */
.bus-icon.linea-SL,
.linea-SL h3,
#busMap .linea-SL,
span.linea-SL {
    background-color: #000;
    stroke: #000;
    color: #FFF;
}

/* En dark mode debemos aclarar el color de la linea en el mapa */
.dark-mode #busMap .linea-SL {
    stroke: #505050;
}

/* Lanzaderas cementerio */
.bus-icon.linea-SC,
.linea-SC h3,
#busMap .linea-SC,
span.linea-SC,
.bus-icon.linea-CC,
.linea-CC h3,
#busMap .linea-CC,
span.linea-CC {
    background-color: #000;
    stroke: #000;
    color: #FFF;
}

/* En dark mode debemos aclarar el color de la linea en el mapa */
.dark-mode #busMap .linea-SC,
.dark-mode #busMap .linea-CC {
    stroke: #505050;
}

/* Líneas R al recinto ferial */
.bus-icon.linea-R,
.linea-R h3,
#busMap .linea-R,
span.linea-R,
.bus-icon.linea-R1,
.linea-R1 h3,
#busMap .linea-R1,
span.linea-R1,
.bus-icon.linea-R2,
.linea-R2 h3,
#busMap .linea-R2,
span.linea-R2,
.bus-icon.linea-R3,
.linea-R3 h3,
#busMap .linea-R3,
span.linea-R3,
.bus-icon.linea-R4,
.linea-R4 h3,
#busMap .linea-R4,
span.linea-R4,
.bus-icon.linea-R5,
.linea-R5 h3,
#busMap .linea-R5,
span.linea-R5 {
    background-color: #532FA2;
    stroke: #532FA2;
    color: #fff;
}

/* Líneas de ECSA */
.bus-icon.linea-L01,
.linea-L01 h3,
#busMap .linea-L01,
span.linea-L01 {
    background-color: #23b4ca;
    stroke: #23b4ca;
    color: #FFF;
}

.bus-icon.linea-L02,
.linea-L02 h3,
#busMap .linea-L02,
span.linea-L02 {
    background-color: #40af64;
    stroke: #40af64;
    color: #FFF;
}

/* Lineas de La Regional */

.bus-icon.linea-Roja,
.linea-Roja h3,
#busMap .linea-Roja,
span.linea-Roja {
    background-color: #eb4f4f;
    stroke: #eb4f4f;
    color: #FFF;
}

.bus-icon.linea-Azul,
.linea-Azul h3,
#busMap .linea-Azul,
span.linea-Azul {
    background-color: #156de7;
    stroke: #156de7;
    color: #FFF;
}

.bus-icon.linea-Verde,
.linea-Verde h3,
#busMap .linea-Verde,
span.linea-Verde {
    background-color: #40bd48;
    stroke: #40bd48;
    color: #FFF;
}

.bus-icon.linea-Buho,
.linea-Buho h3,
#busMap .linea-Buho,
span.linea-Buho {
    background-color: #000;
    stroke: #000;
    color: #FFF;
}

/* En dark mode debemos aclarar el color de la linea en el mapa */
.dark-mode #busMap .linea-Buho {
    stroke: #505050;
}

.bus-icon.linea-RioSh,
.linea-RioSh h3,
#busMap .linea-RioSh,
span.linea-RioSh {
    background-color: #e20613;
    stroke: #e20613;
    color: #FFF;
}

/* Lineas de Linecar */

.bus-icon.linea-Aerop,
.linea-Aerop h3,
#busMap .linea-Aerop,
span.linea-Aerop {
    background-color: #006680;
    stroke: #006680;
    color: #FFF;
}

/* =========================================
   FAB y Modal Guía VallaBus
   ========================================= */

#fab-guia {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: hsl(168.8, 48.2%, 32.5%);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, background-color 0.2s;
}

/* Hide FAB when overlays are active to avoid overlap */
.sidebar-open~#fab-guia,
#mapContainer.show~#fab-guia,
#iframe-container[style*="display: block"]~#fab-guia,
#horarios-box[style*="display: block"]~#fab-guia,
#nearestStopsResults[style*="display: block"]~#fab-guia {
    display: none !important;
}

#fab-guia:hover {
    transform: scale(1.05);
}

.dark-mode #fab-guia {
    background-color: hsl(168.8, 48.2%, 32.5%);
    color: #FFF;
}