/* ══════════════════════════════════════════════════
   Calendario sobre <input type="date" data-datepicker> (assets/js/date-picker.js).
   Mismo aspecto que el calendario de reservas (booking-home.css, .bk-calendar / .bk-day)
   y que el panel oscuro del buscador de restaurantes (restaurant-combobox.css).
   El panel va en <body> con position:fixed. KUBYKA 20-11-2026.
   ══════════════════════════════════════════════════ */

/* En escritorio el panel sustituye al selector nativo: se oculta su icono
   (el campo ya tiene su caja con icono de calendario al lado). */
@media (hover: hover) and (pointer: fine) {
    .dp-input::-webkit-calendar-picker-indicator {
        display: none;
    }
    .dp-input {
        cursor: pointer;
    }
}

.dp-panel {
    position: fixed;
    z-index: 1000000;            /* como el buscador: por encima del drawer (999999) */
    box-sizing: border-box;
    padding: 16px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

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

/* Cabecera: "noviembre 2026" a la izquierda, flechas a la derecha */
.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dp-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: capitalize;
}

.dp-nav {
    display: flex;
    gap: 6px;
}

.dp-nav button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dp-nav button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.dp-nav button:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.dp-weekdays,
.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.dp-weekdays {
    margin-bottom: 4px;
}

.dp-weekdays span {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    padding: 6px 0;
}

/* Celda de día: rectangular con fondo gris, como .bk-day */
.dp-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 0;
    margin: 0;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dp-day:hover:not(.dp-day--disabled):not(.dp-day--empty),
.dp-day--active {
    background: rgba(255, 59, 49, 0.18);
    color: #fff;
}

.dp-day--weekend {
    background-color: rgba(255, 59, 49, 0.1);
    color: rgba(255, 59, 49, 0.6);
}

.dp-day--empty {
    visibility: hidden;
    cursor: default;
}

.dp-day--disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.dp-day--today {
    border-color: #ff3b31;
    color: #ff3b31;
    font-weight: 600;
}

.dp-day--active {
    border-color: rgba(255, 255, 255, 0.6);
}

.dp-day--selected {
    background: #ff3b31 !important;
    color: #fff !important;
    font-weight: 600;
}

/* El widget de accesibilidad pone a todo un outline rojo de 3px en :focus-visible;
   aquí los botones no reciben el foco (se queda en el campo). */
.dp-panel button:focus-visible {
    outline: none !important;
}
