/* Base Structure */
html, body {
    margin: 0;
    padding: 0;
}

#map {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Country Select Container */
#selectContainer {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 11px 0;
}

#countrySelect {
    width: 200px;
    margin: 0 auto;
    display: block;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out;
}

/* Reset Leaflet Controls */
.leaflet-control-layers {
    display: block !important;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.leaflet-control-zoom {
    display: block !important;
}

/* Layer Control Styles */
.leaflet-control-layers-toggle {
    width: 36px;
    height: 36px;
}

.leaflet-control-layers-expanded {
    padding: 6px 10px 6px 6px;
    background: #fff;
    border-radius: 4px;
}

.leaflet-control-layers-scrollbar {
    overflow-y: auto;
    padding-right: 5px;
    max-height: 200px;
}

/* Hide the extra layer toggle button */
.easy-button-button.leaflet-bar-part.leaflet-interactive.closed-active {
    display: none !important;
}

/* Keep other control buttons visible */
.leaflet-control-layers,
.leaflet-bar button:not(.closed-active) {
    display: block;
}

/* Modal Styles */
.modal-dialog {
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 0.3rem;
}

/* Country Info Modal Styles */
.country-flag {
    width: 60px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-card {
    transition: transform 0.2s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.info-card i {
    font-size: 1.2rem;
}

.info-card h6 {
    color: #666;
    font-size: 0.9rem;
}

.info-card p {
    font-size: 1.1rem;
}