/* ================================================
   B&B Sant'Andrea – Shared Stylesheet
   ================================================ */

:root {
    --gold-400: #d4af37;
    --gold-500: #c29b26;
    --gold-600: #aa861c;
    --dark:     #1c1917;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ---- Logo ---- */
.logo-white { filter: brightness(0) invert(1); }

/* ---- Navbar ---- */
#navbar { transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease; }
#navbar.scrolled {
    background-color: rgba(28, 25, 23, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* ---- Hero Slideshow ---- */
.hero-slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
    background-size: cover;
    background-position: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 3;
}
.hero-content { z-index: 4; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2926 100%);
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c29b26' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Booking Widget ---- */
.booking-widget {
    margin-top: -3.5rem;
    z-index: 10;
    position: relative;
}
@media (max-width: 768px) {
    .booking-widget { margin-top: 1.5rem; }
}

/* ---- GSAP Reveal ---- */
.reveal-up { opacity: 0; visibility: hidden; }

/* ---- Date picker ---- */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5; cursor: pointer;
}

/* ---- Stars ---- */
.star-rating { color: #fbbc04; }

/* ---- Gallery / Photo Placeholder ---- */
.gallery-item { cursor: pointer; }
.gallery-item .photo-ph {
    background: #e7e5e4;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #a8a29e;
    gap: 0.5rem;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ---- Lightbox ---- */
#lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {
    max-width: min(90vw, 1000px);
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ---- WhatsApp Floating Button ---- */
#wa-float {
    position: fixed;
    bottom: 1.75rem; right: 1.75rem;
    z-index: 1000;
    width: 56px; height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
#wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}

/* ---- FAQ Accordion ---- */
.faq-answer { overflow: hidden; }
.faq-icon { transition: transform 0.3s ease; }
.faq-icon.open { transform: rotate(180deg); }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 0.8125rem; }
.breadcrumb a { color: var(--gold-400); }
.breadcrumb span { color: #a8a29e; }

/* ---- Rating bars ---- */
.rating-bar-fill { transition: width 0.8s ease; }

/* ---- Room Photo Slider ---- */
.rs-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.18); backdrop-filter: blur(6px);
    border: none; color: white; cursor: pointer;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; transition: background 0.2s; z-index: 5;
}
.rs-arrow:hover { background: rgba(255,255,255,0.35); }
#rs-prev { left: 0.85rem; }
#rs-next { right: 0.85rem; }
.rs-thumb {
    flex-shrink: 0; width: 76px; height: 54px;
    border-radius: 6px; overflow: hidden; cursor: pointer;
    opacity: 0.55; transition: opacity 0.2s, border-color 0.2s;
    border: 2px solid transparent; scroll-snap-align: start;
}
.rs-thumb.active { opacity: 1; border-color: var(--gold-500); }
.rs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
