/* Importação de Fontes */
@import "https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500&display=swap";
@import "https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;600;800&display=swap";

/* Reset e Estilos Globais */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    outline: none;
    -webkit-font-smoothing: antialiased;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #000;
}

a:hover {
    color: #2a4193;
}

/* Classes Auxiliares */
.txtCt {
    text-align: center !important;
}

.fs-14 {
    font-size: 14px;
}

hr {
    margin: 5px 0 !important;
}

/*
========================================================
Estilos Específicos para #maps (VIAJE CONOSCO)
========================================================
*/
#maps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: row;
    min-height: 400px; /* Define uma altura mínima */
    height: auto; /* Permite que o conteúdo defina a altura */
}

/* Duas colunas */
#maps .col-left {
    background-color: #2a4193;
    padding: 5vh 15px; 
    width: 40%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}

#maps .col-right {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden; 
}

/* Formulário e Seletores */
#mapsForm,
#destino {
    width: 100%;
}

.form-check-label {
    color: white;
}

/* Mapa substituindo a imagem estática */
#map {
    width: 100%;
    height: 100%;
    display: block;
}

/* Estilos para o conteúdo da coluna esquerda */
#maps .col-left h1 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

#maps .col-left p {
    color: #fff;
    margin-bottom: 1rem;
}

#maps .col-left #mapsForm select {
    display: block;
    margin: 5px 0;
    width: 100%;
    border: 0;
    padding: 10px 5px;
    border-left: 4px solid #f3cf18;
    appearance: none;
}

#maps .col-left #mapsForm button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f3cf18;
    color: #000;
    border: 0;
    margin-top: 10px;
}

.leaflet-right {
    display: none !important;
}

/* Botão "Ver Pedágios" */
#showPedagios {
    background-color: #F3CF18;
    border-color: #917300;
    color: black;
}

/* Ícones de rotas (Google Maps / Waze) */
#icones-rotas {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 1000; /* Fica acima do mapa */
}

#btnGoogleMaps, 
#btnWaze {
    background-color: white;
    box-shadow: 0px 0px 30px #00000099;
}

#btnGoogleMaps {
    border-color: #d84444;
    color: #d84444;
}

#btnWaze {
    border-color: #0d6efd;
    color: #0d6efd;
}

#btnGoogleMaps:hover {
    background-color: #d84444;
    color: white;
}

#btnWaze:hover {
    background-color: #0d6efd;
    color: white;
}

/* Responsividade */
@media screen and (max-width: 992px) {

    /* Empilha as colunas no mobile */
    #maps {
        flex-direction: column;
        height: auto;
    }

    /* Reordena para que o mapa (coluna direita) fique acima */
    #maps .col-right {
        order: -1;
    }

    /* Cada coluna ocupa 100% da largura no mobile */
    #maps .col-left,
    #maps .col-right {
        flex: 0 0 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    #maps .col-left {
        padding: 5vh 15px;
        margin-bottom: 20px;
    }

    /* Ajusta a altura do mapa no mobile */
    #maps .col-right {
        overflow: visible;
        height: auto;
    }

    #map {
        width: 100%;
        height: 300px; /* altura fixa para o mobile */
    }

    #maps .col-left h1 {
        font-size: 1.5rem; /* um pouco menor no mobile */
    }

    #maps .col-left p {
        font-size: 0.95rem; /* ajusta o texto */
    }
}

/* ---------------------------------------------------
   Estilos para o Modal Popup
---------------------------------------------------- */

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5); 
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px; 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Responsividade para o Modal */
@media screen and (max-width: 600px) {
    .modal-content {
        width: 90%; 
        margin: 20% auto; 
    }
}


.leaflet-popup {
    min-width: 300px;
}