/* reservation.css - specific styles only */
.res-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 6rem;
    font-family: 'Outfit', sans-serif;
}
.res-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.res-container input, .res-container textarea, .res-container select {
    scroll-margin-top: 120px;
}
.res-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.6rem;
}
.calendar-wrapper {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}
.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}
.calendar-nav-controls {
    display: flex;
    align-items: center;
}
.nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
}
.nav-btn:hover {
    color: var(--primary);
    transform: scale(1.2);
}
.nav-btn.disabled {
    color: #e2e8f0;
    cursor: not-allowed;
    transform: none;
}
.calendar-nav h2.calendar-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid #cbd5e1;
    border-left: 1px solid #cbd5e1;
    background: #ffffff;
}
.calendar-day-header {
    background: #f8fafc;
    border-right: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #334155;
    text-align: left;
}
.calendar-cell {
    background: #ffffff;
    border-right: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    padding: 0.75rem 0.85rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: background 0.2s ease;
}
.calendar-cell:hover {
    background: #fcfcfc;
}
.calendar-cell.passed {
    background: #fcfcfc;
    opacity: 0.65;
}
.calendar-cell-date {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 0.15rem;
}
.room-status {
    font-size: 0.78rem;
    padding: 0.1rem 0;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.room-status span.dot {
    font-size: 0.75rem;
}
.room-status.available span.dot { color: #22c55e; }
.room-status.available { color: #1e293b; }
.room-status.available:hover { color: #22c55e; }
.room-status.pending span.dot { color: #3b82f6; }
.room-status.pending { color: #475569; }
.room-status.pending:hover { color: #3b82f6; }
.room-status.confirmed span.dot { color: #ef4444; }
.room-status.confirmed { color: #475569; }
.room-status.confirmed:hover { color: #ef4444; }
.room-status.passed span.dot { color: #94a3b8; }
.room-status.passed { color: #94a3b8; }


.desktop-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 0;
}

.counter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.2s;
}
.counter-btn:hover { background: var(--bg-light); }
.counter-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    height: 32px;
    font-weight: bold;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.form-group-full {
    grid-column: span 2;
}
.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--secondary);
}
.form-group input, .form-group textarea, .form-group select {
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.88rem;
    outline: none;
    transition: border 0.2s;
    scroll-margin-top: 120px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
}

.payment-box {
    background: #fafafa;
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 1rem;
}





.room-summary-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.room-summary-img {
    width: 280px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.room-summary-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.room-summary-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
}
.summary-row {
    display: flex;
    align-items: flex-start;
}
.summary-row .label {
    width: 100px;
    font-weight: 600;
    color: #64748b;
    font-size: 0.95rem;
}
.summary-row .value {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.05rem;
}
.room-name-highlight {
    color: var(--primary) !important;
    font-size: 1.25rem !important;
}

@media (max-width: 768px) {
    .room-summary-header {
        flex-direction: column;
        gap: 1rem;
    }
    .room-summary-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 10px;
    }
    .room-summary-info {
        padding: 0;
        gap: 0.5rem;
    }
    .summary-row .label {
        width: 80px;
        font-size: 0.85rem;
    }
    .summary-row .value {
        font-size: 0.95rem;
    }
    .room-name-highlight {
        font-size: 1.15rem !important;
    }

    .calendar-grid { 
        grid-template-columns: repeat(7, minmax(0, 1fr)); 
    }
    .calendar-day-header {
        font-size: 0 !important;
        padding: 0.5rem 0.2rem !important;
        text-align: center !important;
    }
    .calendar-day-header::before {
        content: attr(data-short);
        font-size: 0.95rem !important;
        font-weight: 700;
        display: block;
    }
    .calendar-cell { 
        min-height: 80px; 
        padding: 0.3rem 0.2rem; 
        gap: 0.2rem;
    }
    .calendar-cell-date {
        font-size: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .calendar-cell-date span {
        display: none !important;
    }
    .room-status {
        font-size: 0.75rem;
        padding: 0;
        letter-spacing: -0.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        gap: 0.2rem;
    }
    .room-status span.dot {
        font-size: 0.62rem;
    }
    .desktop-2col { grid-template-columns: 1fr !important; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group-full { grid-column: span 1 !important; }
    .res-card { padding: 1.25rem 1rem; }
    .res-card h3 { font-size: 1.15rem; }
    .calendar-wrapper { padding: 0.5rem 0.25rem; border-radius: 12px; }
    .calendar-nav h2.calendar-title {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 2.2rem !important;
        line-height: 1.1;
        text-align: center;
        margin: 0 1rem;
    }
    .calendar-nav h2.calendar-title .year {
        font-size: 1.15rem;
        color: #64748b;
        font-weight: 500;
        font-family: 'Outfit', sans-serif;
    }
}

/* Reservation Hour Notice Banner */
.reservation-time-notice {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.08);
    transition: all 0.3s ease;
}
.reservation-time-notice .notice-icon {
    font-size: 1.6rem;
    color: #d97706;
    margin-top: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reservation-time-notice .notice-content {
    flex: 1;
}
.reservation-time-notice .notice-content h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
}
.reservation-time-notice .notice-content p {
    margin: 0;
    font-size: 0.92rem;
    color: #b45309;
    line-height: 1.6;
}
.reservation-time-notice .notice-content p strong {
    color: #78350f;
    font-weight: 800;
}

/* Blocked State Styling */
.reservation-time-notice.blocked {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
}
.reservation-time-notice.blocked .notice-icon {
    color: #ef4444;
}
.reservation-time-notice.blocked .notice-content h4 {
    color: #991b1b;
}
.reservation-time-notice.blocked .notice-content p {
    color: #b91c1c;
}
.reservation-time-notice.blocked .notice-content p strong {
    color: #7f1d1d;
}

