/* ============================================================
   Apartments Iva — Design System
   Colors: teal (primary) / sandy tan (bg) / sandy gold (accent)
   Fonts: Cormorant (headlines) / Work Sans (body) / Space Mono (labels)
   ============================================================ */

:root {
  --teal: #3E7C8C;
  --teal-dark: #2A5A66;
  --sand: #E8DCC0;
  --yellow: #C9A15C;
  --sky: #6EC1E4;
  --ink: #1C3438;
  --white: #FAF7EF;

  --font-head: "Cormorant", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --header-h: 76px;
  --transition-fast: 220ms ease;
  --transition-med: 320ms ease;
  /* Stronger than the built-in ease-out, which is too weak to read as
     intentional. Entering elements only — never ease-in, which delays the
     first frame, the exact moment the eye is on the element. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-soft: 0 8px 24px rgba(28, 52, 56, 0.12);
  --shadow-lift: 0 14px 34px rgba(28, 52, 56, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 1ms;
    --transition-med: 1ms;
  }
}

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

/* One visible focus ring for everything keyboard-reachable. Previously the only
   two :focus rules in the sheet both removed the outline and replaced it with
   a colour swap, leaving buttons, nav, galleries and the select with nothing. */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal-dark);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

p { margin: 0 0 1em; font-weight: 500; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.9em;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--ink);
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn-primary {
  background: var(--teal-dark);
  color: var(--white);
}
.btn-primary:hover {
  background: #1F4650;
  box-shadow: var(--shadow-soft);
}

.btn-accent {
  background: var(--yellow);
  color: var(--ink);
}
.btn-accent:hover {
  background: #AD8748;
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn-outline:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-block { width: 100%; }

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 500;
  background: rgba(250, 247, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 52, 56, 0.08);
  transition: background-color var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med);
}

/* Cast once content is beneath it, so the header reads as sitting above the
   page rather than always floating on it. */
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(28, 52, 56, 0.05), 0 12px 28px -18px rgba(28, 52, 56, 0.24);
  border-bottom-color: rgba(28, 52, 56, 0.14);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--teal-dark);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 9px;
  width: 0%;
  height: 1px;
  background: var(--teal);
  transition: width var(--transition-med);
}

.nav-links a:hover {
  color: var(--teal-dark);
}
.nav-links a:hover::after { width: 100%; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

/* Inactive flags sit back in near-greyscale so the active one reads instantly;
   colour returns on hover, which also previews what you're about to pick. */
.lang-switch button {
  position: relative;
  width: 25px;
  height: 25px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0.04em;
  line-height: 0;
  opacity: 0.75;
  filter: saturate(0.65);
  box-shadow: 0 0 0 1px rgba(28, 52, 56, 0.18);
  transition: opacity var(--transition-fast), filter var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lang-switch button svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.lang-switch button:hover {
  opacity: 1;
  filter: saturate(1);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(28, 52, 56, 0.3), 0 3px 8px rgba(28, 52, 56, 0.16);
}

.lang-switch button:focus-visible {
  outline: none;
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--teal);
}

.lang-switch button.active {
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 0 0 2px var(--yellow), 0 2px 7px rgba(28, 52, 56, 0.2);
}

/* Must out-rank .active, which otherwise swallowed the focus ring on the
   currently-selected flag. */
.lang-switch button.active:focus-visible,
.lang-switch button:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
}

/* The flag reads at 25px but the touch target has to be 44px. */
.lang-switch button::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  transition: transform 160ms var(--ease-out);
}
.nav-toggle:active { transform: scale(0.9); }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hamburger morphs into an X so the button's own shape says "tap to close" —
   previously it gave no visual state change at all when the menu opened. */
.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}
.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,52,56,0.55) 0%, rgba(42,90,102,0.55) 55%, rgba(28,52,56,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 24px;
}

.hero .kicker { color: var(--white); }

.hero h1 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(250, 247, 239, 0.92);
  max-width: 560px;
  margin: 0 auto 2em;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 44px;
  background: rgba(250, 247, 239, 0.5);
}
.hero-scroll-cue::after {
  content: "";
  position: absolute;
  top: 0; left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  90% { opacity: 0; }
  100% { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue::after { animation: none; opacity: 0.7; }
}

/* ---------------- Scroll reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Apartment rows (homepage) ---------------- */

.apartments-list {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.apt-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.apt-row.reverse .apt-media { order: 2; }
.apt-row.reverse .apt-info { order: 1; }

/* Without this the 5-thumbnail flex row (5x64 + 4x8 = 352px) forces the whole
   column wider than a 320px viewport and the page scrolls sideways. */
.apt-media { min-width: 0; }

.apt-cover {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms var(--ease-out);
}
.apt-cover:active { transform: scale(0.99); }

.apt-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
}
/* Touch devices fire :hover on tap, so a zoom-on-hover would stick until the
   next tap elsewhere. Desktop-pointer only. */
@media (hover: hover) and (pointer: fine) {
  .apt-cover:hover img { transform: scale(1.045); }
}

.apt-cover-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(28, 52, 56, 0.65);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.apt-cover:hover .apt-cover-hint { opacity: 1; transform: translateY(0); }

.apt-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.apt-thumbs::-webkit-scrollbar { height: 5px; }
.apt-thumbs::-webkit-scrollbar-thumb { background: rgba(28,52,56,0.2); border-radius: 3px; }

.apt-thumbs button {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(28,52,56,0.1);
  padding: 0;
  cursor: pointer;
  background: none;
  transition: transform 160ms var(--ease-out);
}
.apt-thumbs button:active { transform: scale(0.94); }
.apt-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
@media (hover: hover) and (pointer: fine) {
  .apt-thumbs button:hover img {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

.apt-name {
  margin-bottom: 0.2em;
}

.apt-facts {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--teal-dark);
  margin-bottom: 1em;
}

.apt-blurb {
  color: var(--ink);
  font-weight: 500;
  max-width: 46ch;
}

.apt-size {
  margin: 1.4em 0 1.6em;
}
.apt-size-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #445a5c;
  margin-bottom: 6px;
}
.apt-size-track {
  height: 4px;
  background: rgba(28, 52, 56, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.apt-size-fill {
  height: 100%;
  background: var(--sky);
  border-radius: 2px;
  width: 0%;
  transition: width 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}
.is-visible .apt-size-fill { width: var(--fill, 40%); }

.apt-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  margin-bottom: 1.7em;
  border-top: 1px solid rgba(28, 52, 56, 0.14);
  border-bottom: 1px solid rgba(28, 52, 56, 0.14);
}

.apt-price-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #445a5c;
}

.apt-price-value {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--teal-dark);
  white-space: nowrap;
}

.apt-price-from {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

.apt-price-unit {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #445a5c;
  margin-left: -2px;
}

.apt-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.contact-section {
  background: var(--teal-dark);
  color: var(--white);
}
.contact-section .kicker { color: var(--yellow); }
.contact-section h2 { color: var(--white); }
.contact-section .section-head p { color: rgba(250,247,239,0.82); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info dt {
  /* lighter gold: #C9A15C only reaches 3.2:1 on the teal panel */
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E3C489;
  margin-top: 1.6em;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 0.35em 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}
/* Email/phone are links but previously gave zero feedback beyond the cursor. */
.contact-info dd a {
  transition: color var(--transition-fast);
}
.contact-info dd a:focus-visible { color: var(--yellow); }
@media (hover: hover) and (pointer: fine) {
  .contact-info dd a:hover { color: var(--yellow); }
}

/* Labels the WhatsApp button and the form as two distinct channels, not
   variations on the same thing. */
.contact-channel-heading {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
  margin: 0 0 12px;
}
.contact-channel-heading:not(:first-child) {
  margin-top: 30px;
}

/* Sits above the form as a faster alternative for guests who'd rather chat
   than fill fields. WhatsApp's brand green is a deliberate exception to the
   single-accent rule — recognisability is the entire point of this button. */
.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
  background: rgba(250, 247, 239, 0.06);
  border: 1px solid rgba(250, 247, 239, 0.28);
  border-radius: 4px;
  transition: transform 160ms var(--ease-out), background-color var(--transition-fast),
    border-color var(--transition-fast);
}
@media (hover: hover) and (pointer: fine) {
  .whatsapp-cta:hover {
    background: rgba(250, 247, 239, 0.1);
    border-color: rgba(250, 247, 239, 0.5);
  }
}
.whatsapp-cta:active { transform: scale(0.99); }
/* On the dark teal panel the default teal-dark ring is invisible, same fix
   already applied to the form fields and fallback button on this section. */
.whatsapp-cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.whatsapp-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-icon svg { width: 22px; height: 22px; fill: var(--white); }

.whatsapp-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.whatsapp-text strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
}
.whatsapp-text span {
  font-size: 0.82rem;
  color: rgba(250, 247, 239, 0.68);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(250,247,239,0.75);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(250, 247, 239, 0.06);
  border: 1px solid rgba(250, 247, 239, 0.28);
  border-radius: 3px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

/* Custom chevron — the native one can't be recoloured for a dark panel. */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23C9A15C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

/* The dropdown list itself renders in the OS palette, so force readable
   colours rather than white-on-white in some browsers. */
.form-group select option {
  background: var(--white);
  color: var(--ink);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(250,247,239,0.4); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--yellow);
  background: rgba(250, 247, 239, 0.1);
}

/* On the dark teal panel the teal ring would disappear, so go light there. */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.form-honeypot { position: absolute; left: -9999px; }

.form-note {
  font-size: 0.82rem;
  color: rgba(250,247,239,0.55);
  margin-top: 14px;
}

/* Submission feedback. The failure state has to be plainly visible — a guest
   who misses it walks away thinking the enquiry landed. */
#contact-form-success {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.55;
}

#contact-form-success.is-error {
  color: #FFB9AC;
  border-left: 2px solid #FFB9AC;
  padding-left: 14px;
}

/* Shown only when a submission has failed twice, on the dark teal panel. */
.btn-fallback {
  margin-top: 14px;
  background: transparent;
  color: var(--white);
  border-color: rgba(250, 247, 239, 0.5);
}
.btn-fallback:hover {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

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

.site-footer {
  padding: 36px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: #445a5c;
  border-top: 1px solid rgba(28,52,56,0.08);
}

/* ---------------- Detail page ---------------- */

/* Block sides only. The `padding` shorthand used to zero the horizontal
   padding inherited from .container, so between 721px and 1180px the gallery
   ran flush to both screen edges while the header stayed inset. */
.detail-hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal-dark);
  margin-bottom: 26px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.back-link:hover {
  color: var(--teal-dark);
  transform: translateX(-3px);
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.detail-facts {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal-dark);
}

.gallery-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-bottom: 64px;
}

.gallery-hero-img {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: transform 160ms var(--ease-out);
}
.gallery-hero-img:active { transform: scale(0.99); }
.gallery-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-med); }
@media (hover: hover) and (pointer: fine) {
  .gallery-hero-img:hover img { transform: scale(1.03); }
}

.gallery-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery-thumb {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  position: relative;
  transition: transform 160ms var(--ease-out);
}
.gallery-thumb:active { transform: scale(0.98); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-med), opacity var(--transition-fast); }
@media (hover: hover) and (pointer: fine) {
  .gallery-thumb:hover img { transform: scale(1.06); opacity: 0.92; }
}

.gallery-thumb.more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: rgba(28,52,56,0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* ---------------- Seasonal prices timeline ---------------- */

.seasons {
  padding: 8px 0 66px;
}

.seasons-head {
  margin-bottom: 46px;
}
.seasons-head h2 {
  margin-bottom: 0;
}

.season-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The connecting rail. It spans centre-of-first to centre-of-last node, then
   draws itself in once the section scrolls into view. Margins are
   100 / (2 * column-count), so the rail's ends land under each node's centre. */
.season-track::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8.333%;
  right: 8.333%;
  height: 1px;
  background: rgba(28, 52, 56, 0.18);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 100ms;
}
.seasons.is-visible .season-track::before { transform: scaleX(1); }

.season {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.seasons.is-visible .season { opacity: 1; transform: translateY(0); }

.season-node {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(28, 52, 56, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: border-color var(--transition-med), box-shadow var(--transition-med),
    transform var(--transition-med);
}

.season-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition-med);
}

@media (hover: hover) and (pointer: fine) {
  .season:hover .season-node {
    transform: translateY(-2px);
    border-color: rgba(28, 52, 56, 0.3);
    box-shadow: 0 6px 16px rgba(28, 52, 56, 0.1);
  }
}

.season-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.season-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.season-name {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.15;
  color: var(--teal-dark);
}

.season-dates {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #445a5c;
}

.season-badge.is-placeholder {
  visibility: hidden;
}

.season-badge {
  align-self: center;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(201, 161, 92, 0.24);
  border-radius: 100px;
  padding: 4px 11px;
}

.season-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.season-price-value {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--ink);
}
.season-price-value.is-tbd { color: #445a5c; }

.season-price-unit {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  color: #445a5c;
}

/* Active season: gold ring, warmed icon, and a price that steps forward. */
.season.is-active .season-node {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(201, 161, 92, 0.18);
}
.season.is-active .season-icon { stroke: var(--yellow); }
.season.is-active .season-price-value { color: var(--teal-dark); }

.seasons-note {
  max-width: 60ch;
  margin: 42px 0 0;
  font-size: 0.88rem;
  color: #4a5f61;
}

/* Brackets the season timeline top and bottom — a guest scrolling past from
   either direction sees the off-calendar discount, not just those who
   happen to read the fine-print note below the prices. */
.season-discount {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin: 24px 0;
  border-radius: 4px;
  background: rgba(201, 161, 92, 0.1);
  border-left: 2px solid var(--yellow);
  transition: background-color var(--transition-fast), transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .season-discount:hover { background: rgba(201, 161, 92, 0.18); }
}
.season-discount:active { transform: scale(0.99); }

.season-discount-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.season-discount span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-dark);
}

@media (max-width: 620px) {
  .season-discount { padding: 12px 14px; }
  .season-discount span { font-size: 0.88rem; }
}

@media (max-width: 860px) {
  .season-track { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .season-track::before { display: none; }
}

@media (max-width: 620px) {
  .seasons { padding-bottom: 48px; }
  .seasons-head { margin-bottom: 32px; }
  .season-track { grid-template-columns: 1fr; row-gap: 0; }

  /* Vertical rail on mobile, running down through the icons. */
  .season-track::before {
    display: block;
    top: 34px;
    bottom: 34px;
    left: 27px;
    right: auto;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 100ms;
  }
  .seasons.is-visible .season-track::before { transform: scaleY(1); }

  .season {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 18px;
    padding: 14px 0;
  }
  .season-node { width: 54px; height: 54px; margin-bottom: 0; }
  .season-body {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .season-text { gap: 3px; }
  .season-name { font-size: 1.12rem; }
  .season-badge { align-self: flex-start; }
  .season-price { align-items: flex-end; }
  .season-price-value { font-size: 1.35rem; }
  .seasons-note { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .apt-size-fill { transition: none; }
  .season { opacity: 1; transform: none; transition: none; }
  .season-track::before { transform: none !important; transition: none; }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  padding-bottom: 100px;
}

.detail-desc p { font-size: 1.05rem; font-weight: 500; color: var(--ink); }

.amenity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.amenity-list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}
.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--yellow);
  border-radius: 50%;
}

.amenity-category {
  margin-bottom: 28px;
}
.amenity-category h4 {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.detail-cta {
  background: var(--white);
  border: 1px solid rgba(28,52,56,0.1);
  border-radius: 4px;
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  /* Tinted to the ink hue rather than a neutral grey, so the elevation reads
     as part of this palette rather than a generic drop shadow. */
  box-shadow: 0 10px 28px -12px rgba(28, 52, 56, 0.14);
}
.detail-cta h3 { margin-bottom: 0.4em; }
.detail-cta p { font-size: 0.92rem; color: #4a5f61; }

/* ---------------- Lightbox ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 34, 37, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-med), visibility 0s linear var(--transition-med);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-med), visibility 0s;
}

.lightbox-figure {
  max-width: 88vw;
  max-height: 84vh;
  transform: scale(0.96);
  opacity: 0;
  transition: transform var(--transition-med), opacity var(--transition-med);
}
.lightbox.is-open .lightbox-figure {
  transform: scale(1);
  opacity: 1;
}

.lightbox-figure img {
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-lift);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(250, 247, 239, 0.1);
  border: 1px solid rgba(250, 247, 239, 0.3);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(250, 247, 239, 0.22);
  transform: scale(1.06);
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-close:active { transform: scale(0.94); }
.lightbox-prev:active { transform: translateY(-50%) scale(0.94); }
.lightbox-next:active { transform: translateY(-50%) scale(0.94); }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(250, 247, 239, 0.8);
  letter-spacing: 0.05em;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .apt-row, .apt-row.reverse .apt-media, .apt-row.reverse .apt-info {
    order: initial;
  }
  .apt-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-main { grid-template-columns: 1fr; }
  .gallery-side-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-cta { position: static; }
  .amenity-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .lang-switch { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .nav-main {
    display: flex;
  }
  .nav-main {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 32px 32px;
    border-bottom: 1px solid rgba(28,52,56,0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility 0s linear var(--transition-fast);
  }
  .site-header.nav-open .nav-main {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }
  .nav-links { display: flex; flex-direction: column; gap: 14px; }
  .lang-switch { display: flex; }
  .gallery-side-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .container { padding: 0 22px; }
}

/* ============================================================
   ARRIVAL PAGE
   A journey reads top-to-bottom at every width, so the timeline
   stays vertical rather than flipping orientation like .season-track.
   ============================================================ */

/* Present for screen readers and the document outline, but the timeline
   itself already says "journey" visually, so the heading would be noise. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Clears the fixed header. Sets the block sides only — the `padding`
   shorthand would zero out the horizontal padding this element inherits
   from .container, dropping the text flush against the screen edges. */
.arrival-page {
  padding-top: calc(var(--header-h) + 34px);
  padding-bottom: 90px;
}

.arrival-head {
  max-width: 62ch;
  margin-bottom: 62px;
}

.arrival-head h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 10px 0 18px;
  color: var(--teal-dark);
}

.arrival-intro {
  font-size: 1.06rem;
  line-height: 1.68;
  color: #3a5153;
  margin: 0;
}

.journey {
  margin-bottom: 76px;
}

.journey-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 34px;
}

.journey-leg {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: start;
  column-gap: 22px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.journey.is-visible .journey-leg { opacity: 1; transform: translateY(0); }
.journey.is-visible .journey-leg:nth-child(2) { transition-delay: 70ms; }
.journey.is-visible .journey-leg:nth-child(3) { transition-delay: 140ms; }

/* Connector between one node and the next. Drawn per-leg rather than as a
   single rail on the <ol>, so it stays correct no matter how tall the last
   leg's text runs. Ends stop 8px short of each node for breathing room. */
.journey-leg:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 62px;
  bottom: -26px;
  width: 1px;
  background: rgba(28, 52, 56, 0.18);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 620ms var(--ease-out);
}
.journey.is-visible .journey-leg:not(:last-child)::before { transform: scaleY(1); }
.journey.is-visible .journey-leg:nth-child(1)::before { transition-delay: 180ms; }
.journey.is-visible .journey-leg:nth-child(2)::before { transition-delay: 250ms; }

.leg-node {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(28, 52, 56, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-med), box-shadow var(--transition-med),
    transform var(--transition-med);
}

.leg-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Touch devices fire :hover on tap, so the lift is desktop-pointer only. */
@media (hover: hover) and (pointer: fine) {
  .journey-leg:hover .leg-node {
    transform: translateY(-2px);
    border-color: rgba(28, 52, 56, 0.3);
    box-shadow: 0 6px 16px rgba(28, 52, 56, 0.1);
  }
}

/* The final node is the destination, so it carries the same gold ring the
   active season uses — one accent, one meaning, across the site. */
.journey-leg:last-child .leg-node {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(201, 161, 92, 0.18);
}
.journey-leg:last-child .leg-icon { stroke: var(--yellow); }

.leg-body {
  padding-top: 4px;
  min-width: 0;
}

.leg-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #445a5c;
  margin-bottom: 6px;
}

.leg-route {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.42rem;
  line-height: 1.2;
  margin: 0 0 5px;
  color: var(--teal-dark);
}

.leg-meta {
  display: block;
  font-size: 0.9rem;
  color: #445a5c;
}

.leg-time {
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
}

.journey-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 38px 0 0;
  padding: 18px 22px;
  background: rgba(62, 124, 140, 0.07);
  border-left: 2px solid var(--yellow);
  border-radius: 3px;
}

.journey-total span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #445a5c;
}

.journey-total strong {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--teal-dark);
}

.know h2,
.arrival-help h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  color: var(--teal-dark);
  margin: 0 0 26px;
}

.know-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.know-card {
  background: var(--white);
  border: 1px solid rgba(28, 52, 56, 0.1);
  border-radius: 4px;
  padding: 24px 26px;
  box-shadow: 0 10px 28px -14px rgba(28, 52, 56, 0.1);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .know-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -14px rgba(28, 52, 56, 0.16);
  }
}

.know-card h3 {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 10px;
}

.know-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: #3a5153;
}

.arrival-help {
  margin-top: 76px;
  padding: 38px 34px;
  background: var(--teal-dark);
  border-radius: 5px;
  text-align: center;
}

.arrival-help h2 { color: var(--white); margin-bottom: 12px; }

.arrival-help p {
  margin: 0 auto 24px;
  max-width: 46ch;
  color: rgba(250, 247, 239, 0.84);
}

.print-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  background: none;
  border: 0;
  /* 44px minimum touch target, matching the rest of the site. */
  min-height: 44px;
  padding: 8px 2px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #445a5c;
  transition: color var(--transition-fast), transform 160ms var(--ease-out);
}
.print-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .print-link:hover { color: var(--teal-dark); }
}
.print-link:active { transform: scale(0.97); }

@media (max-width: 640px) {
  .arrival-page { padding-top: calc(var(--header-h) + 22px); padding-bottom: 66px; }
  .arrival-head { margin-bottom: 44px; }
  .journey-leg {
    grid-template-columns: 54px 1fr;
    row-gap: 8px;
  }
  .leg-time {
    grid-column: 2;
    padding-top: 0;
  }
  .leg-route { font-size: 1.24rem; }
  .journey-total { padding: 16px 18px; }
  .arrival-help { margin-top: 56px; padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-leg { opacity: 1; transform: none; transition: none; }
  .journey-leg::before { transform: none !important; transition: none; }
}

/* Guests print this page or save it as a PDF to carry on the ferry, where
   signal is unreliable. Strip the navigation chrome, keep the facts. */
@media print {
  .site-header,
  .site-footer,
  .back-link,
  .print-link,
  .arrival-help .btn { display: none !important; }

  body { background: #fff; color: #000; }
  .arrival-page { padding: 0; }
  .reveal,
  .journey-leg { opacity: 1 !important; transform: none !important; }
  .journey-leg:not(:last-child)::before { transform: scaleY(1) !important; }
  .know-card,
  .journey-total { break-inside: avoid; }
  .arrival-help {
    background: none;
    border: 1px solid #999;
    color: #000;
    margin-top: 34px;
  }
  .arrival-help h2, .arrival-help p { color: #000; }
  .arrival-help::after {
    /* --print-email and --print-phone are set by JS (initContactLinks in
       main.js) so neither ever sits in this static CSS source as plain text. */
    content: var(--print-email, "") " · " var(--print-phone, "");
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
  }
}

/* ============================================================
   SHARED FACILITIES PAGE
   ============================================================ */

.facilities-page {
  padding-top: calc(var(--header-h) + 34px);
  padding-bottom: 90px;
}

.facilities-head {
  max-width: 62ch;
  margin-bottom: 48px;
}

.facilities-head h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 10px 0 18px;
  color: var(--teal-dark);
}

.facilities-intro {
  font-size: 1.06rem;
  line-height: 1.68;
  color: #3a5153;
  margin: 0;
}

.facilities-lead {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  margin-bottom: 56px;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms var(--ease-out);
}
.facilities-lead:active { transform: scale(0.995); }
.facilities-lead img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-med); }
@media (hover: hover) and (pointer: fine) {
  .facilities-lead:hover img { transform: scale(1.02); }
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.facility-card {
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(28, 52, 56, 0.1);
  box-shadow: 0 10px 28px -14px rgba(28, 52, 56, 0.1);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .facility-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -14px rgba(28, 52, 56, 0.16);
  }
}

.facility-card-media {
  aspect-ratio: 4 / 3;
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms var(--ease-out);
}
.facility-card-media:active { transform: scale(0.99); }
.facility-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-med); }
@media (hover: hover) and (pointer: fine) {
  .facility-card-media:hover img { transform: scale(1.05); }
}

.facility-card-body {
  padding: 20px 22px 24px;
}

.facility-card-body h3 {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.28rem;
  margin: 0 0 8px;
  color: var(--teal-dark);
}

.facility-card-body p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.58;
  color: #3a5153;
  font-weight: 500;
}

@media (max-width: 640px) {
  .facilities-page { padding-top: calc(var(--header-h) + 22px); padding-bottom: 66px; }
  .facilities-head { margin-bottom: 36px; }
  .facilities-lead { margin-bottom: 40px; }
  .facility-grid { gap: 20px; }
}

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