/* ============================================
   ROOM DETAIL — Hotel Room Showcase
   Design system synced with /assets/css/style.css
   ============================================ */

/* ===== VARIABLES (inherit from style.css) ===== */
:root {
    --room-gold: #c5a47e;
    --room-dark: #1a1a2e;
    --room-bg: #faf9f7;
    --room-card-bg: #ffffff;
    --room-text: #444;
    --room-heading: #1a1a2e;
    --room-border: #e8e4df;
    --room-accent: #c5a47e;
    --room-radius: 16px;
    --room-shadow: 0 4px 24px rgba(0,0,0,0.08);
    --room-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --room-font: 'Inter', sans-serif;
    --room-font-display: 'Playfair Display', serif;
    --room-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET for room detail page ===== */
.room-detail-page {
    font-family: var(--room-font);
    color: var(--room-text);
    line-height: 1.7;
}

.room-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 1. HERO GALLERY ===== */
.room-hero-gallery {
    position: relative;
    background: var(--room-dark);
    overflow: hidden;
}

.room-hero-main {
    position: relative;
    width: 100%;
    max-height: 560px;
    overflow: hidden;
}

.room-hero-main img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.6s ease;
}

.room-hero-main:hover img {
    transform: scale(1.02);
}

.room-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    pointer-events: none;
}

.room-hero-view-all {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255,255,255,0.95);
    color: var(--room-dark);
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--room-transition);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.room-hero-view-all:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--room-shadow);
}

.room-hero-view-all i {
    font-size: 16px;
}

/* Thumbnail strip */
.room-thumb-strip {
    display: flex;
    gap: 6px;
    padding: 10px 20px;
    background: var(--room-dark);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--room-gold) transparent;
}

.room-thumb-strip::-webkit-scrollbar {
    height: 4px;
}

.room-thumb-strip::-webkit-scrollbar-thumb {
    background: var(--room-gold);
    border-radius: 2px;
}

.room-thumb-strip p {
    flex-shrink: 0;
    margin: 0;
}

.room-thumb-strip img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--room-transition);
    opacity: 0.6;
}

.room-thumb-strip img:hover,
.room-thumb-strip .slick-current img {
    border-color: var(--room-gold);
    opacity: 1;
}

/* ===== 2. ROOM OVERVIEW ===== */
.room-overview {
    padding: 60px 0 40px;
    background: #fff;
}

.room-overview-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: start;
}

/* Left: Room Info */
.room-info {}

.room-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.room-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.room-breadcrumb a:hover {
    color: var(--room-gold);
}

.room-breadcrumb .separator {
    font-size: 10px;
}

.room-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.room-breadcrumb li::before {
    content: none;
}

.room-breadcrumb li + li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 8px;
    color: #ccc;
    display: inline;
}

.room-name {
    font-family: var(--room-font-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--room-heading);
    margin-bottom: 12px;
    line-height: 1.2;
}

.room-subtitle {
    font-size: 16px;
    color: var(--room-text);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Quick Specs */
.room-quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 20px 0;
    border-top: 1px solid var(--room-border);
    border-bottom: 1px solid var(--room-border);
    margin-bottom: 30px;
}

.room-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px 12px 0;
    min-width: 140px;
}

.room-spec-item:not(:last-child) {
    border-right: 1px solid var(--room-border);
    margin-right: 24px;
}

.room-spec-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f4ef, #f0ebe3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.room-spec-icon i {
    font-size: 16px;
    color: var(--room-gold);
}

.room-spec-info {
    display: flex;
    flex-direction: column;
}

.room-spec-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.room-spec-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--room-heading);
    line-height: 1.2;
}

/* Room Description */
.room-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--room-text);
}

.room-description p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.8;
}

/* Right: Booking Card */
.room-booking-card {
    position: sticky;
    top: 100px;
    background: var(--room-card-bg);
    border: 1px solid var(--room-border);
    border-radius: var(--room-radius);
    padding: 32px;
    box-shadow: var(--room-shadow);
}

.room-booking-price {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--room-border);
}

.room-booking-price .price-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.room-booking-price .price-value {
    font-family: var(--room-font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--room-heading);
}

.room-booking-price .price-value span {
    font-family: var(--room-font);
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

.room-booking-price .price-old {
    font-size: 16px;
    color: #aaa;
    text-decoration: line-through;
    margin-top: 4px;
    display: block;
}

.room-booking-price .price-discount {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 8px;
}

.room-booking-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-book-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--room-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--room-transition);
}

.btn-book-now:hover {
    background: #b8936e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 164, 126, 0.4);
}

.btn-call-hotel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    color: var(--room-heading);
    border: 2px solid var(--room-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--room-transition);
}

.btn-call-hotel:hover {
    border-color: var(--room-gold);
    color: var(--room-gold);
}

.room-booking-note {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--room-border);
}

.room-booking-note i {
    color: var(--room-gold);
    margin-right: 4px;
}

/* ===== 3. ROOM AMENITIES ===== */
.room-amenities-section {
    padding: 60px 0;
    background: var(--room-bg);
}

.room-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.room-section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--room-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.room-section-title {
    font-family: var(--room-font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--room-heading);
    margin-bottom: 0;
}

.room-amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.room-amenity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--room-border);
    transition: var(--room-transition);
}

.room-amenity-item:hover {
    border-color: var(--room-gold);
    box-shadow: 0 4px 16px rgba(197, 164, 126, 0.15);
    transform: translateY(-2px);
}

.room-amenity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f4ef, #f0ebe3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.room-amenity-icon i {
    font-size: 16px;
    color: var(--room-gold);
}

.room-amenity-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--room-heading);
}

/* ===== 4. ROOM DETAILS (CMS Content) ===== */
.room-details-section {
    padding: 60px 0;
    background: #fff;
}

.room-details-content {
    max-width: 800px;
    margin: 0 auto;
}

.room-details-content .xvnet-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--room-text);
}

.room-details-content .xvnet-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.room-details-content .xvnet-content p {
    margin-bottom: 16px;
    font-size: 15px;
}

.room-details-content .xvnet-content h2,
.room-details-content .xvnet-content h3 {
    font-family: var(--room-font-display);
    color: var(--room-heading);
    margin: 30px 0 16px;
}

.room-details-content .xvnet-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.room-details-content .xvnet-content th,
.room-details-content .xvnet-content td {
    padding: 12px 16px;
    border: 1px solid var(--room-border);
    font-size: 14px;
}

.room-details-content .xvnet-content th {
    background: var(--room-bg);
    font-weight: 600;
    color: var(--room-heading);
}

/* ===== 5. BOOKING CTA ===== */
.room-cta-section {
    padding: 60px 0;
    background: var(--room-dark);
    text-align: center;
}

.room-cta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--room-gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.room-cta-title {
    font-family: var(--room-font-display);
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.room-cta-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.room-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.room-cta-actions .btn-book-now {
    padding: 16px 36px;
}

.room-cta-actions .btn-call-hotel {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    padding: 14px 36px;
}

.room-cta-actions .btn-call-hotel:hover {
    border-color: var(--room-gold);
    color: var(--room-gold);
}

/* ===== 6. RELATED ROOMS (override existing styles) ===== */
.room-detail-page .pro-related {
    padding: 60px 0 20px;
}

.room-detail-page .pro-other-ttl {
    font-family: var(--room-font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--room-heading);
    text-align: center;
    margin: 0 0 30px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.room-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media screen and (max-width: 992px) {
    .room-overview-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .room-booking-card {
        position: relative;
        top: 0;
    }

    .room-name {
        font-size: 30px;
    }

    .room-amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .room-spec-item:not(:last-child) {
        border-right: none;
        margin-right: 0;
    }

    .room-quick-specs {
        gap: 8px;
    }

    .room-cta-title {
        font-size: 28px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .room-hero-main img {
        height: 320px;
    }

    .room-thumb-strip img {
        width: 80px;
        height: 56px;
    }

    .room-overview {
        padding: 36px 0 24px;
    }

    .room-name {
        font-size: 26px;
    }

    .room-subtitle {
        font-size: 14px;
    }

    .room-quick-specs {
        flex-direction: column;
        gap: 0;
    }

    .room-spec-item {
        padding: 10px 0;
    }

    .room-spec-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--room-border);
        margin-right: 0;
        padding-bottom: 12px;
        margin-bottom: 0;
    }

    .room-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .room-amenity-item {
        padding: 14px 16px;
    }

    .room-amenities-section,
    .room-details-section,
    .room-cta-section,
    .room-related-section {
        padding: 40px 0;
    }

    .room-section-title {
        font-size: 26px;
    }

    .room-booking-card {
        padding: 24px;
    }

    .room-booking-price .price-value {
        font-size: 26px;
    }

    .room-cta-title {
        font-size: 24px;
    }

    .room-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .room-cta-actions .btn-book-now,
    .room-cta-actions .btn-call-hotel {
        width: 100%;
        max-width: 320px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .room-hero-main img {
        height: 240px;
    }

    .room-thumb-strip {
        padding: 8px 12px;
    }

    .room-thumb-strip img {
        width: 64px;
        height: 46px;
    }

    .room-name {
        font-size: 22px;
    }

    .room-amenities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .room-amenity-item {
        flex-direction: column;
        text-align: center;
        padding: 14px 10px;
        gap: 8px;
    }
}
