/* =========================================================
   banki.ru — map.css
   Только стили карты и её элементов
   ========================================================= */


/* =========================================================
   MAP
   ========================================================= */

.map-area {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    overflow: hidden;
}

#map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* =========================================================
   LEAFLET
   ========================================================= */

.leaflet-container {
    width: 100%;
    height: 100%;
    background: #0b1524;
    font-family: inherit;
}

/* Полностью убираем стандартный блок +/- */
.leaflet-control-zoom {
    display: none !important;
}

.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 34px !important;

    margin-bottom: 6px;

    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;

    background: rgba(8, 18, 32, 0.88) !important;
    color: #ffffff !important;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.leaflet-control-zoom a:hover {
    background: rgba(20, 40, 65, 0.94) !important;
}

.leaflet-control-attribution {
    display: none !important;
}


/* =========================================================
   УБИРАЕМ ВЕРХНИЕ MAP OVERLAY
   ========================================================= */

/*
 * Эти блоки относятся только к декоративным/информационным
 * плашкам поверх карты.
 * Сама карта, маркеры, радиус и parking-card не затрагиваются.
 */

.map-brand,
.map-branding,
.map-logo,
.map-logo-card,
.map-header,
.map-title,
.map-label,
.map-counter,
.map-status,
.map-info,
.map-info-card,
.map-floating-info,
.map-floating-status,
.map-top-left,
.map-top-right,
.banki-map-brand,
.banki-map-branding,
.banki-map-title,
.banki-map-counter,
.banki-map-status,
.banki-map-info {
    display: none !important;
}


/* =========================================================
   MAP CONTENT
   ========================================================= */

.map-content {
    position: absolute;
    inset: 0;

    z-index: 5;

    pointer-events: none;
}

.map-content > * {
    pointer-events: auto;
}


/* =========================================================
   AUTH PLACEHOLDER
   ========================================================= */

#map-auth-placeholder {
    position: absolute;
    inset: 0;

    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(5, 12, 22, 0.55);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#map-auth-placeholder[hidden] {
    display: none;
}


/* =========================================================
   CENTER MARKER
   ========================================================= */

.banki-map-center-marker {
    background: transparent !important;
    border: 0 !important;
}

.banki-map-center-dot {
    position: relative;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #ffffff;

    border: 5px solid rgba(47, 128, 255, 0.9);

    box-shadow:
        0 0 0 4px rgba(47, 128, 255, 0.16),
        0 0 18px rgba(47, 128, 255, 0.55);
}


/* =========================================================
   RADIUS CIRCLE
   ========================================================= */

.leaflet-interactive {
    outline: none;
}


/* =========================================================
   LOCATION MARKER
   ========================================================= */

.banki-map-location-icon {
    background: transparent !important;
    border: 0 !important;
}

.banki-map-pin {
    --banki-pin-color: #2f80ff;

    position: relative;

    width: 34px;
    height: 44px;
}

.banki-map-pin::before {
    content: "";

    position: absolute;

    top: 2px;
    left: 4px;

    width: 26px;
    height: 26px;

    border-radius: 50% 50% 50% 0;

    background: var(--banki-pin-color);

    border: 2px solid rgba(255, 255, 255, 0.9);

    transform: rotate(-45deg);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.35);
}

.banki-map-pin-dot {
    position: absolute;

    top: 10px;
    left: 13px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #ffffff;

    z-index: 2;
}


/* =========================================================
   LOCATION POPUP
   ========================================================= */

.leaflet-popup-content-wrapper {
    padding: 0 !important;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 16px !important;

    background: rgba(8, 18, 31, 0.96) !important;

    color: #ffffff !important;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.40);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.leaflet-popup-content {
    margin: 0 !important;
    width: auto !important;
}

.leaflet-popup-tip {
    background: rgba(8, 18, 31, 0.96) !important;
}

.leaflet-popup-close-button {
    top: 7px !important;
    right: 9px !important;

    width: 28px !important;
    height: 28px !important;

    color: rgba(255, 255, 255, 0.65) !important;

    font-size: 20px !important;
}


/* =========================================================
   POPUP CONTENT
   ========================================================= */

.banki-location-popup-content {
    width: 220px;

    padding: 16px;
}

.banki-location-popup-title {
    padding-right: 22px;

    margin-bottom: 12px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
}

.banki-location-popup-coordinates-row {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 12px;
}

.banki-location-popup-coordinates {
    flex: 1;

    min-width: 0;

    color: rgba(220, 232, 248, 0.72);

    font-size: 10px;
    line-height: 1.4;

    word-break: break-word;
}

.banki-location-popup-copy {
    flex-shrink: 0;

    padding: 6px 8px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.06);

    color: rgba(255, 255, 255, 0.85);

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;

    cursor: pointer;
}

.banki-location-popup-copy:hover {
    background: rgba(255, 255, 255, 0.10);
}

.banki-location-popup-execute {
    width: 100%;

    padding: 10px 12px;

    border: 0;
    border-radius: 10px;

    background: #2f80ff;

    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.banki-location-popup-execute:hover {
    opacity: 0.9;
}

.banki-location-popup-execute:active {
    transform: scale(0.98);
}

.banki-location-popup-execute:disabled {
    opacity: 0.55;
    cursor: wait;
}


/* =========================================================
   SELECTED LOCATION CARD
   ========================================================= */

#parking-card {
    position: absolute;

    left: 16px;
    right: 16px;
    bottom: 16px;

    z-index: 15;

    max-width: 420px;

    padding: 14px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 16px;

    background: rgba(8, 18, 31, 0.88);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.32);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

#parking-card.hidden {
    display: none;
}


/* =========================================================
   MAP TEXT
   ========================================================= */

#map-location-text {
    color: #ffffff;
}

#map-coordinates-text {
    color: rgba(220, 232, 248, 0.68);

    font-variant-numeric: tabular-nums;
}


/* =========================================================
   USER LOCATION
   ========================================================= */

#user-location-marker.hidden {
    display: none;
}

#user-location-marker {
    position: absolute;

    z-index: 18;

    width: 16px;
    height: 16px;

    margin-left: -8px;
    margin-top: -8px;

    border-radius: 50%;

    background: #ffffff;

    border: 3px solid #2f80ff;

    box-shadow:
        0 0 0 5px rgba(47, 128, 255, 0.16),
        0 0 16px rgba(47, 128, 255, 0.45);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .map-area {
        min-height: 430px;
    }

    .banki-location-popup-content {
        width: 210px;
        padding: 14px;
    }

    #parking-card {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}


@media (max-width: 430px) {

    .map-area {
        min-height: 390px;
    }

    .banki-location-popup-content {
        width: 200px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .banki-location-popup-execute {
        transition: none;
    }
}