/**
 * Guest Map Styles
 * Custom styles for guest dashboard map enhancements
 */

/* Map Container Responsive Styles */
#map {
    height: calc(100vh - 250px);
    min-height: 600px;
    width: 100%;
    position: relative;
    border-radius: 0.35rem;
    overflow: hidden;
}

/* Tablet Styles */
@media (max-width: 992px) and (min-width: 769px) {
    #map {
        height: 600px;
        min-height: 600px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    #map {
        height: 500px;
        min-height: 500px;
    }
}

/* Small Mobile Styles */
@media (max-width: 576px) {
    #map {
        height: 400px;
        min-height: 400px;
    }
}

/* Loading Overlay Styles */
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 0.35rem;
}

.map-loading-content {
    text-align: center;
    padding: 2rem;
}

.map-loading-content .spinner-border {
    border-width: 4px;
    animation: spinner-border 0.75s linear infinite;
}

/* Error Alert Styles */
#map-error {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* Map Card Enhancements */
.map-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.map-card-header .header-info h6 {
    margin-bottom: 0.25rem;
}

.map-card-header .header-info small {
    color: #858796;
    font-size: 0.875rem;
}

/* User Guidance Alert */
.map-guidance-alert {
    margin-bottom: 1rem;
    border-left: 4px solid #4e73df;
}

.map-guidance-alert .alert-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* Legend Modal Enhancements */
.legend-category {
    margin-bottom: 1.5rem;
}

.legend-category:last-child {
    margin-bottom: 0;
}

.legend-category h6 {
    color: #5a5c69;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e3e6f0;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: background-color 0.2s;
}

.legend-item:hover {
    background-color: #f8f9fc;
    border-radius: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.legend-item i {
    width: 30px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.legend-item .legend-label {
    flex: 1;
    color: #5a5c69;
}

/* Accessibility Improvements */
#map:focus {
    outline: 2px solid #4e73df;
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Transitions */
#map,
.map-loading-overlay,
.map-loading-content {
    transition: opacity 0.3s ease-in-out;
}

