/* ============================================================
   Olympia Group interactive map widget
   ============================================================ */
.omap {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 30px auto;
}

/* intro */
.omap-intro {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
}
.omap-intro-title {
    margin: 0 0 12px;
    font-family: "alfabet", "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: #04253e;
}
.omap-intro-text {
    margin: 0;
    font-family: "aktiv-grotesk-extended", "Inter", system-ui, sans-serif;
    font-size: 15px;
    line-height: 25px;
    color: #58595b;
}

.omap-inner {
    position: relative;
}

/* map + svg — landscape band matching the "home" viewBox ratio (1009.673 / 520) */
.omap-map {
    position: relative;
    width: 100%;
    aspect-ratio: 1009.673 / 520;
    overflow: hidden;
}
.omap-map:after {
    content: "";
    width: 100%;
    height: 100%;
    background: transparent
        radial-gradient(closest-side at 50% 50%, #ffffff00 0%, #ffffff 100%) 0%
        0% no-repeat padding-box;
    position: absolute;
    left: 0;
    top: 0;
}
.omap-svg {
    display: block;
    width: 100%;
    height: 100%;
}
.omap-svg path {
    fill: #e6eeea;
    transition: fill 0.3s ease;
}
.omap-svg path.omap-clickable {
    cursor: pointer;
}
.omap-svg path.omap-clickable:hover {
    fill: #c3ddd0;
}
.omap-svg path.is-active,
.omap-svg path.omap-clickable.is-active:hover {
    fill: #2f8a68;
}

/* sidebar (overlays the map, left) */
.omap-sidebar {
    position: absolute;
    left: 45px;
    top: 10%;
    z-index: 5;
    width: 190px;
}
.omap-sidebar-label {
    display: block;
    margin-bottom: 14px;
    font-family: "alfabet";
    font-weight: 400;
    font-size: 15px;
    color: #006547;
}
.omap-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.omap-loc {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid rgba(4, 37, 62, 0.12);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(4, 37, 62, 0.05);
    cursor: pointer;
    font-family: "aktiv-grotesk-extended", "Inter", system-ui, sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #04253e;
    transition:
        border-color 0.2s,
        color 0.2s,
        box-shadow 0.2s;
}
.omap-loc:hover,
.omap-loc.is-active {
    border-color: #006547;
    color: #006547;
    box-shadow: 0 6px 16px rgba(0, 101, 71, 0.12);
}
.omap-flag {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(4, 37, 62, 0.08);
}
.omap-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.omap-loc-name {
    flex: 1;
    text-align: left;
}
.omap-loc-arrow {
    flex: 0 0 auto;
    color: #006547;
    opacity: 0;
    transform: translateX(-4px);
    transition:
        opacity 0.2s,
        transform 0.2s;
}
.omap-loc:hover .omap-loc-arrow,
.omap-loc.is-active .omap-loc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* modal card */
.omap-modal {
    position: absolute;
    z-index: 10;
    width: 390px;
    max-width: 90%;
    box-sizing: border-box;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(4, 37, 62, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}
.omap-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.omap-modal::before {
    content: "";
    position: absolute;
    top: -8px;
    left: var(--omap-pointer, 50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 3px;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -3px -3px 8px rgba(4, 37, 62, 0.05);
}
.omap-modal-close {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 0px 18px 0px 20px;
    background: rgba(4, 37, 62, 0.06);
    color: #04253e;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}
.omap-modal-close:hover {
    background: #006547;
    color: #fff;
}
.omap-modal-title {
    margin: 0 0 8px;
    padding-right: 24px;
    font-family: "alfabet", "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.6px;
    color: #006547;
    text-transform: uppercase;
}
.omap-modal-desc {
    margin: 0 0 14px;
    font-family: "aktiv-grotesk-extended", "Inter", system-ui, sans-serif;
    font-size: 12px;
    line-height: 20px;
    color: #58595b;
}
.omap-hq {
    display: inline-block;
    margin-bottom: 16px;
    padding: 13px 15px;
    background: rgba(0, 101, 71, 0.1);
    border-radius: 999px;
    font-family: "aktiv-grotesk-extended", "Inter", system-ui, sans-serif;
    font-size: 11px;
    color: #006547;
    letter-spacing: 0px;
    border: 1px solid #00654733;
}
.omap-modal-sub {
    display: block;
    margin: 2px 0 12px;
    font-family: "aktiv-grotesk-extended", "Inter", system-ui, sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: -0.36px;
    color: #006547;
}
.omap-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.omap-pill {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid rgba(4, 37, 62, 0.15);
    border-radius: 999px;
    font-family: "aktiv-grotesk-extended", "Inter", system-ui, sans-serif;
    font-size: 11px;
    color: #006547;
    text-decoration: none;
    transition:
        border-color 0.2s,
        color 0.2s;
}
.omap-pill:hover {
    border-color: #006547;
    color: #006547;
}
.dots-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
}
.dots-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
}
.dots-top-right {
    position: absolute;
    right: 0;
    top: 0;
}
.dots-top-left {
    position: absolute;
    left: 0;
    top: 0;
}

/* mobile: sidebar becomes a horizontal, scrollbar-less list above the map */
@media (max-width: 900px) {
    .omap-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 18px;
    }
    .omap-list {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }
    .omap-list::-webkit-scrollbar {
        display: none;
    }
    .omap-loc {
        width: auto;
        flex: 0 0 auto;
    }
    .omap-modal {
        width: 280px;
    }
}
