:root {
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --content-bg: #ffffff;
}



/* Map Toggle Button */
.map-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2000;
    background: var(--base);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15)!important;
    border: 3px solid #000;
}

.map-toggle i {
    font-size: 28px;
    font-weight: 600;
    color: #000;
}

.map-toggle:hover,
.map-toggle:focus {
    transform: scale(1.1);
    outline: none;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56%;
}

.map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* Close Buttons */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.close-button:hover,
.close-button:focus {
    color: #000;
    outline: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .map-container {
        width: 95%;
        padding: 15px;
    }

    .map-toggle {
        width: 40px;
        height: 40px;
    }

    .map-overlay-content {
        padding: 5px;
    }
}

/* Accessibility */
.map-toggle:focus,
.close-button:focus {
    outline: 3px solid var(--teal-700);
    outline-offset: 2px;
}

/* Keyboard Navigation */
[tabindex="0"]:focus,
.map-point:focus {
    outline: 3px solid var(--teal-700);
    outline-offset: 2px;
}

.map-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-point {
    position: absolute;
    height: 1.5em;
    width: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 50%;
    background: #f25b68;
    border: 3px solid #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    pointer-events: auto;
    transition: transform 0.15s, box-shadow 0.15s;
    font-size: 1.1em;
}

.map-point:before {
    content: "\f34a";
    font-family: "Ionicons";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    position: absolute;
    top: -12px;
    display: block;
    font-size: 1.5em;
    line-height: 1;
    color: #222;
    pointer-events: none;
    text-shadow: 1px 2px #ffffff;
}

.map-point:focus,
.map-point:hover {
    outline: none;
    box-shadow: 0 0 0 4px rgba(211,47,47,0.2), 0 2px 8px rgba(0,0,0,0.15);
    transform: scale(1.15);
}

.map-point.active {
    box-shadow: 0 0 0 6px rgba(211,47,47,0.18), 0 2px 8px rgba(0,0,0,0.15);
    border: 3px solid white;
    background: #b71c1c;
    z-index: 3;
    transform: scale(1.15);
}

/* Map Overlay */
.map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--overlay-bg);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.map-overlay.active {
    display: flex;
}

.map-overlay-content {
    position: relative;
    width: 95vw;
    max-width: 2000px;
    background: var(--content-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.map-overlay .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 10;
}

.map-overlay .close-button:hover,
.map-overlay .close-button:focus {
    color: #000;
    outline: none;
}

.map-tooltip {
    position: absolute;
    min-width: 220px;
    max-width: 320px;
    background: #fff;
    color: #222;
    border-radius: 8px;
    box-shadow: 10px 10px 1px 0px rgba(0,0,0,0.3)!important;
    padding: 1.5em 1.5em;
    z-index: 5000;
    pointer-events: auto;
    /*transition: opacity 0.15s;*/
    border: 3px solid #000;
}

.map-tooltip h2 {
    color: #222;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.3em;
}

.map-tooltip a {
    color: #000;
    text-decoration: none;
}

.map-tooltip a:hover h2 {
    color: #444;
    text-decoration: underline;
}

.map-tooltip p {
    font-size: 1em;
    line-height:1.35;
}

.map-tooltip .tooltip-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background-color: white;
    border: none;
    color: #000;
    font-size: 1.4em;
    font-weight:600;
    line-height: 1;
    cursor: pointer;
    z-index: 110;
    padding: 0.3em 0.5em;
    border-radius: 50%;
    transition: background-color 0.15s;
    outline: 3px solid #000;
}

.map-tooltip .tooltip-close:focus,
.map-tooltip .tooltip-close:hover {
    background: #000;
    color: white;
}

@media (max-width: 600px) {
    .map-point {
        height: 1.1666667em;
        width: 1.1666667em;
    }
    .map-tooltip {
        position: absolute;
        font-size: 0.95em;
        padding: 0.7em;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .map-tooltip h2 {
        font-size: 1.1em;
    }
} 