* {
    box-sizing: border-box;
}

html,
body,
#map {
    width: 100%;
    height: 100%;
    margin: 0;
}

html,
body {
    overflow: hidden;
    background: #f8fafc;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

#map {
    position: fixed;
    inset: 0;
    background: #eef1f4;
}


/* ==========================================================
   УБИРАЕМ СТАНДАРТНЫЕ ЭЛЕМЕНТЫ LEAFLET
   ========================================================== */

.leaflet-control-container {
    display: none;
}


/* ==========================================================
   НАШИ КНОПКИ
   ========================================================== */

.wk-controls {
    position: fixed;

    right: max(14px, env(safe-area-inset-right));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));

    z-index: 1000;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wk-map-button {
    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 14px;

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

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.08),
        0 10px 28px rgba(15, 23, 42, 0.08);

    color: #111827;

    font-size: 25px;
    font-weight: 400;

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

    padding: 0;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

.wk-map-button:active {
    transform: scale(0.96);
}

.wk-map-button.is-active {
    color: #22c55e;
}

.wk-location-arrow {
    font-size: 19px;

    line-height: 1;

    transform: rotate(-45deg);
}


/* ==========================================================
   ВОДИТЕЛИ
   ========================================================== */

.wk-driver-marker-wrap {
    background: transparent;
    border: 0;
}

.wk-driver-marker {
    position: relative;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #22c55e;

    border: 4px solid #ffffff;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.18),
        0 5px 18px rgba(15, 23, 42, 0.10);
}

.wk-driver-marker::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 30px;
    height: 30px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    border: 1px solid rgba(34, 197, 94, 0.22);
}


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

.leaflet-popup-content-wrapper {
    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.12);

    padding: 0;
}

.leaflet-popup-content {
    margin: 14px 16px;

    min-width: 150px;

    font-size: 13px;
    line-height: 1.45;

    color: #111827;
}

.leaflet-popup-tip {
    box-shadow: none;
}

.wk-driver-popup-name {
    font-weight: 600;
    font-size: 14px;

    margin-bottom: 3px;
}

.wk-driver-popup-car {
    color: #64748b;
}


/* ==========================================================
   АТРИБУЦИЯ
   Маленькая и малозаметная, но остаётся читаемой.
   ========================================================== */

.wk-attribution {
    position: fixed;

    left: max(7px, env(safe-area-inset-left));
    bottom: max(5px, env(safe-area-inset-bottom));

    z-index: 1001;

    color: rgba(51, 65, 85, 0.50);

    font-size: 9px;
    font-weight: 400;

    line-height: 1;

    text-decoration: none;

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

    padding: 3px 5px;

    border-radius: 5px;

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

.wk-attribution:hover,
.wk-attribution:focus {
    color: rgba(15, 23, 42, 0.82);
}


/* ==========================================================
   МОБИЛЬНЫЙ ЭКРАН
   ========================================================== */

@media (max-width: 480px) {

    .wk-map-button {
        width: 42px;
        height: 42px;

        border-radius: 13px;
    }

}
