/* =========================================================================
   B&B NAIADI ANZIO — Luxury seaside boutique hotel
   Design system: Playfair Display (editorial serif) + Inter (clean body)
   Palette: warm ivory · deep sea navy · brushed gold · soft sand
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

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

:root {
    /* Surfaces */
    --ivory: #FBF8F3;
    --cream: #F4EEE3;
    --sand: #E7DECB;
    --stone: #D8CFBE;

    /* Ink */
    --navy: #15324B;
    --navy-deep: #0E2435;
    --slate: #3E4F5C;
    --warm-gray: #6B7178;
    --charcoal: #1A2530;

    /* Accents */
    --gold: #BE9A5A;        /* decorative: hairlines, dividers, icons */
    --gold-soft: #D4B57C;   /* on dark backgrounds */
    --gold-deep: #9C7C3E;
    --gold-text: #7E6230;   /* AA-safe gold for text/CTAs on light surfaces */
    --sea: #2F6F86;
    --sea-light: #5C97AC;

    --white: #FFFFFF;

    /* Legacy aliases (kept so existing references resolve) */
    --ocean: var(--sea);
    --ocean-light: var(--sea-light);
    --azure: var(--sea-light);
    --sunset: var(--gold);
    --gold-accent: var(--gold);
    --light-blue: #E9F1F2;

    --surface-card: var(--white);
    --surface-soft: var(--ivory);
    --surface-muted: var(--cream);
    --surface-contrast: var(--navy-deep);

    --border-soft: rgba(21, 50, 75, 0.10);
    --border-gold: rgba(190, 154, 90, 0.35);

    --shadow-card: 0 18px 40px -24px rgba(14, 36, 53, 0.28);
    --shadow-soft: 0 40px 80px -40px rgba(14, 36, 53, 0.40);
    --shadow-gold: 0 18px 36px -14px rgba(156, 124, 62, 0.40);

    --radius: 14px;
    --radius-lg: 22px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* z-index scale */
    --z-nav: 1000;
    --z-loader: 9999;
    --z-cookie: 10001;
}

::selection {
    background: var(--gold);
    color: var(--white);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--slate);
    background: var(--ivory);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

/* Shared "eyebrow" kicker label */
.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 1.25rem;
}

.eyebrow--light { color: var(--gold-soft); }

/* Reusable centered section intro */
.section-intro {
    max-width: 760px;
    margin: 0 auto 4.5rem;
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.18;
    color: var(--navy);
}

/* ============================ Loading Screen ============================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    z-index: var(--z-loader);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.12em;
    color: var(--ivory);
    position: relative;
    padding-bottom: 1.1rem;
    animation: breathe 2.4s ease-in-out infinite;
}

.loader-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 1px;
    background: var(--gold);
}

@keyframes breathe {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* ============================== Navigation ============================== */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-nav);
    padding: 1.6rem 0;
    transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
                box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}

nav.scrolled {
    background: rgba(251, 248, 243, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--border-soft), 0 14px 40px -28px rgba(14, 36, 53, 0.45);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    transition: color 0.4s var(--ease);
    text-decoration: none;
}

nav.scrolled .logo {
    color: var(--navy);
}

.nav-menu {
    display: flex;
    gap: 2.6rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s var(--ease);
}

nav.scrolled .nav-menu a {
    color: var(--slate);
}

.nav-menu a:hover {
    color: var(--gold-soft);
}

nav.scrolled .nav-menu a:hover {
    color: var(--gold-deep);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.35s var(--ease);
}

.nav-menu a:hover::after {
    width: 100%;
}

.book-now {
    padding: 0.7rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.35s var(--ease);
}

.book-now:hover {
    background: var(--gold-text);
    border-color: var(--gold-text);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

nav.scrolled .book-now {
    border-color: var(--gold);
    color: var(--gold-text);
}

nav.scrolled .book-now:hover {
    background: var(--gold-text);
    color: var(--white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s var(--ease);
}

nav.scrolled .menu-toggle span {
    background: var(--navy);
}

/* ============================== Hero ============================== */
.hero {
    min-height: 100vh;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9rem 0 7rem;
    background:
        linear-gradient(180deg, rgba(14, 36, 53, 0.42) 0%, rgba(14, 36, 53, 0.30) 38%, rgba(14, 36, 53, 0.72) 100%),
        url('../images/cover.jpg') center/cover fixed;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(14, 36, 53, 0.55), transparent 60%);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 920px;
    padding: 0 2rem;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1.6rem;
    letter-spacing: 0.01em;
    line-height: 1.05;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: fadeUp 1.2s var(--ease) 0.35s forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-soft);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: fadeUp 1.2s var(--ease) 0.55s forwards;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 auto 2.6rem;
    max-width: 660px;
    opacity: 0;
    animation: fadeUp 1.2s var(--ease) 0.75s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1.2s var(--ease) 0.95s forwards;
}

/* Buttons (shared) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.4rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.35s var(--ease);
}

.btn-gold {
    background: var(--gold-text);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

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

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2.4rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding-bottom: 2.4rem;
    z-index: 2;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--gold-soft), transparent);
    animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: translateX(-50%) scaleY(0.4); opacity: 0.4; transform-origin: top; }
    50% { transform: translateX(-50%) scaleY(1); opacity: 1; transform-origin: top; }
}

/* ====================== Availability Search Bar ====================== */
.availability-search {
    position: relative;
    z-index: 100;
    margin-top: -68px;
    padding: 0 3rem;
    margin-bottom: -68px;
}

.search-container {
    max-width: 1140px;
    margin: 0 auto;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--gold);
    padding: 1.8rem 2rem;
    display: flex;
    gap: 1.4rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold-text);
    margin-bottom: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.search-field input,
.search-field select {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--navy);
    background: var(--surface-soft);
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--surface-card);
    box-shadow: 0 0 0 3px rgba(190, 154, 90, 0.16);
}

.search-field input:hover,
.search-field select:hover {
    border-color: var(--gold-soft);
}

.search-btn {
    padding: 0.95rem 2.6rem;
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--gold-text);
    border-color: var(--gold-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.search-btn:active {
    transform: translateY(0);
}

/* ============================ Philosophy ============================ */
.philosophy {
    padding: 9rem 3rem;
    background: var(--white);
    position: relative;
}

.philosophy-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.philosophy h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 2.4rem;
    color: var(--navy);
}

.philosophy-text {
    font-size: 1.18rem;
    font-weight: 300;
    line-height: 2;
    color: var(--slate);
    margin-bottom: 1.6rem;
}

.philosophy-text:first-of-type {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    line-height: 1.7;
    color: var(--navy);
}

.divider {
    width: 70px;
    height: 1px;
    background: var(--gold);
    margin: 2.6rem auto;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px var(--white);
}

/* ============================ Elements ============================ */
.elements {
    padding: 9rem 3rem;
    background: var(--cream);
    position: relative;
}

.elements-header {
    max-width: 760px;
    margin: 0 auto 4.5rem;
    text-align: center;
}

.elements-header h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 1.2rem;
    color: var(--navy);
}

.elements-header p {
    font-size: 1.08rem;
    font-weight: 300;
    color: var(--warm-gray);
    line-height: 1.8;
}

.elements-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.element-card {
    position: relative;
    padding: 3.4rem 3rem;
    background: var(--surface-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
                box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
}

/* Scroll-reveal: only hide initially when JS is active (progressive enhancement).
   Without JS, or if the observer never fires, cards stay fully visible. */
body.js-anim .element-card {
    opacity: 0;
    transform: translateY(28px);
}

body.js-anim .element-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.element-card::before {
    content: attr(data-number);
    position: absolute;
    top: 1.4rem;
    right: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    font-weight: 500;
    color: var(--gold);
    opacity: 0.16;
    line-height: 1;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}

.element-card:hover::before {
    opacity: 0.3;
}

.element-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--navy), var(--sea));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.9rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 14px 28px -12px rgba(21, 50, 75, 0.5);
    transition: transform 0.5s var(--ease);
}

.element-card:hover .element-icon-wrapper {
    transform: translateY(-3px);
}

.element-icon-wrapper i {
    font-size: 26px;
    color: var(--gold-soft);
}

.element-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.element-card p {
    color: var(--warm-gray);
    font-weight: 300;
    line-height: 1.85;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 968px) {
    .elements { padding: 6rem 1.6rem; }
    .elements-header { margin-bottom: 3rem; }
    .elements-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .element-card { padding: 2.6rem 2rem; }
    .element-card::before { font-size: 3.4rem; right: 1.4rem; }
    .element-icon-wrapper { width: 56px; height: 56px; }
    .element-icon-wrapper i { font-size: 23px; }
    .element-card h3 { font-size: 1.35rem; }
}

/* ============================== Suites ============================== */
.suites {
    padding: 9rem 0 0;
    background: var(--white);
}

.suites-header {
    text-align: center;
    padding: 0 3rem;
    margin-bottom: 4.5rem;
}

.suites h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 1.2rem;
    color: var(--navy);
}

.suites-subtitle {
    color: var(--warm-gray);
    font-size: 1.08rem;
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}

.suite-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.suite-item {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    min-height: 0;
}

.suite-image {
    min-height: 440px;
}

.suite-item:nth-child(even) {
    direction: rtl;
}

.suite-item:nth-child(even) > * {
    direction: ltr;
}

.suite-image {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.suite-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(14, 36, 53, 0.08), transparent 55%);
    transition: opacity 0.6s var(--ease);
}

.suite-details {
    padding: 3.4rem 3.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
}

.suite-item:nth-child(odd) .suite-details {
    background: var(--surface-card);
}

.suite-name {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.suite-name::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin: 1rem 0 1.4rem;
}

.suite-description {
    color: var(--slate);
    font-weight: 300;
    margin-bottom: 1.8rem;
    line-height: 1.75;
}

.suite-features {
    list-style: none;
    margin-bottom: 2.2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1.4rem;
}

.suite-features li {
    color: var(--slate);
    padding-left: 1.6rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    position: relative;
}

.suite-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.18rem;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237E6230' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l3.5 3.5L16 5.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.suite-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 2rem;
}

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

.suite-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 2.4rem;
    border: 1px solid var(--navy);
    color: var(--white);
    background: var(--navy);
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.35s var(--ease);
}

.suite-cta:hover {
    background: var(--gold-text);
    border-color: var(--gold-text);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* ============================== Services ============================== */
.services {
    padding: 9rem 3rem;
    background: var(--ivory);
}

.services-content {
    max-width: 1240px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.service-card {
    background: var(--surface-card);
    padding: 3rem 2.6rem;
    transition: opacity 0.7s var(--ease), transform 0.5s var(--ease),
                box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
}

/* Scroll-reveal: only hide initially when JS is active (progressive enhancement). */
body.js-anim .service-card {
    opacity: 0;
    transform: translateY(24px);
}

body.js-anim .service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card h3 {
    font-size: 1.42rem;
    color: var(--navy);
    margin-bottom: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--warm-gray);
    font-weight: 300;
    line-height: 1.8;
    font-size: 0.98rem;
    position: relative;
    z-index: 1;
}

/* ============================== History ============================== */
.history {
    padding: 9rem 0;
    background: var(--navy-deep);
    color: var(--ivory);
    position: relative;
}

.history-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4.5rem;
    padding: 0 3rem;
    align-items: center;
}

.history-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 1.8rem;
    color: var(--white);
}

.history-text {
    font-size: 1.06rem;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: rgba(251, 248, 243, 0.82);
}

.history-highlights {
    margin-top: 1.6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(190, 154, 90, 0.3);
}

.history-highlights h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    color: var(--gold-soft);
}

.history-highlights p {
    color: rgba(251, 248, 243, 0.8);
    font-weight: 300;
    margin-bottom: 0.55rem;
    padding-left: 0.2rem;
}

.history-image {
    background: url('../images/gallery/balcone-vista-mare.webp') center/cover;
    min-height: 520px;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.history-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
    pointer-events: none;
}

/* ============================== Wellness ============================== */
.wellness {
    padding: 9rem 3rem;
    background: var(--cream);
}

.wellness-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4.5rem;
}

.wellness h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 1.4rem;
    color: var(--navy);
}

.wellness-intro {
    color: var(--warm-gray);
    font-size: 1.08rem;
    font-weight: 300;
    line-height: 1.8;
}

.wellness-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    max-width: 1080px;
    margin: 0 auto;
}

.wellness-item {
    text-align: center;
    padding: 3.4rem 3rem;
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
                border-color 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}

.wellness-item::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 1px;
    background: var(--gold);
    transition: transform 0.5s var(--ease);
}

.wellness-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.wellness-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: var(--border-gold);
}

.wellness-item h4 {
    font-size: 1.32rem;
    color: var(--navy);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.wellness-item p {
    color: var(--warm-gray);
    font-weight: 300;
    line-height: 1.75;
    font-size: 0.98rem;
}

/* ============================== Gallery ============================== */
.gallery {
    padding: 0;
    background: var(--navy-deep);
}

.gallery-header {
    text-align: center;
    padding: 6rem 2rem 3.5rem;
}

.gallery-header h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 32vh;
    grid-auto-flow: dense;
    gap: 4px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 36, 53, 0.55), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: 1;
}

.gallery-item img,
.gallery-item {
    transition: transform 0.7s var(--ease);
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-item:nth-child(9) { grid-column: span 2; }
.gallery-item:nth-child(10) { grid-column: span 2; }

.gallery-item:hover { transform: scale(1.04); }
.gallery-item:hover::before { opacity: 1; }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.8rem;
    color: var(--white);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
    z-index: 2;
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
}

.gallery-overlay h4::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--gold-soft);
    margin-bottom: 0.7rem;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* ============================== Testimonials ============================== */
.testimonials {
    padding: 9rem 3rem;
    background: var(--ivory);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--navy);
    text-align: center;
}

.testimonials-slider {
    padding: 2rem 0;
}

.testimonial-card {
    background: var(--surface-card);
    padding: 3rem 2.6rem 2.6rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin: 0 0.8rem;
    position: relative;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    border: 1px solid var(--border-soft);
    height: calc(100% - 1rem);
}

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

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.6rem;
    left: 1.8rem;
    font-size: 4.5rem;
    color: var(--gold);
    opacity: 0.28;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: 1.6rem;
    font-style: italic;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--navy);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.testimonial-author::before {
    content: '— ';
    color: var(--gold-deep);
}

/* Splide Custom */
.splide__pagination { bottom: -2.4rem; }

.splide__pagination__page {
    background: var(--stone);
    opacity: 0.6;
    transition: all 0.3s var(--ease);
}

.splide__pagination__page.is-active {
    background: var(--gold);
    opacity: 1;
    transform: scale(1.4);
}

.splide__arrow {
    background: var(--white);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    opacity: 1;
    transition: all 0.3s var(--ease);
    height: 2.6em;
    width: 2.6em;
}

.splide__arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.splide__arrow svg { fill: var(--navy); transition: fill 0.3s var(--ease); }
.splide__arrow:hover svg { fill: var(--white); }

/* ============================== Contact ============================== */
.contact {
    padding: 9rem 3rem;
    background: var(--cream);
}

.contact-container {
    max-width: 1180px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 1.4rem;
    color: var(--navy);
}

.contact-lead {
    text-align: center;
    color: var(--warm-gray);
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto 4rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.4rem;
}

.contact-info,
.contact-form {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 3rem 2.8rem;
    box-shadow: var(--shadow-card);
}

.contact-info {
    background: var(--navy-deep);
    border-color: var(--border-gold);
}

.contact-info h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1.4rem;
    font-weight: 600;
}

.contact-info h3:not(:first-child) {
    margin-top: 0.6rem;
}

.contact-info p {
    color: rgba(251, 248, 243, 0.78);
    font-weight: 300;
    margin-bottom: 0.7rem;
    line-height: 1.75;
}

.contact-info a {
    color: var(--gold-soft);
    text-decoration: none;
    transition: color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}

.contact-info a:hover {
    color: var(--white);
    border-bottom-color: var(--gold-soft);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
}

@media (max-width: 480px) {
    .contact-form .form-row { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--navy);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--surface-card);
    box-shadow: 0 0 0 3px rgba(190, 154, 90, 0.16);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 1.1rem 3rem;
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    align-self: flex-start;
}

.submit-btn:hover {
    background: var(--gold-text);
    border-color: var(--gold-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ============================== Footer ============================== */
footer {
    padding: 5rem 3rem 2.2rem;
    background: var(--navy-deep);
    color: var(--ivory);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 1.3rem;
    font-weight: 500;
    color: var(--gold-soft);
}

.footer-section p,
.footer-section a {
    color: rgba(251, 248, 243, 0.66);
    font-weight: 300;
    line-height: 1.9;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.footer-section a:hover {
    color: var(--gold-soft);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(190, 154, 90, 0.2);
    text-align: center;
    color: rgba(251, 248, 243, 0.5);
    font-size: 0.86rem;
    font-weight: 300;
}

.footer-bottom p {
    line-height: 2;
}

.footer-bottom a {
    color: var(--gold-soft);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.footer-bottom a:hover {
    color: var(--white);
    border-bottom-color: var(--gold-soft);
}

/* ============================== Responsive ============================== */
@media (max-width: 968px) {
    .nav-container { padding: 0 1.6rem; }

    .hero {
        background-attachment: scroll;
    }

    .suite-item,
    .history-container {
        grid-template-columns: 1fr;
    }

    .suite-image { min-height: 300px; max-height: 46vh; }
    .suite-item:nth-child(even) { direction: ltr; }
    .suite-details { padding: 3rem 2rem; }

    .philosophy { padding: 6rem 1.6rem; }

    .history { padding: 6rem 0; }
    .history-container { gap: 2.6rem; }
    .history-image { min-height: 360px; order: -1; }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
    .service-card { padding: 2.6rem 2rem; }

    .wellness-features { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
    .wellness-item { padding: 2.8rem 2rem; }

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

    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(8) { grid-column: span 1; }

    .search-container { flex-direction: column; gap: 1rem; }
    .search-field { min-width: 100%; }
    .search-btn { width: 100%; }
}

@media (max-width: 768px) {
    .hero { padding: 7rem 0 5rem; }
    .hero h1 { margin-bottom: 1.2rem; }
    .hero-subtitle { margin-bottom: 1.4rem; letter-spacing: 0.12em; }
    .hero-description { margin-bottom: 2rem; }
    .scroll-indicator { display: none; }

    .services { padding: 6rem 1.6rem; }
    .services-grid { grid-template-columns: 1fr; gap: 1.4rem; }

    .wellness { padding: 6rem 1.6rem; }
    .wellness-features { grid-template-columns: 1fr; gap: 1.4rem; }

    .testimonials { padding: 6rem 1.2rem; }
    .testimonial-card { padding: 2.4rem 1.8rem; margin: 0 0.4rem; }
    .testimonial-text { font-size: 1.05rem; }
    .splide__arrows { display: none; }

    .contact { padding: 6rem 1.4rem; }
    .contact-info, .contact-form { padding: 2.2rem 1.6rem; }

    .nav-menu {
        display: none;
        position: fixed;
        inset: 0;
        height: 100vh;
        background: var(--navy-deep);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.2rem;
    }

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

    .nav-menu a,
    nav.scrolled .nav-menu a {
        color: var(--ivory);
        font-family: 'Playfair Display', serif;
        font-size: 1.6rem;
        text-transform: none;
        letter-spacing: 0.02em;
    }

    .nav-menu a:hover,
    nav.scrolled .nav-menu a:hover {
        color: var(--gold-soft);
    }

    .nav-menu a::after { display: none; }

    .book-now {
        display: inline-block;
        font-size: 0.72rem;
        padding: 0.55rem 1.2rem;
        margin-right: 0.5rem;
    }

    .menu-toggle { display: flex; z-index: 1001; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    nav.scrolled .menu-toggle.active span { background: var(--ivory); }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 32vh;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(8) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .availability-search { margin-top: -44px; margin-bottom: -44px; padding: 0 1.4rem; }
}

@media (max-width: 540px) {
    .suite-features { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .philosophy-text:first-of-type { font-size: 1.25rem; }
}

/* ====================== Availability Search Results ====================== */
.no-results {
    text-align: center;
    padding: 5rem 3rem;
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}

.no-results h3 {
    font-size: 1.9rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--warm-gray);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.no-results .suite-cta {
    display: inline-flex;
    margin: 0 auto;
}

/* Loading States */
.search-btn:disabled,
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* API Messages */
.api-error {
    background: #FBEDEC;
    border: 1px solid #E7BDB8;
    color: #9B2C20;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

.api-success {
    background: #ECF4EE;
    border: 1px solid #BBD7C2;
    color: #2E5B3A;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

/* ============================ Accessibility ============================ */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .hero { background-attachment: scroll; }

    .hero h1,
    .hero-subtitle,
    .hero-description,
    .hero-actions,
    .element-card,
    .service-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =============================== Cookie banner =============================== */
.cookie-banner {
    position: fixed;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: var(--z-cookie);
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.6rem;
    background: rgba(14, 36, 53, 0.97);
    color: var(--ivory);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Inter', sans-serif;
    transform: translateY(160%);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(251, 248, 243, 0.86);
}

.cookie-banner__text a {
    color: var(--gold-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.cookie-banner__text a:hover { color: var(--gold); }

.cookie-banner__btn {
    flex: none;
    padding: 0.7rem 1.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--navy-deep);
    background: var(--gold-soft);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.cookie-banner__btn:hover {
    background: var(--gold);
    transform: translateY(-1px);
}

.cookie-banner__btn:focus-visible {
    outline: 2px solid var(--gold-soft);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem 1.3rem;
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
    }
    .cookie-banner__btn { width: 100%; padding: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner { transition: opacity 0.3s ease; transform: none; }
    .cookie-banner.is-visible { transform: none; }
}
