﻿.map-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.map-page__instruction {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #d9e6dc;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.map-page__instruction-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.map-page__instruction-image-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.map-page__instruction-image {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

.map-page__instruction-text-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.map-page__instruction-title {
    margin: 0 0 12px;
    font-size: 1.7rem;
    line-height: 1.25;
    color: #1f3327;
}

.map-page__instruction-text {
    margin: 0;
    max-width: 920px;
    color: #4f5f55;
    line-height: 1.65;
}

.map-page__instruction-list {
    margin: 14px 0 0;
    padding-left: 24px;
    max-width: 920px;
    color: #2f4036;
    line-height: 1.6;
}

.map-page__instruction-item {
    padding-left: 4px;
}

    .map-page__instruction-item + .map-page__instruction-item {
        margin-top: 6px;
    }

.map-page__card {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.map-page__map-wrap {
    position: relative;
}

#map {
    width: 100%;
    height: 700px;
}

.map-page__about {
    margin-bottom: 10px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #d9e6dc;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.map-page__about-title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #1f3327;
}

.map-page__about-text {
    margin: 0;
    max-width: 920px;
    color: #4f5f55;
    line-height: 1.65;
}

    .map-page__about-text + .map-page__about-text {
        margin-top: 10px;
    }

.map-page__crosshair {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 20;
}

    .map-page__crosshair svg {
        display: block;
        width: 100%;
        height: 100%;
        overflow: visible;
    }

    .map-page__crosshair path,
    .map-page__crosshair line {
        fill: none;
        stroke: #111;
        stroke-width: 4;
        stroke-linecap: square;
        vector-effect: non-scaling-stroke;
    }

    .map-page__crosshair circle {
        fill: #111;
    }

.map-page__coords-button {
    position: absolute;
    top: 6px;
    right: 50px;
    width: 140px;
    height: 140px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 30;
    transition: transform 0.12s ease;
}

    .map-page__coords-button:hover {
        transform: scale(1.04);
    }

    .map-page__coords-button:active {
        transform: scale(0.97);
    }

    .map-page__coords-button:focus-visible {
        outline: 2px solid #2f6fed;
        outline-offset: 2px;
        border-radius: 50%;
    }

    .map-page__coords-button svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.map-page .maplibregl-ctrl-group button.maplibregl-ctrl-geolocate {
    width: 44px;
    height: 44px;
}

    .map-page .maplibregl-ctrl-group button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon {
        width: 44px;
        height: 44px;
        background-size: 24px 24px;
    }

@media (max-width: 768px) {
    .map-page__instruction {
        padding: 18px 16px;
    }

    .map-page__instruction-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .map-page__instruction-image-wrap {
        align-self: center;
    }

    .map-page__instruction-image {
        width: 120px;
    }

    .map-page__instruction-title {
        font-size: 1.35rem;
    }

    .map-page__instruction-text {
        font-size: 0.96rem;
    }

    .map-page__instruction-list {
        padding-left: 22px;
        font-size: 0.96rem;
    }

    #map {
        height: 520px;
    }

    .map-page__about {
        padding: 18px 16px;
    }

    .map-page__about-title {
        font-size: 1.18rem;
    }

    .map-page__about-text {
        font-size: 0.96rem;
    }

    .map-page__crosshair {
        width: 56px;
        height: 56px;
    }

    .map-page__coords-button {
        top: 10px;
        right: 56px;
        width: 100px;
        height: 100px;
    }

    .map-page .maplibregl-ctrl-group button.maplibregl-ctrl-geolocate {
        width: 44px;
        height: 44px;
    }

        .map-page .maplibregl-ctrl-group button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon {
            width: 44px;
            height: 44px;
            background-size: 24px 24px;
        }
}
