.booking-calendar {
    --calendar-ink: #243a35;
    --calendar-muted: #75847e;
    --calendar-line: #e4e9e4;
    --calendar-accent: #1c6953;
    --calendar-accent-soft: #e8f3ed;
    width: 100%;
    margin: 24px auto;
    padding: clamp(20px, 3vw, 36px);
    color: var(--calendar-ink);
    background: #fff;
    border: 1px solid rgba(31, 64, 52, .1);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(11, 38, 29, .12);
    text-align: left;
}

/* The legacy homepage uses fixed-height screen panels; let the calendar grow. */
#scrn-3,
.tickets.section-wrap {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

.booking-calendar__header,
.booking-calendar__month-control,
.booking-calendar__month-button,
.booking-calendar__legend,
.booking-calendar__slot,
.booking-calendar__slot-action {
    display: flex;
    align-items: center;
}

.booking-calendar__header {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 25px;
}

.booking-calendar__eyebrow {
    color: var(--calendar-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.booking-calendar__header h3 {
    margin: 6px 0 0;
    color: var(--calendar-ink);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
}

.booking-calendar__month-control {
    gap: 13px;
}

.booking-calendar__month {
    min-width: 150px;
    color: var(--calendar-ink);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: capitalize;
}

.booking-calendar__month-button {
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 0 3px;
    color: var(--calendar-ink);
    background: #fff;
    border: 1px solid var(--calendar-line);
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.booking-calendar__month-button:hover:not(:disabled) {
    color: var(--calendar-accent);
    border-color: var(--calendar-accent);
}

.booking-calendar__month-button:disabled {
    opacity: .35;
    cursor: default;
}

.booking-calendar__layout {
    display: grid;
    grid-template-columns: minmax(300px, .95fr) minmax(320px, 1.05fr);
    border: 1px solid var(--calendar-line);
    border-radius: 13px;
    overflow: hidden;
}

.booking-calendar__date-panel,
.booking-calendar__schedule {
    min-width: 0;
    padding: clamp(16px, 2.4vw, 27px);
}

.booking-calendar__date-panel {
    border-right: 1px solid var(--calendar-line);
}

.booking-calendar__weekdays,
.booking-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.booking-calendar__weekdays {
    margin-bottom: 8px;
}

.booking-calendar__weekdays span {
    padding: 5px 0;
    color: var(--calendar-muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.booking-calendar__day,
.booking-calendar__day-empty {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 1px;
    color: var(--calendar-muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    font: inherit;
}

.booking-calendar__day {
    cursor: pointer;
}

.booking-calendar__day.has-events {
    color: var(--calendar-ink);
    background: #f7f9f7;
    font-weight: 700;
}

.booking-calendar__day.has-events:hover,
.booking-calendar__day.is-selected {
    color: #fff;
    background: var(--calendar-accent);
}

.booking-calendar__day-count {
    color: var(--calendar-accent);
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.booking-calendar__day.has-events:hover .booking-calendar__day-count,
.booking-calendar__day.is-selected .booking-calendar__day-count {
    color: rgba(255, 255, 255, .82);
}

.booking-calendar__legend {
    gap: 8px;
    margin-top: 16px;
    color: var(--calendar-muted);
    font-size: 11px;
}

.booking-calendar__legend span {
    width: 8px;
    height: 8px;
    background: var(--calendar-accent);
    border-radius: 50%;
}

.booking-calendar__schedule {
    background: #fbfcfb;
}

.booking-calendar__selected-date {
    color: var(--calendar-ink);
    font-size: 18px;
    font-weight: 750;
    text-transform: capitalize;
}

.booking-calendar__schedule-caption {
    margin: 5px 0 17px;
    color: var(--calendar-muted);
    font-size: 12px;
}

.booking-calendar__slots {
    display: grid;
    gap: 9px;
}

.booking-calendar__slot {
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    background: #fff;
    border: 1px solid var(--calendar-line);
    border-radius: 10px;
}

.booking-calendar__slot[hidden],
.booking-calendar__no-slots[hidden] {
    display: none !important;
}

.booking-calendar__slot-time {
    flex: 0 0 auto;
    color: var(--calendar-accent);
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.booking-calendar__slot-details {
    flex: 1 1 auto;
    min-width: 0;
}

.booking-calendar__slot-details h4 {
    margin: 0 0 4px;
    overflow: hidden;
    color: var(--calendar-ink);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-calendar__availability {
    color: #4c826c;
    font-size: 10px;
}

.booking-calendar__availability.is-limited {
    color: #a36e16;
}

.booking-calendar__availability.is-unavailable {
    color: #a0645e;
}

.booking-calendar__slot-action {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.booking-calendar__slot-action strong {
    color: var(--calendar-ink);
    font-size: 12px;
    white-space: nowrap;
}

.booking-calendar__slot-action a {
    color: var(--calendar-accent);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.booking-calendar__slot-action a:hover {
    text-decoration: underline;
}

.booking-calendar__no-slots,
.booking-calendar__empty {
    margin: 8px 0;
    padding: 18px;
    color: var(--calendar-muted);
    background: #fff;
    border: 1px dashed var(--calendar-line);
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
}

.booking-calendar__empty {
    margin-top: 20px;
}

@media (max-width: 760px) {
    .booking-calendar {
        padding: 18px 14px;
        border-radius: 13px;
    }

    .booking-calendar__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-calendar__month-control {
        align-self: stretch;
        justify-content: space-between;
    }

    .booking-calendar__month {
        flex: 1;
    }

    .booking-calendar__layout {
        grid-template-columns: 1fr;
    }

    .booking-calendar__date-panel {
        border-right: 0;
        border-bottom: 1px solid var(--calendar-line);
    }

    .booking-calendar__day,
    .booking-calendar__day-empty {
        min-height: 47px;
    }

    .booking-calendar__day-count {
        font-size: 7px;
    }
}

@media (max-width: 380px) {
    .booking-calendar__slot {
        gap: 8px;
        padding: 10px 8px;
    }

    .booking-calendar__slot-time {
        font-size: 16px;
    }

    .booking-calendar__slot-action strong {
        font-size: 10px;
    }
}
