/* ============================
   Room Detail Page Styles
   B&B Naiadi Anzio
   Design system: Playfair Display + Inter · navy / gold / ivory
   (allineato a style.css)
   ============================ */

/* --- Loading & Error States --- */

.room-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: var(--ivory);
    gap: 1.5rem;
    padding-top: 80px;
}

.room-loading p {
    color: var(--warm-gray);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.room-loader {
    width: 46px;
    height: 46px;
    border: 2px solid var(--sand);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.room-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: var(--ivory);
    gap: 1rem;
    padding: 80px 2rem 2rem;
    text-align: center;
}

.room-error i {
    font-size: 3.5rem;
    color: var(--gold);
    opacity: 0.55;
    margin-bottom: 1rem;
}

.room-error h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--navy);
}

.room-error p {
    color: var(--warm-gray);
    font-size: 1.05rem;
    max-width: 420px;
}

.btn-back-rooms {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.4rem;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    border: 1px solid var(--navy);
    border-radius: 100px;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.35s var(--ease);
}

.btn-back-rooms:hover {
    background: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* --- Hero Section --- */

.room-detail-main {
    padding-top: 0;
}

.room-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 720px;
    overflow: hidden;
}

.room-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.room-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(14, 36, 53, 0.15) 0%,
        rgba(14, 36, 53, 0.12) 35%,
        rgba(14, 36, 53, 0.72) 100%
    );
    display: flex;
    align-items: flex-end;
}

.room-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem 4rem;
    width: 100%;
}

.room-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-soft);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    transition: color 0.3s var(--ease);
}

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

.room-breadcrumb i {
    font-size: 0.75rem;
}

.room-hero-content h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.01em;
    margin: 0 0 0.6rem;
    line-height: 1.12;
}

.room-hero-content h1::after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    background: var(--gold);
    margin: 1.1rem 0 0;
}

.room-hero-view {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin: 0.9rem 0 0;
}

.room-hero-view i {
    color: var(--gold-soft);
    margin-right: 0.4rem;
}

/* --- Room Info Section --- */

.room-info {
    padding: 4rem 0 4.5rem;
    background: var(--ivory);
}

.room-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: start;
}

/* --- Specs Bar --- */

.room-specs-bar {
    display: flex;
    gap: 2.5rem;
    padding: 0 0 2.25rem;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--slate);
    font-size: 0.98rem;
    font-weight: 400;
}

.spec-item i {
    color: var(--gold-deep);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* --- Section headings (allineate a .suite-name della home) --- */

.room-info-main h2,
.room-amenities-full h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 1.4rem;
    letter-spacing: 0.01em;
}

.room-info-main h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin: 0.9rem 0 0;
}

/* --- Description --- */

.room-description-full {
    margin-bottom: 3.5rem;
}

.room-description-full p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--slate);
    font-weight: 300;
}

/* --- Amenities Grid --- */

.room-amenities-full {
    margin-bottom: 2rem;
}

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

.amenity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    transition: all 0.35s var(--ease);
}

.amenity-item:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.amenity-item i {
    color: var(--gold-deep);
    font-size: 1.05rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.amenity-item span {
    font-size: 0.95rem;
    color: var(--charcoal);
    font-weight: 400;
}

/* --- Booking Sidebar --- */

.room-booking-sidebar {
    position: sticky;
    top: 100px;
}

.booking-card-sticky {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-card);
}

.booking-card-price {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-soft);
}

.price-from {
    font-size: 0.78rem;
    color: var(--warm-gray);
    display: block;
    margin-bottom: 0.35rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.price-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.9rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.price-value::first-letter {
    color: var(--gold-deep);
}

.price-unit {
    font-size: 0.98rem;
    color: var(--warm-gray);
}

.btn-book-room {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 1.05rem 2rem;
    background: var(--gold-text);
    color: var(--white);
    text-decoration: none;
    border: 1px solid var(--gold-text);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.35s var(--ease);
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-gold);
}

.btn-book-room:hover {
    background: var(--gold-deep);
    border-color: var(--gold-deep);
    transform: translateY(-2px);
    box-shadow: 0 24px 44px -16px rgba(126, 98, 48, 0.6);
}

.btn-book-room i {
    font-size: 0.95rem;
}

.booking-card-notes {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.booking-card-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--slate);
    margin: 0;
}

.booking-card-note i {
    color: var(--gold-deep);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* --- Other Rooms Section --- */

.other-rooms {
    padding: 5rem 0;
    background: var(--surface-card);
    border-top: 1px solid var(--border-soft);
}

.other-rooms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.other-rooms h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 500;
    color: var(--navy);
    text-align: center;
    margin: 0 0 3rem;
    letter-spacing: 0.01em;
}

.other-rooms h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 1px;
    background: var(--gold);
    margin: 1.1rem auto 0;
}

.other-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.other-room-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s var(--ease);
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--surface-card);
}

.other-room-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-soft);
}

.other-room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

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

.other-room-card-content {
    padding: 1.5rem;
}

.other-room-card-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 0.5rem;
}

.other-room-view {
    font-size: 0.9rem;
    color: var(--warm-gray);
    margin: 0 0 0.75rem;
}

.other-room-view i {
    color: var(--gold-deep);
    margin-right: 0.35rem;
}

.other-room-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 500;
    margin: 0;
}

.other-room-price::first-letter {
    color: var(--gold-deep);
}

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

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

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

    .room-info-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 2rem;
    }

    .room-booking-sidebar {
        position: static;
    }

    .booking-card-sticky {
        max-width: 500px;
    }

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

    .other-rooms-container {
        padding: 0 2rem;
    }
}

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

    .room-hero-content {
        padding: 0 1.5rem 2.5rem;
    }

    .room-hero-view {
        font-size: 0.98rem;
    }

    .room-info {
        padding: 2.75rem 0 3rem;
    }

    .room-info-container {
        padding: 0 1.25rem;
        gap: 2rem;
    }

    .room-specs-bar {
        gap: 1.25rem 1.75rem;
    }

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

    .booking-card-sticky {
        max-width: none;
    }

    .other-rooms {
        padding: 3.5rem 0;
    }

    .other-rooms-container {
        padding: 0 1.25rem;
    }

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