/* ==========================================
   WORLD MAP & PINS STYLING
   ========================================== */
.world-map-widget-wrapper {
    position: relative;
    width: 100%;
    background-color: #f4f0ec; 
    padding: 40px 20px;
    font-family: inherit;
    box-sizing: border-box;
}
.world-map-widget-wrapper * { box-sizing: border-box; }

.map-intro-text {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 30px auto;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
}

.world-map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.world-map-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
}

/* Hotspot Pin Positioning */
.map-pin-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Pulse Keyframes Animation */
@keyframes pinPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 58, 43, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 58, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 58, 43, 0);
    }
}

.map-pin-btn {
    width: 20px;
    height: 20px;
    background-color: #8b3a2b; 
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    animation: pinPulse 2s infinite;
    z-index:19;
}

.map-pin-btn:hover {
    transform: scale(1.3);
}

/* Tooltip Styles */
.map-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: #111b29;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 16px;
    font-weight:600;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 20;
}

.map-pin-wrapper:hover .map-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   MOBILE QUICK-SELECT NAVIGATION
   ========================================== */
.mobile-location-nav {
    display: none; /* Hidden on desktop */
}

/* ==========================================
   MODAL POPUP STYLING
   ========================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container wrapper matching modal width to anchor the outside close button consistently */
.custom-modal-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.custom-modal-box {
    background-color: #ffffff;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 40px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-box {
    transform: translateY(0);
}

/* Close button: Outside modal box, upper right, 10px from modal box edge, clean borderless/backgroundless styling */
.modal-close-btn {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 34px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    padding: 0;
    transition: opacity 0.2s ease;
}

.modal-close-btn:hover,
.modal-close-btn:focus,
.modal-close-btn:active {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.modal-eyebrow {
    display: block;
    font-size: 14px;
    color: #b87a4d; 
    margin-bottom: 8px;
}

.modal-title {
    font-size: 28px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    border-left: 3px solid #8b3a2b;
    padding-left: 14px;
    line-height: 1.2;
}

.modal-description {
    font-size: 14px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 30px;
}

.modal-description p {
    margin: 0;
}

/* ==========================================
   MODAL GALLERY GRID STYLING
   ========================================== */
.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.gallery-item {
    width: 100%;
}

.gallery-item img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media screen and (max-width: 1024px) {
    .custom-modal-container {
        width: 95%;
        max-width: 95%;
    }
    .custom-modal-box {
        max-height: 90vh;
        padding: 30px 20px;
    }
}

@media screen and (max-width: 768px) {
    .custom-modal-overlay {
        padding: 15px !important;
    }
    .custom-modal-container {
        width: 90% !important;
        max-width: 90% !important;
    }
    .custom-modal-box {
        height: 85vh !important;
        max-height: 85vh !important;
        border-radius: 12px !important;
        padding: 30px 20px 20px 20px !important;
        overflow-y: auto !important;
    }

    /* Responsive Mobile Pills Container */
    .mobile-location-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 25px;
        width: 100%;
    }
    
    .mobile-location-btn {
        background-color: #ffffff;
        color: #1a1a1a;
        border: 1px solid #e0dcd7;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 500;
        border-radius: 20px;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        transition: all 0.2s ease;
    }
    .mobile-location-btn:active,
    .mobile-location-btn:hover {
        background-color: #8b3a2b;
        color: #ffffff;
        border-color: #8b3a2b;
    }

    .modal-gallery-grid { 
        grid-template-columns: 1fr; 
    }
    .gallery-item img { 
        height: 180px !important; 
    }
}