/* ── platea-select: custom dropdown over a hidden native <select> ──
   Panel visuals mirror the filter combobox dropdown (search.css) so all
   dropdowns share the same look. The trigger inherits the original
   select's classes; rules here only add what a <button> needs. */

.platea-select {
    position: relative;
    width: 100%;
}

/* While open, lift the whole widget above sibling stacking contexts. */
.platea-select.is-open {
    z-index: 60;
}

.platea-select-native {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

.platea-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(186,158,255,0.8)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
}

.platea-select-trigger-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0.9rem;
}

.platea-select-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 60;
    min-width: 100%;
    max-height: calc(6 * 2.15rem + 0.84rem);
    padding: 0.42rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Fully opaque base: page content must never bleed through the panel. */
    background:
        radial-gradient(circle at top right, rgba(186, 158, 255, 0.14) 0%, rgba(186, 158, 255, 0) 36%),
        linear-gradient(180deg, #14121a 0%, #0b0b0e 100%);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.42),
        0 10px 20px rgba(132, 85, 239, 0.14);
    overflow-x: hidden;
    overflow-y: auto;
}

.platea-select-dropdown[hidden] {
    display: none;
}

.platea-select-dropdown::-webkit-scrollbar {
    width: 4px;
}
.platea-select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.platea-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

.platea-select-options {
    margin: 0;
    padding: 0;
    list-style: none;
}

.platea-select-item {
    margin: 0;
    padding: 0;
}

.platea-select-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.15rem;
    padding: 0.45rem 0.62rem;
    border: none;
    border-radius: 0.7rem;
    background: transparent;
    color: var(--platea-text-primary, #fff);
    font-size: 0.83rem;
    font-family: var(--platea-font-ui, inherit);
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease;
}

.platea-select-option:hover,
.platea-select-option:focus,
.platea-select-option.is-active {
    background: rgba(186, 158, 255, 0.14);
    color: #fff;
    outline: none;
}

.platea-select-option.is-selected {
    color: var(--platea-primary, #ba9eff);
    font-weight: 700;
}
