/* ================================================================
   Explore Palette — floating POI picker on the map
   Adobe-style: toggle button collapses/expands the chip grid.
   ================================================================ */

.explore-palette {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    pointer-events: none; /* let map clicks pass through gaps */
}
.explore-palette > * {
    pointer-events: auto; /* re-enable on actual elements */
}

/* ── Toggle button (always visible) ── */
.explore-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(26, 46, 31, 0.88);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s;
}
.explore-toggle:active {
    background: rgba(26, 46, 31, 1);
}
.explore-toggle svg {
    display: block;
}
/* Dim the eye when collapsed */
.explore-palette.collapsed .explore-toggle {
    opacity: 0.6;
}

/* ── Collapsible body ── */
.explore-body {
    margin-top: 6px;
    background: rgba(26, 46, 31, 0.90);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    padding: 8px;
    max-width: 160px;
    max-height: 35vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.15s, transform 0.15s;
    transform-origin: top right;
}
.explore-palette.collapsed .explore-body {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* ── Chip grid — single column ── */
.explore-chips {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.explore-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    line-height: 1;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}
.explore-chip:active {
    transform: scale(0.96);
}
.explore-chip.active {
    background: rgba(58, 138, 62, 0.5);
    color: #fff;
    border-color: rgba(58, 138, 62, 0.7);
}
.explore-chip-emoji {
    font-size: 0.78rem;
    line-height: 1;
}
.explore-chip-label {
    line-height: 1;
}

/* ── Search button ── */
.explore-search-btn {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 7px 0;
    border: none;
    border-radius: 8px;
    background: var(--c-accent, #D4863A);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity 0.15s;
}
.explore-search-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.explore-search-btn:active:not(:disabled) {
    opacity: 0.8;
}

/* ── Mobile tweaks ── */
@media (max-width: 768px) {
    .explore-palette {
        top: 10px;
        right: 10px;
    }
    .explore-body {
        max-width: 200px;
        max-height: 40vh;
    }
    /* Hide long labels on very small phones — emoji only */
    @media (max-width: 380px) {
        .explore-chip-label {
            display: none;
        }
        .explore-chip {
            padding: 5px 7px;
        }
    }
}
