/* Premium Map UI Styles */

.mimap-premium-ui {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2D3748;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

.mimap-premium-ui .mimap-sidebar {
    background: #fff;
    border-right: 1px solid #E2E8F0;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.mimap-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #EDF2F7;
}

.mimap-sidebar-header h6 {
    font-size: 0.95rem;
    color: #1A202C;
}

.mimap-select-wrapper .form-select {
    border: 1px solid #E2E8F0;
    background-color: #004A99; /* As per reference */
    color: white;
    font-weight: 500;
}

.mimap-location-list {
    overflow-y: auto;
    flex-grow: 1;
}

.mimap-location-item {
    padding: 16px 24px;
    border-bottom: 1px solid #EDF2F7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mimap-location-item:hover {
    background: #F7FAFC;
}

.mimap-location-item.active {
    background: #EDF2F7;
    border-left: 4px solid #004A99;
}

.mimap-location-item .location-name {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #1A202C;
    margin-bottom: 4px;
}

.mimap-location-item .location-address {
    font-size: 0.85rem;
    color: #004A99;
    font-weight: 500;
}

/* Map specific */
.mimap-map-wrapper {
    position: relative;
    height: 600px;
}

.mimap-map-container {
    height: 100%;
}

#map {
    height: 100%;
    width: 100%;
}

/* Custom InfoWindow */
.mimap-infowindow {
    width: 300px;
    padding: 0;
    overflow: hidden;
}

.mimap-iw-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.mimap-iw-content {
    padding: 15px;
    text-align: center;
}

.mimap-iw-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #004A99;
    margin-bottom: 10px;
}

.mimap-iw-info {
    font-size: 0.85rem;
    color: #4A5568;
    line-height: 1.4;
    margin-bottom: 15px;
}

.mimap-iw-info strong {
    display: block;
    color: #2D3748;
}

.mimap-iw-footer {
    border-top: 1px solid #E2E8F0;
    padding-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mimap-iw-link {
    font-weight: 700;
    color: #004A99;
    text-decoration: none;
    font-size: 0.9rem;
}

.mimap-iw-link:hover {
    text-decoration: underline;
}

/* Help Float */
.mimap-help-float {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mimap-help-float .help-text span {
    display: block;
    font-size: 0.75rem;
    color: #718096;
}

.mimap-help-float .help-text strong {
    font-size: 0.85rem;
    color: #1A202C;
}

.mimap-help-float .help-icon {
    font-size: 1.5rem;
    color: #25D366;
}

/* Marker Styling - Leaflet popup reset for image bleed */
.leaflet-popup-content-wrapper {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}
.leaflet-popup-content {
    margin: 15px !important;
    width: 280px !important;
}
.leaflet-popup-tip-container {
    display: block;
}

/* Google Maps InfoWindow - allow image bleed */
.gm-style-iw {
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}
.gm-style-iw-d {
    overflow: hidden !important;
    padding: 15px !important;
}
.gm-style-iw-t::after {
    display: block !important;
}
button.gm-ui-hover-effect {
    top: 4px !important;
    right: 4px !important;
    background: rgba(0,0,0,0.4) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
}

.mimap-premium-ui .mimap-sidebar-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.mimap-premium-ui .mimap-sidebar-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #EDF2F7;
}
.mimap-premium-ui .mimap-sidebar-header h6 {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1A202C;
}
.mimap-premium-ui .mimap-list-container {
    overflow-y: auto;
    flex: 1;
}
.mimap-location-item {
    padding: 14px 20px;
    border-bottom: 1px solid #F0F4F8;
    cursor: pointer;
    transition: background 0.15s;
}
.mimap-location-item:hover {
    background: #F7FAFC;
}
.mimap-location-item.active {
    background: #EBF4FF;
    border-left: 3px solid #004A99;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .mimap-sidebar {
        max-height: 350px;
        order: 2;
    }
    .mimap-map-wrapper {
        height: 380px !important;
        order: 1;
    }
}
