/* Dropdown custom para los selectores de especialista y servicio de la sección
   "Reservar cita" del centro. Comparten todas las clases para evitar duplicación.
   Reutiliza los tokens visuales de .suggestions-list (cadetblue #128f9a,
   hover #f0fbfc, sombra de panel) que ya están en SearchBar.razor.css. */

.booking-picker {
    position: relative;
    width: 100%;
}

.booking-picker__trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 64px;
    padding: 0.65rem 0.9rem;
    border: 1px solid #b9c7d6;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.booking-picker__trigger:hover {
    border-color: #128f9a;
}

.booking-picker__trigger:focus-visible {
    outline: 0;
    border-color: #128f9a;
    box-shadow: 0 0 0 0.22rem rgba(18, 143, 154, 0.12);
}

.booking-picker__trigger[disabled] {
    background: #f5f7f9;
    cursor: not-allowed;
    opacity: 0.7;
}

.booking-picker__trigger--open {
    border-color: #128f9a;
    box-shadow: 0 0 0 0.22rem rgba(18, 143, 154, 0.12);
}

.booking-picker__avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #e9f7f8;
    color: #128f9a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    overflow: hidden;
}

.booking-picker__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-picker__avatar i {
    font-size: 1.15rem;
}

.booking-picker__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.booking-picker__title {
    color: #233044;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-picker__subtitle {
    color: #7b8798;
    font-size: 0.82rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-picker__chevron {
    flex: 0 0 auto;
    color: #128f9a;
    font-size: 0.92rem;
    transition: transform 0.18s ease;
}

.booking-picker__chevron--open {
    transform: rotate(180deg);
}

.booking-picker__dropdown {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    z-index: 3000;
    background: #fff;
    border: 1px solid #dce6ef;
    border-radius: 12px;
    list-style: none;
    padding: 0.3rem;
    margin: 0;
    box-shadow: 0 14px 30px rgba(15, 66, 82, 0.12);
    max-height: 320px;
    overflow-y: auto;
}

.booking-picker__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.booking-picker__item + .booking-picker__item {
    margin-top: 0.15rem;
}

.booking-picker__item:hover {
    background: #f0fbfc;
}

.booking-picker__item--active {
    background: #e6f5f7;
}

.booking-picker__item--active .booking-picker__title {
    color: #087783;
}

.booking-picker__item--empty + .booking-picker__item {
    border-top: 1px solid #eef3f7;
    padding-top: 0.65rem;
    margin-top: 0.3rem;
}

.booking-picker__item--empty .booking-picker__title {
    color: #566174;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .booking-picker__trigger {
        min-height: 60px;
        padding: 0.55rem 0.75rem;
    }

    .booking-picker__avatar {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .booking-picker__title {
        font-size: 0.9rem;
    }

    .booking-picker__subtitle {
        font-size: 0.78rem;
    }
}
