/* Booking Page */
.booking-page {
    background: var(--ivory);
    min-height: 100vh;
}

.booking-form-section {
    padding: 3.5rem var(--gutter);
    max-width: var(--container);
    margin: 0 auto;
}

/* 2-column layout */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: stretch;
}

/* Form Cards */
.form-card {
    background: white;
    border-radius: 3px;
    padding: 2rem;
    border: 1px solid var(--linen);
    margin-bottom: 1.25rem;
}

.form-card-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 1.5rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--linen);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.step-badge {
    background: var(--ink);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 500;
    flex-shrink: 0;
}

/* Room Selection */
.room-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.room-option {
    position: relative;
}

.room-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.room-option-label {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.2rem;
    border: 1.5px solid var(--linen);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: white;
    height: 100%;
}

.room-option-label:hover {
    border-color: var(--stone-light);
    background: var(--sand-light);
}

.room-option input:checked + .room-option-label {
    border-color: var(--sea);
    background: var(--sand-light);
}

.room-option-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.3rem;
    font-family: var(--font-serif);
}

.room-option-capacity {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.room-option-price {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 400;
}

/* Custom Date Range Calendar */
.cal-wrap {
    font-family: var(--font-sans);
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.cal-month-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.03em;
}

.cal-nav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--stone);
    padding: 2px 8px;
    line-height: 1;
    transition: color 0.15s;
}
.cal-nav:hover { color: var(--ink); }

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.35rem;
}
.cal-weekdays span {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--stone);
    padding: 0.35rem 0;
}
.cal-weekdays span:first-child { color: var(--accent); } /* 일 */
.cal-weekdays span:last-child  { color: #5B7FA6; }       /* 토 */

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

.cal-day {
    text-align: center;
    padding: 0.45rem 0;
    font-size: 0.82rem;
    color: var(--basalt);
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.1s, color 0.1s;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
}
.cal-day--empty { cursor: default; }
.cal-day--disabled {
    color: var(--linen);
    cursor: default;
    pointer-events: none;
}
.cal-day:not(.cal-day--disabled):not(.cal-day--empty):hover {
    background: var(--sand);
}
.cal-day--today {
    color: var(--sea);
    font-weight: 500;
}
.cal-day--today::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--sea);
}
.cal-day--selected-start,
.cal-day--selected-end {
    background: var(--sea) !important;
    color: white !important;
    border-radius: 2px;
}
.cal-day--in-range {
    background: var(--sea-08);
    border-radius: 0;
    color: var(--basalt);
}
.cal-day--hover-range {
    background: var(--sea-05);
    border-radius: 0;
}
.cal-day--hover-end {
    background: var(--sea-18) !important;
    color: white !important;
    border-radius: 2px;
}

/* Date number coloring by day type */
.cal-num--sat     { color: #5B7FA6; }        /* 토: 팔레트 --sea보다 밝은 블루 */
.cal-num--holiday { color: var(--accent); }   /* 일·공휴일: 노을 브론즈 */

/* today가 주말·공휴일일 때 span 색상 명시 */
.cal-day--today .cal-num--sat     { color: #5B7FA6; }
.cal-day--today .cal-num--holiday { color: var(--accent); }

/* 선택·hover-end 상태에서 흰색 강제 */
.cal-day--selected-start span,
.cal-day--selected-end span,
.cal-day--hover-end span { color: white; }

/* Range display (check-in / check-out labels) */
.cal-range-display {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--linen);
}
.cal-range-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--linen);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.cal-range-item.active {
    border-color: var(--sea);
}
.cal-range-label {
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
}
.cal-range-date {
    font-size: 0.85rem;
    color: var(--ink);
}
.cal-range-date.empty {
    color: var(--stone-light);
}
.cal-range-sep {
    color: var(--stone-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Date Selection (legacy, kept for input focus styles) */
.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.date-input,
.text-input,
.tel-input,
.email-input,
.textarea-input {
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--linen);
    border-radius: 2px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--ink);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.date-input:focus,
.text-input:focus,
.tel-input:focus,
.email-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: var(--sea);
    box-shadow: 0 0 0 3px var(--sea-10);
}

.check-time-note {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 0.6rem;
    font-family: 'Inter', sans-serif;
}

.textarea-input {
    resize: vertical;
    min-height: 90px;
}

/* Guest Counter */
.guest-counter {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.guest-counter-btn {
    width: 34px;
    height: 34px;
    border-radius: 2px;
    border: 1.5px solid var(--stone-light);
    background: white;
    color: var(--basalt);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.guest-counter-btn:hover:not(:disabled) {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}

.guest-counter-btn:disabled {
    border-color: var(--linen);
    color: var(--stone-light);
    cursor: default;
}

.guest-count-display {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    min-width: 28px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.guest-max-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.7rem;
}

/* Customer Info */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-grid .full-width {
    grid-column: 1 / -1;
}

/* Booking Notice */
.booking-notice {
    background: var(--sand-light);
    border: 1px solid var(--linen);
    border-radius: 2px;
    padding: 1.1rem 1.4rem;
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.booking-notice strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Price Summary Card (sticky) */
.price-summary-card {
    background: var(--ink);
    border-radius: 3px;
    padding: 1.75rem;
    position: sticky;
    top: 100px;
}

.price-summary-title {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--on-dark-border);
}

.summary-room-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    color: white;
    margin-bottom: 0.4rem;
}

.summary-dates {
    font-size: 0.82rem;
    color: var(--on-dark-2);
    margin-bottom: 0.2rem;
}

.summary-divider {
    height: 1px;
    background: var(--on-dark-5);
    margin: 1.1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    margin-bottom: 0.55rem;
    color: var(--on-dark-2);
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--on-dark-border);
    margin-bottom: 0;
}

.summary-row .discount {
    color: var(--discount);
    font-weight: 400;
}

.summary-placeholder {
    text-align: center;
    color: var(--on-dark-3);
    font-size: 0.86rem;
    padding: 1.2rem 0;
    line-height: 1.9;
}

.booking-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 2px;
    color: #991b1b;
    font-size: 0.88rem;
    line-height: 1.6;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
}

.reservation-code {
    font-weight: 600;
    color: var(--sea);
    font-family: 'Inter', monospace;
    letter-spacing: 0.05em;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--sea);
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s var(--ease-out);
    margin-top: 1.4rem;
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
}

.submit-btn:hover:not(:disabled) {
    background: var(--sea-light);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: var(--disabled-bg);
    color: var(--disabled-fg);
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Success Message */
.booking-success {
    display: none;
    background: white;
    border-radius: 3px;
    border: 1px solid var(--linen);
    padding: 4rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
}

.booking-success.visible {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--sea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.6rem;
    color: white;
}

.success-title {
    font-size: 1.8rem;
    color: var(--ink);
    margin-bottom: 1rem;
    font-weight: 300;
}

.success-message {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.success-info {
    background: var(--sand-light);
    border-radius: 2px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
    text-align: left;
}

.success-info p {
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.success-info p:last-child {
    margin-bottom: 0;
}

.success-info strong {
    color: var(--accent);
}

.success-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.5rem;
    background: var(--sea);
    color: white;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.25s, transform 0.25s var(--ease-out);
}

.success-back-btn:hover {
    background: var(--sea-light);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 960px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .price-summary-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 600px) {
    .room-options {
        grid-template-columns: 1fr;
    }

    .date-inputs {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-grid .full-width {
        grid-column: 1;
    }

    .booking-form-section {
        padding: 2rem 4%;
    }

    .form-card {
        padding: 1.4rem;
    }
}
