/* =======================================================
   HUNYADI RESIDENCE — main.css
   Mobile-first, CSS Custom Properties, WCAG 2.1 AA
   ======================================================= */

/* -------- 1. DESIGN TOKENS -------- */
:root {
  --color-navy:      #0f1b2d;
  --color-navy-light:#1a2e47;
  --color-gold:      #c9a267;
  --color-gold-dark: #a07d3e;
  --color-offwhite:  #f7f5f2;
  --color-text:      #1c2430;
  --color-muted:     #5a6677;
  --color-border:    #ddd4c6;
  --color-white:     #ffffff;

  /* Poppins has no Cyrillic/Greek: headings fall through to Inter (self-hosted subsets), then the system */
  --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter',   system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  14px;

  --shadow-card: 0 4px 20px rgba(15, 27, 45, 0.10);
  --shadow-card-hover: 0 12px 36px rgba(15, 27, 45, 0.18);

  --transition-base: 0.22s ease;

  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);

  --header-h: 68px;
}

/* -------- 2. RESET -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* -------- 3. ACCESSIBILITY -------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------- 4. LAYOUT -------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.bg-offwhite { background-color: var(--color-offwhite); }

.text-center { text-align: center; }

.about-photo img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-photo--collage img { max-height: none; object-fit: contain; }

.travel-gallery { padding-top: 0; }
/* Mobile: swipeable carousel showing each photo whole; >=700px: 3-column grid */
.travel-carousel { position: relative; }
.travel-grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}
.travel-grid::-webkit-scrollbar { display: none; }
.travel-grid picture {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--color-offwhite);
  border-radius: var(--radius-md);
}
.travel-grid img {
  width: 100%;
  height: min(72vh, 520px);
  object-fit: contain;
  border-radius: var(--radius-md);
}
.carousel-btn {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 27, 45, 0.78);
  color: var(--color-gold);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background var(--transition-base), opacity var(--transition-base);
}
.carousel-btn:hover { background: var(--color-navy); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn--prev { inset-inline-start: 0.5rem; }
.carousel-btn--next { inset-inline-end: 0.5rem; }
.carousel-count { text-align: center; margin-top: 0.75rem; font-size: 0.9rem; color: var(--color-muted); }

@media (min-width: 700px) {
  .travel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; overflow: visible; }
  .travel-grid picture { background: none; }
  .travel-grid img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: var(--shadow-card);
  }
  .travel-carousel .carousel-btn, .travel-carousel .carousel-count { display: none; }
}

.two-col-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* -------- 5. TYPOGRAPHY -------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; margin-bottom: 0.5rem; }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 0.5rem;
}

/* -------- 6. BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.75em 1.6em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
  white-space: nowrap;
  min-height: 44px; /* WCAG touch target */
}
.btn:hover   { transform: translateY(-2px); }
.btn:active  { transform: translateY(0); }

.btn-gold {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}
.btn-gold:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  box-shadow: 0 6px 20px rgba(201, 162, 103, 0.45);
}

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

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
}

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

.btn-full { width: 100%; white-space: normal; text-align: center; } /* long labels (e.g. "Appeler +40 …") wrap instead of overflowing */
.btn-sm   { padding: 0.5em 1.1em; font-size: 0.875rem; }

/* -------- 7. HEADER -------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  height: var(--header-h);
  transition: background var(--transition-base), box-shadow var(--transition-base);
  /* Transparent by default — header-scroll.js adds .scrolled */
}

.site-header.scrolled {
  background: var(--color-navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Wordmark */
.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.wordmark-main { font-size: 1.15em; }
.wordmark-sub  { font-size: 0.72em; letter-spacing: 0.18em; color: var(--color-gold); }
.wordmark--light { color: var(--color-white); }

/* Primary nav */
.primary-nav { display: none; }
@media (min-width: 900px) {
  .primary-nav { display: block; }
  .primary-nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
  }
  .primary-nav a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-base), background var(--transition-base);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .primary-nav a:hover,
  .primary-nav a[aria-current="page"] {
    color: var(--color-white);
    background: rgba(255,255,255,0.10);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language picker (custom listbox, js/lang-picker.js) — shows 5 rows, scrolls for the rest */
:root { --picker-item-h: 44px; }

.lang-picker {
  position: relative;
  display: inline-block;
  min-width: 4.6rem;          /* reserved before hydration: no layout shift */
  min-height: 44px;
}
.lang-picker--footer { min-width: 11.5rem; }

.lang-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-picker--footer .lang-picker__trigger {
  border-color: rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}
.lang-picker__trigger:hover { border-color: rgba(255, 255, 255, 0.6); }
.lang-picker__chevron { flex-shrink: 0; }
.lang-picker__trigger[aria-expanded="true"] .lang-picker__chevron { transform: rotate(180deg); }

.lang-picker__panel {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 100%;
  width: max-content;
  max-width: calc(100vw - 2 * var(--container-pad));
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}
.lang-picker__panel[hidden] { display: none; }
.lang-picker--footer .lang-picker__panel {
  top: auto;
  bottom: calc(100% + 6px);
  inset-inline-start: 0;
  inset-inline-end: auto;
}

.lang-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: calc(5 * var(--picker-item-h));   /* exactly 5 rows, whatever the number of languages */
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-offwhite);
}
.lang-picker__list::-webkit-scrollbar { width: 8px; }
.lang-picker__list::-webkit-scrollbar-track { background: var(--color-offwhite); }
.lang-picker__list::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 4px; }

.lang-picker__list [role="option"] {
  display: flex;
  align-items: center;
  min-height: var(--picker-item-h);
  padding-inline: 1rem;
  color: var(--color-text);
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
}
.lang-picker__list [role="option"].is-active { background: var(--color-offwhite); }
.lang-picker__list [role="option"][aria-selected="true"] { font-weight: 600; color: var(--color-navy); }
.lang-picker__list [role="option"][aria-selected="true"]::after {
  content: "✓";
  margin-inline-start: auto;
  padding-inline-start: 0.9rem;
  color: var(--color-gold-dark);
}

/* bottom fade while more languages are hidden below */
.lang-picker__panel::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 18px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  opacity: 0;
}
.lang-picker__panel.has-more::after { opacity: 1; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-white);
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (min-width: 900px) { .hamburger { display: none; } }

/* Mobile nav open state */
@media (max-width: 899px) {
  .primary-nav.nav-open {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-navy);
    z-index: 850;
    overflow-y: auto;
    padding: 1.5rem var(--container-pad);
  }
  .primary-nav.nav-open ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    list-style: none;
  }
  .primary-nav.nav-open a {
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
    color: var(--color-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* -------- 8. SLIDE-IN PANEL -------- */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 45, 0.55);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.panel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-panel {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(85vw, 420px);
  background: var(--color-white);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 32px rgba(0,0,0,0.18);
  overflow: hidden;
}
.nav-panel.open { transform: translateX(0); }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--color-navy);
  flex-shrink: 0;
}
.panel-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-base);
}
.panel-close:hover { color: var(--color-white); }

.panel-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 0;
}

/* Zone accordion items (built by JS) */
.zone-item { border-bottom: 1px solid var(--color-border); }
.zone-toggle {
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  transition: background var(--transition-base);
}
.zone-toggle:hover { background: var(--color-offwhite); }
.zone-toggle[aria-expanded="true"] { color: var(--color-gold-dark); }
.zone-toggle svg {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.zone-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.zone-apt-list {
  display: none;
  list-style: none;
  padding-block: 0.25rem 0.75rem;
  padding-inline: 1.5rem 0;
  background: var(--color-offwhite);
}
.zone-apt-list.open { display: block; }
.zone-apt-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
  padding-inline: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  min-height: 44px;
  transition: color var(--transition-base);
}
.zone-apt-list li:last-child a { border-bottom: none; }
.zone-apt-list a:hover { color: var(--color-gold-dark); }
.apt-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.noscript-zone-list { padding: 1.5rem; list-style: none; }
.noscript-zone-list li { margin-bottom: 1rem; }
.noscript-zone-list a { font-weight: 600; color: var(--color-navy); }

/* -------- 9. HERO -------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero-sentinel {
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the Council Tower (~62% from the left of the photo) in view on narrow screens */
  object-position: 58% center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(15, 27, 45, 0.55) 0%,
    rgba(15, 27, 45, 0.35) 50%,
    rgba(15, 27, 45, 0.70) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--header-h) + 3rem) 5rem;
  max-width: 700px;
}
.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}
.hero-content .eyebrow { color: var(--color-gold); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* -------- 10. FEATURE STRIP -------- */
.feature-strip {
  padding-block: 0;
  position: relative;
  z-index: 10;
  margin-top: -4rem; /* Overlaps hero bottom */
}
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .feature-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-cards { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.feature-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--color-offwhite);
  border-radius: var(--radius-md);
}
.feature-logo picture { display: flex; max-width: 100%; max-height: 100%; }
.feature-logo img {
  max-width: 100%;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.feature-card h3 { color: var(--color-navy); }
.feature-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  flex: 1;
}
.card-link {
  align-self: flex-start;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.card-link:hover { color: var(--color-navy); }

/* -------- 11. ABOUT SECTION -------- */
.about-section { background: var(--color-offwhite); }
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-content .btn { align-self: flex-start; }
.about-content { display: flex; flex-direction: column; gap: 1.25rem; }
.about-content h2 { margin-bottom: 0; }
.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
}
.checklist svg { color: var(--color-gold-dark); flex-shrink: 0; }

/* -------- 12. ZONES SECTION -------- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.text-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover { text-decoration: underline; }

.zones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) { .zones-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .zones-grid { grid-template-columns: repeat(4, 1fr); } }

.zone-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  background: var(--color-white);
}
.zone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.zone-card > a { text-decoration: none; color: inherit; display: block; }
.zone-card-img { aspect-ratio: 4/3; overflow: hidden; }
.zone-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.zone-card:hover .zone-card-img img { transform: scale(1.04); }
.zone-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--color-offwhite);
}
.zone-card-logo picture { display: flex; max-width: 100%; max-height: 100%; }
.zone-card-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.zone-card-body { padding: 1.25rem; }
.zone-card-body p { font-size: 0.88rem; color: var(--color-muted); margin-top: 0.25rem; }

/* -------- 13. FAQ -------- */
.faq-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
  margin-inline: auto;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-gold-dark);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p {
  padding: 0.75rem 1.25rem 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* -------- 14. CTA BAND -------- */
.cta-band {
  background: var(--color-navy);
  color: var(--color-white);
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 1.75rem; }
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------- 15. PAGE HERO (inner pages) -------- */
.page-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding-block: calc(var(--header-h) + 3rem) 3rem;
}
.page-hero h1 { color: var(--color-white); }
.page-hero .eyebrow { color: var(--color-gold); }
.page-hero p { color: rgba(255,255,255,0.8); margin-top: 0.75rem; font-size: 1.1rem; }

/* -------- 16. ABOUT PAGE -------- */
.values-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 600px) { .values-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}
.value-card svg { color: var(--color-gold); margin-bottom: 1rem; }

/* About page: detail blocks + closing statement */
.about-details { padding-top: 0; }
.details-intro { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.details-intro p { color: var(--color-muted); }
.detail-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail-card {
  background: var(--color-offwhite);
  border-inline-start: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
}
.detail-card p { color: var(--color-muted); }
.about-closing { max-width: 760px; margin: 3rem auto 0; text-align: center; }
.about-closing p { color: var(--color-muted); margin-bottom: 1rem; }
.about-closing .about-closing-lead {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--color-navy);
  margin-top: 1.5rem;
}

/* -------- 17. CONTACT PAGE -------- */
.contact-layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) { .contact-layout { max-width: 720px; margin-inline: auto; } }

.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  min-height: 70px;
}
.contact-method-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 16px rgba(201,162,103,0.15);
}
.contact-method-card--static { cursor: default; }
.contact-method-card--static:hover { border-color: var(--color-border); box-shadow: none; }
.contact-method-card svg { flex-shrink: 0; color: var(--color-gold-dark); }
.contact-method-card strong { display: block; font-weight: 600; font-family: var(--font-heading); }
.contact-method-card span { font-size: 0.9rem; color: var(--color-muted); }

.map-placeholder {
  aspect-ratio: 4/3;
  background: var(--color-offwhite);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.contact-form-wrapper h2 { margin-bottom: 0.5rem; }
.contact-form-wrapper > p { color: var(--color-muted); margin-bottom: 1.75rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.field-group { display: flex; flex-direction: column; gap: 0.35rem; }
.field-group label {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-navy);
}
.field-group input,
.field-group select,
.field-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition-base);
  min-height: 44px;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}
.field-group textarea { resize: vertical; min-height: 110px; }

/* -------- 18. APARTMENTS PAGE -------- */
.zone-intro { color: var(--color-muted); margin-bottom: 2rem; max-width: 650px; }
.apt-list-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 600px) { .apt-list-grid { grid-template-columns: repeat(3, 1fr); } }

.apt-list-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  transition: box-shadow var(--transition-base);
}
.apt-list-card:hover { box-shadow: var(--shadow-card-hover); }
.apt-list-card picture img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.apt-list-card-body { padding: 1.25rem; }
.apt-capacity { font-size: 0.9rem; color: var(--color-muted); margin: 0.25rem 0 1rem; }

/* Under-construction cards (Centru) */
.uc-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.uc-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-offwhite);
  color: var(--color-navy);
  text-decoration: none;
  min-height: 44px;
  transition: border-color var(--transition-base);
}
.uc-card:hover { border-color: var(--color-gold); }
.uc-card span { font-size: 0.85rem; color: var(--color-muted); }

.uc-notice { max-width: 640px; text-align: center; }
.booking-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 1.25rem;
  padding-block: 0.5rem;
  padding-inline: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-navy);
  background: var(--color-white);
  min-height: 44px;
}
.booking-rating:hover { border-color: var(--color-gold); }
.rating-score {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding-inline: 0.4rem;
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.rating-text { display: flex; flex-direction: column; line-height: 1.3; font-size: 0.85rem; color: var(--color-muted); }
.rating-text strong { color: var(--color-navy); font-size: 0.95rem; }

.facility-groups { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.facility-group { background: var(--color-offwhite); border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.facility-group h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.facility-group ul { list-style: none; font-size: 0.92rem; }
.facility-group li { padding-block: 0.2rem; padding-inline-start: 1.4rem; position: relative; }
.facility-group li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--color-gold-dark); }
.nearby-list li::before { content: '•'; inset-inline-start: 0.4rem; }
.nearby-list .dist { color: var(--color-muted); white-space: nowrap; margin-inline-start: 0.25rem; }
.nearby-note { color: var(--color-muted); margin-bottom: 1rem; }

.uc-notice .breadcrumb { justify-content: center; }
.uc-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.uc-notice p { color: var(--color-muted); margin-bottom: 1.5rem; }
.uc-notice .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* -------- 19. APARTMENT DETAIL PAGE -------- */
.apt-detail-hero { padding-top: var(--header-h); }
.apt-photos { background: var(--color-navy); }
/* Apartment photo carousel (all screen sizes) */
.gallery-carousel { position: relative; max-width: 1100px; margin-inline: auto; }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track picture { flex: 0 0 100%; scroll-snap-align: center; }
.gallery-track img { width: 100%; height: min(68vh, 600px); object-fit: contain; }
.gallery-carousel .carousel-btn { border: 1px solid rgba(201, 162, 103, 0.6); }
.gallery-carousel .carousel-count { color: rgba(255, 255, 255, 0.85); padding-bottom: 0.75rem; margin-top: 0.25rem; }

.apt-photo-main img { width: 100%; max-height: 65vh; object-fit: cover; }

.apt-detail-layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) { .apt-detail-layout { grid-template-columns: 1fr 380px; } }

.apt-detail-main h1 { margin-bottom: 1rem; }
.apt-detail-desc { color: var(--color-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.apt-detail-main h2 { font-size: 1.3rem; margin-bottom: 1rem; margin-top: 2rem; }
.amenity-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.5rem;
  font-size: 0.95rem;
}
.amenity-list li { padding: 0.4rem 0; }

.apt-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.apt-specs div {
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}
.apt-specs dt { font-size: 0.8rem; color: var(--color-muted); }
.apt-specs dd { font-family: var(--font-heading); font-weight: 600; color: var(--color-navy); font-size: 1.15rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb li + li::before { content: '›'; margin-inline-end: 0.5rem; }
.breadcrumb a { color: var(--color-gold-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.booking-widget {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.price-from { font-size: 1.5rem; font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); }
.booking-note { font-size: 0.875rem; color: var(--color-muted); }

/* -------- 20. FOOTER -------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.8);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.footer-nav ul,
.footer-contact ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a,
.footer-contact a,
.footer-contact li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-block: 1.25rem;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.45); }

/* -------- 21. REVEAL ANIMATION -------- */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1; transform: none; }
}

/* -------- 25. DIRECTION-AWARE ARROWS & RTL (feature 003) -------- */
.card-link::after,
.text-link::after { content: "→"; margin-inline-start: 0.35em; text-decoration: none; display: inline-block; }

/* The wordmark is a Latin brand: keep it left-to-right inside RTL pages */
.wordmark { direction: ltr; }

/* ---- Hebrew and Arabic: the TEXT reads right-to-left, the page layout is NOT mirrored ----
   js/i18n.js keeps <html dir="ltr"> and sets data-text-dir="rtl". Only text blocks change direction
   (menu order, buttons, cards, panel and carousel keep the same layout as in every other language). */
html[data-text-dir="rtl"] :is(p, h1, h2, h3, h4, h5, h6, li, dt, dd, summary, blockquote, label, .eyebrow) {
  direction: rtl;
}
/* "1 / 47" must not be reordered by the bidi algorithm */
html[data-text-dir="rtl"] .carousel-count { direction: ltr; }
/* keep the breadcrumb trail in the same order and with the same separators as other languages */
html[data-text-dir="rtl"] .breadcrumb li { direction: ltr; }

/* -------- 26. PER-LANGUAGE TYPOGRAPHY (feature 003) -------- */
/* CJK, Hebrew and Arabic use system font stacks (no extra web fonts, Constitution III) */
html:lang(zh) {
  --font-heading: 'Poppins', 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
  --font-body:    'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
}
html:lang(ja) {
  --font-heading: 'Poppins', 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif;
  --font-body:    'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif;
}
html:lang(he) {
  --font-heading: 'Segoe UI', 'Arial Hebrew', 'Noto Sans Hebrew', Arial, sans-serif;
  --font-body:    'Segoe UI', 'Arial Hebrew', 'Noto Sans Hebrew', Arial, sans-serif;
}
html:lang(ar) {
  --font-heading: 'Segoe UI', 'Noto Naskh Arabic', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
  --font-body:    'Segoe UI', 'Noto Naskh Arabic', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
}

/* No word spaces in Chinese/Japanese: allow breaks anywhere, roomier line height */
html:lang(zh) body,
html:lang(ja) body {
  line-height: 1.8;
  line-break: strict;
  overflow-wrap: anywhere;
}

/* Letter-spacing breaks Arabic joining; uppercase has no meaning in these scripts */
html:is(:lang(he), :lang(ar), :lang(zh), :lang(ja)) :not(.wordmark, .wordmark *) {
  letter-spacing: 0;
  text-transform: none;
}

/* Long languages (DE, EL, BG, UK, HU): let buttons and nav items wrap instead of overflowing */
html:lang(de) .btn, html:lang(el) .btn, html:lang(bg) .btn, html:lang(uk) .btn, html:lang(hu) .btn { white-space: normal; text-align: center; }
