/* ============================================
   Room Single Page Styles
   ============================================ */

/* --- Room Hero --- */
.room-hero {
    position: relative;
    height: 60vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: var(--color-white);
}

.room-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 20, 0.6);
}

.room-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.room-hero-accent {
    color: var(--color-white);
    opacity: 0.8;
}

.room-hero-title {
    font-size: 52px;
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.room-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}

.room-hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.room-hero-stat svg {
    opacity: 0.8;
}

.room-hero-price {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 22px;
}

/* --- Room Details --- */
.room-details {
    background: var(--color-white);
}

.room-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.room-details-text p {
    margin-bottom: 18px;
}

.room-specs-card {
    background: var(--color-light-bg);
    padding: 32px 28px;
    position: sticky;
    top: 110px;
}

.room-specs-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-gold);
}

.room-specs-list {
    list-style: none;
}

.room-specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e8e5e0;
}

.room-spec-label {
    color: var(--color-body);
}

.room-spec-value {
    color: var(--color-dark);
    font-weight: 700;
}

.btn-room-book {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 24px;
    background: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
    padding: 14px 28px;
}

.btn-room-book:hover {
    background: transparent;
    color: var(--color-gold);
}

/* --- Amenities --- */
.room-amenities {
    background: var(--color-light-bg);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    background: var(--color-white);
    transition: transform 0.3s, box-shadow 0.3s;
}

.amenity-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.amenity-icon {
    color: var(--color-gold);
    margin-bottom: 14px;
}

.amenity-label {
    color: var(--color-dark);
    font-weight: 400;
}

/* --- Room Gallery --- */
.room-gallery {
    background: var(--color-white);
}

.room-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.room-gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.room-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s;
}

.room-gallery-item:hover img {
    transform: scale(1.05);
}

/* Single image: span full width */
.room-gallery-grid .room-gallery-item:only-child {
    grid-column: 1 / -1;
}

.room-gallery-grid .room-gallery-item:only-child img {
    height: 400px;
}

/* --- Pricing Table --- */
.room-pricing {
    background: var(--color-light-bg);
}

.pricing-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pricing-table thead {
    background: var(--color-primary);
    color: var(--color-white);
}

.pricing-table th {
    font-family: var(--font-heading);
    font-weight: 400;
    padding: 16px 24px;
}

.pricing-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #e8e5e0;
}

.pricing-table tbody tr:hover {
    background: rgba(0, 69, 55, 0.04);
}

.pricing-price {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.pricing-note {
    text-align: center;
    margin-top: 24px;
    color: var(--color-body);
    font-style: italic;
}

/* --- Other Rooms --- */
.other-rooms {
    background: var(--color-white);
}

.other-rooms .rooms-grid {
    grid-template-columns: repeat(3, 1fr);
}

.room-card-link {
    display: block;
    color: inherit;
}

.room-card-link:hover {
    color: inherit;
}

/* --- Responsive --- */

@media (max-width: 992px) {
    .room-hero-title {
        font-size: 38px;
    }

    .room-details-grid {
        grid-template-columns: 1fr;
    }

    .room-specs-card {
        position: static;
    }

    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .room-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .other-rooms .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .room-hero {
        height: 50vh;
        /*min-height: 350px;*/
    }
    .room-hero-content{
        margin: 100px 0 auto;
    }
    .room-hero-title {
        font-size: 30px;
    }

    .room-hero-stats {
        flex-wrap: wrap;
        gap: 16px 28px;
    }

    .room-hero-price {
        font-size: 18px;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .room-gallery-grid {
        grid-template-columns: 1fr;
    }

    .room-gallery-grid .room-gallery-item:only-child img,
    .room-gallery-item img {
        height: 240px;
    }

    .other-rooms .rooms-grid {
        grid-template-columns: 1fr;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .room-hero-title {
        font-size: 26px;
    }

    .room-hero-stats {
        gap: 12px 20px;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .amenity-item {
        padding: 20px 12px;
    }
}
