/* ====================================
   PREMIUM RESIDENCES - Booking Page CSS
   ==================================== */

.booking-page {
    background: var(--off-white);
}

.booking-main {
    padding-top: 120px;
    min-height: 100vh;
}

/* Progress Bar */
.booking-progress {
    background: var(--white);
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.progress-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--gold);
    color: var(--black);
}

.progress-step.completed .step-number {
    background: var(--dark);
    color: var(--white);
}

.progress-step span {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

.progress-step.active span {
    color: var(--dark);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 1rem;
    margin-bottom: 1.5rem;
}

/* Booking Container */
.booking-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.booking-step {
    animation: fadeIn 0.5s ease;
}

.booking-step.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

.booking-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* Date Selection */
.date-selection {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.date-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.date-field input,
.date-field select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
}

.date-field input:focus,
.date-field select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Calendar */
.calendar-container {
    background: var(--white);
    border: 1px solid #eee;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

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

.calendar-month {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.calendar-nav {
    background: none;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-nav:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    padding: 0.5rem;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.booked) {
    background: var(--cream);
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.booked {
    background: #f5e6e6;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.selected {
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
}

.calendar-day.in-range {
    background: rgba(201, 165, 92, 0.2);
}

.calendar-day.today {
    border: 1px solid var(--gold);
}

.calendar-legend {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray);
}

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

.dot.available { background: var(--white); border: 1px solid #ddd; }
.dot.booked { background: #f5e6e6; }
.dot.selected { background: var(--gold); }

/* Residence Options */
.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.residence-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.residence-option {
    cursor: pointer;
}

.residence-option input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid #eee;
    transition: var(--transition);
}

.residence-option:hover .option-content {
    border-color: var(--gold);
}

.residence-option input:checked + .option-content {
    border-color: var(--gold);
    background: rgba(201, 165, 92, 0.05);
}

.option-content img {
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.option-info {
    flex: 1;
}

.option-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.option-info p {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    gap: 1rem;
}

.option-info p i {
    color: var(--gold);
    margin-right: 0.2rem;
}

.option-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark);
    margin-top: 0.5rem;
    display: block;
}

.option-price small {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--gray);
}

.option-check {
    width: 30px;
    height: 30px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.option-check i {
    opacity: 0;
    color: var(--white);
}

.residence-option input:checked + .option-content .option-check {
    background: var(--gold);
    border-color: var(--gold);
}

.residence-option input:checked + .option-content .option-check i {
    opacity: 1;
}

/* Booking Summary */
.booking-summary {
    position: sticky;
    top: 120px;
}

.summary-card {
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.summary-card.compact {
    padding: 1.5rem;
}

.summary-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.summary-image {
    margin-bottom: 1.5rem;
}

.summary-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.summary-details {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item span {
    color: var(--gray);
    font-size: 0.9rem;
}

.summary-item strong {
    font-size: 0.9rem;
}

.summary-pricing {
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.95rem;
}

.price-row.total {
    border-top: 2px solid #eee;
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Guest Form */
.guest-form {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
}

.guest-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.guest-form .form-group {
    margin-bottom: 1.5rem;
}

.guest-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.guest-form input,
.guest-form select,
.guest-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.guest-form input:focus,
.guest-form select:focus,
.guest-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
}

.step-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Payment Section */
.payment-methods {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
}

.payment-methods h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.payment-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 2px solid #eee;
    transition: var(--transition);
}

.payment-option:hover .payment-content {
    border-color: var(--gold);
}

.payment-option input:checked + .payment-content {
    border-color: var(--gold);
    background: rgba(201, 165, 92, 0.05);
}

.payment-content i {
    font-size: 2rem;
    color: var(--dark);
}

.payment-content span {
    font-size: 0.9rem;
    font-weight: 500;
}

.card-form,
.paypal-form,
.bank-form {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-input {
    position: relative;
}

.card-input input {
    padding-right: 100px;
}

.card-icons {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
}

.card-icons i {
    font-size: 1.5rem;
    color: #ccc;
}

.payment-info {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f0f9f0;
    color: #2e7d32;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.security-badge i {
    font-size: 1.2rem;
}

.terms-check {
    margin-bottom: 2rem;
}

/* Confirmation */
.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.confirmation-icon {
    margin-bottom: 2rem;
}

.confirmation-icon i {
    font-size: 5rem;
    color: #4caf50;
}

.confirmation-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.confirmation-number {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.confirmation-number strong {
    display: block;
    font-size: 1.5rem;
    color: var(--dark);
    margin-top: 0.5rem;
    font-family: monospace;
}

.confirmation-text {
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.confirmation-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: var(--cream);
    padding: 1.5rem;
    text-align: center;
}

.detail-card h4 {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.detail-card h4 i {
    color: var(--gold);
}

.detail-card p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer Mini */
.footer-mini {
    background: var(--dark);
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.footer-mini-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-mini p {
    color: var(--gray-light);
    font-size: 0.85rem;
}

.footer-mini-links {
    display: flex;
    gap: 2rem;
}

.footer-mini-links a {
    color: var(--gray-light);
    font-size: 0.85rem;
}

.footer-mini-links a:hover {
    color: var(--gold);
}

/* RTL Support */
html[dir="rtl"] .option-content {
    flex-direction: row-reverse;
}

html[dir="rtl"] .summary-item,
html[dir="rtl"] .price-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .calendar-nav.prev i::before {
    content: '\f054';
}

html[dir="rtl"] .calendar-nav.next i::before {
    content: '\f053';
}

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

@media (max-width: 992px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .booking-summary {
        position: static;
        order: -1;
    }

    .summary-card {
        margin-bottom: 2rem;
    }

    .confirmation-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .booking-main {
        padding-top: 80px;
    }

    .progress-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .progress-line {
        display: none;
    }

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

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

    .payment-options {
        flex-direction: column;
    }

    .confirmation-details {
        grid-template-columns: 1fr;
    }

    .step-buttons {
        flex-direction: column;
    }

    .step-buttons .btn {
        width: 100%;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .btn {
        width: 100%;
    }

    .footer-mini-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .booking-container {
        padding: 1.5rem 1rem;
    }

    .option-content {
        flex-direction: column;
        text-align: center;
    }

    .option-content img {
        width: 100%;
        height: 150px;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ====================================
   OPTIONAL SERVICES
   ==================================== */

.optional-services {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 165, 92, 0.3);
}

.optional-services h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.service-option {
    cursor: pointer;
}

.service-option input {
    display: none;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 165, 92, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-content i {
    color: var(--gold);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.service-name {
    flex: 1;
    font-size: 0.85rem;
    color: var(--dark);
}

.service-price {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

.service-option input:checked + .service-content {
    background: rgba(201, 165, 92, 0.15);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(201, 165, 92, 0.2);
}

.service-option:hover .service-content {
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Dark theme adjustment */
.summary-card .optional-services {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.summary-card .service-content {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.summary-card .service-name {
    color: var(--white);
}

.summary-card .service-option input:checked + .service-content {
    background: rgba(201, 165, 92, 0.2);
    border-color: var(--gold);
}
