/* ══════════════════════════════════════════════════
   Buscador de restaurantes sobre <select data-combobox>
   (assets/js/restaurant-combobox.js). El select cerrado conserva su estilo;
   esto solo pinta el panel, que va en <body> con position:fixed.
   Temas: .rcb-theme-dark (wizard de la home) · .rcb-theme-light (drawer de cabecera).
   ══════════════════════════════════════════════════ */

.rcb-panel {
    position: fixed;
    z-index: 1000000;            /* por encima del drawer (.canvas-nav-wrap: 999999) */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 8px;
}

.rcb-panel[hidden] {
    display: none;
}

/* Reset de las reglas globales de la plantilla para input[type="search"] y su :focus */
.rcb-panel .rcb-input,
.rcb-panel .rcb-input:focus {
    flex: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    margin: 0 0 6px;
    padding: 0 12px;
    line-height: normal;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: text;
}

/* El widget de accesibilidad pone a todo un outline rojo de 3px en :focus-visible.
   Aquí el foco ya se indica con el color del borde del buscador. */
.rcb-panel .rcb-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.rcb-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 280px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rcb-option,
.rcb-empty {
    padding: 9px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.3;
}

.rcb-option {
    cursor: pointer;
}

.rcb-option mark {
    background: none;
    color: inherit;
    font-weight: 700;
    padding: 0;
}

.rcb-empty {
    opacity: 0.6;
    cursor: default;
}

/* ── Tema oscuro: wizard de la home (esquinas rectas, como sus campos) ── */
.rcb-theme-dark {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.rcb-theme-dark .rcb-input,
.rcb-theme-dark .rcb-input:focus {
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    color: #fff;
}

.rcb-theme-dark .rcb-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.rcb-theme-dark .rcb-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.rcb-theme-dark .rcb-option,
.rcb-theme-dark .rcb-empty {
    color: #fff;
}

.rcb-theme-dark .rcb-option[aria-selected="true"] {
    color: #ff3b31;
}

.rcb-theme-dark .rcb-option.rcb-active {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Tema claro: drawer de cabecera (redondeado, como sus campos) ── */
.rcb-theme-light {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.rcb-theme-light .rcb-input,
.rcb-theme-light .rcb-input:focus {
    background: #fafafa;
    border: 1.5px solid #e0e0e0;
    border-radius: 100px;
    color: #111;
    font-size: 13px;
}

.rcb-theme-light .rcb-input:focus {
    border-color: #ff3b31;
}

.rcb-theme-light .rcb-input::placeholder {
    color: #999;
}

.rcb-theme-light .rcb-option,
.rcb-theme-light .rcb-empty {
    color: #111;
    font-size: 13px;
    border-radius: 10px;
}

.rcb-theme-light .rcb-option[aria-selected="true"] {
    color: #ff3b31;
}

.rcb-theme-light .rcb-option.rcb-active {
    background: #f2f2f2;
}


/* ── Sin buscador (data-combobox-search="false"): listas cortas ──
   El input sigue existiendo (recibe el foco y el teclado) pero no se ve. */
.rcb-panel.rcb-no-search .rcb-input,
.rcb-panel.rcb-no-search .rcb-input:focus {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
