/* ── Clubhouse Frontend Booking ────────────────────────────── */

.ch-booking {
    max-width: 900px;
}

/* ── Venue & Room Cards ───────────────────────────────────── */

.ch-venue-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

.ch-venue-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 4px;
}

.ch-room-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ch-room-card:hover {
    border-color: #d97706;
    background: #fffbeb;
}

.ch-room-card--active {
    border-color: #b45309;
    background: #fef3c7;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.ch-room-radio {
    margin-top: 3px;
    flex-shrink: 0;
}

.ch-room-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ch-room-name {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
}

.ch-room-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-room-price {
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
}

/* ── Calendar ─────────────────────────────────────────────── */

.ch-cal {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.ch-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.ch-cal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    min-width: 180px;
    text-align: center;
}

.ch-cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s;
}

.ch-cal-nav-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Legend */
.ch-cal-legend {
    display: flex;
    gap: 16px;
    padding: 8px 20px 12px;
    flex-wrap: wrap;
}

.ch-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.ch-cal-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ch-cal-legend-dot--free {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.ch-cal-legend-dot--booked {
    background: #fecaca;
    border: 1px solid #f87171;
}

.ch-cal-legend-dot--today {
    background: #bfdbfe;
    border: 1px solid #60a5fa;
}

/* Grid */
.ch-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.ch-cal-weekday {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.ch-cal-day {
    min-height: 56px;
    padding: 6px 8px;
    border-top: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ch-cal-day:nth-child(7n) {
    border-right: none;
}

.ch-cal-day--other {
    background: #fafafa;
}

.ch-cal-day--other .ch-cal-day-num {
    color: #d1d5db;
}

.ch-cal-day--today {
    background: #eff6ff;
}

.ch-cal-day--today .ch-cal-day-num {
    background: #3b82f6;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-cal-day--weekend {
    background: #fefce8;
}

.ch-cal-day--weekend.ch-cal-day--other {
    background: #fefdf5;
}

.ch-cal-day--weekend.ch-cal-day--today {
    background: #eff6ff;
}

.ch-cal-day--booked {
    background: #fef2f2;
}

.ch-cal-day--booked .ch-cal-day-num {
    color: #b91c1c;
}

.ch-cal-day--selectable {
    cursor: pointer;
    transition: background 0.15s;
}

.ch-cal-day--selectable:hover {
    background: #dcfce7;
}

.ch-cal-day--selected {
    background: #bbf7d0 !important;
    box-shadow: inset 0 0 0 2px #16a34a;
}

.ch-cal-day--selected .ch-cal-day-num {
    color: #15803d;
    font-weight: 700;
}

.ch-cal-day-num {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    line-height: 28px;
}

.ch-cal-day-badge {
    font-size: 10px;
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    padding: 0 5px;
    line-height: 16px;
    font-weight: 700;
}

/* ── Form ─────────────────────────────────────────────────── */

.ch-booking .uk-legend {
    font-size: 1em;
    font-weight: 600;
    padding-bottom: 8px;
}

/* ── Mobile ───────────────────────────────────────────────── */

@media (max-width: 639px) {
    .ch-venue-card {
        padding: 16px;
    }

    .ch-cal-day {
        min-height: 42px;
        padding: 4px;
    }

    .ch-cal-day-num {
        font-size: 12px;
    }

    .ch-cal-title {
        font-size: 15px;
        min-width: 140px;
    }

    .ch-cal-day-badge {
        font-size: 9px;
    }
}
