body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#map {
    height: 100vh;
}

/* ── Filter container ── */

#filters-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    min-width: 160px;
}

/* ── Markers ── */

.emoji-icon {
    font-size: 24px;
    text-align: center;
    line-height: 32px;
}

.emoji-marker {
    z-index: 1;
}

.cluster-emoji {
    position: relative;
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cluster-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #D4537E;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* ── Toggle row ── */

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 12px;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    width: fit-content;
}

.toggle-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.toggle-text {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    flex: 1;
}

.toggle-switch {
    width: 42px;
    height: 24px;
    background: #D4537E;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    top: 3px;
    right: 3px;
    transition: right 0.2s ease, left 0.2s ease;
}

.toggle-switch.off {
    background: #d0d0d0;
}

.toggle-switch.off::after {
    right: auto;
    left: 3px;
}

/* ── Chips ── */

.chips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.filter-label {
    font-size: 11px;
    color: #888780;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-top: 12px;
    margin-bottom: 8px;
}

.chips-reset {
    font-size: 12px;
    font-weight: 500;
    color: #888780;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.chips-reset:hover {
    color: #1a1a1a;
}

.chips-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.chips-row::-webkit-scrollbar {
    display: none;
}

.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    background: #ffffff;
    color: #1a1a1a;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.chip:active {
    transform: scale(0.97);
}

.chip.active {
    background: #2C2C2A;
    color: #F1EFE8;
    border-color: #2C2C2A;
}

.chip-icon {
    font-size: 15px;
    line-height: 1;
}

/* ── Mobile ── */

@media (max-width: 600px) {

    #filters-container {
        top: auto;
        bottom: 12px;
        left: 12px;
        right: 12px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px;
        border-radius: 16px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        overflow-x: visible;
        white-space: normal;
    }

    .toggle-row {
        width: fit-content;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .chips-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .chip {
        flex-shrink: 0;
        font-size: 14px;
        padding: 8px 14px;
    }
}