/* =====================================================
   Zele Apartments - one-page site
   Hand-written CSS, mobile-first, no frameworks.
   ===================================================== */

:root {
  --navy:       #12314e;
  --navy-deep:  #0b2137;
  --sea:        #2571a8;
  --sea-light:  #eaf3f9;
  --sand:       #f8f4ed;
  --amber:      #e9a13b;
  --amber-dark: #cf8a25;
  --ink:        #24313e;
  --gray:       #5b6b7a;
  --gray-light: #93a1ad;
  --line:       #e2e9ef;
  --white:      #ffffff;
  --ok-bg:      #ddf3e4;
  --ok-line:    #86d3a2;
  --busy-bg:    #fde3e3;
  --busy-line:  #f0a0a0;
  --past-bg:    #f1f4f6;
  --on-dark:    #b9c6d2; /* muted text on navy backgrounds (footer, cta band) */
  --error:      #a03030;
  --scrim-rgb:  8, 18, 30; /* rgba() base for hero-arrow/lightbox scrims */
  --radius:     10px;
  --shadow:     0 2px 14px rgba(18, 49, 78, .10);
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-disp:  'Cormorant Garamond', Georgia, serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

/* Anchor sections stop below the sticky nav */
/* Matches the fixed nav's 60px height (.nav-inner) exactly — keep in sync,
   along with the scrollspy reference line in main.js (nav height + 8px) */
section[id], main[id] { scroll-margin-top: 60px; }

/* Skip link: parked off-screen, slides into view on keyboard focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 400; /* above the sticky nav */
  padding: .7rem 1.2rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 0; text-decoration: none; }
main[id]:focus { outline: none; } /* skip-link target; not interactive itself */

/* Text for screen readers only (e.g. the calendar day-state labels) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Inline SVG symbol sprite (flag icons): stays in the DOM, takes no layout space */
.svg-sprite { position: absolute; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section.alt { background: var(--sand); }
.section.sea { background: var(--sea-light); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }

.section-title {
  font-family: var(--font-disp);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.section-sub { color: var(--gray); margin-top: .6rem; }

/* "Category: ★★★" line (official 3-star rating) */
.apt-category {
  margin-top: .9rem;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
}
.apt-category .stars {
  /* Not --amber (1.99:1) or --amber-dark (2.62:1): the official rating is a
     meaningful graphic and needs ≥3:1 on --sand. #b87911 measures 3.31:1. */
  color: #b87911;
  font-size: 1.15rem;
  letter-spacing: .15em;
  vertical-align: -1px;
}

.tag {
  display: inline-block;
  background: var(--sea-light);
  color: var(--sea);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }

.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: var(--amber-dark); }

.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }

/* ---------- Nav ---------- */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 33, 55, .92);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-disp);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.nav-logo:hover { text-decoration: none; }

#nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

#nav-links a {
  color: #cfdae5;
  font-size: .92rem;
  font-weight: 500;
}
#nav-links a:hover, #nav-links a.active { color: var(--white); text-decoration: none; }

.nav-lang { display: flex; gap: .3rem; margin-left: .5rem; }

.lang-btn {
  background: transparent;
  border: none;
  padding: .3rem .35rem; /* invisible touch area around the flag */
  border-radius: 4px;
  line-height: 0;
  opacity: .55;
  filter: grayscale(.6);
  transition: opacity .2s, filter .2s;
}
.lang-btn svg { display: block; border-radius: 2px; }
/* bar space is always reserved (transparent when inactive) so toggling causes no layout shift */
.lang-btn::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: .3rem;
  border-radius: 2px;
  background: transparent;
  transition: background-color .2s;
}
.lang-btn:hover { opacity: 1; filter: none; }
.lang-btn.active { opacity: 1; filter: none; }
.lang-btn.active::after { background: var(--amber); }

#nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  padding: .4rem;
}

/* 940px, not lower: the desktop bar (logo + 7 links + flags) needs ~875px —
   below that "The House" wraps and misaligns the bar (review 2026-07-14, M6). */
@media (max-width: 940px) {
  #nav-toggle { display: block; }

  #nav-links {
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    padding: .5rem 0 1rem;
    display: none;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .25);
  }
  #nav-links.open { display: flex; }

  #nav-links a {
    display: block;
    padding: .8rem 1.5rem;
    font-size: 1rem;
  }

  .nav-lang { margin: .6rem 1.5rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(92vh, 720px);
  min-height: 480px;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Midpoint .25, not .15: the subtitle sits in this band and washes out on
     the brightest slides (hero_03/hero_06) below that (review 2026-07-14, L11). */
  background: linear-gradient(180deg, rgba(11,33,55,.35) 0%, rgba(11,33,55,.25) 45%, rgba(11,33,55,.55) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  line-height: 1.1;
}

.hero-sub {
  color: #e8eef4;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .8rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

.hero-ctas { margin-top: 2rem; display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: rgba(var(--scrim-rgb), .45);
  color: var(--white);
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.hero-arrow:hover { background: rgba(var(--scrim-rgb), .75); }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

@media (max-width: 640px) {
  .hero-arrow { width: 40px; height: 40px; font-size: 1.3rem; }
  .hero-prev { left: .5rem; }
  .hero-next { right: .5rem; }
}

.hero-dots {
  position: absolute;
  bottom: 1.4rem; left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0; /* the dots' 7px padding rings provide the spacing (24px tap pitch) */
}

/* 24×24 tap target (WCAG 2.5.8), 10px visible dot: the 7px padding ring is
   an invisible hit area — background-clip keeps the paint on the content box */
.hero-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .45);
  background-clip: content-box;
  transition: background .3s, transform .3s;
  padding: 7px;
}
/* background-color, not the background shorthand: the shorthand would reset
   background-clip and paint the whole 24px hit area */
.hero-dot.active { background-color: var(--white); transform: scale(1.25); }

/* ---------- House / features ---------- */
.house-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .house-grid { grid-template-columns: 1fr 1fr; }
}

.house-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.house-photos button {
  border: none;
  padding: 0;
  background: var(--past-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  position: relative;
}
.house-photos button.hidden { display: none; }
.house-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s;
}
.house-photos button:hover img { opacity: .85; }

.house-text .section-title { margin-top: .7rem; }
.house-text p { color: var(--gray); margin-top: 1rem; }

.house-dist-title {
  margin-top: 1.5rem;
  font-family: var(--font-disp);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}
.house-dist {
  margin-top: .7rem;
  display: grid;
  gap: .2rem;
  font-family: var(--font-disp);
  font-size: 1.1rem; /* Cormorant Garamond runs small; compensate to keep it readable */
  line-height: 1.35;
  color: var(--gray);
}
.house-dist li { display: flex; gap: .7rem; align-items: baseline; }
.house-dist strong {
  flex: 0 0 3.6rem;
  text-align: right;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
  margin-top: 2.6rem;
}
@media (min-width: 640px)  { .features { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(6, 1fr); } }

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem .8rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
}
.feature svg { margin: 0 auto .55rem; display: block; color: var(--sea); /* icon stroke via currentColor */ }

/* ---------- Apartments ---------- */
.apts {
  display: grid;
  gap: 1.8rem;
}
@media (min-width: 900px) { .apts { grid-template-columns: repeat(3, 1fr); } }

.apt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.apt-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }

/* Cover image doubles as a lightbox trigger — strip the button chrome */
.apt-cover-btn {
  display: block;
  width: 100%; height: 100%;
  padding: 0;
  border: none;
  background: none;
}

.apt-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.apt-card:hover .apt-cover img { transform: scale(1.05); }

.apt-cover .tag {
  position: absolute;
  top: .8rem; left: .8rem;
  background: rgba(255, 255, 255, .92);
}

.apt-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

/* Cormorant defaults to old-style (lowercase-height) figures: in short serif
   strings like "A1" or "€ 95" the 1 reads as a dotless "ı" while Inter shows
   full-height digits elsewhere. The subset woff2 retains the lnum feature. */
.apt-name, .apt-price strong, .rates-table .price { font-variant-numeric: lining-nums; }

.apt-name {
  font-family: var(--font-disp);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
}


.apt-facts {
  margin-top: .9rem;
  font-family: var(--font-disp);
  font-size: 1.1rem; /* Cormorant runs small — same compensation as .house-dist */
  line-height: 1.35; /* .house-dist spec; the inherited 1.65 body leading read too airy */
  font-variant-numeric: lining-nums; /* full-height digits, see .apt-name note above */
  color: var(--ink);
  display: grid;
  gap: .2rem;
}
/* Two columns (not a float) so a wrapped value line stays in the value
   column instead of running under the label — the Beds row wraps on phones */
.apt-facts > div { display: grid; grid-template-columns: 6.2rem 1fr; }
.apt-facts dt { font-weight: 600; color: var(--gray); }

/* flex: 1 absorbs description-length differences so facts, thumbs and price align across cards */
.apt-desc { color: var(--gray); font-size: .92rem; margin-top: .5rem; flex: 1; }

.apt-price {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--gray);
}
/* Serif price figure echoes .apt-name; size, not bold weight, carries the
   emphasis (Cormorant's small x-height needs the extra rem vs the old 1.25 Inter) */
.apt-price strong {
  font-family: var(--font-disp);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
}

.apt-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
  margin-top: 1rem;
}
.apt-thumbs button {
  border: none;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--past-bg);
  aspect-ratio: 1 / 1;
}
.apt-thumbs img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .2s;
}
.apt-thumbs button:hover img { opacity: .8; }
.apt-thumbs .hidden { display: none; }
.thumb-more { position: relative; }
.more-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 33, 55, .55);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(var(--scrim-rgb), .94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: .8rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: .8rem; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
  position: absolute;
  bottom: 1.2rem; left: 0; right: 0;
  text-align: center;
  color: var(--on-dark);
  font-size: .92rem;
}

/* ---------- Rates ---------- */
.rates-box { max-width: 760px; margin: 0 auto; }

.rates-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius); /* rounds the header band's corners */
}

.rates-table { width: 100%; border-collapse: collapse; min-width: 480px; }

.rates-table th, .rates-table td {
  padding: .35rem 1.2rem;
  text-align: center;
  font-size: .95rem;
}

/* Narrow phones: all four columns must fit on screen — a cut-off September
   column looks complete (the wrap's rounded corner hides the truncation) and
   nothing hints that it scrolls (review 2026-07-14, M9). */
@media (max-width: 480px) {
  .rates-table { min-width: 0; }
  .rates-table th, .rates-table td { padding: .35rem .4rem; }
}

.rates-table thead th {
  background: rgba(18, 49, 78, .7); /* --navy at 70%; below ~.65 white text fails WCAG contrast */
  color: var(--white);
  padding-top: .55rem;
  padding-bottom: .55rem;
  font-size: .92rem; /* header matches .cal-tab (availability tabs) */
  font-weight: 600;
}

.rates-table tbody tr + tr { border-top: 1px solid var(--line); }

/* Echoes .apt-price strong (serif figure), scaled down: nine 1.4rem figures
   would turn every cell into a focal point and stretch the rows */
.rates-table .price {
  font-family: var(--font-disp);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.rates-note { margin-top: .7rem; color: var(--gray); font-size: .875rem; }

.terms {
  margin-top: 2.2rem;
  display: grid;
  gap: 0;
}
.terms > div {
  display: flex;
  gap: 1.2rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.terms > div:last-child { border-bottom: none; }
.terms dt {
  width: 12rem;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: .55rem;
}
.terms dt svg { flex-shrink: 0; color: var(--sea); /* icon stroke via currentColor */ }
.terms dd { color: var(--gray); }
.terms dd .note { display: block; font-size: .8rem; margin-top: .15rem; }

@media (max-width: 520px) {
  .terms > div { flex-direction: column; gap: .15rem; }
  .terms dt { width: auto; }
  .terms dd { margin: 0; padding-left: calc(18px + .55rem); } /* align with label text after the icon */
}

/* ---------- Availability calendar ---------- */
.cal-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
  font-size: .875rem;
  color: var(--gray);
}
.cal-legend span { display: flex; align-items: center; gap: .45rem; }
.cal-swatch {
  width: 15px; height: 15px;
  border-radius: 4px;
  display: inline-block;
}
.cal-swatch.avail  { background: var(--ok-bg);   border: 1.5px solid var(--ok-line); }
.cal-swatch.booked { background: var(--busy-bg); border: 1.5px solid var(--busy-line); }
.cal-swatch.arr    { background: linear-gradient(135deg, var(--busy-bg) 50%, var(--ok-bg) 50%); border: 1.5px solid var(--ok-line); }
.cal-swatch.dep    { background: linear-gradient(135deg, var(--ok-bg) 50%, var(--busy-bg) 50%); border: 1.5px solid var(--ok-line); }
.cal-swatch.past   { background: var(--past-bg); border: 1.5px solid var(--line); }

.cal-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.cal-tab {
  min-height: 44px;
  padding: .55rem 1.15rem;
  font-family: var(--font-body);
  font-size: .92rem; /* matches .cal-month-title */
  font-weight: 600;
  color: var(--gray);
  background: transparent;
  border: 1px solid transparent;
  border-top-width: 2px;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: -1px; /* the active tab overlaps the .cal-tabs rule */
  cursor: pointer;
  transition: background .2s, color .2s;
}
.cal-tab:not(.active):hover { color: var(--navy); background: rgba(255, 255, 255, .55); }
.cal-tab.active {
  background: var(--sea-light); /* same as .section.sea, so the open tab merges with the page */
  border-color: var(--line);
  border-top-color: var(--sea);
  color: var(--navy);
}

@media (max-width: 480px) {
  .cal-tab { padding: .55rem .7rem; }
}

.cal-months {
  display: grid;
  gap: .8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px)  { .cal-months { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cal-months { grid-template-columns: repeat(4, 1fr); } }

.cal-wrapper {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem;
}

.cal-month-title {
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
  margin-bottom: .6rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-header {
  text-align: center;
  font-size: .68rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  padding: .2rem 0;
}

.cal-day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: .8rem;
  border-radius: 5px;
}
.cal-day.empty     { background: transparent; }
.cal-day.available { background: var(--ok-bg);   color: #1a6b3c; border: 1px solid var(--ok-line); }
.cal-day.booked    { background: var(--busy-bg); color: var(--error); border: 1px solid var(--busy-line);
                     text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* Changeover days: morning half top-left, evening half bottom-right.
   arrival = guests leave in the morning; departure = guests arrive later that day. */
.cal-day.arrival   { background: linear-gradient(135deg, var(--busy-bg) 50%, var(--ok-bg) 50%);
                     color: var(--ink); border: 1px solid var(--ok-line); }
.cal-day.departure { background: linear-gradient(135deg, var(--ok-bg) 50%, var(--busy-bg) 50%);
                     color: var(--ink); border: 1px solid var(--ok-line); }
.cal-day.past      { background: var(--past-bg); color: var(--gray-light); }
.cal-day.today     { outline: 2px solid var(--sea); outline-offset: -2px; }

.avail-loading { text-align: center; color: var(--gray); }

.cal-note { text-align: center; color: var(--gray); font-size: .92rem; margin-top: 2.2rem; }
.cal-note .btn { margin-top: 1rem; }

/* No-JS fallback notes (contact form + availability calendar) */
.noscript-note {
  text-align: center; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.2rem; font-size: .92rem; line-height: 1.6; margin-bottom: 1.2rem;
}
.noscript-note a { color: var(--sea); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .3rem;
}

.form-field {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-field:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(37, 113, 168, .15);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  /* Booking row: arrival / departure / guests side by side */
  .form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
}

.form-group { margin-bottom: 1.2rem; }

/* Submit button + status message side by side */
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Honeypot field: moved off-screen (not display:none — some bots skip those) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* GDPR-style one-liner tucked under the message textarea */
.form-privacy { font-size: .8rem; color: var(--gray); margin-top: .45rem; }

#form-status { font-size: .92rem; }
#form-status.ok  { color: #1a6b3c; }
#form-status.err { color: var(--error); }

/* Single-line items (condensed 2026-07-15, tightened 2026-07-16): the icon carries
   the meaning, the .label is .visually-hidden in the markup (kept for screen readers + i18n) */
.contact-item { display: flex; align-items: center; gap: .8rem; margin-bottom: .55rem; }

.contact-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sea-light);
  color: var(--sea); /* icon stroke via currentColor */
  display: grid;
  place-items: center;
}

.contact-item .value { font-size: .92rem; color: var(--ink); } /* matches the form fields beside it; .95rem read bigger than body copy (rem > 15px body) */
.contact-item a { font-weight: 600; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-top: 1.4rem;
}
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ---------- Nearby ---------- */
.nearby-grid {
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 640px)  { .nearby-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nearby-grid { grid-template-columns: repeat(4, 1fr); } }

.nearby-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.nearby-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.nearby-card .body { padding: 1.1rem 1.2rem 1.3rem; }

.nearby-card h3 {
  font-family: var(--font-disp);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}
.nearby-card .dist {
  font-size: .78rem;
  color: var(--gray);
  font-weight: 600;
  margin: .15rem 0 .5rem;
}
.nearby-card p { font-size: .875rem; color: var(--gray); }

/* ---------- Guest reviews ---------- */
.reviews-grid {
  display: grid;
  gap: 1.6rem;
  margin-bottom: 2.2rem;
}
/* three cards: skip a 2-col step, it would strand an orphan card */
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
}
.review-card blockquote {
  font-size: .875rem; /* matches .nearby-card p */
  color: var(--gray);  /* ditto */
  flex: 1; /* pins the figcaption to the card bottom, like .apt-desc */
}
/* Big decorative marks on their own lines around the quote: “ left above, ” right
   below. Same top-hanging “ in both languages on purpose: as standalone decoration
   the low Croatian „ reads like a stray comma (and would collide with the negative
   margin, which relies on the glyph's empty lower half); the closing ” is identical
   in both conventions anyway. */
.review-card blockquote::before,
.review-card blockquote::after {
  display: block;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--sea);
}
.review-card blockquote::before {
  content: "\201C";
  margin-bottom: -0.6rem; /* pulls the quote text up under the tall glyph's empty lower half */
}
.review-card blockquote::after {
  content: "\201D";
  margin-top: -0.35rem; /* smaller tuck than the top: this glyph sits at the TOP of its
                           line box, pulling harder would overlap the last text line */
}
.review-stars {
  color: var(--amber);
  font-size: .95rem;
  letter-spacing: .18em;
  margin-bottom: .4rem;
}
.review-card figcaption {
  margin-top: .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray);
}
.reviews-links {
  text-align: center;
  font-size: .95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.cta-band h2 {
  font-family: var(--font-disp);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--white);
  font-weight: 600;
}
.cta-band p { color: var(--on-dark); margin: .5rem 0 1.6rem; }
.cta-band .btns { display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
#main-footer {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding: 3rem 0 1.5rem;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo {
  font-family: var(--font-disp);
  font-size: 1.45rem; /* the .nav-logo spec — one brand-mark size */
  font-weight: 600;
  color: var(--white);
}

.footer-tagline { margin: .5rem 0 1rem; }

#main-footer .nav-lang { margin: 1rem 0 0; }

.footer-heading {
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: .8rem;
}

.footer-link { color: var(--on-dark); display: inline-block; padding: .15rem 0; }
.footer-link:hover { color: var(--white); }

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.4rem;
  text-align: center;
  font-size: .8rem;
  color: #8296a8;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
  .apt-cover img { transition: none; }
}
