/* ==========================================================================
   Villa Arina — design system
   Paper / ink / sea. Cormorant Garamond for display, Figtree for text.
   ========================================================================== */

:root {
  --font-display: "VA Caron", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Figtree", "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --paper: #f3eee4;
  --paper-deep: #e7dfd1;
  --paper-soft: #f8f5ef;
  --ink: #161918;
  --ink-soft: #232826;
  --muted: #6e6960;
  --stone: #c6bbaa;
  --sea: #2c4845;
  --sea-deep: #1c322f;
  --line: #d9d0c2;
  --danger: #8a3a32;

  --ink-10: rgba(22, 25, 24, 0.1);
  --ink-20: rgba(22, 25, 24, 0.2);
  --ink-40: rgba(22, 25, 24, 0.4);
  --paper-10: rgba(243, 238, 228, 0.1);
  --paper-15: rgba(243, 238, 228, 0.15);
  --paper-45: rgba(243, 238, 228, 0.45);
  --paper-65: rgba(243, 238, 228, 0.65);
  --paper-80: rgba(243, 238, 228, 0.8);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
  --gutter: 1.25rem;
  --container: 80rem;
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  --shadow-float: 0 24px 80px -32px rgba(22, 25, 24, 0.55);
  --shadow-pop: 0 20px 50px -24px rgba(22, 25, 24, 0.45);
}

@media (min-width: 768px) {
  :root {
    --header-h: 4.5rem;
    --gutter: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  font-feature-settings: "ss01" on;
  overflow-x: clip; /* not hidden: that would make <body> a scroll container and break position: sticky */
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul[role="list"],
.list-reset {
  list-style: none;
}

::selection {
  background: var(--sea);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid rgba(44, 72, 69, 0.55);
  outline-offset: 3px;
}

.sr-only,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

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

.container--mid {
  max-width: 64rem;
}

.container--narrow {
  max-width: 56rem;
}

.section {
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 8rem;
  }
}

.section--tight {
  padding-block: 4rem;
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--deep {
  background: var(--paper-deep);
}

.site-main {
  display: block;
}

.site-main--offset {
  padding-top: var(--header-h);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--dark .kicker,
.kicker--light {
  color: var(--paper-45);
}

.display-xl {
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.display-lg {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.display-md {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-sm {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.1rem;
  }
}

.section--dark .lead {
  color: rgba(243, 238, 228, 0.7);
}

.muted {
  color: var(--muted);
}

.prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  margin-top: 1.6em;
}

.prose h2 {
  font-size: 2rem;
}

.prose h3 {
  font-size: 1.6rem;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--stone);
}

.prose ul {
  padding-left: 1.2em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.btn:hover {
  background: var(--ink-soft);
}

.btn:active {
  transform: scale(0.98);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.btn--invert {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--invert:hover {
  background: var(--paper-deep);
  border-color: var(--paper-deep);
}

.btn--outline {
  background: transparent;
  border-color: var(--ink-20);
  color: var(--ink);
}

.btn--outline:hover {
  background: rgba(231, 223, 209, 0.6);
  border-color: rgba(22, 25, 24, 0.5);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(243, 238, 228, 0.35);
  color: var(--paper);
}

.btn--ghost-light:hover {
  background: var(--paper-10);
  border-color: var(--paper);
}

.btn--sea {
  background: var(--sea);
  border-color: var(--sea);
}

.btn--sea:hover {
  background: var(--sea-deep);
}

.btn--sm {
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.75rem;
}

.btn--lg {
  height: 3.5rem;
  padding: 0 2rem;
}

.btn--block {
  width: 100%;
}

.btn__icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__icon--arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.35rem;
}

.link-arrow svg {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field {
  display: block;
}

.field + .field {
  margin-top: 1.5rem;
}

.field__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__input,
.field__select,
.field__textarea {
  display: block;
  width: 100%;
  height: 3rem;
  margin-top: 0.25rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink-20);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field__select {
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161918' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 1rem;
}

.field__textarea {
  height: auto;
  min-height: 7rem;
  padding-block: 0.75rem;
  resize: vertical;
  line-height: 1.6;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--ink);
}

.field-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .field-row--2 {
    grid-template-columns: 1fr 1fr;
  }

  .field-row > .field + .field {
    margin-top: 0;
  }
}

.form-notice {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--sea);
  background: rgba(231, 223, 209, 0.55);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-notice--error {
  border-color: var(--danger);
  color: var(--danger);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--ink);
  background: rgba(243, 238, 228, 0.92);
  border-bottom: 1px solid var(--ink-10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.site-header.is-overlay {
  background: transparent;
  border-color: transparent;
  color: var(--paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .site-logo {
    font-size: 1.35rem;
  }
}

.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.45rem;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-current {
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a.is-current::after {
  right: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lang-switch a,
.lang-switch .is-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.5rem;
  padding: 0 0.4rem;
  transition: opacity 0.2s var(--ease);
}

.lang-switch a {
  opacity: 0.5;
}

.lang-switch a:hover,
.lang-switch .is-current {
  opacity: 1;
}

.lang-switch__sep {
  opacity: 0.3;
  margin-inline: -0.15rem;
}

.site-header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .site-header__cta {
    display: inline-flex;
    margin-left: 0.5rem;
  }
}

.site-header.is-overlay .site-header__cta {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.site-header.is-overlay .site-header__cta:hover {
  background: var(--paper-deep);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
}

.menu-toggle svg {
  width: 1.3rem;
  height: 1.3rem;
}

.menu-toggle .icon-close,
.site-header.is-open .menu-toggle .icon-menu {
  display: none;
}

.site-header.is-open .menu-toggle .icon-close {
  display: block;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--ink-10);
  background: var(--paper);
  color: var(--ink);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}

.site-header.is-open {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink-10);
}

.site-header.is-open .mobile-nav {
  display: block;
  animation: fade-down 0.35s var(--ease) both;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  padding-block: 1.25rem 1.75rem;
}

.mobile-nav__list a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--ink-10);
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.mobile-nav__list a:not(.btn) svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.4;
}

.mobile-nav__list .btn {
  margin-top: 1.5rem;
  height: 3.25rem;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  touch-action: pan-y;
  user-select: none;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1s var(--ease),
    transform 7s linear;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.hero.is-webgl.is-ready .hero__canvas {
  opacity: 1;
}

.hero.is-webgl .hero__slide {
  transition: opacity 0.8s var(--ease);
}

.hero.is-webgl.is-ready .hero__slide {
  opacity: 0;
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(22, 25, 24, 0.8), rgba(22, 25, 24, 0.1) 50%, rgba(22, 25, 24, 0.35));
}

.hero__shade::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 33%;
  background: linear-gradient(to top, rgba(22, 25, 24, 0.55), transparent);
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem var(--edge) 9.5rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero__content {
    padding-bottom: 11rem;
  }
}

.hero__kicker {
  color: rgba(243, 238, 228, 0.72);
  letter-spacing: 0.32em;
}

.hero__title {
  max-width: 56rem;
  margin-top: 1rem;
  color: var(--paper);
}

.hero__caption {
  max-width: 28rem;
  margin-top: 1.5rem;
  min-height: 3.2em;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper-80);
}

@media (min-width: 768px) {
  .hero__caption {
    font-size: 1.125rem;
  }
}

.hero__caption.is-animating {
  animation: hero-caption 0.6s var(--ease) both;
}

@keyframes hero-caption {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.hero__controls {
  position: absolute;
  z-index: 11;
  left: var(--edge);
  right: var(--edge);
  bottom: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero__controls {
    bottom: 6.25rem;
  }
}

.hero__counter {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--paper-80);
}

.hero__counter-total {
  opacity: 0.55;
}

.hero__progress {
  display: flex;
  gap: 0.5rem;
}

.hero__bar {
  position: relative;
  width: 2.75rem;
  height: 1px;
  background: rgba(243, 238, 228, 0.28);
  overflow: hidden;
  cursor: pointer;
}

.hero__bar::before {
  content: "";
  position: absolute;
  inset: -14px 0;
}

.hero__bar-fill {
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__bar.is-done .hero__bar-fill {
  transform: scaleX(1);
}

.hero__bar.is-active .hero__bar-fill {
  animation: hero-progress var(--hero-interval, 6000ms) linear forwards;
}

.hero.is-paused .hero__bar.is-active .hero__bar-fill {
  animation-play-state: paused;
}

@keyframes hero-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero__arrows {
  display: flex;
  gap: 0.5rem;
}

.hero__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(243, 238, 228, 0.35);
  color: var(--paper);
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.hero__arrow:hover {
  background: var(--paper-10);
  border-color: var(--paper);
}

.hero__arrow svg {
  width: 1.1rem;
  height: 1.1rem;
}

.hero__scroll {
  display: none;
}

@media (min-width: 768px) and (max-width: 0px) {
  .hero__scroll {
    position: absolute;
    z-index: 11;
    left: 50%;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transform: translateX(-50%);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--paper-65);
  }

  .hero__scroll::after {
    content: "";
    width: 1px;
    height: 2.25rem;
    background: linear-gradient(to bottom, var(--paper-65), transparent);
    animation: scroll-hint 2.4s var(--ease) infinite;
    transform-origin: top;
  }
}

@keyframes scroll-hint {
  0% {
    transform: scaleY(0);
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* --------------------------------------------------------------------------
   Booking bar (home + apartment)
   -------------------------------------------------------------------------- */

.booking-bar-wrap {
  position: relative;
  z-index: 20;
  margin-top: -3.25rem;
}

.booking-bar {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--paper-15);
  box-shadow: var(--shadow-float);
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .booking-bar {
    padding: 1.5rem 1.75rem;
  }
}

.booking-bar--flat {
  box-shadow: none;
  border-color: var(--ink-10);
}

.booking-bar__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.booking-bar__title h2 {
  font-size: 1.6rem;
}

/* --------------------------------------------------------------------------
   Sections: intro, stats
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .split--even {
    grid-template-columns: 1fr 1fr;
  }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin-top: 0.75rem;
}

.section-head .btn {
  display: none;
}

@media (min-width: 640px) {
  .section-head .btn {
    display: inline-flex;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-10);
}

.stats__value {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .stats__value {
    font-size: 2.4rem;
  }
}

/* In the intro the numbers sit under the text column; on tablets that column is
   narrower than a phone, so there they span both columns. */
.split__stats {
  margin-top: -0.5rem;
}

@media (min-width: 768px) {
  .split__stats {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .split__head {
    grid-row: span 2;
  }

  .split__stats {
    grid-column: 2;
  }
}

.stats__label {
  margin-top: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Apartment cards
   -------------------------------------------------------------------------- */

.apt-list {
  display: grid;
  gap: 2rem;
}

.apt-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--ink-10);
  background: var(--paper);
}

@media (min-width: 768px) {
  .apt-card {
    grid-template-columns: 1fr 1fr;
  }

  .apt-card--reverse .apt-card__media {
    order: 2;
  }
}

.apt-card__media {
  position: relative;
  display: block;
  min-height: 18rem;
  overflow: hidden;
  background: var(--paper-deep);
}

@media (min-width: 768px) {
  .apt-card__media {
    min-height: 26rem;
  }
}

.apt-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.apt-card:hover .apt-card__media img {
  transform: scale(1.04);
}

.apt-card__badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.4rem 0.7rem;
  background: rgba(243, 238, 228, 0.92);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.apt-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .apt-card__body {
    padding: 2.5rem;
  }
}

.apt-card__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.apt-card__title {
  margin-top: 0.75rem;
  font-size: 2.5rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .apt-card__title {
    font-size: 3rem;
  }
}

.apt-card__summary {
  max-width: 28rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (min-width: 768px) {
  .apt-card__summary {
    font-size: 1rem;
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.facts > div {
  display: flex;
  flex-direction: column;
}

.facts dt {
  color: var(--muted);
  line-height: 1.3;
}

.facts dd {
  margin-top: auto;
  padding-top: 0.2rem;
}

.facts dd {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
}

.facts--lined {
  margin-top: 2.5rem;
  padding-block: 2rem;
  border-block: 1px solid var(--ink-10);
}

.facts--lined dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts--lined dd {
  margin-top: 0.25rem;
  font-size: 2rem;
}

.apt-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.price-from {
  font-size: 0.875rem;
  color: var(--muted);
}

.price-from strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
}

.apt-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.apt-card__actions .btn {
  flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   Amenities
   -------------------------------------------------------------------------- */

.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  margin-top: 3rem;
  list-style: none;
}

@media (min-width: 768px) {
  .amenities {
    grid-template-columns: repeat(4, 1fr);
  }
}

.amenities li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.amenities svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.05rem;
  color: var(--sea);
}

.note {
  max-width: 42rem;
  margin-top: 3rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--sea);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Places list / location teaser
   -------------------------------------------------------------------------- */

.places {
  list-style: none;
  margin-top: 2.5rem;
}

.places li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--ink-10);
  font-size: 0.9rem;
}

.places li span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

.section--dark .places li {
  border-color: var(--paper-10);
}

.section--dark .places li span:last-child {
  color: var(--paper-45);
}

/* Photo strip (home, Makarska Riviera): swipe on phones with the next photo peeking in,
   one tall photo with arrows on larger screens; a tap opens the full-screen viewer. */
.photo-strip {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.photo-strip__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* phones: bleed to the screen edges */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}

.photo-strip__track::-webkit-scrollbar {
  display: none;
}

.photo-strip__track:focus-visible {
  outline: 1px solid var(--paper-45);
  outline-offset: 4px;
}

.photo-strip__slide {
  flex: 0 0 86%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--paper-10);
  cursor: zoom-in;
}

.photo-strip__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

@media (hover: hover) {
  .photo-strip__slide:hover img {
    transform: scale(1.03);
  }
}

.photo-strip__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.photo-strip__count {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--paper-45);
  font-variant-numeric: tabular-nums;
}

.photo-strip__count [data-carousel-current] {
  color: var(--paper);
}

.photo-strip__nav {
  display: flex;
  gap: 0.5rem;
}

.photo-strip__btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--paper-10);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.photo-strip__btn:hover,
.photo-strip__btn:focus-visible {
  border-color: var(--paper-45);
}

.photo-strip__btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Phones swipe; arrows only where there is a pointer to click them */
@media (max-width: 767px) {
  .photo-strip__nav {
    display: none;
  }
}

@media (min-width: 768px) {
  .photo-strip__track {
    flex: 1;
    min-height: 30rem;
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .photo-strip__slide {
    flex-basis: 100%;
    aspect-ratio: auto;
  }
}

/* --------------------------------------------------------------------------
   Page intro
   -------------------------------------------------------------------------- */

.page-intro {
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .page-intro {
    padding-top: calc(var(--header-h) + 5rem);
  }
}

.page-intro h1 {
  margin-top: 1rem;
}

.page-intro__lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Apartment single
   -------------------------------------------------------------------------- */

.apt-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  margin-top: var(--header-h);
  background: var(--ink);
  overflow: hidden;
}

.apt-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease);
}

.apt-hero__img.is-fading {
  opacity: 0;
}

/* Portrait or small photos: shown whole, over a blurred copy of themselves, instead of
   being cropped to a thin band or blown up past their resolution. */
.apt-hero__bg {
  position: absolute;
  inset: -3rem;
  background: center / cover no-repeat;
  filter: blur(32px) saturate(1.05) brightness(0.62);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.apt-hero.is-contain .apt-hero__bg {
  opacity: 1;
}

.apt-hero.is-contain .apt-hero__img {
  object-fit: contain;
}

.apt-hero__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 5rem var(--edge) 2rem;
  background: linear-gradient(to top, rgba(22, 25, 24, 0.72), transparent);
  color: var(--paper);
}

@media (min-width: 768px) {
  .apt-hero__overlay {
    padding-bottom: 2.5rem;
  }
}

.apt-hero__overlay .kicker {
  color: rgba(243, 238, 228, 0.72);
  letter-spacing: 0.24em;
}

.apt-hero__title {
  margin-top: 0.4rem;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
}

.apt-hero__nav {
  position: absolute;
  right: var(--edge);
  bottom: 2rem;
  display: flex;
  gap: 0.5rem;
}

.apt-hero__count {
  position: absolute;
  right: var(--edge);
  top: 1.25rem;
  padding: 0.35rem 0.65rem;
  background: rgba(22, 25, 24, 0.45);
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.75rem;
  scrollbar-width: none;
}

.thumbs::-webkit-scrollbar {
  display: none;
}

.thumbs button {
  flex: none;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border: 1px solid transparent;
  opacity: 0.65;
  transition:
    opacity 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.thumbs button:hover {
  opacity: 1;
}

.thumbs button.is-active {
  border-color: var(--ink);
  opacity: 1;
}

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

.apt-layout {
  display: grid;
  gap: 3rem;
  padding-block: 3.5rem 5rem;
}

.apt-layout > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .apt-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.apt-layout__lead {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted);
}

.apt-layout__lead > * + * {
  margin-top: 1rem;
}

.features {
  margin-top: 2.5rem;
  list-style: none;
  columns: 1;
  column-gap: 2.5rem;
}

@media (min-width: 640px) {
  .features {
    columns: 2;
  }
}

.features li {
  display: flex;
  gap: 0.75rem;
  break-inside: avoid;
  padding-block: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.features li::before {
  content: "";
  flex: none;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.55rem;
  background: var(--sea);
  transform: rotate(45deg);
}

.subhead {
  margin-top: 3.5rem;
  font-size: 1.9rem;
}

.plan {
  margin-top: 1.5rem;
  width: 100%;
  max-width: min(28rem, 100%);
  border: 1px solid var(--ink-10);
  background: #fff;
  cursor: zoom-in;
}

.price-card {
  border: 1px solid var(--ink-10);
  padding: 1.5rem;
  background: var(--paper);
}

@media (min-width: 900px) {
  .price-card {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.05;
}

.price-card__rates {
  margin-top: 1.5rem;
  list-style: none;
  font-size: 0.875rem;
}

.price-card__rates li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--ink-10);
}

.price-card__rates li span:first-child {
  color: var(--muted);
}

.price-card__meta {
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

.price-card .btn {
  margin-top: 1.75rem;
}

.house-rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-10);
}

@media (min-width: 640px) {
  .house-rules {
    grid-template-columns: repeat(3, 1fr);
  }
}

.house-rules dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.house-rules dd {
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

.apt-booking {
  padding-bottom: 6rem;
}

.apt-booking__head {
  margin-bottom: 2rem;
}

.apt-booking__head h2 {
  margin-top: 0.75rem;
}

.apt-others {
  padding-block: 5rem;
  border-top: 1px solid var(--ink-10);
}

.apt-mini-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .apt-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.apt-mini {
  display: block;
}

.apt-mini__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}

.apt-mini__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.apt-mini:hover .apt-mini__media img {
  transform: scale(1.04);
}

.apt-mini__title {
  margin-top: 1rem;
  font-size: 1.9rem;
}

.apt-mini__meta {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.masonry {
  columns: 2;
  column-gap: 0.5rem;
  padding-bottom: 6rem;
}

.masonry__item {
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .masonry {
    column-gap: 0.75rem;
  }
}

@media (min-width: 900px) {
  .masonry {
    columns: 3;
  }
}

.masonry__item {
  display: block;
  width: 100%;
  margin-bottom: clamp(0.5rem, 1.2vw, 0.75rem);
  overflow: hidden;
  break-inside: avoid;
  background: var(--paper-deep);
  cursor: zoom-in;
}

.masonry__item img {
  width: 100%;
  transition:
    transform 1.2s var(--ease),
    opacity 0.3s var(--ease);
}

.masonry__item:hover img {
  transform: scale(1.03);
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-filter button {
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--ink-20);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.gallery-filter button:hover {
  border-color: var(--ink);
}

.gallery-filter button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.masonry__item.is-hidden {
  display: none;
}

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

.map-frame {
  position: relative;
  min-height: 24rem;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ink-10);
  background: var(--paper-deep);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.95);
}

.address-title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.15;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.photo-grid a,
.photo-grid img {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
}

@media (min-width: 768px) {
  .photo-grid a,
  .photo-grid img {
    height: 11rem;
  }
}

.photo-grid a {
  overflow: hidden;
  cursor: zoom-in;
}

.photo-grid a img {
  transition: transform 1.2s var(--ease);
}

.photo-grid a:hover img {
  transform: scale(1.04);
}

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

.contact-grid {
  display: grid;
  gap: 4rem;
  padding-bottom: 6rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact-card__name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
}

.contact-list {
  margin-top: 1.5rem;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--ink-10);
}

.contact-list svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--sea);
}

.contact-list a {
  color: var(--ink);
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card__img {
  width: 100%;
  height: 18rem;
  margin-top: 2.5rem;
  object-fit: cover;
}

.sent-message {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Booking page
   -------------------------------------------------------------------------- */

.booking-page {
  padding-bottom: 6rem;
}

.booking-aside {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-10);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 768px) {
  .booking-aside {
    grid-template-columns: repeat(3, 1fr);
  }
}

.booking-aside__rules {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.booking-aside strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--sea);
  color: var(--paper);
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mix-blend-mode: luminosity;
}

.cta-band__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding-block: 5rem;
}

@media (min-width: 768px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding-block: 6rem;
  }
}

.cta-band .kicker {
  color: rgba(243, 238, 228, 0.6);
}

.cta-band h2 {
  max-width: 36rem;
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink-10);
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem 1.5rem;
  padding-block: 3.5rem 3rem;
}

/* Phones: the two link columns sit at the opposite edges instead of stacking left. */
@media (max-width: 767px) {
  .site-footer__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-footer__inner > :first-child {
    grid-column: 1 / -1;
  }

  .site-footer__inner > :last-child {
    text-align: right;
  }
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    padding-block: 4.5rem 4rem;
  }
}

.site-footer__logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .site-footer__logo {
    font-size: 2rem;
  }
}

.site-footer__line {
  max-width: 22rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--paper-65);
}

.site-footer__heading {
  margin-bottom: 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-45);
}

.site-footer__links {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.site-footer__links a {
  color: rgba(243, 238, 228, 0.82);
  transition: color 0.2s var(--ease);
}

.site-footer__links a:hover {
  color: var(--paper);
}

.site-footer__contact {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(243, 238, 228, 0.82);
}

.site-footer__contact a:hover {
  color: var(--paper);
}

.site-footer__bottom {
  border-top: 1px solid var(--paper-10);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-45);
}

.site-footer__bottom .lang-switch a,
.site-footer__bottom .lang-switch .is-current {
  min-height: 2.5rem;
}

/* Languages flush with the right edge, like the column above them, also when the
   row wraps on narrow phones. */
.site-footer__bottom .lang-switch {
  margin-left: auto;
}

.site-footer__bottom .lang-switch > :last-child {
  min-width: 0;
  padding-left: 0.75rem;
  padding-right: 0;
  margin-right: -0.18em;
}

/* --------------------------------------------------------------------------
   Select fields — the site's own drop-down over the real <select>
   -------------------------------------------------------------------------- */

.va-sel__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.va-sel {
  position: relative;
  display: block;
  width: 100%;
}

.va-sel__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  height: 3rem;
  padding: 0 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--ink-20);
  background: transparent;
  color: var(--ink);
  font: 400 1rem / 1.4 var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.va-sel__btn::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  transition: transform 0.25s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.va-sel__btn:hover,
.va-sel__btn:focus-visible,
.va-sel.is-open .va-sel__btn {
  border-bottom-color: var(--ink);
  outline: none;
}

.va-sel.is-open .va-sel__btn::after {
  transform: rotate(180deg);
}

.va-sel__btn[disabled] {
  color: var(--muted);
  cursor: default;
}

.va-sel__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  max-height: 15rem;
  margin: 0;
  padding: 0.35rem 0;
  overflow-y: auto;
  list-style: none;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translateY(-0.35rem);
  visibility: hidden;
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease),
    visibility 0.18s;
}

.va-sel.is-up .va-sel__list {
  top: auto;
  bottom: calc(100% + 0.4rem);
  transform: translateY(0.35rem);
}

.va-sel.is-open .va-sel__list {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.va-sel__opt {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}

.va-sel__opt:hover {
  background: var(--paper-deep);
}

.va-sel__opt.is-current {
  background: var(--ink);
  color: var(--paper);
}

.va-sel__opt.is-disabled {
  color: var(--muted);
  cursor: default;
}

.va-sel__opt.is-disabled:hover {
  background: transparent;
}

@media (hover: none) {
  .va-sel__opt {
    padding-block: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   Messenger button (MW Messenger Button plugin): colours, sizes and offsets are
   set in its settings; here only what the settings cannot do.
   -------------------------------------------------------------------------- */

.mwmessbtn-pulse-button {
  /* thin light edge keeps it visible over the dark footer and the sea-green band */
  box-shadow:
    0 0 0 1px rgba(243, 238, 228, 0.28),
    0 14px 34px -12px rgba(22, 25, 24, 0.6);
}

.mwmessbtn-pulse-button__icon {
  background: var(--paper);
  -webkit-mask: url("../icons/whatsapp.svg") no-repeat center / contain;
  mask: url("../icons/whatsapp.svg") no-repeat center / contain;
}

.mwmessbtn-pulse-button__text {
  /* still read out by screen readers while the icon is shown */
  visibility: visible;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.mwmessbtn-pulse-button:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

/* The page ends with room for the button, so it never covers the language links
   at the very bottom (sizes come from the plugin's own variables). */
@media (max-width: 1500px) {
  body:has(.mwmessbtn-pulse-button) .site-footer__bottom {
    padding-bottom: calc(var(--mwmessbtn-size-desktop, 0px) + var(--mwmessbtn-desktop-bottom, 0px));
  }
}

@media (max-width: 1024px) {
  body:has(.mwmessbtn-pulse-button) .site-footer__bottom {
    padding-bottom: calc(var(--mwmessbtn-size-mobile, 0px) + var(--mwmessbtn-mobile-bottom, 0px));
  }
}

/* out of the way while the menu or the photo viewer is open */
body.is-locked .mwmessbtn-pulse-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media print {
  .mwmessbtn-pulse-button {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   404 / generic content
   -------------------------------------------------------------------------- */

.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-content {
  padding-bottom: 6rem;
}

/* --------------------------------------------------------------------------
   Motion: reveal on scroll
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.mt-xs {
  margin-top: 0.5rem;
}

.mt-s {
  margin-top: 0.75rem;
}

.mt-m {
  margin-top: 1rem;
}

.mt-l {
  margin-top: 1.5rem;
}

.mt-xl {
  margin-top: 2.5rem;
}

.maxw-s {
  max-width: 28rem;
}

.maxw-m {
  max-width: 36rem;
}

/* --------------------------------------------------------------------------
   Narrow phones (≤ 420px): keep the header on one row, hero controls on one row
   -------------------------------------------------------------------------- */

@media (max-width: 420px) {
  .site-logo {
    font-size: 1.05rem;
    letter-spacing: 0.14em;
  }

  .site-header__actions {
    gap: 0.25rem;
  }

  .lang-switch {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .lang-switch a,
  .lang-switch .is-current {
    padding: 0 0.3rem;
  }

  .hero__counter {
    gap: 0.75rem;
  }

  .hero__bar {
    width: 1.75rem;
  }
}

@media (max-width: 359px) {
  .site-logo {
    font-size: 0.98rem;
    letter-spacing: 0.1em;
  }

  .hero__progress {
    display: none;
  }
}

/* Touch screens: footer links get a finger-sized row */
@media (max-width: 1023px), (pointer: coarse) {
  .site-footer__links {
    gap: 0;
    margin-top: -0.6rem;
  }

  .site-footer__links a,
  .site-footer__contact a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
  }

  .site-footer__contact {
    margin-top: -0.6rem;
  }
}

/* Phones: tighter uppercase labels under the numbers */
@media (max-width: 767px) {
  .stats__label {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 400px) {
  .facts {
    gap: 0.5rem;
  }

  .facts--lined dt {
    letter-spacing: 0.1em;
  }
}

/* Phones: full-width, stacked card actions */
@media (max-width: 520px) {
  .apt-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .apt-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .apt-card__actions .btn {
    width: 100%;
  }

  .cta-band__inner .apt-card__actions {
    width: 100%;
  }
}

/* Large and very large screens: scale the whole layout up instead of leaving a narrow column */
@media (min-width: 1800px) {
  html {
    font-size: 17px;
  }

  :root {
    --container: 86rem;
  }
}

@media (min-width: 2300px) {
  html {
    font-size: 19px;
  }

  :root {
    --container: 88rem;
  }
}

@media (min-width: 3200px) {
  html {
    font-size: 24px;
  }
}

/* --------------------------------------------------------------------------
   Hidden for now (owner's request, 2026-09-26): hero arrows and counter, the
   photo band with «Check dates» above the footer. Remove a rule to bring it back.
   -------------------------------------------------------------------------- */

.hero__arrows,
.hero__counter,
.cta-band {
  display: none;
}

/* --------------------------------------------------------------------------
   Footer on phones: name, line and address on the left, the links in capitals
   down the right edge, the copyright centred below (languages are in the header).
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand links"
      "contact links";
    justify-content: stretch;
    align-items: start;
    gap: 1rem 1.5rem;
    padding-block: 3rem 2.5rem;
  }

  .site-footer__inner > :first-child {
    grid-area: brand;
  }

  .site-footer__inner > :nth-child(2) {
    grid-area: links;
    text-align: right;
  }

  .site-footer__inner > :last-child {
    grid-area: contact;
    text-align: left;
  }

  .site-footer__heading {
    display: none;
  }

  .site-footer__logo {
    font-size: 1.5rem;
    letter-spacing: 0.14em;
  }

  .site-footer__line {
    margin-top: 1rem;
    font-size: 0.9rem;
  }

  .site-footer__links {
    margin-top: -0.7rem;
  }

  .site-footer__links a {
    justify-content: flex-end;
    min-height: 2.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper);
  }

  .site-footer__contact {
    margin-top: 0;
    font-size: 0.9rem;
    color: var(--paper-65);
  }

  .site-footer__bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .site-footer__bottom .lang-switch {
    display: none;
  }
}
