/* ===== BOOKING CALENDAR & RESERVATION FORM — Sportina 760 ===== */

/* ── Calendar wrapper ─────────────────────────────────────────── */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.calendar-card,
.form-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.calendar-card h2,
.form-card h2 {
    font-family: 'Playfair Display', serif;
    color: #0a192f;
    font-size: 1.5rem;
    margin: 0 0 6px;
}

.calendar-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ── Month grid ───────────────────────────────────────────────── */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cal-title {
    font-weight: 600;
    color: #0a192f;
    font-size: 1rem;
}

.cal-nav {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.3rem;
    color: #0a192f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.cal-nav:hover {
    background: #0a192f;
    color: #fff;
}

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

.cal-weekdays div {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 6px 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: default;
    transition: background .15s, color .15s;
    color: #94a3b8;
}

.cal-day.available {
    color: #0a192f;
    cursor: pointer;
    font-weight: 500;
}

.cal-day.available:hover {
    background: #f1f5f9;
}

.cal-day.occupied {
    background: #fee2e2;
    color: #ef4444;
    text-decoration: line-through;
    cursor: not-allowed;
}

.cal-day.selected {
    background: #0a192f !important;
    color: #d4af37 !important;
    font-weight: 700;
}

.cal-day.in-range {
    background: #e2e8f0;
    color: #0a192f;
}

.cal-day.past {
    opacity: 0.35;
    cursor: not-allowed;
}

.cal-day.empty {
    pointer-events: none;
}

/* ── Legend ───────────────────────────────────────────────────── */
.cal-legend {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
}

.cal-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.cal-legend-dot.available {
    background: #e2e8f0;
    border: 1px solid #94a3b8;
}

.cal-legend-dot.occupied {
    background: #fee2e2;
}

.cal-legend-dot.selected {
    background: #0a192f;
}

/* ── Booking form ────────────────────────────────────────────── */
.selected-dates {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.date-box {
    flex: 1;
}

.date-box label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.date-box input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a192f;
    text-align: center;
}

.nights-arrow {
    font-size: 1.4rem;
    color: #d4af37;
}

#booking-nights {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    margin-top: 2px;
}

.booking-form .form-group {
    margin-bottom: 16px;
}

.booking-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 5px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #0a192f;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: #d4af37;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-submit-booking {
    width: 100%;
    padding: 14px;
    background: #0a192f;
    color: #d4af37;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    font-family: inherit;
    letter-spacing: .03em;
    margin-top: 8px;
}

.btn-submit-booking:hover {
    opacity: 0.88;
}

.btn-submit-booking:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(212, 175, 55, .3);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-note {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* ── Terms acceptance checkbox ───────────────────────────────── */
.terms-check {
    margin: 14px 0 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #d4af37;
    border-radius: 6px;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
}

.terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    accent-color: #d4af37;
    cursor: pointer;
    border: none;
    padding: 0;
}

.terms-link {
    color: #0a192f;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #d4af37;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.terms-link:hover {
    color: #d4af37;
}


/* ── Info boxes ──────────────────────────────────────────────── */
.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.booking-info-box {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.booking-info-box .info-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.booking-info-box h3 {
    color: #0a192f;
    font-size: 1rem;
    margin-bottom: 8px;
}

.booking-info-box p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* ── Toast notification ──────────────────────────────────────── */
.booking-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #0a192f;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    z-index: 9999;
    opacity: 0;
    transition: transform .35s cubic-bezier(.34, 1.2, .64, 1), opacity .35s;
    max-width: 90vw;
    text-align: center;
}

.booking-toast.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.booking-toast.toast-success {
    background: #065f46;
}

.booking-toast.toast-error {
    background: #991b1b;
}

.booking-toast.toast-warning {
    background: #92400e;
}

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

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

    .form-row {
        grid-template-columns: 1fr;
    }
}