#leaflet-map,
.leaflet-container,
.leaflet-popup-content-wrapper,
.leaflet-popup-content,
.leaflet-control {
    font-family: "Inter", system-ui, -apple-system, sans-serif !important;
}

#leaflet-map {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
}

/* Base Font for Support Page Container */
.hotro-page-container {
    font-family: "Inter", sans-serif !important;
}

/* Ensure contact icons turn white on hover */
.group:hover .contact-icon-box svg,
.group:hover .contact-icon-box .lucide {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Custom Marker Style (Custom Animation & Pin Shape) */
.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin {
    width: 44px;
    height: 44px;
    background: #115ec6;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(17, 94, 198, 0.4);
    animation: bounce 0.8s infinite alternate;
}

@keyframes bounce {
    from {
        transform: rotate(-45deg) translateY(0);
    }

    to {
        transform: rotate(-45deg) translateY(-5px);
    }
}

.marker-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 20px;
}

/* Rich Popup Style (Image 2) - Leaflet specific overrides */
.custom-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 2rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
    width: 280px;
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}

.popup-header {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.popup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.popup-header:hover .popup-img {
    transform: scale(1.1);
}

.popup-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: #f59e0b;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.popup-body {
    padding: 1.25rem;
}

.popup-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.popup-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.popup-meta span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.popup-desc {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.popup-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-directions {
    flex: 1;
    background: #173a95;
    color: white !important;
    padding: 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none !important;
}

.btn-directions:hover {
    background: #0d2a70;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(23, 58, 149, 0.2);
}

/* Custom Close Button */
.custom-popup .leaflet-popup-close-button {
    width: 32px !important;
    height: 32px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(4px);
    border-radius: 50% !important;
    color: white !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 1.25rem !important;
    right: 1.25rem !important;
    font-size: 20px !important;
    transition: all 0.3s !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0 !important;
}

.custom-popup .leaflet-popup-close-button:hover {
    background: rgba(220, 38, 38, 0.8) !important;
    /* Red on hover */
    transform: rotate(90deg);
}

.custom-popup .leaflet-popup-tip-container {
    display: none;
    /* Hide tip for modern card look */
}

/* Mobile Responsive Adjustments for Popup */
@media (max-width: 768px) {
    .popup-header {
        height: 140px;
    }
    
    .popup-body {
        padding: 1rem;
    }
    
    .popup-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .popup-meta {
        margin-bottom: 1rem;
    }
    
    .popup-desc {
        font-size: 0.75rem;
    }
    
    .btn-directions {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Make the close button slightly smaller on mobile */
    .custom-popup .leaflet-popup-close-button {
        width: 28px !important;
        height: 28px !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
        font-size: 16px !important;
    }
}