/* =========================================
   KHUNG BẢN ĐỒ CHÍNH
========================================= */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden !important; 
}

#map {
    width: 100%;
    height: 100%; 
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* =========================================
   BASEMAP SWITCHER (GÓC PHẢI)
========================================= */
.basemap-switcher {
    position: absolute;
    top: 15px;
    right: -160px; /* Thụt ra ngoài */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 6px 0 0 6px; 
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.3; 
    transition: all 0.4s ease-in-out; 
}

.basemap-switcher:hover {
    right: 15px; 
    opacity: 1; 
}

.basemap-switcher select {
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    z-index: 1000;
}

.basemap-switcher select:hover {
    border-color: #2e7d32;
}
/* =========================================
   TÙY CHỈNH CỤM NÚT ZOOM OPENLAYERS
========================================= */
.ol-zoom {
    top: auto !important;
    bottom: 0px !important;
    left: auto !important;
    right: 0px !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 4px 0 0 0;
    padding: 4px;
    box-shadow: -2px -2px 6px rgba(0,0,0,0.2);
    
    /* Hiệu ứng ẩn/hiện mượt mà */
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
}

/* Khi rê chuột vào cụm zoom hoặc các nút bên trong thì hiển thị rõ 100% */
.ol-zoom:hover,
.ol-zoom:focus-within {
    opacity: 1;
}

/* Tinh chỉnh lùi nút bên trong cho đẹp mắt */
.ol-zoom button {
    background-color: #2e7d32 !important;
    color: white !important;
    font-size: 16px !important;
    height: 30px !important;
    width: 30px !important;
    margin: 2px !important;
    border-radius: 4px !important;
    cursor: pointer;
    border: none !important;
}

.ol-zoom button:hover {
    background-color: #1b5e20 !important;
}


