/* ==========================================================================
   Meadan Custom Select — padded dropdown panel for archive filters
   ========================================================================== */

.meadan-custom-select {
    position: relative;
    width: 100%;
}

.meadan-custom-select.is-enhanced select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.meadan-custom-select__trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 14px 28px 14px 0;
    border: none;
    border-bottom: 1px solid #1c1c1c;
    border-radius: 0;
    background: transparent;
    color: #1c1c1c;
    font-family: var(--font-body, 'Geist', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-align: left;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.meadan-custom-select.has-value .meadan-custom-select__trigger,
.meadan-custom-select.is-open .meadan-custom-select__trigger,
.meadan-custom-select__trigger:hover,
.meadan-custom-select__trigger:focus-visible {
    opacity: 1;
    outline: none;
}

.meadan-custom-select__label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meadan-custom-select__list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(28, 28, 28, 0.12);
    box-shadow: 0 8px 24px rgba(28, 28, 28, 0.12);
    max-height: 280px;
    overflow-y: auto;
}

.meadan-custom-select__list[hidden] {
    display: none;
}

.meadan-custom-select__option {
    padding: 12px 20px;
    font-family: var(--font-body, 'Geist', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #1c1c1c;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.meadan-custom-select__option:hover,
.meadan-custom-select__option.is-active {
    background-color: #f5f0ea;
}

.meadan-custom-select__option.is-selected {
    font-weight: 500;
}

/* Chevron on enhanced wrapper */
.meadan-custom-select.is-enhanced::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.2px solid #1c1c1c;
    border-bottom: 1.2px solid #1c1c1c;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    opacity: 0.5;
}
