/* ===================================
   SynXis-Style Booking Page
   =================================== */

body.booking-page {
    background: #f5f5f5;
}

/* Booking Header */
.booking-header {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.booking-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-header .hotel-logo {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.booking-header .logo-tagline {
    font-size: 10px;
    letter-spacing: 2px;
}

.header-contact {
    font-size: 14px;
    color: var(--text-light);
}

/* Search Bar */
.search-bar {
    background: var(--primary);
    padding: 20px 0;
    position: sticky;
    top: 65px;
    z-index: 99;
}

.search-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.search-group {
    flex: 1;
}

.search-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.search-group input,
.search-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    color: var(--text);
}

.search-group.promo {
    flex: 0.8;
}

.btn-update {
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-update:hover {
    background: var(--accent-light);
}

/* Stay Summary */
.stay-summary {
    background: white;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.stay-summary .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-info {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.summary-dates {
    font-weight: 600;
    color: var(--primary);
}

.summary-guests {
    color: var(--text-light);
}

/* Main Content */
.booking-content {
    padding: 32px 0;
}

.booking-content .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* Room Listings */
.room-listings h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 8px;
}

.results-count {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Room Card */
.room-listing {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 280px 1fr 220px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.room-listing:hover {
    box-shadow: var(--shadow-lg);
}

.room-listing.unavailable {
    opacity: 0.85;
}

/* Room Image */
.room-listing .room-image {
    position: relative;
    height: 100%;
    min-height: 240px;
}

.room-listing .room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
}

.btn-gallery {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-gallery:hover {
    background: rgba(0,0,0,0.8);
}

.unavailable-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.unavailable-overlay span {
    background: var(--error);
    color: white;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius);
}

/* Room Details */
.room-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.room-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.room-details h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
}

.room-badges {
    display: flex;
    gap: 8px;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e8f5e9;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge.popular {
    background: #e3f2fd;
    color: #1565c0;
}

.badge.upgrade {
    background: #fff3e0;
    color: #e65100;
}

.badge.luxury {
    background: linear-gradient(135deg, #d4af37 0%, #f9d976 100%);
    color: #5d4e0c;
}

.room-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.room-amenities span {
    font-size: 12px;
    color: var(--text);
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 4px;
}

.room-features {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.room-features span {
    font-size: 13px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-features span::before {
    content: '✓';
    font-weight: bold;
}

/* Room Pricing */
.room-pricing {
    padding: 24px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 1px solid var(--border);
}

.price-display {
    margin-bottom: 8px;
}

.price-from {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.price-amount {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

.price-per {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.price-total {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.price-total .taxes {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.price-total.unavailable {
    color: var(--error);
    font-weight: 600;
}

.btn-select {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.btn-select.available {
    background: var(--accent);
    color: white;
}

.btn-select.available:hover {
    background: var(--accent-light);
}

.btn-select.unavailable {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.availability-note {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.availability-note.available {
    color: var(--success);
}

.availability-note.warning {
    color: var(--warning);
}

.availability-note.unavailable {
    color: var(--error);
}

/* Waitlist Button */
.btn-waitlist {
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-waitlist:hover {
    background: var(--accent);
    color: white;
}

.btn-waitlist svg {
    stroke: currentColor;
}

/* Sidebar */
.booking-sidebar {
    position: sticky;
    top: 180px;
}

.sidebar-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.selection-empty {
    text-align: center;
    padding: 20px 0;
    color: var(--text-light);
}

.selection-empty p {
    font-weight: 500;
    margin-bottom: 4px;
}

.selection-empty span {
    font-size: 13px;
    color: var(--text-muted);
}

.stay-details,
.price-breakdown {
    margin: 16px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.total {
    font-weight: 600;
    font-size: 16px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--primary);
    border-bottom: none;
}

.btn-continue {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-continue:hover {
    background: var(--primary-light);
}

.sidebar-card.help {
    text-align: center;
}

.sidebar-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.sidebar-card.help p,
.sidebar-card.guarantee p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.help-phone {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.help-hours {
    font-size: 12px;
    color: var(--text-muted);
}

/* Booking Footer */
.booking-footer {
    background: white;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.booking-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-content p {
    font-size: 13px;
    color: var(--text-light);
}

.booking-footer .footer-links {
    display: flex;
    gap: 20px;
}

.booking-footer .footer-links a {
    font-size: 13px;
    color: var(--text-light);
}

.booking-footer .footer-links a:hover {
    color: var(--primary);
}

.powered-by {
    font-size: 12px;
    color: var(--text-muted);
}

.powered-by strong {
    color: var(--primary);
    margin-left: 4px;
}

/* ===================================
   Responsive
   =================================== */

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

    .booking-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .room-listing {
        grid-template-columns: 200px 1fr 180px;
    }
}

@media (max-width: 768px) {
    .search-form {
        flex-wrap: wrap;
    }

    .search-group {
        flex: 1 1 calc(50% - 6px);
    }

    .search-group.promo {
        flex: 1 1 100%;
    }

    .btn-update {
        flex: 1 1 100%;
    }

    .room-listing {
        grid-template-columns: 1fr;
    }

    .room-listing .room-image {
        min-height: 200px;
    }

    .room-pricing {
        border-left: none;
        border-top: 1px solid var(--border);
    }

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

    .booking-footer .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }
}
