* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial;
    background: #fff;
}

/* HEADER OTIMIZADO */
.header {
    background: linear-gradient(90deg, #0b3d91, #1456c1);
    color: #fff;
    padding: 5px 0;
}

/* BARRA VERDE */
.barra-verde {
    height: 6px;
    background: rgb(64,181,64);
}

/* CONTAINER */
.container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 10px;
}

/* LOGOS */
.logo { height: 70px; }
.logo-gi { height: 28px; }

.logo-area.direita {
    display: flex;
    justify-content: flex-end;
}

/* LAYOUT */
.layout {
    display: flex;
    height: calc(100vh - 100px);
}

/* MAPA */
.mapa-area {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.mapa-header {
    margin-bottom: 5px;
}

.mapa-header h2 {
    font-size: 16px;
}

/* MAPA */
#mapa {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* IFRAME */
#mapa iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* LOADER MELHORADO */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #0b3d91;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: auto;
    position: relative;
    top: 40%;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    border-left: 1px solid #ddd;
    padding: 15px;
    background: #f8f9fb;
}

.sidebar h3 {
    margin-bottom: 10px;
}

/* BOTÕES */
.layer {
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.layer:hover {
    border: 1px solid #1456c1;
    transform: translateX(3px);
}

.layer.active {
    background: #0b3d91;
    color: white;
}

/* RODAPÉ */
.rodape {
    background: linear-gradient(90deg, #0b3d91, #1456c1);
    color: white;
    text-align: center;
    font-size: 12px;
    padding: 4px 0;
}