/* ==========================================================================
   Vila Valentina — stylesheet
   Single stylesheet, no build step. Sections:
     1. Design tokens
     2. Reset & base
     3. Layout primitives
     4. Components (buttons, cards, badges)
     5. Header & navigation
     6. Sections
     7. Gallery & lightbox
     8. Footer & mobile action bar
     9. Motion & print
   Palette is taken from the property's own photographs: grapevine green,
   cream render, terracotta roof tile, sunflower yellow, Black Sea teal.
   ========================================================================== */

/* ==========================================================================
   0. Fonts — self-hosted, no CDN
   --------------------------------------------------------------------------
   Fraunces (headings) and Inter (text), both SIL Open Font License.
   Subset to only the characters this site uses, Romanian diacritics
   included, which takes the six files together to about 62 KB.
   To re-cut them after adding new copy, see README.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/fraunces-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
}

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  /* Colour — surfaces */
  --sand-50:  #fdfaf5;
  --sand-100: #f7f1e7;
  --sand-200: #ece2d3;
  --sand-300: #ddcfba;
  --white:    #ffffff;

  /* Colour — ink */
  --ink-900: #122e39;
  --ink-700: #224d5b;
  --ink-500: #4d6a75;
  --ink-400: #6b848d;
  --ink-300: #93a6ac;

  /* Colour — sea (primary) */
  --sea-700: #17505f;
  --sea-600: #22697b;
  --sea-500: #2f8195;
  --sea-100: #dceef2;

  /* Colour — coral (action) */
  --coral-700: #9d4229;
  --coral-600: #bc5335;
  --coral-500: #d16646;
  --coral-100: #f9e5dd;

  /* Colour — vine + gold (support) */
  --vine-600: #587a4c;
  --vine-100: #e7efe2;
  --gold-500: #d3a13c;
  --gold-100: #f8eed6;

  /* Semantic */
  --bg:            var(--sand-50);
  --bg-alt:        var(--sand-100);
  --surface:       var(--white);
  --text:          var(--ink-900);
  --text-muted:    var(--ink-500);
  --border:        var(--sand-200);
  --border-strong: var(--sand-300);
  --brand:         var(--sea-600);
  --brand-dark:    var(--sea-700);
  --action:        var(--coral-600);
  --action-dark:   var(--coral-700);

  /* Typography */
  --font-display: 'Fraunces', "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-xl:   clamp(1.3125rem, 1.15rem + 0.75vw, 1.625rem);
  --fs-2xl:  clamp(1.625rem, 1.35rem + 1.3vw, 2.25rem);
  --fs-3xl:  clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --fs-4xl:  clamp(2.375rem, 1.75rem + 2.9vw, 3.75rem);

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-base:  1.65;

  --ls-wide: 0.08em;
  --ls-caps: 0.14em;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  2.5rem;
  --sp-8:  3rem;
  --sp-9:  4rem;
  --sp-10: 5rem;
  --sp-12: 7rem;

  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --gutter:    clamp(1.125rem, 0.6rem + 2.4vw, 2.5rem);
  --measure:   66ch;

  /* Shape */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(18, 46, 57, 0.06), 0 2px 6px rgba(18, 46, 57, 0.05);
  --shadow-md: 0 4px 12px rgba(18, 46, 57, 0.07), 0 12px 28px rgba(18, 46, 57, 0.07);
  --shadow-lg: 0 8px 24px rgba(18, 46, 57, 0.10), 0 24px 60px rgba(18, 46, 57, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms;
  --dur:      240ms;
  --dur-slow: 420ms;

  /* Layout */
  --container: 1180px;
  --container-narrow: 780px;
  --header-h: 68px;

  --z-header: 100;
  --z-bar:    150;
  --z-modal:  200;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, canvas, svg, iframe {
  display: block;
  max-width: 100%;
}

img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink-900);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { text-wrap: pretty; }

h2 + p, h3 + p { margin-top: var(--sp-4); }

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--action-dark); }

ul, ol { padding-left: 1.15em; }

:focus-visible {
  outline: 3px solid var(--sea-500);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--sea-100);
  color: var(--ink-900);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 300;
  padding: var(--sp-3) var(--sp-5);
  background: var(--brand-dark);
  color: var(--white);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 62ch;
  margin-bottom: var(--sp-7);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--brand);
}

.section__lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: var(--measure);
}

.section__head--center .section__lead { margin-inline: auto; }

.stack > * + * { margin-top: var(--sp-4); }

/* ==========================================================================
   4. Components
   ========================================================================== */

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--action);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--action-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--white);
  color: var(--brand-dark);
  border-color: var(--sea-500);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

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

.btn--whatsapp { background: #1fa855; color: var(--white); }
.btn--whatsapp:hover { background: #178a45; color: var(--white); }

.btn--lg { padding: 0.95em 1.9em; font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* Call buttons carry the number under the label, so the phone number is
   readable without tapping — the point of the whole page. */
.btn--call { padding-block: 0.55em; text-align: left; }

.btn__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

/* No opacity here: fading white on the coral button drops the contrast to
   3.7:1, under the 4.5:1 that text this small needs. The smaller size and
   the bold number below are what make it read as secondary. */
.btn__label {
  font-size: 0.78em;
  font-weight: 500;
}

.btn__num {
  font-size: 1.02em;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn__icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* --- Cards -------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.card--pad { padding: var(--sp-6); }

/* --- Pills & badges ----------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.42em 0.95em;
  border-radius: var(--r-full);
  background: var(--sea-100);
  color: var(--sea-700);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--ink-900);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.score-badge:hover {
  color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.score-badge__num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-full);
  background: var(--brand-dark);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.score-badge__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.25;
}

.score-badge__sub {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   5. Header & navigation
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header.is-solid {
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* Wordmark */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  margin-right: auto;
}

.brand__logo {
  width: 2.63rem;   /* 1.315 aspect (w/h) at 2rem tall */
  height: 2rem;
  flex: none;
  background-color: var(--brand-dark);
  -webkit-mask: url("../logo-mark.png") center / contain no-repeat;
          mask: url("../logo-mark.png") center / contain no-repeat;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-900);
}

.brand__place {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink-400);
}

.header:not(.is-solid) .brand__name { color: var(--white); }
.header:not(.is-solid) .brand__place { color: rgba(255, 255, 255, 0.82); }
.header:not(.is-solid) .brand__logo { background-color: var(--white); }

/* Nav */
.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-700);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--action);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover { color: var(--ink-900); }
.nav__link[aria-current="true"] { color: var(--ink-900); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

.header:not(.is-solid) .nav__link { color: rgba(255, 255, 255, 0.9); }
.header:not(.is-solid) .nav__link:hover,
.header:not(.is-solid) .nav__link[aria-current="true"] { color: var(--white); }

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Language toggle */
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--white);
}

.header:not(.is-solid) .lang {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.lang__btn {
  padding: 0.3em 0.72em;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--ink-500);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.lang__btn:hover { color: var(--ink-900); }

.lang__btn[aria-pressed="true"] {
  background: var(--brand-dark);
  color: var(--white);
}

.header:not(.is-solid) .lang__btn { color: rgba(255, 255, 255, 0.85); }
.header:not(.is-solid) .lang__btn:hover { color: var(--white); }
.header:not(.is-solid) .lang__btn[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink-900);
}

.header__cta { display: none; }

/* Mobile menu button */
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--white);
  cursor: pointer;
}

.header:not(.is-solid) .menu-btn {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after {
  content: "";
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}

.menu-btn__bars { position: relative; }
.menu-btn__bars::before { position: absolute; top: -5.5px; }
.menu-btn__bars::after  { position: absolute; top: 5.5px; }

.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: calc(var(--z-header) - 1);
  padding: var(--sp-4) var(--gutter) var(--sp-6);
  background: var(--sand-50);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow);
}

.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav__list {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
}

.mobile-nav__list li + li { border-top: 1px solid var(--border); }

.mobile-nav__link {
  display: block;
  padding: var(--sp-4) var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  text-decoration: none;
  color: var(--ink-900);
}

.mobile-nav__link[aria-current="true"] { color: var(--action-dark); }

@media (min-width: 62rem) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .mobile-nav { display: none; }
  .header__cta { display: inline-flex; }
}

/* Between the point the full nav appears and the point there is room for
   everything, drop the "Sună acum" line from the header button and keep just
   the number — which is the part that has to stay visible. */
@media (min-width: 62rem) and (max-width: 81rem) {
  .header__inner { gap: var(--sp-3); }
  .nav__link { padding-inline: var(--sp-2); }
  .header__cta { padding-block: 0.72em; }
  .header__cta .btn__label { display: none; }
  .header__cta .btn__num { font-size: 0.95em; }
}

/* ==========================================================================
   6. Sections
   ========================================================================== */

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 820px);
  padding-top: calc(var(--header-h) + var(--sp-8));
  padding-bottom: var(--sp-9);
  overflow: hidden;
  background: var(--sea-700);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* <picture> is inline by default, so it would collapse and leave the image
   at its natural height instead of filling the hero. */
.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(10, 32, 40, 0.55) 0%,
      rgba(10, 32, 40, 0.18) 32%,
      rgba(10, 32, 40, 0.52) 72%,
      rgba(10, 32, 40, 0.82) 100%);
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: var(--white);
}

.hero__content { max-width: 44ch; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  padding: 0.4em 0.95em;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.hero__title {
  color: var(--white);
  text-shadow: 0 2px 24px rgba(8, 28, 35, 0.4);
}

.hero__text {
  margin-top: var(--sp-4);
  max-width: 46ch;
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(8, 28, 35, 0.45);
}

.hero__actions { margin-top: var(--sp-6); }

.hero__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}

.hero__note {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.86);
}

/* --- Quick facts strip -------------------------------------------------- */

.facts {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--sp-8) * -1);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.fact {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4);
  background: var(--surface);
}

.fact__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: var(--r-full);
  background: var(--sea-100);
  color: var(--sea-700);
}

.fact__icon svg { width: 1.25rem; height: 1.25rem; }

.fact__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
}

.fact__meta {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
}

/* On narrow phones the icon-beside-text row leaves too little width for the
   longer Romanian labels, so stack the icon above instead. */
@media (max-width: 30rem) {
  .fact {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-3);
  }
  .fact__icon { width: 2.15rem; height: 2.15rem; }
  .fact__icon svg { width: 1.1rem; height: 1.1rem; }
}

@media (min-width: 48rem) {
  .facts__grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Split (about) ------------------------------------------------------ */

.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-9);
  }
  .split--wide-text { grid-template-columns: 1.08fr 1fr; }
}

.split__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__body p + p { margin-top: var(--sp-4); }
.split__body p { color: var(--text-muted); }
.split__body > p:first-of-type {
  font-size: var(--fs-lg);
  color: var(--text);
}

.signature {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.signature strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink-900);
}

/* --- Room --------------------------------------------------------------- */

.room {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}

@media (min-width: 56rem) {
  .room { grid-template-columns: 1.05fr 1fr; }
}

.room__media {
  position: relative;
  min-height: 280px;
  background: var(--sand-200);
}

.room__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room__price {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.room__price span {
  font-weight: 500;
  color: var(--text-muted);
}

.room__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }

.room__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-4) 0 var(--sp-5);
  padding: 0;
  list-style: none;
}

.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--sp-3) var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenities li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}

.amenities svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-top: 0.18rem;
  color: var(--vine-600);
}

.room__foot {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.room__times {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.room__times b {
  display: block;
  color: var(--ink-900);
  font-weight: 600;
}

/* --- Facilities --------------------------------------------------------- */

.facilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.facility {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.facility:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.facility__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: var(--r-md);
  background: var(--vine-100);
  color: var(--vine-600);
}

.facility__icon svg { width: 1.35rem; height: 1.35rem; }

.facility h3 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0;
}

.facility p {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --- Reviews / trust ---------------------------------------------------- */

.reviews {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}

@media (min-width: 56rem) {
  .reviews { grid-template-columns: minmax(0, 20rem) 1fr; gap: var(--sp-9); }
}

.score {
  padding: var(--sp-6);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.score__value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-dark);
}

.score__value small {
  font-size: 0.36em;
  font-weight: 500;
  color: var(--text-muted);
}

.score__word {
  margin-top: var(--sp-2);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.score__count {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.score__source {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.bars {
  display: grid;
  gap: var(--sp-5);
  margin: 0;
}

/* dt and dd sit directly inside a single wrapping div, which is the only
   grouping HTML permits inside a definition list. */
.bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: var(--sp-4);
  row-gap: var(--sp-2);
}

.bar__label { font-size: var(--fs-sm); font-weight: 600; }

.bar__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--brand-dark);
}

.bar__track {
  grid-column: 1 / -1;
  margin: 0;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--sand-200);
  overflow: hidden;
}

.bar__fill {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--sea-600), var(--sea-500));
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
  transition: transform 900ms var(--ease);
}

.reviews__note {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --- Location ----------------------------------------------------------- */

.location {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}

@media (min-width: 56rem) {
  .location { grid-template-columns: 1fr 1.15fr; gap: var(--sp-8); }
}

.distances {
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
}

.distances li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--border-strong);
  font-size: var(--fs-sm);
}

.distances li:last-child { border-bottom: 0; }

.distances b {
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
}

.address {
  font-style: normal;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

.address span { display: block; color: var(--text-muted); font-size: var(--fs-sm); }

/* Click-to-load map */
/* No min-height here: combined with aspect-ratio it would set a floor on the
   WIDTH too, and overflow narrow phones. */
.map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 30% 25%, var(--vine-100), transparent 55%),
    radial-gradient(circle at 75% 70%, var(--sea-100), transparent 50%),
    var(--sand-100);
  box-shadow: var(--shadow-sm);
}

.map iframe { width: 100%; height: 100%; border: 0; }

/* On phones the map is full-width and single-column, so give it more height. */
@media (max-width: 55.99rem) {
  .map { aspect-ratio: 3 / 4; }
}

/* --- Contact ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  text-align: center;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.contact-card:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-full);
  background: var(--sea-100);
  color: var(--sea-700);
}

.contact-card--whatsapp .contact-card__icon { background: #e3f6e9; color: #1a8347; }
.contact-card--booking .contact-card__icon  { background: var(--gold-100); color: #8a6414; }

.contact-card__icon svg { width: 1.5rem; height: 1.5rem; }

.contact-card__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-card__value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink-900);
}

.contact-card__meta { font-size: var(--fs-sm); color: var(--text-muted); }

.contact-note {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  border-left: 3px solid var(--action);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--coral-100);
  font-size: var(--fs-sm);
}

/* ==========================================================================
   7. Gallery & lightbox
   ========================================================================== */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.filter-btn {
  padding: 0.5em 1.1em;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.filter-btn:hover { border-color: var(--sea-500); color: var(--brand-dark); }

.filter-btn[aria-pressed="true"] {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}

/* Mosaic: every tile spans a whole number of rows, and dense packing back-fills
   the gaps that the wide and tall tiles would otherwise leave behind. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  grid-auto-rows: 8.5rem;
  grid-auto-flow: row dense;
  gap: var(--sp-3);
}

.gallery__item {
  position: relative;
  display: block;
  grid-row: span 2;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sand-200);
  cursor: zoom-in;
}

.gallery__item--tall { grid-row: span 3; }

@media (min-width: 48rem) {
  .gallery { grid-auto-rows: 9.5rem; }
  .gallery__item--wide { grid-column: span 2; grid-row: span 3; }
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease), filter var(--dur) var(--ease);
}

.gallery__item:hover img { transform: scale(1.05); }

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 32, 40, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; }

.gallery__item[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--sp-4);
  background: rgba(8, 24, 30, 0.975);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

/* .lightbox sets display:grid, which would otherwise defeat the hidden
   attribute — restore it so the dialog is out of the tree when closed. */
.lightbox[hidden] { display: none; }

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: var(--sp-3) 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox__caption {
  padding-top: var(--sp-3);
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.82);
  min-height: 2.5em;
}

.lb-btn {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.lb-btn:hover { background: rgba(255, 255, 255, 0.22); border-color: var(--white); }
.lb-btn svg { width: 1.35rem; height: 1.35rem; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }

@media (min-width: 48rem) {
  .lightbox { padding: var(--sp-5) var(--sp-8); }
  .lightbox__nav--prev { left: calc(var(--sp-8) * -1 + var(--sp-2)); }
  .lightbox__nav--next { right: calc(var(--sp-8) * -1 + var(--sp-2)); }
}

body.is-locked { overflow: hidden; }

/* ==========================================================================
   8. Footer & mobile action bar
   ========================================================================== */

.footer {
  padding-block: var(--sp-8) calc(var(--sp-8) + env(safe-area-inset-bottom));
  background: var(--sea-700);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
}

.footer a { color: var(--white); }
.footer a:hover { color: var(--gold-500); }

.footer__grid {
  display: grid;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-8); }
}

.footer h2, .footer h3 {
  color: var(--white);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li + li { margin-top: var(--sp-2); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.62);
}

/* Sticky mobile call bar */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-bar);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: rgba(253, 250, 245, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(18, 46, 57, 0.09);
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease);
}

.action-bar.is-visible { transform: translateY(0); }

.action-bar .btn { white-space: nowrap; }

/* Smallest phones: the header row (wordmark + language toggle + menu button)
   does not fit at 320px at full size, so tighten every part of it. Without
   this the menu button is pushed past the right edge and clipped by the
   overflow-x guard on body. */
@media (max-width: 22.5rem) {
  .action-bar .btn { padding-inline: 0.8em; font-size: var(--fs-xs); }

  .header__inner { gap: var(--sp-3); }
  .brand { gap: var(--sp-2); }
  .brand__logo { width: 2.24rem; height: 1.7rem; }
  .brand__name { font-size: 1rem; }
  .brand__place { font-size: 0.625rem; letter-spacing: 0.1em; }
  .lang__btn { padding: 0.28em 0.55em; }
  .menu-btn { width: 2.35rem; height: 2.35rem; }
}

@media (min-width: 62rem) {
  .action-bar { display: none; }
}

@media (max-width: 61.99rem) {
  body { padding-bottom: 0; }
  .footer { padding-bottom: calc(var(--sp-10) + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   9. Motion & print
   ========================================================================== */

/* Content is visible by default. The hidden starting state is applied only
   when scripting is available (the `js` class is set by an inline script in
   the head), so a script failure can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.js .reveal.is-in { 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;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .facility:hover, .contact-card:hover { transform: none; }
  .gallery__item:hover img { transform: none; }
}

@media print {
  .header, .action-bar, .lightbox, .map, .gallery-filters, .menu-btn { display: none !important; }
  body { background: #fff; }
  .hero { min-height: auto; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
