/* ============================================================
   Grotta Pinta — design system · "7-star" dark luxury
   ============================================================ */

:root {
    --ink: #0a0a0c;
    --ink-soft: #111114;
    --ink-panel: #141418;
    --ivory: #f4efe6;
    --ivory-dim: rgba(244, 239, 230, 0.72);
    --stone: #9b9ba1;
    --gold: #c6a15b;
    --gold-soft: #ddc08a;
    --line: rgba(244, 239, 230, 0.12);
    --line-gold: rgba(198, 161, 91, 0.35);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
        --section-pad: clamp(84px, 10vw, 150px);
}

/* ============================================================
   Date picker (public calendar popup)
   Same composition as the admin calendar, mapped onto the
   public theme tokens (gold accent, ivory ink, dark panel).
   ============================================================ */
.vldp {
    --vldp-accent: var(--gold);
    --vldp-accent-soft: color-mix(in srgb, var(--gold) 20%, transparent);
    --vldp-accent-ink: var(--gold-soft);
    --vldp-muted: var(--stone);
    position: fixed;
    z-index: 120;
    top: 0;
    left: 0;
    width: min(330px, calc(100vw - 16px));
    padding: 12px;
    background: var(--ink-panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
    font-family: var(--font-body);
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s linear;
}
.vldp.is-open { opacity: 1; visibility: visible; transform: none; }

.vldp__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.vldp__nav {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--ivory-dim);
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.vldp__nav:hover { color: var(--gold); border-color: var(--line-gold); background: var(--vldp-accent-soft); }
.vldp__nav[disabled] { opacity: 0.35; cursor: not-allowed; }
.vldp__nav[disabled]:hover { color: var(--ivory-dim); border-color: var(--line); background: none; }
.vldp__nav:focus-visible,
.vldp__day:focus-visible {
    outline: 2px solid var(--vldp-accent);
    outline-offset: -2px;
}
.vldp__title {
    flex: 1 1 auto;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}
.vldp__month {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--ivory);
    text-transform: capitalize;
}
.vldp__year { font-size: 0.66rem; letter-spacing: 0.16em; color: var(--vldp-muted); }

.vldp__week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}
.vldp__wd {
    padding: 4px 0;
    text-align: center;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vldp-accent-ink);
    font-weight: 600;
}
.vldp__wd--weekend { color: var(--vldp-muted); }

.vldp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.vldp__day {
    min-height: 42px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: transparent;
    color: var(--ivory);
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.vldp__day--empty { pointer-events: none; }
.vldp__day:hover:not([disabled]) { background: color-mix(in srgb, var(--ivory) 8%, transparent); }
.vldp__day--weekend { color: var(--ivory-dim); }
.vldp__day--today { box-shadow: inset 0 0 0 1px var(--vldp-accent); }
.vldp__day--today .vldp__num {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--vldp-accent);
    color: var(--ink);
}
.vldp__day--selected { background: var(--vldp-accent-soft); color: var(--vldp-accent-ink); }
.vldp__day--selected .vldp__num { font-weight: 600; }
.vldp__day[disabled] { color: var(--vldp-muted); opacity: 0.45; cursor: not-allowed; }
.vldp__num { font-size: 0.78rem; line-height: 1; }

/* Date fields driven by the custom datepicker.
   The booking search form is not wrapped in .form, so its date inputs rendered
   with UA styles (white box) next to a dark popup: align them with the site
   field language, reusing the same tokens as `.form input`. */
input[type="date"][data-datepicker] {
    width: 100%;
    min-height: 46px;
    cursor: pointer;
    color-scheme: dark;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--ivory);
    padding: 12px 2px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
input[type="date"][data-datepicker]:focus { outline: none; border-color: var(--gold); }
input[type="date"][data-datepicker]::-webkit-calendar-picker-indicator { cursor: pointer; }
/* Enhanced fields: the UA calendar indicator is both invisible and inert so a
   click can never reach the native picker (single popup guarantee). */
input[type="date"][data-datepicker].is-enhanced::-webkit-calendar-picker-indicator {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 360px) {
    .vldp__day { min-width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .vldp { transition: none; }
}


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

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Layout helpers ---------- */
.container { width: min(1220px, 92%); margin-inline: auto; }

.section { position: relative; padding: var(--section-pad) 0; }
.section--tint { background: var(--ink-soft); }

.kicker {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.display {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.06;
    font-size: clamp(2.3rem, 4.6vw, 4rem);
    letter-spacing: -0.01em;
}

.lead {
    color: var(--ivory-dim);
    font-weight: 300;
    line-height: 1.85;
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
    max-width: 60ch;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .display { margin: 18px 0 20px; }
.section-head .lead { margin-bottom: 0; }

.section-tag {
    margin-top: 18px;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--stone);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 36px;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid var(--gold);
    transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
    white-space: nowrap;
}

.btn--solid { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--solid:hover { background: transparent; color: var(--gold); }

.btn--ghost { color: var(--ivory); border-color: rgba(244, 239, 230, 0.35); }
.btn--ghost:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.btn--lg { padding: 20px 48px; font-size: 0.75rem; }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: var(--ink);
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 26px;
    transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__mono {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--ivory);
}
.preloader__mono span { color: var(--gold); }

.preloader__line {
    width: 70px;
    height: 1px;
    background: var(--line-gold);
    position: relative;
    overflow: hidden;
}
.preloader__line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    animation: preload 1.4s var(--ease) infinite;
}
@keyframes preload {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 1500;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: var(--ivory); }
.cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid var(--ivory);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: var(--gold); }
@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 30px 0;
    transition: padding 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    padding: 16px 0;
    background: rgba(10, 10, 12, 0.72);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-color: var(--line);
}

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ivory);
    line-height: 1;
}
.brand__villa { color: var(--ivory); }
.brand__luise { color: var(--gold); }
/* Navbar logo: "Villa" white, "Luise" champagne gold — kept distinct in every nav state (top over hero, hover, frosted on scroll). */
.nav .brand__villa,
.nav .brand:hover .brand__villa,
.nav.is-scrolled .brand__villa { color: #ffffff; }
.nav .brand__luise,
.nav .brand:hover .brand__luise,
.nav.is-scrolled .brand__luise { color: var(--gold); }

.nav__links { display: flex; gap: 30px; }
.nav__link {
    position: relative;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ivory-dim);
    transition: color 0.4s var(--ease);
    padding: 6px 0;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ivory); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* "The Villa" dropdown */
.nav__dropdown { position: relative; }
.nav__caret {
    display: inline-block;
    margin-left: 7px;
    font-size: 0.6rem;
    color: var(--gold);
    transition: transform 0.3s var(--ease);
}
.nav__dropbtn { display: inline-flex; align-items: center; }

.nav__dropmenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 200px;
    background: rgba(20, 20, 24, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.nav__dropdown:hover .nav__dropmenu,
.nav__dropdown.is-open .nav__dropmenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown:hover .nav__caret,
.nav__dropdown.is-open .nav__caret { transform: rotate(180deg); }

.nav__dropitem {
    display: block;
    padding: 10px 16px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.nav__dropitem:hover, .nav__dropitem.is-active { color: var(--gold); padding-left: 22px; }

.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__book { padding: 12px 24px; }

/* Lang switcher */
.lang { position: relative; }
.lang__btn {
    display: flex; align-items: center; gap: 7px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--ivory);
    padding: 8px 0;
}
.lang__caret { font-size: 0.6rem; color: var(--gold); transition: transform 0.3s var(--ease); }
.lang.is-open .lang__caret { transform: rotate(180deg); }

.lang__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 90px;
    background: rgba(20, 20, 24, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__item {
    display: block;
    padding: 8px 14px;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--stone);
    transition: color 0.3s;
}
.lang__item:hover, .lang__item.is-active { color: var(--gold); }

.lang--footer { display: flex; gap: 16px; margin-top: 20px; }
.lang--footer .lang__item { padding: 0; }

/* Burger */
.nav__burger { display: none; width: 34px; height: 24px; position: relative; }
.nav__burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--ivory);
    transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav__burger span:nth-child(1) { top: 4px; }
.nav__burger span:nth-child(2) { top: 11px; }
.nav__burger span:nth-child(3) { top: 18px; }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(8, 8, 10, 0.97);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__inner { text-align: center; padding: 40px 24px; }
.mobile-menu__close {
    position: absolute;
    top: 28px; right: 30px;
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--ivory);
    line-height: 1;
}
.mobile-menu__links { display: grid; gap: 22px; margin-bottom: 40px; }
.mobile-menu__link {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    font-weight: 300;
    color: var(--ivory);
    transition: color 0.3s;
    text-align: center;
}
.mobile-menu__link:hover { color: var(--gold); }

.mobile-drop__btn { display: inline-flex; align-items: center; gap: 10px; }
.mobile-drop__caret { font-size: 0.8rem; color: var(--gold); transition: transform 0.3s var(--ease); }
.mobile-drop.is-open .mobile-drop__caret { transform: rotate(180deg); }

.mobile-drop__menu {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease), opacity 0.45s var(--ease), margin-top 0.45s var(--ease);
}
.mobile-drop.is-open .mobile-drop__menu { max-height: 340px; opacity: 1; }
.mobile-menu__link--sub {
    font-size: clamp(1.15rem, 3.4vw, 1.5rem);
    color: var(--stone);
}
.mobile-menu__link--sub:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }

.hero__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.12) translateY(-1.5%); }
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s var(--ease);
    will-change: opacity, transform;
}
.hero__slide.is-active {
    opacity: 1;
    animation-name: var(--kb, kb-zoom-in);
    animation-duration: var(--kb-dur, 24s);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
/* Rotazione di fallback senza JS: otto varianti Ken Burns sui resti di 8n.
   Con il JS attivo la custom property --kb viene impostata inline ad ogni cambio slide. */
.hero__slide:nth-child(8n+1).is-active { --kb: kb-zoom-in;  --kb-dur: 24s; }
.hero__slide:nth-child(8n+2).is-active { --kb: kb-zoom-out; --kb-dur: 22s; }
.hero__slide:nth-child(8n+3).is-active { --kb: kb-pan-left;  --kb-dur: 26s; }
.hero__slide:nth-child(8n+4).is-active { --kb: kb-pan-right; --kb-dur: 20s; }
.hero__slide:nth-child(8n+5).is-active { --kb: kb-pan-up;    --kb-dur: 28s; }
.hero__slide:nth-child(8n+6).is-active { --kb: kb-pan-down;  --kb-dur: 24s; }
.hero__slide:nth-child(8n+7).is-active { --kb: kb-diag-tl;   --kb-dur: 26s; }
.hero__slide:nth-child(8n+8).is-active { --kb: kb-diag-br;   --kb-dur: 22s; }
@keyframes kb-zoom-in {
    0% { transform: scale(1); }
    100% { transform: scale(1.14); }
}
@keyframes kb-zoom-out {
    0% { transform: scale(1.16); }
    100% { transform: scale(1.02); }
}
@keyframes kb-pan-left {
    0% { transform: scale(1.12) translateX(3%); }
    100% { transform: scale(1.12) translateX(-3%); }
}
@keyframes kb-pan-right {
    0% { transform: scale(1.12) translateX(-3%); }
    100% { transform: scale(1.12) translateX(3%); }
}
@keyframes kb-pan-up {
    0% { transform: scale(1.12) translateY(3%); }
    100% { transform: scale(1.12) translateY(-3%); }
}
@keyframes kb-pan-down {
    0% { transform: scale(1.12) translateY(-3%); }
    100% { transform: scale(1.12) translateY(3%); }
}
@keyframes kb-diag-tl {
    0% { transform: scale(1.05) translate(2.5%, 2.5%); }
    100% { transform: scale(1.17) translate(-2.5%, -2.5%); }
}
@keyframes kb-diag-br {
    0% { transform: scale(1.17) translate(-2.5%, -2.5%); }
    100% { transform: scale(1.05) translate(2.5%, 2.5%); }
}
/* Variante storica mantenuta disponibile (fallback CSS / temi alternativi). */
@keyframes kenburns-b {
    0% { transform: scale(1.14) translateY(1.4%); }
    100% { transform: scale(1.01) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__slide.is-active { animation: none; }
    .hero__slide { transition-duration: 0.6s; }
}

.hero__video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    transition: opacity 1.2s var(--ease);
}
.hero__video iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.55), rgba(10, 10, 12, 0.32) 45%, var(--ink) 98%);
}

.hero__content { position: relative; z-index: 2; padding-top: 90px; }
.hero__kicker { margin-bottom: 28px; }

.hero__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3rem, 8.2vw, 7rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
}
.hero__title em { font-style: italic; color: var(--gold-soft); }

.hero__sub {
    margin-top: 30px;
    max-width: 560px;
    color: var(--ivory-dim);
    font-weight: 300;
    line-height: 1.85;
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

.hero__cta { margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; }

.hero__scroll {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 12px;
    font-size: 0.64rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--stone);
}
.hero__scroll-line { width: 1px; height: 46px; background: var(--line-gold); position: relative; overflow: hidden; }
.hero__scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    animation: scrollhint 2.2s var(--ease) infinite;
}
@keyframes scrollhint {
    0% { transform: translateY(-100%); }
    55% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Estate / intro ---------- */
.estate { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.estate__media { position: relative; }
.estate__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.estate__media-line {
    position: absolute;
    inset: 26px -26px -26px 26px;
    border: 1px solid var(--line-gold);
    z-index: -1;
}
.estate__content .kicker { margin-bottom: 20px; }
.estate__content .display { margin-bottom: 26px; }
.estate__content .lead { font-style: italic; }
.estate__content .lead + .lead { margin-top: 18px; }
.estate__quote { margin-top: 34px; padding-left: 22px; border-left: 1px solid var(--gold); }
.estate__quote p { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--ivory); }
.estate__quote cite { display: block; margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); font-style: normal; }

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat { padding: 44px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat__num {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}
.stat__label {
    display: block;
    margin-top: 12px;
    font-size: 0.66rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--stone);
}

/* ---------- Rooms ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.room { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink-panel); }
.room__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.3s var(--ease), opacity 1s var(--ease);
}
.room:hover .room__img { transform: scale(1.07); }
.room__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 10, 0.92), rgba(8, 8, 10, 0.05) 55%);
}
.room__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.room__num { font-size: 0.64rem; letter-spacing: 0.3em; color: var(--gold); }
.room__name { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; margin-top: 8px; }
.room__desc {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--stone);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.room__view {
    margin-top: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}
.room:hover .room__desc { opacity: 1; transform: none; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(30px, 5vw, 70px); }
.service {
    display: flex;
    gap: 26px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.service__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); padding-top: 4px; }
.service__title { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.service__desc { margin-top: 8px; color: var(--stone); font-size: 0.9rem; line-height: 1.7; }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 20px; }
.gallery__item {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    break-inside: avoid;
}
.gallery__item img { width: 100%; transition: transform 1.2s var(--ease); }
.gallery__item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 10, 0.55), transparent 45%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(5, 5, 7, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 88vw; max-height: 84vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox__btn {
    position: absolute;
    z-index: 2;
    width: 54px; height: 54px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
}
.lightbox__btn:hover { background: var(--gold); color: var(--ink); }
.lightbox__close { top: 30px; right: 34px; }
.lightbox__prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; color: var(--stone); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; }

/* ---------- Experiences ---------- */
.experiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exp { background: var(--ink-panel); border: 1px solid var(--line); overflow: hidden; }
.exp__media { overflow: hidden; aspect-ratio: 16 / 11; }
.exp__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.exp:hover .exp__media img { transform: scale(1.07); }
.exp__body { padding: 26px; }
.exp__title { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.exp__desc { margin-top: 10px; color: var(--stone); font-size: 0.88rem; line-height: 1.7; }

/* ---------- Booking band ---------- */
.section--band { background: var(--ivory); color: var(--ink); text-align: center; }
.section--band .display { color: var(--ink); }
.section--band .lead { color: #5b5b60; margin-inline: auto; }
.band { display: grid; justify-items: center; gap: 26px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    padding: clamp(150px, 20vh, 230px) 0 60px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(198, 161, 91, 0.07), transparent 60%),
        var(--ink);
}
.page-hero__title { margin-top: 20px; max-width: 16ch; }
.page-hero__sub { margin-top: 24px; }

/* ---------- Virtual tour ---------- */
.pano {
    width: 100%;
    height: clamp(380px, 68vh, 640px);
    border: 1px solid var(--line);
    background: var(--ink-panel);
}
.tour__note { margin-top: 18px; text-align: center; color: var(--stone); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 90px); }
.contact__subtitle { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 24px; }
.contact__list { display: grid; gap: 22px; }
.contact__list li { display: grid; gap: 4px; }
.contact__label { font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.contact__list a, .contact__list span:last-child { color: var(--ivory-dim); font-weight: 300; }
.contact__list a:hover { color: var(--gold); }

.form { display: grid; gap: 24px; }
.form__honey { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form__field { display: grid; gap: 10px; }
.form__field span { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); }
.form input, .form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--ivory);
    padding: 12px 2px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form input::placeholder, .form textarea::placeholder { color: #4a4a50; }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; margin-top: 8px; }

.form-success {
    padding: 34px;
    border: 1px solid var(--line-gold);
    background: var(--ink-panel);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--gold-soft);
}
.form-error { color: #d98b8b; font-size: 0.85rem; }

/* Server-rendered per-field error slot (class used by booking.php / contatti.php). */
.field-error {
    display: block;
    margin: 6px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: var(--gold);
}
.field-error:empty { display: none; }

/* ============================================================
   Public forms: validation state + AJAX feedback.
   Theme tokens only (--gold, --ivory, --stone, --line).
   ============================================================ */
.form__error {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: var(--gold);
}

.form__field--invalid > span { color: var(--gold); }

.form__field--invalid input,
.form__field--invalid textarea,
.form__field--invalid select,
.form__field--invalid .vlstep,
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: var(--line-gold);
}

.form__field--invalid input:focus,
.form__field--invalid textarea:focus,
input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
    border-color: var(--gold);
}

.form__summary {
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--stone);
    border-radius: 3px;
    background: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ivory-dim);
}
.form__summary[hidden] { display: none; }
.form__summary--info { border-left-color: var(--stone); }
.form__summary--error { border-left-color: var(--gold); color: var(--ivory); }
.form__summary--success { border-left-color: var(--gold-soft); color: var(--ivory); }

@keyframes vl-form-busy {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.85; }
}

form.is-busy { cursor: progress; }
.is-busy [type="submit"],
[type="submit"][data-busy] {
    opacity: 0.6;
    cursor: progress;
    pointer-events: none;
}
.is-busy [type="submit"][data-busy] { animation: vl-form-busy 1.1s var(--ease) infinite; }

@media (prefers-reduced-motion: reduce) {
    .is-busy [type="submit"][data-busy] { animation: none; opacity: 0.6; }
}


/* ---------- Footer ---------- */
.footer { background: #060607; padding: var(--section-pad) 0 0; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: clamp(30px, 4vw, 60px); padding-bottom: 60px; }
.footer__about p { color: var(--stone); font-size: 0.9rem; margin-top: 18px; line-height: 1.8; }
.footer__title { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: 20px; letter-spacing: 0.03em; }
.footer__list { display: grid; gap: 12px; }
.footer__list a, .footer__list li { color: var(--stone); font-size: 0.86rem; transition: color 0.3s; }
.footer__list a:hover { color: var(--gold); }
.footer__col > p { color: var(--stone); font-size: 0.86rem; line-height: 1.7; margin-bottom: 16px; }

.footer__news { display: flex; border-bottom: 1px solid var(--line); }
.footer__news input { flex: 1; background: none; border: none; color: var(--ivory); padding: 12px 2px; font-family: var(--font-body); font-weight: 300; font-size: 0.9rem; }
.footer__news input:focus { outline: none; }
.footer__news button { font-size: 1.3rem; color: var(--gold); padding: 0 6px; transition: transform 0.3s; }
.footer__news button:hover { transform: translateX(4px); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    color: var(--stone);
    font-size: 0.78rem;
}
.footer__bottom a { color: var(--stone); transition: color 0.3s; }
.footer__bottom a:hover { color: var(--gold); }

/* ---------- Property facts / information ---------- */
/* Shared card language for the property data blocks: facts.php (villa page)
   and the information page. Dark panels on the tinted sections, hairline
   borders, gold accent on hover -- no light card, no inline styles. */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin: 0;
}

.fact {
    padding: 24px 26px;
    background: var(--ink-panel);
    border: 1px solid var(--line);
    transition: border-color 0.5s var(--ease);
}
.fact:hover { border-color: var(--line-gold); }

.fact__label {
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 10px;
}

.fact__value {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ivory);
    overflow-wrap: anywhere;
}

.chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
}

.chip {
    padding: 18px 22px;
    background: var(--ink-panel);
    border: 1px solid var(--line);
    color: var(--ivory);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.5;
    transition: border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.chip:hover { border-color: var(--line-gold); color: var(--gold-soft); }

.prose { display: grid; gap: 18px; max-width: 66ch; }
.prose .lead { max-width: none; margin: 0; }

.notes { margin: 0; padding: 0; max-width: 78ch; }
.notes li {
    display: flex;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ivory-dim);
    line-height: 1.7;
}
.notes li:first-child { padding-top: 0; }
.notes li::before {
    content: '';
    flex: 0 0 auto;
    width: 4px;
    height: 4px;
    margin-top: 0.72em;
    border-radius: 50%;
    background: var(--gold);
}
.notes--fine li { color: var(--stone); font-size: 0.92rem; }
.notes--fine li::before { background: var(--stone); }

.meta-note {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--stone);
}
.meta-note a {
    color: var(--gold);
    border-bottom: 1px solid var(--line-gold);
    transition: color 0.4s var(--ease);
}
.meta-note a:hover { color: var(--gold-soft); }
.meta-note a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Facts / chips / notes icons (scoped) ---------- */
.ico { display: block; width: 20px; height: 20px; }
.ico--card { width: 20px; height: 20px; }
.ico--chip { width: 18px; height: 18px; }
.ico--note { width: 18px; height: 18px; }

.facts .fact--icon .fact__label {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fact__ico {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--gold);
}

.chip--icon {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chip__ico {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--gold);
    transition: color 0.5s var(--ease);
}
.chip--icon:hover .chip__ico { color: var(--gold-soft); }

/* Nearby: name on the first row, distance on a second row (distinct style) */
.chip--dist .chip__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.chip--dist .chip__dist {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: var(--gold);
}


.notes li.note--icon { align-items: flex-start; }
.notes li.note--icon::before { display: none; }
.note__ico {
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--gold);
}
.notes--fine li.note--icon .note__ico { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .nav__links { display: none; }
    .nav__burger { display: block; }
    .nav__book { display: none; }
    .estate { grid-template-columns: 1fr; }
    .estate__media-line { inset: 16px -16px -16px 16px; }
    .rooms { grid-template-columns: repeat(2, 1fr); }
    .experiences { grid-template-columns: repeat(2, 1fr); }
    .gallery { columns: 2; }
    .contact { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: none; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .rooms { grid-template-columns: 1fr; }
    .services { grid-template-columns: 1fr; }
    .experiences { grid-template-columns: 1fr; }
    .gallery { columns: 1; }
    .form__row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .hero__cta .btn { width: 100%; }
}

/* ---------- Booking page ---------- */
.booking { max-width: 1060px; }

.booking__intro { margin-bottom: clamp(20px, 2.6vw, 30px); }
.booking__h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.booking__note {
    margin-top: 8px;
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.booking__search { margin-top: clamp(18px, 2.2vw, 26px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: end;
    padding: clamp(20px, 2.4vw, 28px);
    background: var(--ink-panel);
    border: 1px solid var(--line);
}
.booking__search .btn { height: 46px; padding: 0 30px; }
/* Custom grid (no Bootstrap): three equal columns on desktop, so check-in,
   check-out and guests (col-md-4) fill the same row. The status message
   (.form__summary) and the submit button span the full row (1 / -1):
   no empty columns, no horizontal overflow.
   Tablet/mobile media queries below keep their own column count. */
.booking__search .form__summary { grid-column: 1 / -1; }
.booking__search .col-md-4 { grid-column: span 1; }
.booking__search .col-md-12 { grid-column: 1 / -1; }
.booking__search .btn { grid-column: 1 / -1; }

/* ============================================================
   Public availability calendar (.bkcal) — booking page.
   Scoped block: theme tokens only, no existing rule modified. */
.bkcal {
    margin-top: clamp(16px, 2vw, 22px);
    padding: clamp(16px, 2vw, 22px);
    background: var(--ink-panel);
    border: 1px solid var(--line);
}
.bkcal__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin-bottom: clamp(12px, 1.6vw, 16px);
}
.bkcal__title {
    margin: 0;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.bkcal__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bkcal__navbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ivory);
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
}
.bkcal__navbtn:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.bkcal__navbtn--off {
    color: var(--stone);
    opacity: 0.5;
}
.bkcal__month {
    min-width: 150px;
    text-align: center;
    color: var(--ivory);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
}
.bkcal__today {
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.bkcal__today:hover {
    border-color: var(--gold);
}
.bkcal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.bkcal__wd {
    padding: 6px 0;
    text-align: center;
    color: var(--ivory-dim);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.bkcal__day {
    display: flex;
    align-items: center;
    justify-content: center;
        min-height: 0;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ivory);
    font: inherit;
    font-size: 0.82rem;
}
button.bkcal__day {
    cursor: pointer;
}
.bkcal__day--muted {
    border-color: transparent;
    color: var(--stone);
}
.bkcal__day--free:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.bkcal__day--free.is-sel {
    border-color: var(--gold);
    background: rgba(198, 161, 91, 0.14);
}
.bkcal__day--busy {
    color: var(--ivory-dim);
    background: rgba(244, 239, 230, 0.06);
    text-decoration: line-through;
}
.bkcal__day--blocked {
    color: var(--stone);
    background: rgba(155, 155, 161, 0.10);
}
.bkcal__day--past {
    border-color: transparent;
    color: var(--stone);
    opacity: 0.45;
}
.bkcal__day--today {
    box-shadow: inset 0 0 0 1px var(--gold);
}
.bkcal__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: clamp(14px, 1.8vw, 18px) 0 0;
    padding: 0;
    list-style: none;
    color: var(--ivory-dim);
    font-size: 0.72rem;
}
.bkcal__legend li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bkcal__swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid var(--line);
}
.bkcal__swatch--free {
    background: transparent;
}
.bkcal__swatch--busy {
    background: rgba(244, 239, 230, 0.06);
}
.bkcal__swatch--blocked {
    background: rgba(155, 155, 161, 0.10);
}
.bkcal__hint {
    margin: clamp(10px, 1.4vw, 14px) 0 0;
    color: var(--ivory-dim);
    font-size: 0.72rem;
    line-height: 1.6;
}

/* AJAX month navigation: loading state (public calendar only) */
.bkcal.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
@media (max-width: 390px) {
    .bkcal { padding: 14px; }
    .bkcal__grid { gap: 2px; }
    .bkcal__day { font-size: 0.72rem; }
    .bkcal__wd { font-size: 0.58rem; letter-spacing: 0.06em; }
    .bkcal__month { min-width: 0; }
}

/* ============================================================
   Guests stepper (- value +) — shared by the booking search form
   (booking.php) and the contact form (contatti.php).
   Same token language as `.form input`, 46px tall to align with
   the adjacent date fields and the Check availability button. */
.vlstep {
    display: grid;
    grid-template-columns: 46px minmax(44px, 1fr) 46px;
    align-items: stretch;
    height: 46px;
    border: 1px solid rgba(244, 239, 230, 0.18);
    border-radius: 2px;
    background: rgba(244, 239, 230, 0.04);
    overflow: hidden;
}
.vlstep__btn {
    appearance: none;
    -webkit-appearance: none;
    min-width: 46px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--ivory);
    font: inherit;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}
.vlstep__btn:hover { background: rgba(221, 192, 138, 0.14); color: var(--gold-soft); }
.vlstep__btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -2px; }
.vlstep__btn:disabled { color: var(--stone); background: transparent; cursor: not-allowed; }
.vlstep input[type="number"] {
    width: 100%;
    height: 100%;
    border: 0;
    border-left: 1px solid rgba(244, 239, 230, 0.18);
    border-right: 1px solid rgba(244, 239, 230, 0.18);
    background: transparent;
    color: var(--ivory);
    font: inherit;
    text-align: center;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
.vlstep input[type="number"]::-webkit-outer-spin-button,
.vlstep input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vlstep input[type="number"]:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -2px; }

@media (max-width: 360px) {
    .vlstep { grid-template-columns: 40px minmax(38px, 1fr) 40px; }
    .vlstep__btn { min-width: 40px; }
}

.booking__error { margin-top: 18px; }

.booking__available { margin-top: clamp(26px, 3vw, 40px); }

.booking__avail-banner {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    border: 1px solid var(--line-gold);
    background: rgba(198, 161, 91, 0.06);
    margin-bottom: clamp(20px, 2.6vw, 28px);
}
.booking__avail-mark {
    width: 34px; height: 34px;
    flex: 0 0 auto;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
}
.booking__avail-banner strong { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }
.booking__avail-banner p { color: var(--stone); font-size: 0.85rem; margin-top: 2px; }

.booking__grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(20px, 2.6vw, 28px);
    align-items: start;
}

.booking__summary {
    background: var(--ink-panel);
    border: 1px solid var(--line);
    padding: clamp(20px, 2.4vw, 28px);
}
.booking__summary-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 18px;
}
.booking__summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}
.booking__summary-row span { color: var(--stone); }
.booking__summary-row strong { font-weight: 500; color: var(--ivory); }
.booking__summary-row--total { border-bottom: none; padding-top: 16px; }
.booking__summary-row--total strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 400;
}

.booking__form { padding: clamp(20px, 2.4vw, 28px); background: var(--ink-panel); border: 1px solid var(--line); }
.booking__form-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.25rem;
    margin: 8px 0 18px;
    padding-top: 8px;
}
.booking__form-title:not(:first-child) { margin-top: 26px; border-top: 1px solid var(--line); }

.booking__pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.booking__pay-opt { position: relative; display: block; cursor: pointer; }
.booking__pay-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.booking__pay-opt-body {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    transition: border-color 0.3s, background 0.3s;
}
.booking__pay-opt-body strong { font-weight: 500; font-size: 0.95rem; }
.booking__pay-opt-body small { color: var(--stone); font-size: 0.8rem; line-height: 1.5; }
.booking__pay-opt input:checked + .booking__pay-opt-body {
    border-color: var(--gold);
    background: rgba(198, 161, 91, 0.06);
}
.booking__pay-opt input:focus-visible + .booking__pay-opt-body { outline: 1px solid var(--gold); }

/* Success / unavailable card */
.booking__card { padding: clamp(30px, 5vw, 56px); background: var(--ink-panel); border: 1px solid var(--line); }
.booking__card--center { text-align: center; max-width: 720px; margin-inline: auto; display: grid; justify-items: center; gap: 18px; }
.booking__success-mark {
    width: 62px; height: 62px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-size: 1.7rem;
    font-weight: 600;
}
.booking__success-mark--no { background: #5b2a2a; color: var(--ivory); }
.booking__card-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.booking__card-text { color: var(--ivory-dim); max-width: 56ch; }
.booking__card .booking__summary { background: transparent; padding: 0 24px; width: 100%; text-align: left; }

.booking__pay { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); width: 100%; }
.booking__pay-title { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin-bottom: 18px; }
.booking__iban { display: grid; gap: 12px; text-align: left; max-width: 460px; margin-inline: auto; }
.booking__iban li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.booking__iban span { color: var(--stone); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.booking__iban strong { font-weight: 500; }

@media (max-width: 900px) {
    .booking__search { grid-template-columns: 1fr 1fr; }
    .booking__search .booking__search-guests { grid-column: 1 / -1; }
    .booking__search .btn { grid-column: 1 / -1; }
    .booking__grid { grid-template-columns: 1fr; }
}
/* ---------- Experience detail page ---------- */
.exp-detail-hero {
    position: relative;
    padding: clamp(150px, 20vh, 230px) 0 clamp(26px, 3vh, 40px);
    background: var(--ink);
    overflow: hidden;
}
.exp-detail-hero__media { position: absolute; inset: 0; }
.exp-detail-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.exp-detail-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 12, 0.45), var(--ink)); }
.exp-detail-hero .container { position: relative; }
.exp-detail-hero__title { margin-top: 18px; max-width: 22ch; }
.exp-detail-hero__lead { margin-top: 22px; font-style: italic; }

/* Experience detail: tighten the gap between hero and first section */
.exp-detail-hero + .section { padding-top: clamp(40px, 6vw, 64px); }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.crumbs a { color: var(--stone); transition: color 0.3s; }
.crumbs a:hover { color: var(--gold); }
.crumbs__sep { color: var(--line-gold); }
.crumbs__current { color: var(--ivory-dim); }

/* Practical information: CTA + back link */
.exp-detail__actions { display: grid; justify-items: start; gap: 16px; margin-top: 30px; }
.exp-detail__back { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); transition: color 0.3s; }
.exp-detail__back:hover { color: var(--gold); }

/* Other experiences: linked cards (same card language as the listing) */
.exp-others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exp--link { display: block; color: inherit; }
.exp__cue { display: inline-block; margin-top: 16px; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); transition: color 0.3s; }
.exp--link:hover .exp__cue { color: var(--gold-soft); }

@media (max-width: 1000px) {
    .exp-others { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .exp-others { grid-template-columns: 1fr; }
}

/* ---------- Room detail page ---------- */
.room-detail-hero {
    position: relative;
    padding: clamp(150px, 20vh, 230px) 0 clamp(26px, 3vh, 40px);
    background: var(--ink);
    overflow: hidden;
}
.room-detail-hero__media { position: absolute; inset: 0; }
.room-detail-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.room-detail-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 12, 0.45), var(--ink)); }
.room-detail-hero .container { position: relative; }
.room-detail-hero__title { margin-top: 18px; max-width: 22ch; }
.room-detail-hero__view { margin-top: 14px; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.room-detail-hero + .section { padding-top: clamp(40px, 6vw, 64px); }

/* Room detail: CTA + back link + prev/next */
.room-detail__actions { display: grid; justify-items: start; gap: 16px; margin-top: 30px; }
.room-detail__back { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); transition: color 0.3s; }
.room-detail__back:hover { color: var(--gold); }
.room-detail__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; }
.room-detail__nav-link { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); transition: color 0.3s; }
.room-detail__nav-link:hover { color: var(--gold); }

/* Room gallery: the photos of room_gallery, fluid at every width */
.room-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.room-gallery__item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-soft); }
.room-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.room-gallery__item:hover img { transform: scale(1.05); }

/* Other rooms: linked cards (same card language as the listing) */
.room-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.room-others__item { display: block; color: inherit; }
.room-others__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-soft); }
.room-others__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.room-others__item:hover .room-others__media img { transform: scale(1.05); }
.room-others__name { margin-top: 12px; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; }
.room-others__view { margin-top: 4px; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.room-others__item:hover .room-others__name { color: var(--gold); }

/* Room card in the listing: the whole card is now a link (no visual change) */
.room__link { display: block; color: inherit; }

@media (max-width: 560px) {
    .booking__search { grid-template-columns: 1fr; }
    .booking__pay-options { grid-template-columns: 1fr; }
}

/* ============================================================
   Booking page: vertical rhythm between the calendar panel, the
   search form, the AJAX result fragment and the reserve form.
   Booking-scoped only: no shared class (.section, .btn, .chip,
   .fact, .notes) is touched, tokens are the site ones. */

/* Month grid: rows size to the square day cells (aspect-ratio 1/1),
   so months with 5 or 6 weeks share the same rhythm and no cell is
   stretched or squashed. The date cells define the row height; the
   weekday header row (.bkcal__wd) stays low via its own padding. */
.bkcal__grid { grid-auto-rows: auto; }
.bkcal__wd { padding: clamp(4px, 0.6vw, 6px) 0; }

/* Intro: title / note spacing inside the booking section only */
.booking__intro .booking__h2 { margin: 0 0 clamp(10px, 1.4vw, 14px); }
.booking__intro .booking__note + .booking__note { margin-top: 4px; }

/* AJAX result fragment: had no rules at all, so the block sat
   flush under the form with no panel on the dark theme. */
.booking__result-slot { display: block; }
.booking__result-slot:empty { display: none; }

.booking__result {
    margin-top: clamp(18px, 2.2vw, 26px);
    padding: clamp(18px, 2.2vw, 24px) clamp(20px, 2.4vw, 26px);
    background: var(--ink-panel);
    border: 1px solid var(--line);
}
.booking__result--available { border-color: var(--line-gold); }
.booking__result-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--ivory);
}
.booking__result-text {
    margin-top: 6px;
    color: var(--ivory-dim);
    font-size: 0.9rem;
}
.booking__result-list {
    margin: clamp(12px, 1.6vw, 16px) 0 0;
    padding: 0;
    list-style: none;
}
.booking__result-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ivory);
    font-size: 0.9rem;
}
.booking__result-list li:last-child { border-bottom: none; padding-bottom: 0; }

/* Honeypot field: no light background on the dark booking page */
.booking-section .form__honey { background: transparent; }
