/* ============================================================
   Geography Map — карта присутствия
   ============================================================ */

.geo-map {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    font-family: var(--font-inter, 'Inter', system-ui, sans-serif);
}

/* ── Map canvas ── */
.geo-map__container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Country list panel ── */
.geo-map__country-list {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 6;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.14);
    pointer-events: none;
    max-height: calc(100% - 80px);
    overflow-y: auto;
}

.geo-map__list-title {
    font-family: var(--font-neo, system-ui, sans-serif);
    font-size: 22px;
    font-weight: 400;
    color: #111;
    line-height: 1.4;
    margin: 0 0 20px;
}

.geo-map__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.geo-map__list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #222;
    line-height: 1.2;
}

.geo-map__list-item img {
    flex-shrink: 0;
    display: block;
}

/* ── Flagpole markers (created by JS) ── */
.geo-map__flagpole-stem {
    position: absolute;
    left: 5.5px;
    top: 0;
    border-radius: 1px;
    background: #4a4a4a;
    z-index: 2;
}

.geo-map__flagpole-flag {
    position: absolute;
    left: 7px;
    top: -5px;
    display: block;
    z-index: 1;
    max-width: none;   /* override base.css img { max-width: 100% } */
    height: auto;
}

/* ── Label panels (Продажи / Производство / Инженерия) ── */
.geo-map__label {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 6px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    font-family: var(--font-inter, system-ui, sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.01em;
}

/* ── Info panel (Gettzap LLC — Russia) ── */
.geo-map__info {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
    max-width: 280px;
}

.geo-map__info-title {
    font-family: var(--font-inter, system-ui, sans-serif);
    font-size: 16px;
    font-weight: 650;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.25;
}

.geo-map__info-sub {
    font-family: var(--font-inter, system-ui, sans-serif);
    font-size: 12px;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ── Mapbox controls ── */
.mapboxgl-ctrl-bottom-right {
    right: 10px !important;
    bottom: 10px !important;
}

/* ── Tablet ── */
@media (max-width: 1170px) {
    .geo-map {
        height: 560px;
    }

    .geo-map__country-list {
        top: 24px;
        left: 24px;
        padding: 20px 20px 16px;
    }

    .geo-map__list-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .geo-map__list-item {
        font-size: 13px;
        gap: 7px;
    }

    .geo-map__list-item img {
        width: 18px;
        height: 18px;
    }
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .geo-map {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Map goes below the country list */
    .geo-map__container {
        position: relative;
        order: 2;
        width: 100%;
        height: 340px;
        flex-shrink: 0;
    }

    /* Country list moves out of absolute flow and sits above the map */
    .geo-map__country-list {
        order: 1;
        position: static;
        top: auto;
        left: auto;
        max-height: none;
        overflow: visible;
        background: var(--color-bg-light, #f5f6f6);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        padding: 32px 24px;
        box-shadow: none;
    }

    .geo-map__list-title {
        font-size: 24px;
        font-weight: 500;
        line-height: 32px;
        letter-spacing: 0;
        margin-bottom: 24px;
    }

    .geo-map__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 32px;
    }

    .geo-map__list-item {
        font-size: 16px;
    }
}
