.kaak-map-outer {
    position: relative;
    width: 100%;
}

.kaak-map-wrap {
    width: 100%;
    height: var(--kaak-map-h, 560px);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d8d2c2;
    background: #f6f4ee;
}

.kaak-filter-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 501;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(28, 43, 42, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}
.kaak-filter-toggle:hover { transform: scale(1.06); }
.kaak-filter-toggle svg { width: 16px; height: 16px; }

.kaak-filters {
    position: absolute;
    top: 56px;
    right: 14px;
    left: auto;
    z-index: 500;
    display: none;
    grid-template-columns: repeat(4, 34px);
    gap: 8px;
    justify-content: end;
    background: rgba(255, 255, 255, 0.97);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(28, 43, 42, 0.22);
}
.kaak-filters.kaak-filters-open {
    display: grid;
}

.kaak-recenter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 500;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(28, 43, 42, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}
.kaak-recenter:hover { transform: scale(1.06); }
.kaak-recenter svg { width: 17px; height: 17px; }

.kaak-cluster {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.kaak-chip {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(28, 43, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.kaak-chip:hover { transform: scale(1.06); }
.kaak-chip.kaak-off { opacity: 0.35; }

.kaak-chip-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.kaak-chip-swatch svg { width: 13px; height: 13px; }

.kaak-pin {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.85);
}
.kaak-pin-icon {
    transform: rotate(45deg);
    color: #fff;
    display: flex;
}
.kaak-pin-icon svg { width: 16px; height: 16px; }

.kaak-pin-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: kaak-pulse 2.2s infinite;
}

.kaak-pin-dev {
    width: 54px;
    height: 54px;
    animation: kaak-pulse 2.2s infinite;
}
.kaak-pin-dev .kaak-pin-icon svg { width: 24px; height: 24px; }

@keyframes kaak-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(200, 113, 47, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4); }
    70%  { box-shadow: 0 0 0 16px rgba(200, 113, 47, 0), 0 4px 12px rgba(0, 0, 0, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(200, 113, 47, 0), 0 4px 12px rgba(0, 0, 0, 0.4); }
}

.kaak-popup-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 3px;
}
.kaak-popup-addr {
    font-size: 12.5px;
    color: #6b6558;
    margin: 0 0 6px;
}
.kaak-popup-dist {
    font-size: 12.5px;
    margin-bottom: 6px;
    color: #1c2b2a;
}
.kaak-walk-icon {
    display: inline-flex;
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    color: #1c2b2a;
}
.kaak-walk-icon svg { width: 100%; height: 100%; }
.kaak-popup-cat {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 100px;
    color: #fff;
}
.kaak-route-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #1c2b2a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}
.kaak-route-btn:hover { background: #2f423f; }
.kaak-popup-photo {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin: 0 auto 10px auto;
}
.kaak-dev-popup {
    text-align: center;
}

.leaflet-popup-content-wrapper {
    border-radius: 3px;
    box-shadow: 0 6px 20px rgba(28, 43, 42, 0.18);
    overflow: hidden;
}
.leaflet-popup-content { margin: 14px 16px; }

@media (max-width: 640px) {
    .kaak-map-wrap { height: min(var(--kaak-map-h, 560px), 440px); }
}
