.reservaplay-activities-wrapper {
    width: 100%;
    overflow-x: auto;
    font-size: 14px;
}

.reservaplay-activities-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.reservaplay-activities-table thead {
    background-color: #f5f5f5;
}

.rp-th,
.rp-td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.rp-type-row .rp-td-type-header {
    background-color: #e8f2ff;
    font-weight: 600;
}

.rp-activity-row .rp-td-activity-header {
    background-color: #f7f9fc;
    font-weight: 600;
}

.rp-group-row:nth-child(even) .rp-td {
    background-color: #fafafa;
}

.rp-link {
    text-decoration: underline;
}

.rp-td-no-results {
    text-align: center;
    font-style: italic;
}

.rp-filters-info {
    margin-bottom: 10px;
}

.rp-filters-separator {
    margin: 0 6px;
}



/* HORARIO POR DÍAS Y HORAS */

.rp-timetable-wrapper {
    margin-top: 20px;
}

.rp-timetable {
    table-layout: fixed;
}

.rp-th-hour,
.rp-td-hour {
    width: 70px;
    text-align: center;
    font-weight: 600;
}

.rp-th-day {
    text-align: center;
}

.rp-td-slot {
    vertical-align: top;
    height: 80px;
}

.rp-slot-box {
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 12px;
    overflow: hidden;
}

.rp-slot-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: white;
    line-height: 17px;
}

.rp-slot-months {
    font-style: italic;
    margin-bottom: 2px;
    color: #ececaa;
}

.rp-slot-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 2px;
}

.rp-slot-spots,
.rp-slot-price {
    white-space: nowrap;
}

.rp-slot-price {

    text-align: right;
    width: 100%;
}

.rp-slot-link {
    font-size: 11px;

    text-align: center;
    background-color: #d2ff31;
    border-radius: 5px;
    text-decoration: none;
}

.rp-slot-link a {
    width: 100%;
    display: block;
    text-decoration: none;
}


.rp-slot-box-header {
    padding: 6px;
    background-color: #147500;
}

.rp-slot-box-footer {
    background-color: #1475008f;
    padding: 6px;
    color: #154400;
}

.closed-class {
    background-color: #b7b7b7;
}

.future-class {
    background-color: #c2dd60;
    line-height: 18px;
    padding: 5px;
}


/* Selector de día (por defecto oculto en desktop) */
.rp-day-selector {
    display: none;
    margin-bottom: 10px;
    gap: 4px;
}

.rp-day-button {
    border: 1px solid #000;
    background-color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: white;
}

.rp-day-button.is-active {
    background-color: #21bdf0;
    color: #fff;
    border-color: #21bdf0;
}



/* --- VERSIÓN MÓVIL --- */
@media (max-width: 768px) {

    .rp-day-selector {
        display: flex;
        flex-wrap: wrap;
    }

    .rp-timetable-wrapper {
        overflow-x: visible;
    }

    /* Ocultar todas las columnas de días por defecto */
    .rp-timetable-wrapper .rp-th-day,
    .rp-timetable-wrapper .rp-td-slot {
        display: none;
    }

    /* Mostrar siempre la columna de horas */
    .rp-th-hour,
    .rp-td-hour {
        display: table-cell;
        width: 70px;
    }

    /* Mostrar solo la columna del día activo según clase en wrapper */
    .rp-timetable-wrapper.rp-day-lu .rp-th-day[data-day="lu"],
    .rp-timetable-wrapper.rp-day-lu .rp-td-slot[data-day="lu"],
    .rp-timetable-wrapper.rp-day-ma .rp-th-day[data-day="ma"],
    .rp-timetable-wrapper.rp-day-ma .rp-td-slot[data-day="ma"],
    .rp-timetable-wrapper.rp-day-mi .rp-th-day[data-day="mi"],
    .rp-timetable-wrapper.rp-day-mi .rp-td-slot[data-day="mi"],
    .rp-timetable-wrapper.rp-day-ju .rp-th-day[data-day="ju"],
    .rp-timetable-wrapper.rp-day-ju .rp-td-slot[data-day="ju"],
    .rp-timetable-wrapper.rp-day-vi .rp-th-day[data-day="vi"],
    .rp-timetable-wrapper.rp-day-vi .rp-td-slot[data-day="vi"],
    .rp-timetable-wrapper.rp-day-sa .rp-th-day[data-day="sa"],
    .rp-timetable-wrapper.rp-day-sa .rp-td-slot[data-day="sa"],
    .rp-timetable-wrapper.rp-day-do .rp-th-day[data-day="do"],
    .rp-timetable-wrapper.rp-day-do .rp-td-slot[data-day="do"] {
        display: table-cell;
    }
}

/* En desktop se ve todo el grid y el selector se oculta */
@media (min-width: 769px) {
    .rp-day-selector {
        display: none;
    }
}