/* BOOKING PAGE STYLES */

.booking-header {
    background: linear-gradient(135deg, #1a3a3a 0%, #0f7490 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.booking-back {
    display: inline-block;
    color: #e0f7fa;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.booking-back:hover {
    color: #fff;
}

.booking-header h1 {
    font-size: 2.2rem;
    margin: 0;
    color: #fff;
}

.booking-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* PROPERTY SELECTOR */
.property-selector {
    text-align: center;
}

.property-selector h2 {
    font-size: 1.8rem;
    color: #1a3a3a;
    margin-bottom: 2rem;
}

.property-choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.choice-btn {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Manrope', sans-serif;
}

.choice-btn span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a3a3a;
    margin-bottom: 0.5rem;
}

.choice-btn small {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.choice-btn:hover {
    border-color: #0f7490;
    box-shadow: 0 4px 12px rgba(15, 116, 144, 0.2);
}

.choice-btn.active {
    border-color: #0f7490;
    background: #0f7490;
    color: #fff;
}

.choice-btn.active span,
.choice-btn.active small {
    color: #fff;
}

/* SEARCH FILTERS */
.search-filters {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: #1a3a3a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.filter-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
}

.date-input-wrap {
    position: relative;
}

.date-input-wrap input[type="date"] {
    background-color: #fff;
}

.date-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    pointer-events: none;
}

.filter-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    padding-right: 36px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0f7490;
    box-shadow: 0 0 0 3px rgba(15, 116, 144, 0.1);
}

#checkAvailability {
    align-self: flex-end;
}

/* ROOMS SECTION */
.rooms-section h2 {
    font-size: 1.8rem;
    color: #1a3a3a;
    margin-bottom: 2rem;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.room-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.room-card-image {
    width: 100%;
    height: 200px;
    background: #e8e8e8;
    overflow: hidden;
    position: relative;
}

.room-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    background: #e8e8e8;
    user-select: none;
    touch-action: pan-y;
}

.room-gallery-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.room-gallery-img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.room-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
    transition: opacity 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.room-gallery-nav:hover {
    opacity: 0.75;
}

.room-gallery-prev {
    left: 10px;
}

.room-gallery-next {
    right: 10px;
}

.room-gallery-counter {
    position: absolute;
    right: 10px;
    bottom: 8px;
    padding: 0;
    background: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 3;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
    pointer-events: none;
}

.room-gallery-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

.room-card-content {
    padding: 20px;
}

.room-card-header {
    margin-bottom: 1rem;
}

.room-type {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a3a3a;
    margin-bottom: 0.5rem;
}

.room-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f7490;
}

.room-price small {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.room-total {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    margin-top: 0.05rem;
}


.room-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.room-features li {
    padding: 0.4rem 0;
    color: #555;
}

.room-features li:before {
    content: "✓ ";
    color: #0f7490;
    font-weight: bold;
    margin-right: 0.5rem;
}

.room-card .cta {
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
}

/* BOOKING MODAL */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.booking-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #1a3a3a;
}

.modal-content h2 {
    font-size: 1.6rem;
    color: #1a3a3a;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: #1a3a3a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0f7490;
    box-shadow: 0 0 0 3px rgba(15, 116, 144, 0.1);
}

.form-group input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.modal-content .cta {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

.success-message {
    text-align: center;
}

.success-message h3 {
    font-size: 1.4rem;
    color: #0f7490;
    margin-bottom: 1rem;
}

.success-message p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .booking-header h1 {
        font-size: 1.5rem;
    }

    .booking-section {
        margin: 30px auto;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

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

    .modal-content {
        padding: 30px 20px;
    }
}