/* ============================================
   PALAZZO MIMÌ — Design System
   Font disp = Chillax, Font sans = Inter
   ============================================ */

/* --- Fonts --- */
@font-face {
    font-family: "disp";
    src: url('../../fonts/Chillax-Variable.woff2') format("woff2"),
         url('../../fonts/Chillax-Variable.woff') format("woff");
    font-weight: 200 700;
    font-display: swap;
    font-style: normal;
}

/* --- Fluid Typography System --- */
:root {
    --size: 402;
    --clamp: 13px;
}
@media (min-width: 650px) { :root { --size: 1500; } }
@media (min-width: 1920px) { :root { --size: 1740; } }

html {
    font-size: calc(10 * 100vw / var(--size));
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

html, body { overscroll-behavior: none; }

/* --- Reset (da Tailwind base) --- */
*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: currentColor; }
body { margin: 0; font-size: 2rem; letter-spacing: -0.02em; line-height: inherit; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; vertical-align: middle; }
button { font-family: inherit; font-size: inherit; cursor: pointer; background: none; border: none; padding: 0; margin: 0; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
hr { height: 0; color: inherit; border-top-width: 1px; }

/* --- Colors --- */
.bg-white { background-color: #ffffff; }
.bg-brown { background-color: rgba(93, 83, 70, 1); }
.bg-black { background-color: rgba(27, 27, 28, 1); }
.text-white { color: #ffffff; }
.text-black { color: rgba(27, 27, 28, 1); }

/* --- Grid System --- */
.site-max {
    --padding: 1rem;
    padding-left: var(--padding);
    padding-right: var(--padding);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
@media (min-width: 650px) { .site-max { --padding: 2rem; } }

.site-grid {
    --columns: 12;
    --gap: 1rem;
    display: grid;
    grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
    grid-column-gap: var(--gap);
}
@media (min-width: 650px) { .site-grid { --columns: 24; --gap: 2rem; } }

/* Col spans */
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-7 { grid-column: span 7 / span 7; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-10 { grid-column: span 10 / span 10; }
.col-span-12 { grid-column: span 12 / span 12; }
.col-span-14 { grid-column: span 14 / span 14; }
.col-span-24 { grid-column: span 24 / span 24; }

@media (min-width: 650px) {
    .s\:col-span-4 { grid-column: span 4 / span 4; }
    .s\:col-span-5 { grid-column: span 5 / span 5; }
    .s\:col-span-6 { grid-column: span 6 / span 6; }
    .s\:col-span-7 { grid-column: span 7 / span 7; }
    .s\:col-span-8 { grid-column: span 8 / span 8; }
    .s\:col-span-10 { grid-column: span 10 / span 10; }
    .s\:col-span-12 { grid-column: span 12 / span 12; }
    .s\:col-span-14 { grid-column: span 14 / span 14; }
    .s\:col-span-24 { grid-column: span 24 / span 24; }
    .s\:col-start-13 { grid-column-start: 13; }
    .s\:col-start-15 { grid-column-start: 15; }
    .s\:col-start-0 { grid-column-start: 0; }
    .s\:block { display: block; }
    .s\:flex { display: flex; }
    .s\:hidden { display: none; }
    .s\:text-right { text-align: right; }
    .s\:items-start { align-items: flex-start; }
    .s\:justify-between { justify-content: space-between; }
    .s\:flex-row { flex-direction: row; }
    .s\:px-10 { padding-left: 1rem; padding-right: 1rem; }
    .s\:px-20 { padding-left: 2rem; padding-right: 2rem; }
    .s\:mb-10 { margin-bottom: 1rem; }
    .s\:pb-380 { padding-bottom: 38rem; }
    .s\:pb-370 { padding-bottom: 37rem; }
    .s\:pb-330 { padding-bottom: 33rem; }
    .s\:pb-250 { padding-bottom: 25rem; }
    .s\:pb-200 { padding-bottom: 20rem; }
    .s\:pb-40 { padding-bottom: 4rem; }
    .s\:pt-0 { padding-top: 0; }
    .s\:mt-0 { margin-top: 0; }
    .s\:mb-50 { margin-bottom: 5rem; }
    .s\:mb-280 { margin-bottom: 28rem; }
    .s\:opacity-100 { opacity: 1; }
    .s\:text-30 { font-size: 3rem; }
    .s\:text-left { text-align: left; }
    .s\:text-\[22rem\] { font-size: 22rem; }
    .s\:text-\[16\.2rem\] { font-size: 16.2rem; }
    .s\:col-start-17 { grid-column-start: 17; }
    .s\:order-1 { order: 1; }
    .s\:order-2 { order: 2; }
    .s\:order-4 { order: 4; }
    .s\:border-t-0 { border-top-width: 0; }
    .s\:gap-y-20 { row-gap: 2rem; }
}

/* --- Typography --- */
.font-disp { font-family: "disp", Georgia, serif; }
.font-sans { font-family: 'Inter', -apple-system, sans-serif; }

.h1 {
    font-family: "disp"; font-size: 7rem;
    line-height: 0.8; letter-spacing: -0.04em;
}
@media (min-width: 650px) { .h1 { font-size: 16.2rem; letter-spacing: -0.02em; } }

.h2 {
    font-family: "disp"; font-size: 4rem;
    line-height: 102%; letter-spacing: -0.01em;
}
@media (min-width: 650px) { .h2 { font-size: 7rem; letter-spacing: -0.02em; } }

.h3 { font-family: 'Inter', sans-serif; font-size: 2.8rem; line-height: 102%; letter-spacing: -0.02em; }
@media (min-width: 650px) { .h3 { font-size: 3rem; } }

.text-14 { font-size: 1.4rem; }
.text-28 { font-size: 2.8rem; }
.text-40 { font-size: 4rem; }

.txt p { margin-bottom: 2.5rem; }

/* --- Utility Classes --- */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.hidden { display: none; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-\[100svh\] { min-height: 100svh; }
.min-h-\[100vh\] { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.size-full { width: 100%; height: 100%; }
.opacity-0 { opacity: 0; }
.opacity-35 { opacity: 0.35; }
.opacity-50 { opacity: 0.50; }
.opacity-60 { opacity: 0.60; }
.pointer-events-none { pointer-events: none; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.font-medium { font-weight: 500; }
.tracking-\[-0\.02em\] { letter-spacing: -0.02em; }
.leading-\[0\.8\] { line-height: 0.8; }
.leading-\[1\.1\] { line-height: 1.1; }
.leading-\[1\.2\] { line-height: 1.2; }
.leading-\[1\.5\] { line-height: 1.5; }
.fill-current { fill: currentColor; }
.mb-auto { margin-bottom: auto; }
.mt-auto { margin-top: auto; }

/* Spacing */
.py-20 { padding-top: 2rem; padding-bottom: 2rem; }
.py-30 { padding-top: 3rem; padding-bottom: 3rem; }
.pb-20 { padding-bottom: 2rem; }
.pb-30 { padding-bottom: 3rem; }
.pb-100 { padding-bottom: 10rem; }
.pb-150 { padding-bottom: 15rem; }
.pb-200 { padding-bottom: 20rem; }
.pb-260 { padding-bottom: 26rem; }
.pt-30 { padding-top: 3rem; }
.pt-100 { padding-top: 10rem; }
.pt-180 { padding-top: 18rem; }
.px-10 { padding-left: 1rem; padding-right: 1rem; }
.mb-15 { margin-bottom: 1.5rem; }
.mb-25 { margin-bottom: 2.5rem; }
.mb-30 { margin-bottom: 3rem; }
.mb-35 { margin-bottom: 3.5rem; }
.mb-50 { margin-bottom: 5rem; }
.mb-20 { margin-bottom: 2rem; }
.mt-20 { margin-top: 2rem; }
.mt-40 { margin-top: 4rem; }
.-mt-35 { margin-top: -3.5rem; }
.gap-x-5 { column-gap: 0.5rem; }
.gap-x-10 { column-gap: 1rem; }
.gap-x-20 { column-gap: 2rem; }
.gap-y-2 { row-gap: 0.2rem; }
.gap-y-5 { row-gap: 0.5rem; }
.gap-y-20 { row-gap: 2rem; }
.gap-y-30 { row-gap: 3rem; }
.gap-y-40 { row-gap: 4rem; }
.gap-y-60 { row-gap: 6rem; }

/* Order */
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }

/* Border */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-t-0 { border-top-width: 0; }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1); }

/* --- Underline animation --- */
.uline {
    position: relative; display: inline-flex; white-space: nowrap; align-items: center;
    --bottom: 0;

    svg {
        width: 20px;
        height: 20px;
        margin-left: 1rem;
        fill: currentColor;
    }
}
.uline:before {
    content: ""; position: absolute; bottom: var(--bottom);
    right: 0; left: 0; height: .05em; min-height: 1px;
    background-color: currentColor;
    transform-origin: right; transform: scale3d(0, 1, 1);
    transition: transform .65s cubic-bezier(1, 0, 0, 1);
}
@media (hover: hover) { .uline:hover:before { transform: scale3d(1, 1, 1); transform-origin: left; } }

/* --- Header --- */
header { transition: transform .5s; }
header.is-scrolled { transform: translateY(-100%); }

/* Mobile homepage: header not sticky until past hero */
@media (max-width: 649px) {
    .has-hero:not(.is-past-hero) header { position: absolute; }
}
header:before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; background-color: #ffffff;
    transition: transform .5s; transform: translateY(-101%);
    z-index: -1; border-bottom: 1px solid #eee;
}
.is-gradient header:before { transform: translateY(0); }

header a, header svg, header button {
    transition: color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.is-light header a, .is-light header svg, .is-light header button,
.menu-open header a, .menu-open header svg, .menu-open header button { color: #ffffff; }

/* Header bar layout */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
}

/* Mobile: Menu (left) - Logo (absolute center) - Prenota (right) */
.site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.header-menu { order: 1; }
.header-cta  { order: 2; margin-left: auto; }

/* Desktop: Logo (left) - Menu (center) - Prenota (right) */
@media (min-width: 650px) {
    .site-logo {
        position: static;
        transform: none;
        order: 1;
    }
    .header-menu {
        order: 2;
        flex: 1;
        text-align: right;
    }
    .header-cta {
        order: 3;
        margin-left: 2rem;
    }
}

/* Logo images */
.site-logo img {
    height: 4.5rem;
    width: auto;
    display: block;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 650px) {
    .site-logo img { height: 5.5rem; }
}
.site-logo a {
    position: relative;
    display: inline-flex;
}
.site-logo-white,
.site-logo-dark {
    position: relative;
}
.site-logo-dark {
    position: absolute;
    top: 0;
    left: 0;
}

/* Default: dark logo visible, white hidden */
.site-logo-white { opacity: 0; }
.site-logo-dark  { opacity: 1; }

/* is-light (hero visible): white logo, hide dark */
.is-light .site-logo-white { opacity: 1; }
.is-light .site-logo-dark  { opacity: 0; }

/* Menu open: always white logo */
.menu-open .site-logo-white { opacity: 1; }
.menu-open .site-logo-dark  { opacity: 0; }

/* Booking header CTA */
.booking-header-btn {
    font-size: 1.4rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid currentColor;
    letter-spacing: -0.02em;
    transition: opacity 0.3s;
}
@media (min-width: 650px) {
    .booking-header-btn {
        font-size: inherit;
        padding: 0.6rem 1.5rem;
    }
}
.booking-header-btn:hover { opacity: 0.6; }

/* Fullscreen menu overlay */
.mobile-menu { clip-path: inset(0% 0% 100% 0%); }

/* Menu close button */
.menu-close-btn {
    font-size: 1.4rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
    color: #ffffff;
    transition: opacity 0.3s;
}
@media (min-width: 650px) {
    .menu-close-btn {
        font-size: inherit;
        padding: 0.6rem 1.5rem;
    }
}
.menu-close-btn:hover { opacity: 0.6; }

/* Menu hamburger icon */
.menu-icon {
    display: block;
    width: 3.2rem;
    height: auto;
    color: inherit;
    transition: color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Hero Section --- */
.hero-section {
    display: flex; flex-direction: column;
    justify-content: space-between;
    min-height: 100svh; overflow: hidden;
    position: relative;
}

.hero-media {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    height: 100%; min-height: 100svh; background: rgba(27, 27, 28, 1);
}

.hero-media video {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
}

.space { width: var(--space-s); display: inline-flex; height: 1px; }
@media (min-width: 650px) { .space { width: var(--space); } }

/* Aspect ratio helper */
.aspect { padding-top: var(--aspect); }

/* --- Rooms Section --- */
.room-card { overflow: hidden; }

.room-card a { display: block; }

.room-card-img {
    position: relative; overflow: hidden; width: 100%;
}

.room-card-img .aspect { padding-top: 125%; }

.room-card-img img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.room-card a:hover .room-card-img img { transform: scale(1.03); }

.room-card-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.room-card-img.is-playing .room-card-video {
    opacity: 1;
}

.room-card-name {
    font-family: "disp"; font-size: 2.8rem;
    line-height: 102%; letter-spacing: -0.02em;
    margin-top: 1.5rem;
}

.room-card-desc {
    font-family: 'Inter', sans-serif; font-size: inherit;
    opacity: 0.5; margin-top: 0.8rem; line-height: 1.4;
}

/* --- Palazzo Section (titolo gigante + griglia) --- */
.palazzo-big-title {
    font-family: "disp";
    font-size: 6.8rem;
    text-transform: uppercase;
    display: flex; flex-wrap: wrap; justify-content: space-between;
    line-height: 0.9; letter-spacing: -0.02em;
}
@media (min-width: 650px) { .palazzo-big-title { font-size: 22rem; flex-wrap: nowrap; } }

.palazzo-label {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem; opacity: 0.35;
    font-weight: 500; line-height: 1.5;
}

.palazzo-body {
    font-family: 'Inter', sans-serif;
    font-size: inherit; line-height: 1.5;
}

.palazzo-body p { margin-bottom: 2.5rem; }
.palazzo-body p:last-child { margin-bottom: 0; }

/* Image with aspect ratio */
.palazzo-img-wrap {
    position: relative; width: 100%; overflow: hidden;
}

.palazzo-img-wrap .aspect { padding-top: 132%; }

.palazzo-img-wrap img {
    position: absolute; top: -10%; left: 0;
    width: 100%; height: 120%; object-fit: cover;
}

/* --- Quote --- */
.quote-text {
    font-family: "disp"; font-size: 4rem;
    line-height: 102%;
    letter-spacing: -0.01em;
}
@media (min-width: 650px) { .quote-text { font-size: 7rem; letter-spacing: -0.02em; } }

/* --- Closing --- */
.closing-text {
    font-family: "disp"; font-size: 4rem;
    line-height: 102%;
    letter-spacing: -0.01em;
}
@media (min-width: 650px) { .closing-text { font-size: 7rem; } }

.closing-body { opacity: 0.5; }
.closing-body p { margin-bottom: 2.5rem; }

/* --- Page Transition Overlay --- */
.page-transition-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: #ffffff;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
body.is-transitioning .page-transition-overlay {
    opacity: 1; pointer-events: all;
}
body.is-entering .page-transition-overlay {
    opacity: 1; pointer-events: all;
}

/* --- Room Single Page --- */
.room-page-title {
    font-family: "disp";
    font-size: 5rem;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}
@media (min-width: 650px) {
    .room-page-title { font-size: 8rem; }
}

.room-page-subtitle {
    font-size: inherit;
    opacity: 0.5;
    margin-bottom: 2rem;
}

/* Features list */
.room-features {
    list-style: none; margin: 0; padding: 0;
}
.room-features li {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(27, 27, 28, 0.1);
    font-size: inherit;
    line-height: 1.4;
}
.room-features li:first-child {
    border-top: 1px solid rgba(27, 27, 28, 0.1);
}

/* Gallery grid */
.room-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 650px) {
    .room-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .room-gallery-grid .room-gallery-item:nth-child(even) {
        margin-top: 6rem;
    }
}

.room-gallery-img-wrap {
    position: relative; width: 100%; overflow: hidden;
}
.room-gallery-img-wrap .aspect { padding-top: 125%; }
.room-gallery-img-wrap img {
    position: absolute; top: -10%; left: 0;
    width: 100%; height: 120%; object-fit: cover;
}

.btn-book {
    display: inline-flex; margin-top: 3rem;
    font-size: inherit; color: rgba(27, 27, 28, 1);
}

/* Room page + contact page: header always visible with white bg */
.is-room-page header:before,
.post-type-archive-camera header:before,
.page-template-page-contatti header:before { transform: translateY(0); }

/* --- Contact Page --- */
.contact-info-list {
    list-style: none; margin: 0; padding: 0;
}
.contact-info-list li {
    line-height: 1.5;
    margin-bottom: 0.2rem;
}

/* Contact form */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 650px) {
    .contact-form-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.contact-form-field {
    margin-bottom: 2.5rem;
}
.contact-form-field label {
    display: block;
    font-size: 1.4rem;
    opacity: 0.35;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.contact-form-field input[type="text"],
.contact-form-field input[type="email"],
.contact-form-field input[type="tel"],
.contact-form-field textarea {
    width: 100%;
    padding: 1.2rem 0;
    font-family: 'Inter', sans-serif;
    font-size: inherit;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: rgba(27, 27, 28, 1);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(27, 27, 28, 0.15);
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
    -webkit-appearance: none;
}
.contact-form-field input:focus,
.contact-form-field textarea:focus {
    border-bottom-color: rgba(27, 27, 28, 0.6);
}
.contact-form-field textarea {
    resize: vertical;
    min-height: 8rem;
}

/* Privacy checkbox */
.contact-privacy {
    display: flex !important;
    align-items: flex-start;
    gap: 0.8rem;
    opacity: 1 !important;
    cursor: pointer;
}
.contact-privacy input[type="checkbox"] {
    width: 1.6rem; height: 1.6rem;
    margin-top: 0.2rem; flex-shrink: 0;
    accent-color: rgba(27, 27, 28, 1);
    cursor: pointer;
}
.contact-privacy span {
    font-size: inherit;
    opacity: 0.5;
    line-height: 1.5;
}

/* Submit button */
.contact-btn {
    font-family: 'Inter', sans-serif;
    font-size: inherit;
    letter-spacing: -0.02em;
    color: #ffffff;
    background: rgba(27, 27, 28, 1);
    padding: 1.4rem 3.5rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}
.contact-btn:hover { opacity: 0.75; }
.contact-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Feedback */
.contact-form-feedback {
    margin-top: 2rem;
    padding: 1.2rem 0;
    line-height: 1.5;
}
.contact-form-feedback.is-success { color: #2d7a3a; }
.contact-form-feedback.is-error { color: #a03030; }

/* Validation */
.contact-form-field.has-error input,
.contact-form-field.has-error textarea {
    border-bottom-color: #a03030;
}

/* --- Sticky Footer Reveal --- */
main[role="main"] { z-index: 1; }
.js-footer {
    position: sticky; bottom: 0;
}

/* --- Footer --- */
.js-footer a, .js-footer button { transition: opacity 0.3s; }
.js-footer a:hover, .js-footer button:hover { opacity: 0.6; }
.js-footer nav ul { gap: 0.2rem; }
.js-footer nav ul li { line-height: 1.5; }

/* --- Booking Modal --- */
.booking-modal {
    position: fixed; inset: 0; z-index: 10000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.booking-modal.is-open {
    opacity: 1; pointer-events: all;
}
.booking-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(27, 27, 28, 0.5);
}
.booking-modal-content {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 100%;
    max-width: 64rem;
    background: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.booking-modal.is-open .booking-modal-content {
    transform: translateX(0);
}
.booking-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 3rem; padding-bottom: 2rem;
}
.booking-modal-body {
    padding-top: 2rem; padding-bottom: 5rem;
}

/* --- CF7 Form Overrides (match existing contact form style) --- */
.wpcf7 .contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 650px) {
    .wpcf7 .contact-form-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
.wpcf7 .contact-form-field {
    margin-bottom: 2.5rem;
}
.wpcf7 .contact-form-field > label {
    display: block;
    font-size: 1.4rem;
    opacity: 0.35;
    font-weight: 500;
    margin-bottom: 0.8rem;
}
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 1.2rem 0;
    font-family: 'Inter', sans-serif;
    font-size: inherit;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: rgba(27, 27, 28, 1);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(27, 27, 28, 0.15);
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
    -webkit-appearance: none;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-bottom-color: rgba(27, 27, 28, 0.6);
}
.wpcf7 textarea {
    resize: vertical;
    min-height: 8rem;
}
.wpcf7 .wpcf7-not-valid {
    border-bottom-color: #a03030;
}
.wpcf7 .wpcf7-not-valid-tip {
    font-size: 1.2rem;
    color: #a03030;
    margin-top: 0.4rem;
}
/* Privacy checkbox — CF7 acceptance */
.wpcf7 .contact-privacy {
    display: flex !important;
    align-items: flex-start;
    gap: 0.8rem;
    opacity: 1 !important;
    cursor: pointer;
}
.wpcf7 .contact-privacy .wpcf7-form-control-wrap {
    display: inline-flex;
    flex-shrink: 0;
}
.wpcf7 .contact-privacy input[type="checkbox"] {
    width: 1.6rem; height: 1.6rem;
    margin-top: 0.2rem; flex-shrink: 0;
    accent-color: rgba(27, 27, 28, 1);
    cursor: pointer;
}
.wpcf7 .contact-privacy span {
    font-size: inherit;
    opacity: 0.5;
    line-height: 1.5;
}
/* Submit */
.wpcf7 .contact-form-submit {
    margin-top: 1rem;
}
.wpcf7 input.contact-btn,
.wpcf7 input[type="submit"].wpcf7-submit {
    font-family: 'Inter', sans-serif;
    font-size: inherit;
    letter-spacing: -0.02em;
    color: #ffffff;
    background: rgba(27, 27, 28, 1);
    padding: 1.4rem 3.5rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}
.wpcf7 input.contact-btn:hover { opacity: 0.75; }
/* Response output */
.wpcf7 .wpcf7-response-output {
    margin: 2rem 0 0;
    padding: 1.2rem 0;
    border: none;
    line-height: 1.5;
    font-size: inherit;
}
.wpcf7 form.sent .wpcf7-response-output { color: #2d7a3a; }
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output { color: #a03030; }
/* Spinner */
.wpcf7 .wpcf7-spinner {
    margin: 0 0 0 1rem;
    vertical-align: middle;
}

/* --- Text Split Animations --- */
/* Hero: slide-up masks */
.split-mask {
    overflow: hidden;
}

.split-line {
    will-change: transform;
}

/* Scroll sections: word coloring */
.split-word {
    display: inline-block;
    white-space: nowrap;
    will-change: opacity;
}

/* Parallax images: extra height for movement range */
.js-parallax {
    will-change: transform;
}

/* Room card parallax: override to allow movement */
.room-card-img .js-parallax {
    top: -10%;
    height: 120%;
}

/* Line animations */
.js-line {
    transform-origin: left center;
    will-change: transform;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* --- Body states --- */
body.menu-open, body.booking-open { overflow: hidden; }
body.is-loading * { transition: none !important; }
body.is-transitioning header:before { transform: translateY(-101%) !important; }

/* Visibility helper for GSAP autoAlpha */
.js-t-fade-in,
.js-t-fade-in-project { visibility: visible; }

/* --- Privacy Policy Page --- */
.page-template-page-privacy-policy header:before { transform: translateY(0); }

.privacy-content {
    font-family: 'Inter', sans-serif;
    font-size: inherit;
    line-height: 1.6;
    letter-spacing: -0.01em;
}
.privacy-content h2 {
    font-family: "disp", Georgia, serif;
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}
.privacy-content h3 {
    font-weight: 500;
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.privacy-content p {
    margin-bottom: 1.5rem;
    opacity: 0.75;
}
.privacy-content ul,
.privacy-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    opacity: 0.75;
}
.privacy-content ul { list-style: disc; }
.privacy-content ol { list-style: decimal; }
.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.privacy-content a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: opacity 0.3s;
}
.privacy-content a:hover { opacity: 0.6; }
.privacy-content strong { font-weight: 500; }

/* --- Cookie Consent (CookieYes style) --- */
.cc-wrapper {
    position: fixed;
    z-index: 9998;
    bottom: 1.5rem;
    left: 1.5rem;
    width: calc(100% - 3rem);
    max-width: 42rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: rgba(27, 27, 28, 1);
    opacity: 0;
    transform: translateY(2rem);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.cc-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Banner card */
.cc-banner,
.cc-settings {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 2.4rem;
    box-shadow: 0 0.8rem 3rem rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.cc-settings { display: none; }
.cc-wrapper.is-settings .cc-banner { display: none; }
.cc-wrapper.is-settings .cc-settings { display: block; }

/* Head */
.cc-banner-head,
.cc-settings-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.cc-banner-title {
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}
.cc-close {
    width: 3rem; height: 3rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    line-height: 1;
    color: rgba(27, 27, 28, 0.4);
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.cc-close:hover {
    background: rgba(27, 27, 28, 0.06);
    color: rgba(27, 27, 28, 0.8);
}

/* Description */
.cc-banner-desc,
.cc-settings-desc {
    color: rgba(27, 27, 28, 0.6);
    margin-bottom: 2rem;
}
.cc-banner-desc a,
.cc-settings-desc a {
    color: rgba(93, 83, 70, 1);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: opacity 0.3s;
}
.cc-banner-desc a:hover,
.cc-settings-desc a:hover { opacity: 0.6; }

/* Actions */
.cc-banner-actions,
.cc-settings-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.cc-btn {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0.9rem 1.8rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    white-space: nowrap;
    border: none;
}
.cc-btn--accept {
    background: rgba(93, 83, 70, 1);
    color: #ffffff;
}
.cc-btn--accept:hover { opacity: 0.85; }
.cc-btn--reject {
    background: rgba(27, 27, 28, 0.06);
    color: rgba(27, 27, 28, 0.8);
}
.cc-btn--reject:hover { background: rgba(27, 27, 28, 0.1); }
.cc-btn--settings {
    background: transparent;
    color: rgba(27, 27, 28, 0.6);
    padding-left: 0;
}
.cc-btn--settings:hover { color: rgba(27, 27, 28, 1); }

/* Categories */
.cc-categories {
    margin-bottom: 2rem;
}
.cc-category {
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(27, 27, 28, 0.08);
}
.cc-category:first-child {
    border-top: 1px solid rgba(27, 27, 28, 0.08);
}
.cc-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cc-category-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.cc-category-name {
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}
.cc-category-badge {
    font-size: 1.1rem;
    color: rgba(93, 83, 70, 1);
    background: rgba(93, 83, 70, 0.08);
    padding: 0.2rem 0.7rem;
    border-radius: 1rem;
    font-weight: 500;
}
.cc-category-desc {
    color: rgba(27, 27, 28, 0.5);
    font-size: 1.2rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    display: inline-block;
    width: 4.2rem;
    height: 2.4rem;
    flex-shrink: 0;
    cursor: pointer;
}
.cc-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cc-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(27, 27, 28, 0.15);
    border-radius: 1.2rem;
    transition: background 0.3s;
}
.cc-toggle-slider::before {
    content: "";
    position: absolute;
    width: 1.8rem;
    height: 1.8rem;
    left: 0.3rem;
    bottom: 0.3rem;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.cc-toggle-input:checked + .cc-toggle-slider {
    background: rgba(93, 83, 70, 1);
}
.cc-toggle-input:checked + .cc-toggle-slider::before {
    transform: translateX(1.8rem);
}

/* Reopen button */
.cc-reopen {
    position: fixed;
    z-index: 9997;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(93, 83, 70, 1);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s, transform 0.3s;
}
.cc-reopen:hover {
    opacity: 0.85;
    transform: scale(1.05);
}
.cc-reopen.is-visible {
    display: flex;
}
.cc-reopen svg {
    width: 1.8rem;
    height: 1.8rem;
}

/* --- FAQ Page --- */
.page-template-page-faq header:before { transform: translateY(0); }

.faq-group {
    border-top: 1px solid rgba(27, 27, 28, 0.1);
}

.faq-item {
    border-bottom: 1px solid rgba(27, 27, 28, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 2rem 0;
    font-family: 'Inter', sans-serif;
    font-size: inherit;
    line-height: 1.4;
    letter-spacing: -0.02em;
    text-align: left;
    color: rgba(27, 27, 28, 1);
    transition: opacity 0.3s;
}
.faq-question:hover { opacity: 0.6; }

.faq-icon {
    position: relative;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    margin-left: 2rem;
}
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: rgba(27, 27, 28, 1);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.faq-icon::before {
    width: 1.2rem;
    height: 1px;
    transform: translate(-50%, -50%);
}
.faq-icon::after {
    width: 1px;
    height: 1.2rem;
    transform: translate(-50%, -50%);
}
.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    overflow: hidden;
    height: 0;
    transition: height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-answer-inner {
    padding-bottom: 2rem;
    opacity: 0.6;
    line-height: 1.5;
}

/* WP admin bar */
.admin-bar header { top: 32px; }
.admin-bar .js-app-wrapper { margin-top: -32px; }
@media (max-width: 782px) {
    .admin-bar header { top: 46px; }
    .admin-bar .js-app-wrapper { margin-top: -46px; }
}
