/* ================================================
   HOSTRAST V3 — Room Pages (Guardian Style)
   Classic elegance with gold accents
   ================================================ */

/* ----- Room Hero ----- */
.room-hero {
    position: relative;
    height: 65vh;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: var(--color-white);
    overflow: hidden;
}

.room-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.room-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.3) 100%);
}

.room-hero-content {
    text-align: center;
    padding: 3rem 2rem 4rem;
    max-width: 700px;
}

.room-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    background: var(--color-gold);
    margin-bottom: 1.25rem;
}

.room-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.room-tagline {
    font-size: 1rem;
    opacity: 0.85;
}

/* ----- Room Details Section ----- */
.room-details {
    padding: 5rem 4rem;
    background: var(--color-bg);
}

.room-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

.room-info h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.room-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Amenities */
.room-amenities {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.amenities-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.amenities-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.amenities-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.amenities-list li::before {
    content: '✓';
    color: var(--color-gold);
    font-weight: 600;
}

/* Booking Card */
.room-booking {
    position: sticky;
    top: 100px;
    align-self: start;
}

.booking-card {
    background: var(--color-bg-light);
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.price-from {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 400;
}

.price-period {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.booking-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: var(--color-gold);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.booking-btn:hover {
    background: var(--color-gold-hover);
}

.booking-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ----- Guest Reviews Section ----- */
.guest-reviews {
    padding: 5rem 4rem;
    background: var(--color-bg);
}

.guest-reviews .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-overview {
    display: flex;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
    align-items: flex-start;
}

.reviews-score-card {
    flex-shrink: 0;
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--color-bg-light, #f5f5f0);
    border: 1px solid var(--color-border, #e0ddd5);
}

.reviews-score-number {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-text, #1a1a1a);
    line-height: 1;
}

.reviews-score-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-gold, #b5935a);
    margin-top: 0.25rem;
}

.reviews-score-count {
    font-size: 0.72rem;
    color: var(--color-text-muted, #6b6b6b);
    margin-top: 0.35rem;
}

.reviews-categories {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
}

.review-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-category-name {
    font-size: 0.8rem;
    min-width: 100px;
    color: var(--color-text, #1a1a1a);
}

.review-category-bar {
    flex: 1;
    height: 6px;
    background: var(--color-border, #e0ddd5);
    border-radius: 3px;
    overflow: hidden;
}

.review-category-fill {
    height: 100%;
    background: var(--color-gold, #b5935a);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.review-category-score {
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 24px;
    text-align: right;
    color: var(--color-text, #1a1a1a);
}

/* Guest Quote Cards */
.reviews-quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.review-quote-card {
    padding: 1.5rem;
    background: var(--color-bg-light, #f5f5f0);
    border: 1px solid var(--color-border, #e0ddd5);
}

.review-quote-stars {
    color: var(--color-gold, #b5935a);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.review-quote-text {
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--color-text-muted, #6b6b6b);
    margin-bottom: 1rem;
}

.review-quote-author {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text, #1a1a1a);
}

.review-quote-source {
    font-size: 0.68rem;
    color: var(--color-text-muted, #6b6b6b);
    margin-top: 0.15rem;
}

@media (max-width: 768px) {
    .guest-reviews {
        padding: 3rem 2rem;
    }

    .reviews-overview {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .reviews-categories {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .reviews-quotes {
        grid-template-columns: 1fr;
    }
}

.gallery-footer {
    text-align: center;
    margin-top: 2rem;
}

.gallery-footer .btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-footer .btn-outline:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ----- Property Rooms Section ----- */
.room-units {
    padding: 5rem 4rem;
    background: var(--color-bg-light);
}

.room-units .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.room-units .rooms-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.room-units .room-card {
    background: var(--color-bg);
}

.room-units .room-card-image {
    aspect-ratio: 4 / 3;
}

.room-units .room-card-content {
    text-align: center;
}

.room-units .room-card-location {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.room-units .room-card-actions {
    justify-content: center;
}

.btn-dettagli {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid var(--color-gold, #b5935a);
    color: var(--color-gold, #b5935a);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-dettagli:hover {
    background: var(--color-gold, #b5935a);
    color: #fff;
}

/* ----- Room Gallery ----- */
.room-gallery {
    padding: 2rem 4rem 5rem;
    background: var(--color-bg-light);
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ----- Property Location / Map ----- */
.property-location {
    padding: 5rem 4rem;
    background: var(--color-bg-light);
}

.property-location .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.location-address svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-gold, #b5935a);
}

.location-address strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.location-address span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.location-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0;
    margin: 0;
}

.location-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border, #e0ddd5);
}

.location-highlights li:last-child {
    border-bottom: none;
}

.location-highlights li svg {
    flex-shrink: 0;
    color: var(--color-gold, #b5935a);
}

.location-map {
    min-height: 350px;
    border: 1px solid var(--color-border, #e0ddd5);
    overflow: hidden;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.4s ease;
}

.location-map:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* ----- Other Rooms ----- */
.other-rooms {
    padding: 5rem 4rem;
    background: var(--color-bg);
}

.other-rooms-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2.5rem;
}

.other-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.other-room-card {
    display: block;
    background: var(--color-bg);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.other-room-card:hover {
    transform: translateY(-5px);
}

.other-room-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.other-room-card:hover img {
    transform: scale(1.05);
}

.other-room-name {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: center;
}

/* ----- Lightbox ----- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .room-details {
        padding: 3rem 2rem;
    }

    .room-details-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .room-booking {
        position: static;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-units {
        padding: 3rem 2rem;
    }

    .gallery-item.gallery-item-large {
        grid-column: span 2;
        grid-row: auto;
    }

    .room-gallery,
    .other-rooms,
    .property-location {
        padding: 3rem 2rem;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 300px;
    }

    .location-map iframe {
        min-height: 300px;
    }

    /* Gallery → horizontal carousel on tablet & mobile */
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem;
        padding-bottom: 1rem;
        padding-left: 2rem;
        padding-right: 2rem;
        scrollbar-width: none;
        /* Firefox */
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .gallery-item,
    .gallery-item.gallery-item-large {
        flex: 0 0 80%;
        scroll-snap-align: center;
        aspect-ratio: 4/3;
        border-radius: 8px;
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-item img {
        border-radius: 8px;
    }

    .room-gallery {
        padding: 2rem 0 3rem;
    }

    .gallery-title {
        padding: 0 2rem;
    }

    .gallery-footer {
        margin-top: 1.25rem;
    }
}

@media (max-width: 640px) {
    .room-hero {
        height: 50vh;
    }

    .amenities-list {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item.gallery-item-large {
        flex: 0 0 85%;
    }

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

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }
}