/* Aviation ABA Locations Map - Clean & Simple Styles */

/* Map Container */
.aviationaba-map-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 80vh; /* 80% of viewport height */
    position: relative;
    border-radius: 8px;
    overflow: visible; /* Changed from hidden to allow modal overlay */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.aviationaba-map {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Override WordPress theme constraints */
.aviationaba-map-container,
.aviationaba-map-container *,
.aviationaba-map,
.aviationaba-map * {
    box-sizing: border-box !important;
}

/* Ensure full width in common WordPress containers */
.entry-content .aviationaba-map-container,
.post-content .aviationaba-map-container,
.page-content .aviationaba-map-container,
.content .aviationaba-map-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Location Markers */
.location-marker {
    background: none !important;
    border: none !important;
}

.location-pin {
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.location-pin:hover {
    transform: scale(1.2);
}

/* Location Count Badges */
.location-count-badge {
    background: none !important;
    border: none !important;
    pointer-events: none !important;
}

.count-circle {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #7dd3c0 0%, #5cb3a0 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(125, 211, 192, 0.4);
    border: 1px solid white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    pointer-events: none !important;
    animation: fadeIn 0.5s ease-out;
    cursor: default !important;
}

.count-circle.zero-count {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(149, 165, 166, 0.3);
    opacity: 0.7;
}

/* Control Panel */
.control-panel {
    background: none;
    border: none;
    padding: 0;
}

.control-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.control-btn {
    background: linear-gradient(135deg, #7dd3c0 0%, #5cb3a0 100%);
    border: none;
    color: white;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(125, 211, 192, 0.3);
}

.control-btn:hover {
    background: linear-gradient(135deg, #6bc7b3 0%, #4a9b8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 211, 192, 0.4);
}

.back-btn {
    padding: 10px 16px;
}

.zoom-btn {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
}

.locations-btn {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #5cb3a0 0%, #4a9b8a 100%);
}


/* Locations Overlay - Full Screen */
.locations-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(125, 211, 192, 0.95) 0%, rgba(92, 179, 160, 0.95) 100%);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.locations-overlay-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdfc 100%);
    width: 100%;
    height: 100%;
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.locations-header {
    background: linear-gradient(135deg, #7dd3c0 0%, #5cb3a0 100%);
    color: white;
    padding: 25px 30px;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 15px rgba(125, 211, 192, 0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.locations-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.locations-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.9;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.locations-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.locations-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    background: #ffffff;
}

.locations-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fffe 100%);
    border: 2px solid rgba(125, 211, 192, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(125, 211, 192, 0.1);
}

.location-card:hover {
    border-color: rgba(125, 211, 192, 0.4);
    box-shadow: 0 4px 15px rgba(125, 211, 192, 0.2);
    transform: translateY(-2px);
}

.location-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.location-info p {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.location-open-btn {
    background: linear-gradient(135deg, #7dd3c0 0%, #5cb3a0 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(125, 211, 192, 0.3);
    white-space: nowrap;
}

.location-open-btn:hover {
    background: linear-gradient(135deg, #6bc7b3 0%, #4a9b8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 211, 192, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* County hover effects */
.leaflet-interactive {
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .aviationaba-map-container {
        height: 70vh; /* Slightly smaller on mobile for better UX */
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .control-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .back-btn {
        padding: 8px 12px;
    }
    
    .zoom-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .locations-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .locations-header {
        padding: 20px 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .locations-header h3 {
        font-size: 20px;
    }
    
    .locations-close {
        position: absolute;
        top: 20px;
        right: 25px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .locations-body {
        padding: 25px 20px;
    }
    
    .location-card {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .location-open-btn {
        align-self: stretch;
        text-align: center;
    }
    
    .count-circle {
        width: 18px;
        height: 18px;
        font-size: 10px;
        font-weight: 600;
    }
}