/* ============================================================
   base.css - structural styles shared by every design.
   Colours / fonts / shapes come from CSS variables (themes/*.css).
   Page composition, header/footer look and section rhythm come
   from designs/*.css - each design restyles the blocks below.
   ============================================================ */

:root {
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg: #f6f5f2;
  --bg-alt: #edebe6;
  --surface: #ffffff;
  --surface-alt: #f3f1ec;
  --text: #23201b;
  --text-soft: #5f594f;
  --text-faint: #9a938a;
  --accent: #3a6ea5;
  --accent-hover: #2f5b8a;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(58, 110, 165, 0.14);
  --border: rgba(35, 32, 27, 0.12);
  --border-strong: rgba(35, 32, 27, 0.25);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow: 0 1px 3px rgba(20, 18, 14, 0.07);
  --shadow-lg: 0 12px 40px rgba(20, 18, 14, 0.16);

  --header-bg: rgba(255, 255, 255, 0.92);
  --header-text: var(--text);
  --hero-bg: linear-gradient(140deg, #e8e4dc 0%, #f6f5f2 100%);
  --hero-text: var(--text);
  --footer-bg: #23201b;
  --footer-text: #cfc9c0;

  --cal-free-bg: transparent;
  --cal-booked: #d95d5d;
  --cal-booked-soft: rgba(217, 93, 93, 0.28);
  --cal-pending: #e5b93c;
  --cal-pending-soft: rgba(229, 185, 60, 0.32);
  --cal-selected: var(--accent);
  --cal-selected-soft: rgba(58, 110, 165, 0.16);

  --ok: #17753e;
  --ok-bg: rgba(40, 160, 90, 0.18);
  --ok-solid: #1d9e75;
  --err: #a03636;
  --err-bg: rgba(180, 70, 70, 0.14);
  --warn-text: #7c5e08;
  --warn-note: #a1741a;

  --max-width: 1120px;
  --hdr-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: var(--accent); }
iframe { border: 0; display: block; }
ul { list-style: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }
.loading, .empty-state { text-align: center; color: var(--text-faint); font-size: 13.5px; padding: 26px 0; }

/* ── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-contrast);
  border: 1px solid var(--accent); border-radius: var(--radius-sm);
  padding: 12px 22px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--text); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-book::before { content: '🗓'; }
.btn-airbnb { background: #ff5a5f; border-color: #ff5a5f; color: #fff; }
.btn-airbnb:hover { background: #e04a4f; border-color: #e04a4f; }

/* ── header (block) ────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg); color: var(--header-text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.hdr-in {
  max-width: var(--max-width); margin: 0 auto; padding: 0 22px;
  min-height: var(--hdr-h); display: flex; align-items: center; gap: 18px;
}
.hdr-brand {
  display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: inherit;
  font-family: var(--font-display); font-size: 22px; letter-spacing: .2px; cursor: pointer;
  background: none; border: none; padding: 0; text-align: left;
}
.hdr-logo { font-size: 20px; }
.hdr-sub { display: none; font-family: var(--font-body); font-size: 12px; color: var(--text-faint); }
.hdr-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-nav a {
  color: var(--text-soft); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 11px; border-radius: 20px; cursor: pointer; white-space: nowrap;
  transition: color .15s, background .15s;
}
.hdr-nav a:hover { color: var(--text); background: var(--surface-alt); }
.hdr-nav a.active { color: var(--accent); }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.hdr-nav + .hdr-tools { margin-left: 0; }
.hdr-brand + .hdr-tools { margin-left: auto; }
.hdr-phone { color: inherit; text-decoration: none; font-size: 13.5px; white-space: nowrap; font-weight: 500; }
.hdr-cta { padding: 9px 16px; font-size: 13.5px; }
.hdr-burger {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 19px; cursor: pointer; align-items: center; justify-content: center; line-height: 1;
}
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--border-strong); border-radius: 20px; padding: 2px; }
.lang-btn {
  border: none; background: transparent; color: var(--text-soft);
  font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 16px; cursor: pointer; line-height: 1.3;
}
.lang-btn.active { background: var(--accent); color: var(--accent-contrast); }

/* mobile: nav collapses behind the burger */
@media (max-width: 900px) {
  .hdr-burger { display: inline-flex; }
  .hdr-phone { display: none; }
  .hdr-nav {
    position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 70;
    background: var(--surface); flex-direction: column; justify-content: center; gap: 6px;
    padding: 40px 24px; display: none;
  }
  body.menu-open .hdr-nav { display: flex; animation: fadeIn .2s ease both; }
  .hdr-nav a { font-size: 22px; font-family: var(--font-display); padding: 10px 14px; }
  .hdr-nav .nav-close { display: inline-flex; }
  body.menu-open .hdr-burger { position: relative; z-index: 80; }
  /* keep the header row on one line: the title shrinks, the booking button
     and phone are dropped (the page has booking buttons anyway) */
  .hdr-in { gap: 10px; flex-wrap: nowrap; }
  .hdr-brand { flex: 1 1 auto; min-width: 0; font-size: 19px; }
  .hdr-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hdr-tools { flex: 0 0 auto; gap: 8px; }
  .hdr-burger { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  .hdr-cta { display: none; }
  .lang-btn { padding: 6px 9px; }
}
/* very narrow phones: keep 7 calendar columns inside narrow cards */
@media (max-width: 400px) {
  .cal-grid { gap: 2px; }
  .cal-day { min-height: 0; font-size: 12px; }
  .contact-line { flex-wrap: wrap; }
}
/* A blurred / transformed header would trap the full-screen menu inside its
   own box (backdrop-filter and transform create a containing block for
   position:fixed). Drop them while the menu is open - on every screen size,
   the Brochure design uses the overlay menu on desktop too. */
body.menu-open .hdr, body.menu-open .br-top, body.menu-open .be-pill, body.menu-open .st-hdr {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transform: none !important;
}
.nav-close {
  display: none; position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 26px; cursor: pointer; align-items: center; justify-content: center;
}

/* ── generic sections ──────────────────────────────────── */
.main { display: block; }
[id^="sec-"] { scroll-margin-top: calc(var(--hdr-h) + 12px); }
.sec { padding: 46px 0; }
.sec-in { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }
.sec-title {
  font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.2;
  margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px;
}
.sec-num { display: none; font-family: var(--font-body); font-size: 12px; letter-spacing: 2px; color: var(--text-faint); font-weight: 700; }
.sec-lead { color: var(--text-soft); font-size: 15.5px; max-width: 620px; margin-top: -8px; margin-bottom: 20px; }

/* apartment title bits */
.apt-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -.2px; }
.apt-sub { font-size: 17px; color: var(--text-soft); margin-top: 8px; max-width: 620px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: var(--text-soft); }
.meta-line .price { color: var(--accent); font-weight: 700; }

/* facts grid */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.fact {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 2px;
}
.fact-ico { font-size: 18px; line-height: 1.2; }
.fact-val { font-weight: 700; font-size: 15px; }
.fact-lbl { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .6px; }

/* CTA box */
.cta-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.cta-price { display: flex; align-items: baseline; gap: 6px; }
.cta-price strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--text); line-height: 1; }
.cta-price span { color: var(--text-soft); font-size: 14px; }
.cta-box .btn { width: 100%; }
.cta-or { text-align: center; font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }
.cta-note { font-size: 12.5px; color: var(--text-faint); text-align: center; line-height: 1.5; }
.cta-avail { font-size: 13.5px; color: var(--ok); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.cta-avail::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-solid); }

/* ── gallery ───────────────────────────────────────────── */
.gal-empty {
  aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; font-size: 60px; opacity: .55;
}
.gal-big, .gal-thumb, .gal-item {
  background-size: cover; background-position: center; background-color: var(--bg-alt);
  cursor: zoom-in; position: relative; overflow: hidden;
}
.gal-main .gal-big { aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: var(--shadow); }
.gal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gal-thumb { flex: 0 0 auto; width: 78px; height: 58px; border-radius: var(--radius-sm); border: 2px solid transparent; opacity: .75; cursor: pointer; }
.gal-thumb.active, .gal-thumb:hover { opacity: 1; border-color: var(--accent); }
/* prev / next on the big photo (Classic, Catalog) */
.gal-arrow {
  position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; z-index: 2;
  border: none; background: rgba(255,255,255,.92); color: #1d1a16; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.3);
  opacity: 0; transition: opacity .15s, transform .15s;
}
.gal-arrow:hover { transform: scale(1.06); }
.gal-arrow.prev { left: 12px; }
.gal-arrow.next { right: 12px; }
.gal-big:hover .gal-arrow { opacity: .95; }
@media (hover: none) { .gal-arrow { opacity: .9; } }

/* ── scrollers: hidden scrollbar + arrows + drag ───────────── */
.scroller { position: relative; min-width: 0; max-width: 100%; }
[data-scroller] { scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
[data-scroller]::-webkit-scrollbar { display: none; }
[data-scroller].is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
[data-scroller].is-dragging > * { pointer-events: none; }
.scr-btn {
  position: absolute; z-index: 4; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg); font-size: 26px; line-height: 1; cursor: pointer; padding: 0;
  display: none; align-items: center; justify-content: center; opacity: .94; transition: opacity .15s, transform .15s;
}
.scr-btn:hover { opacity: 1; transform: scale(1.06); }
.scroller.scr-x .scr-btn { top: 50%; margin-top: -22px; }
.scroller.scr-x .scr-btn.prev { left: 10px; }
.scroller.scr-x .scr-btn.next { right: 10px; }
.scroller.scr-y .scr-btn { left: 50%; margin-left: -18px; width: 36px; height: 36px; font-size: 18px; }
.scroller.scr-y .scr-btn.prev { top: 6px; }
.scroller.scr-y .scr-btn.next { bottom: 6px; }
.scroller.has-prev .scr-btn.prev, .scroller.has-next .scr-btn.next { display: flex; }
.scroller.scr-y .scr-btn svg { transform: rotate(90deg); }
/* chevron icons: centred exactly, whatever the font */
.chev { display: block; flex: none; }
.scr-btn, .gal-arrow, .cal-nav, .lightbox-arrow, .sl-arrow { padding: 0; }
.scroller.scr-y .scr-btn .chev { width: 18px; height: 18px; }
.cal-nav .chev { width: 18px; height: 18px; }
.gal-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(15,13,10,.6); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(4px);
}
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 10px; }
.gal-grid .gal-item { border-radius: var(--radius-sm); }
.gal-grid .gal-item:first-child { grid-column: span 2; grid-row: span 2; }
.gal-grid .gal-item:nth-child(6n+4) { grid-column: span 2; }
.gal-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; cursor: grab; }
.gal-strip .gal-item { flex: 0 0 min(72vw, 560px); aspect-ratio: 4 / 3; border-radius: var(--radius); scroll-snap-align: start; }
.gal-stack { display: flex; flex-direction: column; gap: 14px; }
.gal-stack .gal-item { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.gal-item:hover, .gal-big:hover { filter: brightness(1.04); }
@media (max-width: 760px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gal-grid .gal-item:nth-child(6n+4) { grid-column: span 1; }
}

/* ── about / lists ─────────────────────────────────────── */
.about-text { color: var(--text-soft); font-size: 15.5px; white-space: pre-line; max-width: 720px; }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px 22px; margin-top: 20px; }
.highlights li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.highlights li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; }
.sub-title { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 26px 0 10px; }
.rules { display: flex; flex-direction: column; gap: 6px; color: var(--text-soft); font-size: 14px; }
.rules li { display: flex; gap: 9px; }
.rules li::before { content: '·'; color: var(--text-faint); font-weight: 800; }

.amen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px; }
.amen {
  display: flex; align-items: center; gap: 10px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.amen-ico { font-size: 17px; width: 22px; text-align: center; }
.amen-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.amen-chip {
  font-size: 12.5px; color: var(--text-soft); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 11px; background: var(--surface-alt);
}

/* ── location ──────────────────────────────────────────── */
.loc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.loc-text { color: var(--text-soft); font-size: 15px; white-space: pre-line; }
.loc-addr { margin: 16px 0 12px; font-weight: 600; color: var(--text); font-size: 14.5px; }
.loc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg-alt); }
.map iframe { width: 100%; height: 340px; }
.map-empty { height: 200px; display: flex; align-items: center; justify-content: center; color: var(--text-faint); }
/* two-click map placeholder (Google loads only after consent) */
.map-consent {
  min-height: 300px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background-color: var(--surface-alt);
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 18px 18px;
}
.map-consent-in { max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-lg); }
.map-consent-ico { font-size: 30px; }
.map-consent-title { font-family: var(--font-display); font-size: 20px; }
.map-consent-text { font-size: 13px; color: var(--text-soft); line-height: 1.5; margin: 0; }
.map-consent-link { font-size: 13px; color: var(--text-soft); }

/* privacy policy page */
.privacy { max-width: 760px; padding-top: 30px; padding-bottom: 60px; }
.privacy .apt-title { font-size: clamp(28px, 4vw, 38px); margin-top: 8px; }
.privacy-updated { color: var(--text-faint); font-size: 13px; margin: 8px 0 18px; }
.privacy p, .privacy li { color: var(--text-soft); font-size: 15px; line-height: 1.65; margin-bottom: 10px; }
.privacy ul { padding-left: 20px; list-style: disc; margin-bottom: 12px; }
.privacy .sub-title { margin-top: 30px; }
.fill-me { background: var(--cal-pending-soft); color: var(--warn-text); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--text); }
@media (max-width: 800px) { .loc { grid-template-columns: 1fr; } }

/* ── calendar (read-only) ──────────────────────────────── */
.cal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.leg-swatch { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--border); }
.leg-swatch.free { background: var(--surface); }
.leg-swatch.booked { background: var(--cal-booked-soft); border-color: var(--cal-booked); }
.cal-nav {
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex-shrink: 0;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-soft); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav:hover:not(:disabled) { background: var(--surface-alt); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cal-months[data-months="2"] { grid-template-columns: 1fr 1fr; }
.cal-months[data-months="3"] { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .cal-months[data-months="2"], .cal-months[data-months="3"] { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .cal-months[data-months="3"] { grid-template-columns: 1fr 1fr; } }
.cal-month-label { font-family: var(--font-display); font-size: 17px; text-align: center; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--text-faint); font-weight: 600; padding: 4px 0; }
.cal-day {
  position: relative; aspect-ratio: 1; min-height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--cal-free-bg); border: 1px solid transparent; user-select: none;
}
.cal-day.empty { visibility: hidden; }
.cal-day.past { color: var(--text-faint); opacity: .4; }
.cal-day .num { position: relative; z-index: 3; }
.cal-day.today .num { font-weight: 800; text-decoration: underline; }
.cal-day .ov { position: absolute; top: 0; bottom: 0; z-index: 1; background: var(--cal-booked-soft); }
.cal-day .ov.full { left: 0; right: 0; }
.cal-day .ov.left { left: 0; right: 50%; }
.cal-day .ov.right { left: 50%; right: 0; }
.cal-day.booked .num { color: var(--text-faint); text-decoration: line-through; }
.cal-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--text-soft); }
.cal-next-free { color: var(--ok); font-weight: 600; }
.cal-synced { color: var(--text-faint); }
.cal-hint { font-size: 12.5px; color: var(--text-faint); margin-top: 8px; }
.busy-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.busy-list li { display: flex; align-items: center; gap: 10px; }
.busy-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cal-booked); flex-shrink: 0; }
.busy-list .bl-n { color: var(--text-faint); font-size: 12.5px; }

/* ── contact ───────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 34px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 10px; }
.contact-line {
  display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none;
  font-size: 15px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-line .ci { font-size: 18px; width: 24px; text-align: center; }
.contact-line small { display: block; font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .6px; }
.contact-line .copy-email { margin-left: auto; }
a.contact-line:hover { border-color: var(--accent); }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-fallback { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.social-links a { text-decoration: none; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .form-row2 { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--text-soft); letter-spacing: .2px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 14.5px; outline: none;
  transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input[readonly] { background: var(--surface-alt); color: var(--text-soft); }
.form-hint { font-size: 12.5px; color: var(--text-faint); }
.form-error { color: var(--err); font-size: 13px; display: none; }
.form-error.show { display: block; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

/* ── other apartments ──────────────────────────────────── */
.others-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.other-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.other-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.other-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: var(--bg-alt); }
.other-body { padding: 14px 16px 16px; }
.other-name { font-family: var(--font-display); font-size: 19px; }
.other-meta { font-size: 13px; color: var(--text-soft); margin-top: 4px; }
.other-meta .price { color: var(--accent); font-weight: 700; }

/* ── footer (block) ────────────────────────────────────── */
.ftr { background: var(--footer-bg); color: var(--footer-text); padding: 40px 0 26px; margin-top: 30px; }
.ftr-in { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }
.ftr-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.ftr-brand { font-family: var(--font-display); font-size: 22px; }
.ftr-brand small { display: block; font-family: var(--font-body); font-size: 13px; opacity: .7; margin-top: 4px; }
.ftr-title { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .6; margin-bottom: 10px; font-weight: 700; }
.ftr-line { font-size: 14px; opacity: .88; margin-bottom: 4px; }
.ftr-line a { color: inherit; text-decoration: none; }
.ftr-line a:hover { text-decoration: underline; }
.ftr-nav { display: flex; flex-direction: column; gap: 4px; }
.ftr-nav a { color: inherit; text-decoration: none; font-size: 14px; opacity: .85; cursor: pointer; }
.ftr-nav a:hover { opacity: 1; text-decoration: underline; }
.ftr-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px;
  font-size: 12.5px; opacity: .6;
}
.ftr-bottom a { color: inherit; }
@media (max-width: 700px) { .ftr-cols { grid-template-columns: 1fr; } }

/* ── lightbox ──────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(10, 9, 7, 0.9);
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 14px; right: 20px;
  background: none; border: none; color: #fff; font-size: 38px; cursor: pointer; z-index: 2;
}
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.28); }
.lightbox-arrow.prev { left: 16px; }
.lightbox-arrow.next { right: 16px; }
.lightbox-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 13px; }

/* ── lock screen / auth ────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow); animation: fadeUp .4s ease both;
}
.auth-card h1 { font-family: var(--font-display); font-size: 24px; text-align: center; margin-bottom: 4px; font-weight: 500; }
.auth-sub { text-align: center; font-size: 13px; color: var(--text-faint); margin-bottom: 20px; }
.auth-link { display: block; text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--text-faint); cursor: pointer; text-decoration: underline; background: none; border: none; width: 100%; }
.auth-card .form-field { margin-bottom: 12px; }
.auth-card .btn { width: 100%; }

/* ── showroom panel ────────────────────────────────────── */
#showroom-panel { position: fixed; right: 0; top: 40%; z-index: 300; font-family: var(--font-body); }
#showroom-toggle {
  position: absolute; right: 0; top: 0;
  width: 46px; height: 46px; border: none; cursor: pointer;
  border-radius: 12px 0 0 12px; font-size: 21px;
  background: var(--accent); color: var(--accent-contrast);
  box-shadow: var(--shadow-lg);
}
#showroom-drawer {
  position: fixed; right: -260px; top: 50%; transform: translateY(-50%);
  width: 244px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px;
  transition: right .25s ease; visibility: hidden;
  max-height: min(90vh, calc(100vh - 20px)); overflow-y: auto;
}
#showroom-panel.open #showroom-drawer { right: 46px; visibility: visible; }
.sr-title { font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.sr-sub { font-size: 11.5px; color: var(--text-faint); margin-bottom: 10px; }
.showroom-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 6px;
  cursor: pointer; font-size: 13px; color: var(--text); text-align: left;
}
.showroom-item:hover { background: var(--surface-alt); }
.showroom-item.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sr-swatch { display: flex; gap: 3px; }
.sr-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--border-strong); }
.sr-reset {
  width: 100%; margin-top: 4px; background: none;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 7px; font-size: 12px; color: var(--text-soft); cursor: pointer;
}
.sr-reset:hover { background: var(--surface-alt); }
.sr-section {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-faint); margin: 10px 0 6px;
}
.sr-lay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 4px; }
.showroom-lay {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 4px; cursor: pointer;
  font-size: 11px; color: var(--text-soft);
}
.showroom-lay:hover { background: var(--surface-alt); }
.showroom-lay.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--text); }
.sr-lay-icon { font-size: 15px; line-height: 1; }

.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0; }
.ct-grid label, .ct-row { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--text-soft); }
.ct-row { margin-top: 7px; }
.ct-grid input[type="color"] {
  width: 100%; height: 30px; border: 1px solid var(--border-strong);
  border-radius: 6px; background: var(--surface); padding: 1px; cursor: pointer;
}
.ct-row select {
  width: 100%; padding: 6px 8px; font-size: 12px;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--surface); color: var(--text); font-family: inherit;
}
.ct-row input[type="range"] { width: 100%; }

/* ── admin (admin.html uses base.css too) ──────────────── */
.admin-body { font-size: 15px; }
.admin-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 0; }
.admin-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.admin-title { font-family: var(--font-display); font-size: 19px; }
.admin-tools { display: flex; align-items: center; gap: 10px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 20px; letter-spacing: .4px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.muted { background: var(--bg-alt); color: var(--text-soft); }
.badge.ical { background: var(--cal-booked-soft); color: var(--err); }
.tabs {
  display: flex; gap: 4px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px; margin: 18px 0; overflow-x: auto;
}
.tab {
  flex: 1; min-width: 90px; padding: 9px 8px; text-align: center;
  border: none; background: transparent; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-soft); cursor: pointer; white-space: nowrap;
}
.tab.active { background: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.card-title { font-size: 13.5px; font-weight: 700; color: var(--text-soft); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); letter-spacing: .3px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card .form-field { margin-bottom: 12px; }
.card-hint { font-size: 13px; color: var(--text-faint); margin: -4px 0 12px; line-height: 1.5; }
.fieldset-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); margin: 18px 0 10px; }
.form-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .form-row3, .form-row4 { grid-template-columns: 1fr 1fr; } }
.row-item {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 8px; background: var(--surface); flex-wrap: wrap;
}
.row-item.ical { border-left: 4px solid var(--cal-booked); }
.row-item.manual { border-left: 4px solid var(--text-faint); }
.row-main { flex: 1; min-width: 180px; }
.row-name { font-weight: 600; font-size: 14.5px; }
.row-meta { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; word-break: break-all; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.btn-xs {
  padding: 6px 12px; font-size: 12.5px; font-weight: 600;
  border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
}
.btn-xs:hover { background: var(--surface-alt); }
.btn-xs.ok { background: var(--ok-solid); border-color: var(--ok-solid); color: #fff; }
.btn-xs.danger:hover { background: var(--err-bg); color: var(--err); border-color: var(--err); }
.succ-msg { color: var(--ok); font-size: 13px; margin-top: 8px; display: none; }
.succ-msg.show { display: block; }
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(20, 18, 14, 0.55); align-items: center; justify-content: center; padding: 18px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius);
  width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  padding: 24px; animation: fadeUp .25s ease both;
}
.modal h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 16px; font-weight: 500; }
.modal-btns { display: flex; gap: 10px; margin-top: 16px; }
.modal-btns .btn { flex: 1; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.photo-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.photo-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo-item .cover-badge {
  position: absolute; top: 5px; left: 5px; background: var(--accent);
  color: var(--accent-contrast); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 9px;
}
.photo-item .photo-actions { position: absolute; inset: auto 0 0 0; display: flex; background: rgba(15, 13, 10, 0.62); }
.photo-item .photo-actions button { flex: 1; background: none; border: none; color: #fff; font-size: 11px; padding: 5px 2px; cursor: pointer; }
.photo-item .photo-actions button:hover { background: rgba(255,255,255,0.14); }
.color-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.color-opt { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.color-opt.sel { border-color: var(--text); }
.apt-admin-thumb { width: 62px; height: 46px; border-radius: 6px; flex-shrink: 0; background-size: cover; background-position: center; background-color: var(--surface-alt); }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-soft); margin-bottom: 12px; }
.checkbox-row input { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--text-soft); }
.chip.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); font-weight: 600; }
.admin-cal .cal-day { cursor: pointer; }
.admin-cal .cal-day .ov.manual { background: rgba(120,120,120,.35); }
.admin-cal .cal-day.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.code-box {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; word-break: break-all;
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
}
.admin-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .admin-two { grid-template-columns: 1fr; } }

@media (max-width: 480px) {
  .auth-card { padding: 26px 20px; }
  .row-actions { width: 100%; }
}
