:root{
    --alturaFooter: 0px ;
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: hidden;
}

.header {
    position: absolute;
    width: calc(100vw/2);
    background-color: #1a1a1a;
    color: #ffffff;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c3e50;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    text-align: center;
    left: calc((100vw/2) - (100vw/4));
    z-index: 401;
    min-width: 450px;
    cursor: default;
}
.header h1{
    margin-bottom: 0;
}
.header nav ul{
    display: flex;
    justify-content: center;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

.search-bar h2 {
    margin-top: 0;         
    margin-bottom: 5px;
}
.search-bar{
    position: absolute;
    z-index: 401;
    left: 80%;
    padding: 20px;
    background-color: #1a1a1a;
    border-bottom-left-radius: 40%;
    border-bottom-right-radius: 40%;
    text-align: center;
    cursor: default;
    color: white;   
}
#flightSearchBox{
    display: inline-block;
    margin: 0 auto 15px auto;
    padding: 8px 12px;
    background-color: #525252;
    color: white;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}
#flightSearchSubmit{
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}
#flightSearchSubmit:hover {
    background-color: #007bff; 
}
#map {
    height:100vh;
    width:100%;
}
#detalhes_do_aviao{
    position: absolute;
}
.leaflet-tile-pane {
    filter: brightness(80%);
}
/* --- ESTILOS DO RODAPÉ --- */
.footer {
    position: absolute;
    width: calc(100vw/2);
    background-color: #1a1a1a;
    color: #ffffff;
    border-top: 2px solid #2c3e50;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    text-align: center;
    left: calc((100vw/2) - (100vw/4));
    z-index: 401;
    min-width: 450px;
    top: calc(100vh - var(--alturaFooter));
    cursor: default;
}

.footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/*leaflet testes popups*/
/*retira a ponta do popup*/
.leaflet-popup-tip-container{
    display: none;
}
.leaflet-popup-close-button{
    display: none;
}
/* ESTILOS DA CAIXA DE INFORMAÇÃO SOBRE OS AVIOES */
.info-box {
    position: absolute;
    width: 300px;
    background-color: rgb(230, 230, 230);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /*Garantir que a caixa fique acima do mapa*/
    z-index: 401; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    top: 10px;
    left: 10px;
    overflow: hidden;
    cursor: default;
}
.info-box.ativa{
    opacity: 1;
    visibility: visible;
    
}
.leaflet-control-zoom{
    top: calc(100vh - var(--alturaFooter));

}
.flight-header{
    background-color: #1a1a1a;
    color:#ffffff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.flight-header h2{
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
#btnfav {
    background: none;
    border: none;
    color: #ffca28;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
}
#btnfav .estrela-cheia {
    display: none;
}
#btnfav:hover .estrela-vazia {
    display: none; /* Esconde a vazia */
}

#btnfav:hover .estrela-cheia {
    display: inline-block; /* Mostra a cheia com o mesmo amarelo */
}
#fechar_info-box{
    cursor:pointer;
    background-color: grey;
    border: 1px solid #2e2e2e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1rem;
}
#fechar_info-box:hover{
    background-color:red;
}
.info-box img {
    width: 100%;
    height: auto;
    max-height: 150px;
}
.flight-body {
    padding: 15px;
}

.origem{
    font-weight: bold;
    color: darkblue;
    font-size: 18px;
    margin-bottom: 5px;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.data-item {
    margin-bottom: 10px;
}

.label {
    display: block;
    font-size: 0.7rem;
    color: #777;
    text-transform: uppercase;
}

.value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    background: #e1f5fe;
    color: #01579b;
    margin-top: 5px;
}