/**
 * LUXURY ROOM DETAILS - Travel Magazine Style
 * Brand Colors: Blue #2077ba, Orange #ffbe5f
 * Design: 2-column layout (70/30), max-width 1200px, masonry grid, sticky booking
 */

:root {
    --brand-blue: #2077ba;
    --brand-blue-dark: #1a5f94;
    --brand-orange: #ffbe5f;
    --brand-orange-dark: #f9b33b;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-cream: #fafaf8;
    --border-light: #eee;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* Reset */
.room-luxury-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.room-luxury-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography - Serif for headings */
.room-luxury-page h1,
.room-luxury-page h2,
.room-luxury-page h3,
.room-luxury-page .heading-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* =====================================================
   MAIN CONTAINER - Centered, max-width 1200px
   ===================================================== */
.luxury-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   HERO SECTION - Masonry Photo Grid
   ===================================================== */
.hero-gallery {
    padding: 24px 0 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 240px);
    gap: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.photo-grid-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-grid-item:hover img {
    transform: scale(1.05);
}

.photo-main {
    grid-row: span 2;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-grid-item:hover .photo-overlay {
    opacity: 1;
}

/* Show All Photos Button */
.show-all-photos {
    position: absolute !important;
    bottom: 16px !important;
    right: 16px !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
    z-index: 10;
}

.show-all-photos:hover {
    background: var(--text-dark);
    color: var(--bg-white);
}

/* Single Image Fallback */
.hero-single-image {
    height: 60vh;
    min-height: 400px;
    max-height: 550px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.hero-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   TWO-COLUMN LAYOUT (70% / 30%)
   ===================================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    padding: 48px 0 80px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 24px;
}

/* =====================================================
   TITLE BLOCK - Luxury Typography
   ===================================================== */
.title-block {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--brand-blue-dark);
}

.room-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--brand-blue);
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.room-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-orange-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.room-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 15px;
}

.room-location i {
    color: var(--brand-blue);
    font-size: 14px;
}

/* =====================================================
   STATS ROW - Clean Icons
   ===================================================== */
.stats-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 32px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item i {
    color: var(--brand-blue);
    font-size: 18px;
}

.stat-item span {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
}

.stat-divider {
    width: 4px;
    height: 4px;
    background: var(--text-light);
    border-radius: 50%;
}

/* =====================================================
   DESCRIPTION - Drop Cap Style
   ===================================================== */
.description-section {
    margin-bottom: 48px;
}

.description-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 750px;
}

.description-text.has-dropcap::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 6px;
    color: var(--brand-orange-dark);
    font-weight: 600;
}

.description-text p {
    margin-bottom: 1rem;
}

.description-text p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   AMENITIES - Minimalist Grid
   ===================================================== */
.amenities-section {
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.section-header {
    margin-bottom: 28px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.amenity-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.amenity-icon i {
    color: var(--bg-white);
    font-size: 12px;
}

.amenity-name {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Amenity Category Headers */
.amenity-category {
    margin-bottom: 32px;
}

.amenity-category:last-child {
    margin-bottom: 0;
}

.amenity-category-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(32, 119, 186, 0.15);
}

/* =====================================================
   STICKY BOOKING CARD
   ===================================================== */
.booking-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 28px;
    border: 1px solid var(--border-light);
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 24px;
}

.price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--brand-blue);
}

.price-period {
    font-size: 15px;
    color: var(--text-light);
}

.booking-divider {
    height: 1px;
    background: var(--border-light);
    margin: 20px 0;
}

.booking-details {
    margin-bottom: 24px;
}

.booking-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.booking-detail-label {
    color: var(--text-light);
    font-size: 14px;
}

.booking-detail-value {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
}

.book-now-btn {
    width: 100%;
    background: var(--brand-orange-dark);
    color: var(--bg-white);
    border: none;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-now-btn:hover {
    background: #e5a235;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 179, 59, 0.4);
}

.booking-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 16px;
}

/* Contact Host Link */
.contact-host {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.contact-host a {
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
}

.contact-host a:hover {
    color: var(--brand-blue-dark);
}

/* =====================================================
   OTHER ROOMS SECTION
   ===================================================== */
.other-rooms-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.other-rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.other-room-card {
    display: block;
    text-decoration: none;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.other-room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
}

.other-room-image {
    height: 180px;
    overflow: hidden;
}

.other-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.other-room-card:hover .other-room-image img {
    transform: scale(1.05);
}

.other-room-content {
    padding: 20px;
}

.other-room-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px;
    line-height: 1.3;
}

.other-room-card:hover .other-room-title {
    color: var(--brand-blue);
}

.other-room-type {
    font-size: 13px;
    color: var(--brand-orange-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0 0 12px;
}

.other-room-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.other-room-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.other-room-meta i {
    color: var(--brand-blue);
    font-size: 13px;
}

/* Responsive - Other Rooms */
@media (max-width: 768px) {
    .other-rooms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .other-room-image {
        height: 160px;
    }
    
    .other-room-content {
        padding: 16px;
    }
    
    .other-room-title {
        font-size: 1.1rem;
    }
}

/* =====================================================
   LIGHTBOX / GALLERY MODAL
   ===================================================== */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10001;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.gallery-nav:hover {
    background: var(--brand-blue);
    color: var(--bg-white);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bg-white);
    font-size: 14px;
}

/* =====================================================
   BEDS24 WIDGET SECTION
   ===================================================== */
.beds24-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar {
        position: relative;
        top: 0;
        order: -1;
    }

    .booking-card {
        max-width: 500px;
    }

    .photo-grid {
        grid-template-rows: repeat(2, 200px);
    }
}

@media (max-width: 768px) {
    .luxury-container {
        padding: 0 16px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 280px auto;
    }

    .photo-main {
        grid-row: span 1;
    }

    .photo-grid-item:not(.photo-main) {
        display: none;
    }

    .photo-grid-item:nth-child(2) {
        display: block;
        height: 120px;
    }

    .room-title {
        font-size: 2rem;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        padding: 32px 0 60px;
    }

    .booking-card {
        max-width: 100%;
    }

    .description-text.has-dropcap::first-letter {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .room-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 1.75rem;
    }

    .stats-row {
        gap: 12px;
    }

    .stat-item span {
        font-size: 14px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
