/* Booking Page Styles */

/* Booking Hero */
.booking-hero {
    height: 50vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2825 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding-top: 80px;
}

.booking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(183, 142, 96, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.booking-hero .container {
    position: relative;
    z-index: 2;
}

.booking-hero h1 {
    font-size: 3rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Booking Section */
.booking-section {
    padding: var(--spacing-lg) 0;
    background: var(--light-bg);
}

/* Booking Type Selector */
.booking-type-selector {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.booking-type-selector h2 {
    margin-bottom: var(--spacing-sm);
}

.type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.type-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.type-card.active {
    border-color: var(--accent-color);
    background: linear-gradient(to bottom, rgba(183, 142, 96, 0.05), #fff);
}

.type-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--accent-color);
}

.type-icon svg {
    width: 100%;
    height: 100%;
}

.type-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.type-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.min-stay {
    display: inline-block;
    background: rgba(183, 142, 96, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Booking Panel */
.booking-panel {
    background: #fff;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Date Selection */
.date-selection {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.date-selection h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.date-inputs {
    display: flex;
    gap: 1rem;
}

.date-group {
    flex: 1;
}

.date-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.date-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.date-input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.stay-info {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.stay-info.valid {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.stay-info.invalid {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

.stay-info.info {
    background: rgba(183, 142, 96, 0.1);
    color: #8b6914;
}

/* Property Selection */
.property-selection h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.selection-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.property-option {
    display: block;
    cursor: pointer;
}

.property-option input {
    display: none;
}

.property-option .option-content {
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.property-option:hover .option-content {
    border-color: var(--accent-color);
    background: rgba(183, 142, 96, 0.02);
}

.property-option input:checked+.option-content {
    border-color: var(--accent-color);
    background: linear-gradient(to right, rgba(183, 142, 96, 0.08), rgba(183, 142, 96, 0.02));
}

.property-option.unavailable {
    pointer-events: none;
    opacity: 0.5;
}

.property-option.unavailable .option-content {
    border-color: #ddd;
    background: #f5f5f5;
}

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

.option-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.option-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

.option-status.available {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.option-status.unavailable {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

.option-status.blocked {
    background: rgba(255, 152, 0, 0.1);
    color: #e65100;
}

.option-details {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.maisonette-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e0e0e0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.maisonette-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Booking Summary */
.booking-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2825 100%);
    border-radius: var(--border-radius);
    color: #fff;
}

.summary-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.summary-placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.summary-details {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-item span:first-child {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.btn-book-now {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-book-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Entire Property Panel */
.entire-property-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.entire-info {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.entire-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.entire-info>p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.entire-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.entire-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
}

.entire-feature svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.entire-contact-form {
    padding: 1.5rem;
}

.entire-contact-form h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--heading-color);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: #4caf50;
}

.modal-icon svg {
    width: 100%;
    height: 100%;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content>p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.modal-details {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.modal-details p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.modal-details strong {
    color: var(--heading-color);
}

.modal-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

    .entire-property-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .type-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .booking-hero h1 {
        font-size: 2rem;
    }

    .date-inputs {
        flex-direction: column;
    }

    .booking-summary {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

    .summary-details {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}