html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex; 
    flex-direction: column;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
}

#cabecalho {
    background-color: #1b4332;
    height: 90px;
    min-height: 60px; 
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 1000;
}

#logo-mapa {
    max-height: 90px;
    width: auto;
    margin-right: 20px;
    background-color: white;
    border-radius: 4px;
    object-fit: contain;
}

#titulo-site {
    color: #ffffff;
    font-size: 22px;
    margin: 0;
    font-weight: 500;
}

#btn-menu-camadas {
    margin-left: auto;
    background-color: #ffffff;
    color: #1b4332;
    border: 2px solid #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btn-menu-camadas:hover {
    background-color: #e2e8f0;
    color: #1b4332;
}

#map-container {
    flex: 1; 
    position: relative;
    width: 100%;
}

#map {
    width: 100%;
    height: 100%;
    position: absolute; 
    top: 0;
    left: 0;
}

.ol-control > * {
    background-color: #1b4332 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    border: 1px solid #ffffff !important;
}

.ol-attribution a, .gcd-gl-input::placeholder, .search-layer-input-search::placeholder {
    color: #444444!important;
}

.search-layer-input-search {
    background-color: #ffffff!important;
    color: #333 !important;
}

.ol-control > *:focus, .ol-control >*:hover {
    background-color: #ffffff !important;
} 

.ol-control {
    background-color: transparent !important;
    padding: 2px !important;
} 

#coordenadas {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-left: 4px solid #1b4332;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.layer-switcher.shown.panel {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    width: 320px !important;
    border-radius: 0 !important;
    background: #ffffff !important; 
    box-shadow: -4px 0 15px rgba(0,0,0,0.1) !important;
    border: none !important;
    border-left: 3px solid #1b4332 !important;
    padding: 20px !important;
    overflow-y: auto !important;
    margin: 0 !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    transition: transform 0.3s ease-in-out !important;
}

.layer-switcher.esconder-legenda {
    transform: translateX(110%) !important;
}

.layer-switcher label {
    font-size: 13.5px !important;
    color: #333 !important;
    cursor: pointer !important;
    margin-left: 6px !important;
}

.layer-switcher .group > label {
    font-weight: 700 !important;
    color: #1b4332 !important;
    text-transform: uppercase !important;
    font-size: 11.5px !important;
    letter-spacing: 0.8px !important;
    margin-top: 15px !important;
    margin-bottom: 8px !important;
    display: block !important;
    border-bottom: 2px solid #cbd5e1 !important;
    padding-bottom: 4px !important;
}

.layer-switcher li {
    margin-bottom: 6px !important;
    padding: 4px !important; 
    transition: background-color 0.2s ease;
}

.layer-switcher li:hover {
    background-color: #f1f5f9; 
    border-radius: 4px;
}

.ol-popup {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    padding: 15px 20px !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    border: 1px solid #e0e0e0 !important;
    min-width: 280px !important;
}

.ol-popup table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 5px !important;
}

.ol-popup th, .ol-popup td {
    padding: 8px 10px !important;
    text-align: left !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 13px !important;
    vertical-align: top !important;
}

.ol-popup th {
    font-weight: 600 !important;
    color: #1b4332 !important;
    background-color: #e2e8f0 !important;
    width: 40% !important;
}

.ol-popup td {
    color: #222 !important;
    font-weight: 500 !important;
}

.btn-gmaps {
    display: block;
    text-align: center;
    background-color: #1b4332;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px;
    margin-top: 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13.5px;
    transition: background-color 0.2s;
}

.btn-gmaps:hover {
    background-color: #2d6a4f;
}

.ol-gmaps-control {
    top: 100px; 
    left: .5em;
    position: absolute;
}

.ol-gmaps-control button {
    background-color: #1b4332 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    border: 1px solid #ffffff !important;
    cursor: pointer;
}

.ol-gmaps-control button:hover {
    background-color: #2d6a4f !important;
}