/* ==========================================
   GUEST HOUSE DI LUSSO - SARDO & GOLD MINIMAL
   Palette: Calce, Sabbia, Pietra e Oro Satinato
   ========================================== */
:root {
    --bg-color: #fcfbfa;            /* Calce / Sabbia chiarissima */
    --card-bg: #ffffff;             /* Bianco puro per le schede */
    --card-border: #ebd3be;         /* Bordo tenue dorato/sabbia */
    --text-primary: #22201e;        /* Antracite nobile e caldo */
    --text-secondary: #6e675f;      /* Grigio terra caldo */

    /* Dettagli Gold & Luxury */
    --gold-primary: #c5a059;        /* Oro satinato luxury */
    --gold-hover: #b08a43;          /* Oro profondo al passaggio del mouse */
    --gold-light: rgba(197, 160, 89, 0.12); /* Sfondo dorato trasparente */
    --sardo-blue: #2a6f85;          /* Blu Mare di Sardegna */

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.35s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 110px 0;
}

.bg-alt {
    background: #f7f3ed; /* Sfondo sabbia seta */
}

/* ==========================================
   TIPOGRAFIA & BOTTONI GOLD
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.subtitle {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-primary);
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.text-left {
    text-align: left;
    margin-bottom: 25px;
}

.sardo-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 20px auto 0;
}

/* Bottoni con tocco Dorato */
.btn-sardo {
    display: inline-block;
    padding: 15px 36px;
    background-color: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.08);
}

.btn-sardo:hover {
    background-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.25);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 9px 24px;
    font-size: 0.8rem;
}

.lang-switch {
    font-size: 0.72rem !important;
    border: 1px solid var(--gold-primary);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--gold-primary) !important;
    letter-spacing: 1px !important;
}

.lang-switch:hover {
    background: var(--gold-primary);
    color: #ffffff !important;
}

/* ==========================================
   HEADER & NAVBAR GUEST HOUSE
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(252, 251, 250, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
    gap: 24px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    font-weight: 600;
    min-width: 0;
}

@media (min-width: 769px) {
    .logo {
        white-space: nowrap;
    }
}

.logo span {
    color: var(--gold-primary);
    font-style: italic;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--gold-primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* ==========================================
   HERO LUXURY
   ========================================== */
.hero {
    height: 100vh;
    background: linear-gradient(180deg, rgba(252,251,250,0.2) 0%, rgba(252,251,250,1) 100%),
                url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 95px;
}

.hero-content {
    max-width: 850px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

/* ==========================================
   BARRA HIGHLIGHTS CON DETTAGLI ORO
   ========================================== */
.quick-highlights {
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 45px 0;
    margin-top: -55px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.06);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
}

.highlight-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--gold-light);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.highlight-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.highlight-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ==========================================
   LA DIMORA E CARD RATING GOLD
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.02rem;
}

.score-card {
    background: var(--card-bg);
    border: 1px solid var(--gold-primary);
    padding: 45px 40px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.1);
    position: relative;
}

.score-number {
    font-family: var(--font-serif);
    font-size: 4.2rem;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 400;
}

.score-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.score-quote {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.score-badges {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 25px;
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.badge-item i {
    color: var(--gold-primary);
}

/* ==========================================
   SERVIZI & COMFORT BOUTIQUE
   ========================================== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 30px;
}

.amenity-category {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 38px 30px;
    border-radius: 4px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.amenity-category:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.12);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
}

.category-header i {
    color: var(--gold-primary);
    font-size: 1.35rem;
}

.category-header h3 {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--text-primary);
}

.amenity-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.amenity-list li i {
    color: var(--gold-primary);
    font-size: 0.8rem;
}

/* ==========================================
   TERRITORIO & DINTORNI
   ========================================== */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
}

.location-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 35px 30px;
}

.location-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-card h3 i {
    color: var(--gold-primary);
}

.distance-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.92rem;
}

.distance-item span:first-child {
    color: var(--text-secondary);
}

.distance-item span:last-child {
    color: var(--gold-primary);
    font-weight: 600;
}

/* ==========================================
   REGOLE DELLA GUEST HOUSE
   ========================================== */
.rules-table {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.rule-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    padding: 26px 30px;
    border-bottom: 1px solid var(--card-border);
    align-items: center;
}

.rule-row:last-child {
    border-bottom: none;
}

.rule-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.rule-title i {
    color: var(--gold-primary);
    width: 20px;
}

.rule-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ==========================================
   FOOTER LUXURY & DORATO
   ========================================== */
footer {
    background: #1c1a18; /* Antracite caldo molto scuro */
    color: #ffffff;
    padding: 90px 0 40px;
    text-align: center;
    border-top: 1px solid var(--gold-primary);
}

.cta-box {
    max-width: 600px;
    margin: 0 auto 60px;
}

.cta-box .subtitle {
    color: var(--gold-primary);
}

.cta-box h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.best-price-badge {
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.best-price-badge i {
    margin-right: 6px;
}

.cta-desc {
    color: #b0a9a0;
    margin-bottom: 35px;
}

footer .btn-sardo {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #ffffff;
}

footer .btn-sardo:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #1a1816;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    font-size: 0.82rem;
    color: #8c857b;
}

.footer-bottom a {
    color: #8c857b;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--gold-primary);
}

/* ==========================================
   PRIVACY POLICY: AVVISO BOZZA
   ========================================== */
.notice-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--gold-light);
    border: 1px solid var(--gold-primary);
    border-radius: 4px;
    padding: 22px 26px;
}

.notice-box i {
    color: var(--gold-primary);
    font-size: 1.3rem;
    margin-top: 3px;
}

.notice-box p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ==========================================
   FORM DI PRENOTAZIONE
   ========================================== */
.booking-form {
    max-width: 640px;
    margin: 0 auto 30px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b0a9a0;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group-full {
    margin-bottom: 25px;
}

.booking-form input,
.booking-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    padding: 13px 16px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
    color: #6e675f;
}

.booking-form input:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.08);
}

.booking-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-consent {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #b0a9a0;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--gold-primary);
}

.checkbox-label a {
    color: var(--gold-primary);
    text-decoration: underline;
}

.form-submit-btn {
    width: 100%;
    text-align: center;
    margin-top: 5px;
}

.form-alt-contact {
    text-align: center;
    font-size: 0.88rem;
    color: #8c857b;
    margin-bottom: 50px;
}

.form-alt-contact a {
    color: var(--gold-primary);
    font-weight: 500;
}

.form-alt-contact a:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-group {
        margin-bottom: 20px;
    }
}

/* ==========================================
   RESPONSIVE MOBILE
   ========================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .rule-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Sotto questa soglia il menu orizzontale (logo + 8 voci) non ha spazio
   sufficiente in nessun punto fino a 1200px (larghezza massima del
   container): si passa al menu a tendina molto prima del breakpoint
   tipico, per evitare sovrapposizioni testuali su finestre non a
   schermo intero. */
@media (max-width: 1240px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 95px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        text-align: center;
        border-bottom: 1px solid var(--gold-primary);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 14px;
    }

    .logo {
        font-size: 1.05rem;
        letter-spacing: 0.5px;
    }

    .nav-container {
        height: auto;
        min-height: 80px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

/* ==========================================
   STILI GALLERIA FOTOGRAFICA LUXURY
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 280px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(28, 26, 24, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .gallery-item.large {
        grid-column: span 1;
    }
}

/* ==========================================
   LIGHTBOX: VISORE FOTO A SCHERMO INTERO
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20, 18, 16, 0.94);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-align: center;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 30px;
    font-size: 2.4rem;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold-primary);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
}

@media (max-width: 768px) {
    .lightbox {
        padding: 20px;
    }
    .lightbox-close {
        top: 14px;
        right: 18px;
        font-size: 2rem;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}

/* ==========================================
   HERO SEZIONE CHIARA CON FOTO IN PRIMO PIANO
   ========================================== */
.hero-light {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: var(--bg-color); /* Mantiene lo sfondo sempre chiaro */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text-side {
    text-align: left;
}

.hero-text-side .hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text-side .hero-subtitle {
    margin-bottom: 35px;
    font-size: 1.05rem;
}

.hero-image-side {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(197, 160, 89, 0.18); /* Ombra calda e dorata */
    border: 1px solid var(--gold-primary);
    height: 480px;
}

.hero-img-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hero-img-wrapper:hover img {
    transform: scale(1.03);
}

/* Dissolvenza automatica tra le due foto di Tavolara nell'hero */
.hero-fade-img {
    position: absolute;
    top: 0;
    left: 0;
    animation: heroFadeA 12s ease-in-out infinite;
}

.hero-fade-img-2 {
    animation-name: heroFadeB;
}

@keyframes heroFadeA {
    0%, 41% { opacity: 1; }
    50%, 91% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes heroFadeB {
    0%, 41% { opacity: 0; }
    50%, 91% { opacity: 1; }
    100% { opacity: 0; }
}

/* Adattamento per dispositivi Mobile */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-text-side {
        text-align: center;
    }

    .hero-text-side .hero-title {
        font-size: 2.8rem;
    }

    .hero-img-wrapper {
        height: 320px;
    }

    .hero-img-wrapper img {
        height: 320px;
    }
}

/* ==========================================
   PULSANTE WHATSAPP LUXURY & MINIMAL
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: #25d366; /* Verde iconico WhatsApp */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.35s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--gold-primary); /* Diventa dorato al passaggio del mouse */
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.4);
    color: #ffffff;
}

/* Etichetta elegante che appare su Desktop */
.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: var(--text-primary);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Adattamento per dispositivi Mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    .whatsapp-tooltip {
        display: none; /* Nasconde l'etichetta di testo su smartphone per non occupare spazio */
    }
}

/* ==========================================
   PAGINA SPIAGGE: FOTO SULLE CARD
   ========================================== */
.amenity-category:has(.beach-photo) {
    padding: 0;
    overflow: hidden;
}

.beach-photo {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.amenity-category:has(.beach-photo) .category-header {
    padding: 25px 30px 15px;
    margin-bottom: 15px;
}

.amenity-category:has(.beach-photo) > p {
    padding: 0 30px;
}

.amenity-category:has(.beach-photo) .amenity-list {
    padding: 0 30px 30px;
}

/* ==========================================
   PAGINA SPIAGGE: MAPPA INTERATTIVA (LEAFLET)
   ========================================== */
.beach-map {
    height: 480px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.12);
}

.map-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.85rem;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.map-pin-beach {
    background-color: var(--gold-primary);
}

.map-pin-house {
    background-color: var(--sardo-blue);
    font-size: 1rem;
}

.leaflet-popup-content {
    font-family: var(--font-sans);
    font-size: 0.88rem;
}

.leaflet-popup-content strong {
    font-family: var(--font-serif);
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .beach-map {
        height: 360px;
    }
}
