/* ==========================================================================
   Casute Costinesti — Coastal Editorial design system
   Single stylesheet: tokens, layout, components, utilities, responsive.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    --sea: #031E2B;
    --sea-soft: #06384A;
    --ink: #0B1F26;
    --ink-soft: #5A7076;
    --sand: #F7F3EA;
    --sand-deep: #ECE3D2;
    --paper: #FCFAF5;
    --white: #FFFFFF;
    --wood: #D8C3A5;
    --terracotta: #0077B6;
    --terracotta-dark: #005F8F;
    --sea-glass: #90E0EF;
    --turquoise: #00B4D8;
    --lagoon: #90E0EF;
    --sunset: #F9A03F;

    --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container: 1240px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section-y: clamp(4rem, 9vw, 8rem);

    --radius: 6px;
    --radius-sm: 4px;
    --radius-pill: 999px;

    --shadow-soft: 0 24px 60px -32px rgba(8, 30, 35, 0.35);
    --shadow-card: 0 40px 90px -50px rgba(8, 30, 35, 0.55);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --header-h: 84px;
}

/* ── Reset & base ───────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
picture,
svg { display: block; max-width: 100%; }

img { height: auto; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover { color: var(--terracotta); }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--sea);
    text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7vw, 6.2rem); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { text-wrap: pretty; }

::selection { background: var(--terracotta); color: var(--white); }

:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 3px;
}

/* ── Layout & utilities ─────────────────────────────────────────────────── */
.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.container--narrow { max-width: 820px; }

.section {
    padding-block: var(--section-y);
}

.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--sea { background: var(--sea); color: rgba(255, 255, 255, 0.82); }
.section--sea h1,
.section--sea h2,
.section--sea h3 { color: var(--white); }

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--terracotta);
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.eyebrow--light { color: var(--sand); }

.section-head {
    max-width: 680px;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow { justify-content: center; }

.section-head__text {
    margin-top: 1.1rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.section--sea .section-head__text { color: rgba(255, 255, 255, 0.72); }

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.7rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
    transition: background 0.25s var(--ease), color 0.25s var(--ease),
                border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn .icon { width: 1.05rem; height: 1.05rem; }

.btn--accent {
    background: var(--terracotta);
    color: var(--white);
}
.btn--accent:hover { background: var(--terracotta-dark); color: var(--white); }

.btn--sea {
    background: var(--sea);
    color: var(--white);
}
.btn--sea:hover { background: var(--sea-soft); color: var(--white); }

.btn--light {
    background: var(--paper);
    color: var(--sea);
}
.btn--light:hover { background: var(--white); color: var(--terracotta); }

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, 0.14); }

.btn--outline {
    border-color: rgba(11, 43, 51, 0.25);
    color: var(--sea);
}
.btn--outline:hover { border-color: var(--sea); color: var(--sea); background: rgba(11, 43, 51, 0.04); }

.btn--block { width: 100%; }

.btn--sm {
    padding: 0.6rem 1.1rem;
    font-size: 0.8rem;
}

/* ── Header / navigation ────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    color: var(--sea);
    background: rgba(251, 248, 242, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(11, 43, 51, 0.08);
    transition: background 0.35s var(--ease), color 0.35s var(--ease),
                box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

body.home .site-header:not(.is-scrolled) {
    color: var(--white);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.site-header.is-scrolled {
    background: rgba(251, 248, 242, 0.97);
    color: var(--sea);
    border-color: rgba(11, 43, 51, 0.08);
    box-shadow: 0 12px 40px -24px rgba(8, 30, 35, 0.5);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: inherit;
}

.brand:hover { color: inherit; opacity: 0.85; }

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--white);
}

.brand__mark .icon { width: 18px; height: 18px; }

.brand__text small,
.brand__tagline {
    display: block;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.65;
}

.brand__logo-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.brand__logo { max-height: 44px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.9rem);
}

.nav-link {
    position: relative;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.82;
    padding: 0.4rem 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active { opacity: 1; color: inherit; }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

/* Contactul si butonul CTA stau pe coloana, butonul sub program. */
.nav-header-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.nav-header-stack .nav-cta {
    white-space: nowrap;
}

/* Spatiu invizibil cat vechiul buton „Rezervă”, ca telefonul si programul
   sa ramana exact in pozitia lor dinainte, iar butonul sa stea dedesubt. */
.nav-cta--ghost {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1120px) {
    .nav-cta--ghost { display: none; }
}

@media (min-width: 1121px) {
    body.header-cta-stacked { --header-h: 106px; }
    body.header-cta-stacked .nav-header-stack { padding-top: 21px; }
}

.nav-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.nav-hours {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: currentColor;
    opacity: 0.55;
    white-space: nowrap;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: inherit;
    opacity: 0.85;
}

.nav-phone:hover { color: inherit; opacity: 1; }

.nav-cta {
    padding: 0.72rem 1.35rem;
    font-size: 0.78rem;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
}

.nav-toggle .icon { width: 20px; height: 20px; }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem var(--gutter) 3rem;
    background: var(--sea);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__close {
    position: absolute;
    top: 1.4rem;
    right: var(--gutter);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
}

.mobile-menu__links {
    display: grid;
    gap: 0.4rem;
}

.mobile-menu__links a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.15;
    color: var(--white);
}

.mobile-menu__links a:hover { color: var(--sea-glass); }

.mobile-menu__meta {
    margin-top: 3rem;
    display: grid;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-menu__meta a { color: var(--white); }

body.menu-open { overflow: hidden; }

/* ── Flash messages ─────────────────────────────────────────────────────── */
.flash {
    position: relative;
    z-index: 900;
    padding-top: var(--header-h);
    background: var(--sand);
}

.flash--success { background: #DCEFE3; }
.flash--error { background: #F6DCD5; }

.flash__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-block: 0.9rem;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
}

.flash__close {
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    color: inherit;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: min(94svh, 960px);
    background:
        radial-gradient(circle at 82% 16%, rgba(45, 212, 191, 0.3), transparent 42%),
        linear-gradient(160deg, #042A35 0%, #063B4A 45%, #0E7490 100%);
    display: flex;
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: clamp(7rem, 13vw, 10rem);
    color: var(--white);
    isolation: isolate;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: min(60vw, 760px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.28), rgba(240, 97, 60, 0.08) 45%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

.hero__palms,
.cta-band__palms {
    position: absolute;
    right: -1rem;
    bottom: 0;
    width: clamp(190px, 25vw, 340px);
    height: auto;
    color: rgba(255, 255, 255, 0.14);
    pointer-events: none;
    z-index: 0;
}

.hero__waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
    line-height: 0;
    pointer-events: none;
}

.hero__waves svg {
    display: block;
    width: 100%;
    height: clamp(56px, 9vw, 120px);
}

.hero__waves path { fill: var(--paper); }

.palm-silhouette { display: block; }

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 18s var(--ease) both;
}

@keyframes heroZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(3, 24, 30, 0.62) 0%, rgba(3, 24, 30, 0.04) 40%, rgba(3, 24, 30, 0.78) 100%),
        linear-gradient(90deg, rgba(3, 24, 30, 0.7) 0%, rgba(3, 24, 30, 0.08) 72%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero__title {
    color: var(--white);
    font-size: clamp(3rem, 8.4vw, 7.2rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-wrap: balance;
    text-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.hero__title em {
    font-style: italic;
    color: var(--sand);
}

.hero__subtitle {
    max-width: 560px;
    margin-top: 1.5rem;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.2rem;
}

.hero__scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    writing-mode: vertical-rl;
}

.hero__scroll::after {
    content: "";
    width: 1px;
    height: 52px;
    background: currentColor;
    opacity: 0.6;
}

.home-booking {
    position: relative;
    z-index: 20;
    margin-top: calc(clamp(6.5rem, 12vw, 9rem) * -0.55);
}

/* ── Booking bar ────────────────────────────────────────────────────────── */
.booking-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: 1rem;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.booking-bar__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
}

.booking-bar__field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.35rem 1.1rem;
    border-right: 1px solid rgba(11, 43, 51, 0.1);
}

.booking-bar__field:last-child { border-right: 0; }

.booking-bar__field label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.booking-bar__field input,
.booking-bar__field select {
    width: 100%;
    padding: 0.2rem 0;
    border: 0;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sea);
    appearance: none;
    cursor: pointer;
}

.booking-bar__field input:focus,
.booking-bar__field select:focus { outline: none; }

.booking-bar__submit {
    min-height: 64px;
    padding-inline: 1.7rem;
    border-radius: calc(var(--radius) - 4px);
    text-align: left;
}

.booking-bar__submit span { max-width: 110px; }

/* ── Intro / editorial ──────────────────────────────────────────────────── */
.intro {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 6vw, 5.5rem);
    align-items: center;
}

.intro__media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-soft);
}

.intro__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro__media::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    border-radius: inherit;
    pointer-events: none;
}

.intro__badge {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.9rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px -24px rgba(3, 24, 30, 0.6);
    backdrop-filter: blur(10px);
}

.intro__badge strong {
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1;
    color: var(--sea);
}

.intro__badge span {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.intro__body h2 { margin-bottom: 1.4rem; }

.intro__text {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.intro__text p + p { margin-top: 1rem; }

.intro__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(11, 43, 51, 0.12);
}

.stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1;
    color: var(--sea);
}

.stat__label {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ── Rooms ──────────────────────────────────────────────────────────────── */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.rooms-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.room-card {
    background: transparent;
}

.room-card__link {
    display: block;
    color: inherit;
}

.room-card__link:hover { color: inherit; }

.room-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sand-deep);
}

.room-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.room-card:hover .room-card__media img { transform: scale(1.05); }

.room-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(6, 25, 30, 0.66) 100%);
    pointer-events: none;
}

.room-card__price {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(251, 248, 242, 0.94);
    color: var(--sea);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.room-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(11, 43, 51, 0.3);
}

.room-card__placeholder .icon { width: 48px; height: 48px; }

.room-card__body {
    padding: 1.3rem 0.2rem 0;
}

.room-card__title {
    font-size: clamp(1.4rem, 2vw, 1.75rem);
}

.room-card__desc {
    margin-top: 0.55rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.room-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.room-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.room-card__meta .icon { width: 15px; height: 15px; color: var(--terracotta); }

.room-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
}

.room-card__cta .icon { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }

.room-card:hover .room-card__cta .icon { transform: translateX(5px); }

/* ── Experience strip ───────────────────────────────────────────────────── */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 0.9rem;
    background:
        radial-gradient(circle at 90% 0%, rgba(103, 232, 249, 0.18), transparent 45%),
        linear-gradient(135deg, var(--sea) 0%, var(--sea-soft) 55%, #0E7490 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    box-shadow: var(--shadow-card);
}

.experience-card {
    padding: clamp(1.4rem, 2.6vw, 2.2rem);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
}

.experience-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.3rem;
    border-radius: 16px;
    background: rgba(45, 212, 191, 0.16);
    color: var(--lagoon);
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.2);
}

.experience-card__icon .icon { width: 22px; height: 22px; }

.experience-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--white); }

.experience-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.68);
}

/* ── Photo mosaic / gallery ─────────────────────────────────────────────── */
.mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(120px, 15vw, 210px);
    gap: 0.9rem;
}

.mosaic__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--sand-deep);
    cursor: zoom-in;
}

.mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.mosaic__item:hover img { transform: scale(1.06); }

.mosaic__item--wide { grid-column: span 7; grid-row: span 2; }
.mosaic__item--tall { grid-column: span 5; grid-row: span 2; }
.mosaic__item--small { grid-column: span 3; }

.gallery-page-head {
    padding-top: calc(var(--header-h) + clamp(2.2rem, 5vw, 4rem));
    padding-bottom: clamp(1.2rem, 3vw, 2rem);
    background: var(--sand);
}

.gallery-page-head .eyebrow { margin-bottom: 0.65rem; }

.gallery-page-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gallery-page-head h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}

.gallery-page-head p {
    max-width: 54ch;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.65;
}

.section--gallery { padding-top: clamp(1.4rem, 3vw, 2.4rem); }

.gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-count {
    color: var(--ink-soft);
    font-size: 0.78rem;
    white-space: nowrap;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.55rem 1.15rem;
    border: 1px solid rgba(11, 43, 51, 0.18);
    border-radius: var(--radius-pill);
    background: transparent;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    transition: all 0.2s var(--ease);
}

.filter-btn:hover { border-color: var(--sea); color: var(--sea); }

.filter-btn.is-active {
    background: var(--sea);
    border-color: var(--sea);
    color: var(--white);
}

.masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
}

.masonry__item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--sand-deep);
    box-shadow: 0 10px 30px -28px rgba(3, 30, 43, 0.55);
    transition: box-shadow 0.3s var(--ease);
}

.masonry__item:hover {
    box-shadow: 0 22px 46px -32px rgba(3, 30, 43, 0.6);
}

.masonry__zoom {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sea);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    pointer-events: none;
}

.masonry__zoom .icon { width: 16px; height: 16px; }

.masonry__item:hover .masonry__zoom {
    opacity: 1;
    transform: scale(1);
}

.masonry__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.masonry__item:hover img { transform: scale(1.04); }

.masonry__caption {
    position: absolute;
    inset: auto 0 0;
    padding: 1.6rem 1rem 0.9rem;
    background: linear-gradient(transparent, rgba(6, 25, 30, 0.7));
    color: var(--white);
    font-size: 0.8rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background: rgba(6, 25, 30, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.lightbox__img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    margin-inline: auto;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    text-align: center;
}

.lightbox__btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transition: background 0.2s var(--ease);
}

.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox__btn .icon { width: 22px; height: 22px; }

.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ── Page hero (inner pages) ────────────────────────────────────────────── */
.page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(340px, 54vh, 540px);
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    background: var(--sea);
    overflow: hidden;
    isolation: isolate;
}

.page-hero--image { background: var(--sea); }

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 25, 30, 0.5) 0%, rgba(6, 25, 30, 0.18) 40%, rgba(6, 25, 30, 0.7) 100%);
}

.page-hero__content h1 { color: var(--white); }

.page-hero__subtitle {
    max-width: 620px;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
}

/* ── Rates page (tarife) ────────────────────────────────────────────────── */
.rates-page-head {
    padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
    padding-bottom: clamp(1.5rem, 4vw, 2.6rem);
    background: var(--paper);
}

.rates-page-head h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    letter-spacing: -0.02em;
}

.rates-page-head__text {
    max-width: 640px;
    margin-top: 0.9rem;
    color: var(--ink-soft);
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

.rates-section {
    padding-bottom: var(--section-y);
    background: var(--paper);
}

.rates-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    -webkit-overflow-scrolling: touch;
}

.rates-table {
    width: 100%;
    min-width: 660px;
    border-collapse: collapse;
    text-align: left;
}

.rates-table th,
.rates-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(11, 43, 51, 0.1);
}

.rates-table thead th {
    background: var(--sea);
    color: var(--white);
    border-bottom: 0;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rates-table thead th + th { border-left: 1px solid rgba(255, 255, 255, 0.12); }

.rates-table thead th.rates-table__room {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--white);
}

.rates-table tbody th {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sea);
    white-space: nowrap;
}

.rates-table tbody tr:nth-child(even) { background: rgba(236, 227, 210, 0.32); }

.rates-table tbody tr:hover { background: rgba(144, 224, 239, 0.18); }

.rates-table__price strong {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--terracotta);
    white-space: nowrap;
}

.rates-table__unit {
    margin-left: 0.32rem;
    font-size: 0.72rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.rates-table__na {
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--wood);
}

.rates-table tfoot th,
.rates-table tfoot td {
    background: var(--sand);
    border-bottom: 0;
}

.rates-table__foot-label {
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
}

.rates-table__cta .btn { white-space: nowrap; }

.rates-table__cta .btn .icon { width: 16px; height: 16px; }

/* Perioada de tarifare care s-a incheiat, dar ramane afisata (bifa dezactivata). */
.rates-table__row.is-past { opacity: 0.72; }

.rates-table__row.is-past .rates-table__price strong { color: var(--ink-soft); }

.rates-table__tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(11, 43, 51, 0.08);
    color: var(--ink-soft);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.rates-note {
    margin-top: 1.6rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* ── Room detail ────────────────────────────────────────────────────────── */
.room-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    height: clamp(360px, 52vw, 620px);
}

.room-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: zoom-in;
    background: var(--sand-deep);
}

.room-gallery__item:first-child {
    grid-row: span 2;
    border-radius: var(--radius);
}

.room-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.room-gallery__item:hover img { transform: scale(1.04); }

.room-gallery__more {
    position: absolute;
    inset: auto 1rem 1rem auto;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(6, 25, 30, 0.72);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    backdrop-filter: blur(6px);
}

.room-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.room-content h2 { margin-bottom: 1rem; }

.room-content h3 {
    margin: 2.2rem 0 1rem;
    font-size: 1.45rem;
}

.room-description {
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.room-description p + p { margin-top: 1rem; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.detail {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    background: var(--sand);
    border-radius: var(--radius-sm);
}

.detail .icon {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    color: var(--terracotta);
}

.detail__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.detail__value { font-weight: 600; font-size: 0.92rem; }

.amenity-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.amenity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.amenity-tag {
    padding: 0.42rem 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--sand);
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.price-table th,
.price-table td {
    padding: 0.7rem 0.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(11, 43, 51, 0.1);
}

.price-table th {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.price-table td:last-child,
.price-table th:last-child { text-align: right; }

.price-table td:last-child { color: var(--terracotta); font-weight: 700; }

.booking-panel {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    padding: clamp(1.3rem, 2.5vw, 1.9rem);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.booking-panel__price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.booking-panel__price strong {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--sea);
}

.booking-panel__price span { color: var(--ink-soft); font-size: 0.85rem; }

.booking-panel__note {
    margin-top: 0.8rem;
    font-size: 0.72rem;
    color: var(--ink-soft);
    text-align: center;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(11, 43, 51, 0.16);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-size: 0.94rem;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--sea);
    background: var(--white);
    outline: none;
}

.form-field textarea { resize: vertical; min-height: 110px; }

/* Live price estimate inside the booking form */
.booking-estimate {
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(0, 119, 182, 0.18);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(144, 224, 239, 0.16), rgba(247, 243, 234, 0.7));
}

.booking-estimate__main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.booking-estimate__label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.booking-estimate__total {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1;
    color: var(--sea);
}

.booking-estimate__meta {
    margin-top: 0.55rem;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.booking-estimate__warnings { margin-top: 0.55rem; }

.booking-estimate__warning {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #9A4A2E;
}

.booking-estimate__suggestion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 119, 182, 0.16);
    font-size: 0.86rem;
    color: var(--sea);
}

.booking-estimate__suggestion[hidden] { display: none; }

.btn--small {
    padding: 0.5rem 0.95rem;
    font-size: 0.72rem;
}

.form-field--error input,
.form-field--error select,
.form-field--error textarea { border-color: #C0573D; background: #FDF3F0; }

.form-error {
    margin-top: 0.3rem;
    font-size: 0.76rem;
    color: #A8462D;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Booking page ───────────────────────────────────────────────────────── */
.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.booking-card {
    padding: clamp(1.4rem, 3vw, 2.4rem);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.booking-card h2 { margin-bottom: 0.4rem; }

.booking-card__lead {
    margin-bottom: 1.6rem;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.booking-summary {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    padding: clamp(1.4rem, 2.5vw, 1.9rem);
    background: var(--sea);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.82);
}

.booking-summary h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
}

.summary-row span:first-child { color: rgba(255, 255, 255, 0.62); }

.summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.62);
}

.summary-total strong {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 0;
}

.summary-status {
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    line-height: 1.5;
}

.summary-status.is-ok { background: rgba(143, 184, 170, 0.2); color: #D9F0E7; }
.summary-status.is-bad { background: rgba(201, 111, 74, 0.24); color: #FFE1D5; }

.error-box {
    margin-bottom: 1.4rem;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--terracotta);
    border-radius: var(--radius-sm);
    background: #FDF0EC;
    color: #8E3F27;
    font-size: 0.86rem;
}

.error-box ul { display: grid; gap: 0.3rem; }

.error-box li::before {
    content: "— ";
    opacity: 0.6;
}

/* ── Contact / map / CTA ────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.contact-card {
    padding: 1.4rem;
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.contact-card .icon { width: 20px; height: 20px; color: var(--terracotta); margin-bottom: 0.8rem; }

.contact-card h4 { margin-bottom: 0.25rem; font-size: 0.95rem; }

.contact-card p,
.contact-card a { font-size: 0.88rem; color: var(--ink-soft); }

.map-frame {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    line-height: 0;
}

.map-frame iframe {
    width: 100%;
    height: clamp(280px, 40vw, 440px);
    border: 0;
    filter: saturate(0.85) contrast(1.02);
}

.cta-band {
    position: relative;
    padding-block: clamp(3.5rem, 7vw, 6rem);
    background:
        radial-gradient(circle at 12% 0%, rgba(103, 232, 249, 0.22), transparent 45%),
        linear-gradient(120deg, var(--sea) 0%, #0E7490 55%, var(--terracotta) 135%);
    color: var(--white);
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    right: -10%;
    top: -40%;
    width: 55%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 126, 0.22), transparent 65%);
    pointer-events: none;
}

.cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-band__palms {
    right: 1rem;
    bottom: -3rem;
    color: rgba(255, 255, 255, 0.12);
}

.cta-band h2 { color: var(--white); max-width: 640px; }

.cta-band p { margin-top: 0.8rem; color: rgba(255, 255, 255, 0.72); }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ── Prose (dynamic pages) ──────────────────────────────────────────────── */
.prose {
    max-width: 780px;
    color: var(--ink-soft);
    font-size: 1.03rem;
}

.prose > * + * { margin-top: 1.15rem; }

.prose h2 {
    margin-top: 2.4rem;
    color: var(--sea);
}

.prose h3 {
    margin-top: 1.8rem;
    color: var(--sea);
}

.prose ul { list-style: disc; padding-left: 1.3rem; }

.prose blockquote {
    margin: 2rem 0;
    padding-left: 1.4rem;
    border-left: 2px solid var(--terracotta);
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--sea);
}

.prose img { border-radius: var(--radius-sm); }

/* ── Story page (pagini dinamice, ex. Istoric) ──────────────────────────── */
.story-page {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
    padding-bottom: clamp(3.5rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 180, 216, 0.18), transparent 55%),
        radial-gradient(circle at 88% 15%, rgba(249, 160, 63, 0.12), transparent 55%),
        linear-gradient(180deg, var(--sea) 0%, #05212D 100%);
    overflow: hidden;
    isolation: isolate;
}

.story-page::before,
.story-page::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.story-page::before {
    top: clamp(-16rem, -18vw, -9rem);
    right: clamp(-14rem, -16vw, -7rem);
    width: clamp(22rem, 40vw, 38rem);
    aspect-ratio: 1;
}

.story-page::after {
    bottom: clamp(-13rem, -15vw, -7rem);
    left: clamp(-11rem, -13vw, -6rem);
    width: clamp(17rem, 30vw, 28rem);
    aspect-ratio: 1;
    border-color: rgba(144, 224, 239, 0.14);
}

.story-page > .container {
    position: relative;
    z-index: 1;
    max-width: 940px;
}

.story-card {
    position: relative;
    padding: clamp(2.4rem, 5.5vw, 4.6rem) clamp(1.4rem, 5vw, 4.2rem);
    background:
        radial-gradient(circle at 50% 0%, rgba(144, 224, 239, 0.16), transparent 60%),
        var(--paper);
    border-radius: var(--radius);
    box-shadow: 0 60px 140px -70px rgba(0, 0, 0, 0.85);
    text-align: center;
}

.story-card::before {
    content: "";
    position: absolute;
    inset: clamp(0.65rem, 1.4vw, 1rem);
    border: 1px solid rgba(11, 43, 51, 0.16);
    border-radius: calc(var(--radius) - 2px);
    pointer-events: none;
}

.story-card__medallion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0, 119, 182, 0.25);
    border-radius: 50%;
    background: rgba(0, 119, 182, 0.08);
    color: var(--terracotta);
}

.story-card__medallion .icon { width: 24px; height: 24px; }

.story-card__title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--sea);
}

.story-card__rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: min(260px, 62%);
    margin: 1.25rem auto clamp(1.6rem, 3vw, 2.4rem);
    color: var(--wood);
}

.story-card__rule::before,
.story-card__rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.75;
}

.story-card__rule i {
    width: 7px;
    height: 7px;
    background: currentColor;
    transform: rotate(45deg);
}

.story-card__body.prose {
    max-width: 64ch;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    line-height: 1.85;
}

.story-card__body.prose > * + * { margin-top: 1.2rem; }

.story-card__body h2 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--sea);
}

.story-card__body > p:first-of-type {
    color: var(--ink);
    font-size: clamp(1.08rem, 1.5vw, 1.2rem);
}

.story-card__body blockquote {
    margin-inline: auto;
    padding-left: 0;
    border-left: 0;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

/* ── Empty states ───────────────────────────────────────────────────────── */
.empty-state {
    padding: clamp(3rem, 8vw, 6rem) 1rem;
    text-align: center;
    color: var(--ink-soft);
}

.empty-state .icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 1rem;
    color: var(--wood);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(180deg, var(--sea) 0%, #031C24 100%);
    color: rgba(255, 255, 255, 0.68);
    padding-top: clamp(3.5rem, 7vw, 6rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Numar variabil de coloane (Admin > Setari > General > Footer). */
.footer-grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.footer-grid--2 { grid-template-columns: 1.4fr 1fr; }
.footer-grid--1 { grid-template-columns: 1fr; }
/* Widget-uri personalizate: oricate coloane, egale. */
.footer-grid--custom { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--white);
    white-space: nowrap;
}

.footer-logo:hover { color: var(--sea-glass); }

.footer-tagline {
    margin-top: 0.75rem;
    max-width: 300px;
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.2s var(--ease);
}

.footer-social a:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

.footer-social .icon { width: 17px; height: 17px; }

.footer-heading {
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.footer-links {
    display: grid;
    gap: 0.6rem;
    font-size: 0.86rem;
}

.footer-links a { color: rgba(255, 255, 255, 0.8); }
.footer-links a:hover { color: var(--white); }

.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.footer-links .icon {
    width: 15px;
    height: 15px;
    margin-top: 0.25rem;
    color: var(--wood);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.62); }

/* ── Reveal animation ───────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero__media img { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
    .nav-contact { display: none; }
    .booking-bar__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .booking-bar__field:nth-child(3) { border-right: 0; }
    .booking-bar__field:nth-child(n+4) { border-top: 1px solid rgba(11, 43, 51, 0.1); }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .rates-table th,
    .rates-table td { padding: 0.9rem 1rem; }
}

@media (max-width: 960px) {
    .nav-links,
    .nav-actions .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .experience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intro { grid-template-columns: 1fr; }
    .intro__media { aspect-ratio: 16 / 11; }
    .room-layout { grid-template-columns: 1fr; }
    .booking-panel { position: static; }
    .booking-layout { grid-template-columns: 1fr; }
    .booking-summary { position: static; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    :root { --header-h: 72px; }
    .hero__palms,
    .cta-band__palms { display: none; }
    .hero { min-height: 86svh; padding-bottom: 4.5rem; }
    .hero__scroll { display: none; }
    .home-booking { margin-top: -3.2rem; }
    .booking-bar { grid-template-columns: 1fr; }
    .booking-bar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .booking-bar__field { padding: 0.4rem 0.7rem; }
    .booking-bar__field:nth-child(2n) { border-right: 0; }
    .booking-bar__field:nth-child(n+3) { border-top: 1px solid rgba(11, 43, 51, 0.1); }
    .booking-bar__field:nth-child(3) { border-right: 1px solid rgba(11, 43, 51, 0.1); }
    .booking-bar__submit { min-height: 54px; width: 100%; justify-content: center; text-align: center; }
    .booking-bar__submit span { max-width: none; }
    .rooms-grid,
    .rooms-grid--two { grid-template-columns: 1fr; }
    .experience-grid { grid-template-columns: 1fr; }
    .intro__stats { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
    .stat__label { font-size: 0.62rem; }
    .mosaic { grid-auto-rows: 150px; }
    .mosaic__item--wide,
    .mosaic__item--tall { grid-column: span 12; grid-row: span 2; }
    .mosaic__item--small { grid-column: span 6; }
    .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .room-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; height: auto; }
    .room-gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; }
    .story-page { padding-top: calc(var(--header-h) + 1.8rem); }
    .story-card { padding: 2.2rem 1.25rem 2.6rem; }
    .story-card::before { inset: 0.6rem; }
    .story-card__medallion { width: 50px; height: 50px; margin-bottom: 1rem; }
    .rates-page-head { padding-top: calc(var(--header-h) + 2rem); }
    /* Tabelul incape pe tot ecranul mobil, fara scroll orizontal. */
    .rates-table { min-width: 0; table-layout: fixed; }
    .rates-table th,
    .rates-table td {
        padding: 0.45rem 0.25rem;
        font-size: 0.68rem;
        line-height: 1.25;
        word-break: break-word;
    }
    .rates-table thead th {
        font-size: 0.64rem;
        letter-spacing: 0.04em;
        white-space: normal;
    }
    .rates-table thead th.rates-table__room {
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: normal;
    }
    .rates-table tbody th {
        font-size: 0.64rem;
        line-height: 1.25;
        white-space: normal;
    }
    .rates-table__period { width: 36%; font-size: 0.66rem; }
    .rates-table__price strong { font-size: 0.88rem; }
    .rates-table__unit {
        display: block;
        margin-left: 0;
        font-size: 0.58rem;
    }
    .rates-table__tag {
        padding: 0.1rem 0.3rem;
        font-size: 0.55rem;
    }
    .detail-grid,
    .amenity-groups,
    .form-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-bottom { flex-direction: column; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .lightbox { padding: 4rem 0.5rem; }
    .lightbox__prev { left: 0.5rem; }
    .lightbox__next { right: 0.5rem; }
}

@media (max-width: 520px) {
    .masonry { grid-template-columns: 1fr; }
    .intro__stats { grid-template-columns: 1fr 1fr; }
    .room-card__media { aspect-ratio: 1 / 1; }
    .page-hero { min-height: 300px; }
    .hero__actions .btn { width: 100%; }
}

@media (max-width: 720px) {
    .filter-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }
    .filter-btn { flex: 0 0 auto; }
    .gallery-page-head__row { align-items: flex-start; }
    .gallery-toolbar { margin-bottom: 1.4rem; }
}
