/* =========================================================
   Harmony Residence — Greenvest Capital
   Stylesheet
   ========================================================= */

:root {
  --bg: #faf8f4;
  --bg-alt: #f1ece3;
  --surface: #ffffff;
  --ink: #1c1c1c;
  --ink-soft: #4a4a4a;
  --muted: #8a8378;
  --line: #e6dfd1;
  --gold: #b8935a;
  --gold-dark: #8f6f3f;
  --shadow: 0 20px 60px -20px rgba(28, 28, 28, .25);
  --radius: 4px;
  --maxw: 1180px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  background: rgba(250, 248, 244, .96);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .3s ease;
}
.scrolled .brand-logo { filter: none; }

.nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  transition: color .3s ease;
}
.scrolled .nav { color: var(--ink); }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #fff;
  letter-spacing: .08em;
}
.scrolled .lang-switch { color: var(--ink); }
.lang-switch button {
  background: transparent;
  border: none;
  padding: 4px 2px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: .55;
  transition: opacity .25s, color .25s;
}
.lang-switch button.active { opacity: 1; color: var(--gold); }
.lang-switch button:hover { opacity: 1; }
.lang-sep { opacity: .4; }

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
  letter-spacing: .05em;
  transition: color .3s ease;
}
.scrolled .phone-link { color: var(--ink); }
.phone-link:hover { color: var(--gold); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: background .3s, transform .3s, opacity .3s;
  margin: 0 auto;
}
.scrolled .menu-toggle span { background: var(--ink); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: hero-zoom 18s ease-out forwards;
}
@keyframes hero-zoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,.35) 40%, rgba(20,20,20,.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 140px 24px 100px;
  max-width: 900px;
}
.hero-mark {
  display: block;
  width: auto;
  height: clamp(48px, 6vw, 78px);
  max-width: 86vw;        /* safety on narrow viewports */
  object-fit: contain;    /* keep aspect ratio if max-width clamps */
  margin: 0 auto 36px;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .92;
  margin: 0 0 48px;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
  font-family: var(--font-sans);
  font-weight: 500;
}
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  opacity: .7;
  z-index: 2;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .005em;
  margin: 0 0 20px;
  color: var(--ink);
}
.section-head { margin-bottom: 60px; }
.section-head.center { text-align: center; max-width: 740px; margin-left: auto; margin-right: auto; }
.section-intro {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.grid-2.align-center { align-items: center; }

.lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 400;
}
.col-text p { color: var(--ink-soft); }

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.image-frame::before {
  content: "";
  position: absolute;
  top: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold);
  z-index: -1;
  border-radius: var(--radius);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

.stats {
  display: flex;
  gap: 40px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* =================================================
   INTERACTIVE ANSAMBLU
   ================================================= */
.ansamblu-interactive {
  position: relative;
  margin: 0 auto 28px;
  max-width: 1180px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  isolation: isolate;
}
.ansamblu-base {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.ansamblu-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none; /* let img show; we re-enable on hotspots */
}
.dim-layer {
  fill: rgba(10, 10, 10, .34);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.ansamblu-interactive.is-active .dim-layer { opacity: 1; }

.hotspots polygon {
  fill: rgba(184, 147, 90, 0);
  stroke: rgba(184, 147, 90, 0);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
  cursor: pointer;
  transition: fill .25s ease, stroke .25s ease;
}
.hotspots polygon:hover {
  fill: rgba(184, 147, 90, .12);
  stroke: rgba(255, 255, 255, .85);
}
/* gentle status-based tint on hover */
.hotspots polygon[data-status="disponibila"]:hover { stroke: #b8e6b8; }
.hotspots polygon[data-status="rezervata"]:hover   { stroke: #f0c878; }
.hotspots polygon[data-status="vanduta"]:hover     { stroke: #f0a8a8; }
.hotspots polygon[data-status="proiectare"]:hover  { stroke: #bcd3e6; }

/* tooltip */
.ansamblu-tooltip {
  position: absolute;
  top: 0; left: 0;
  background: rgba(20, 20, 20, .94);
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, calc(-100% - 14px));
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s ease;
}
.ansamblu-tooltip[hidden] { display: none; }
.ansamblu-tooltip:not([hidden]) { opacity: 1; }
.ansamblu-tooltip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(20, 20, 20, .94);
}
.tooltip-id {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
}
.tooltip-status {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.ansamblu-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 20px;
  letter-spacing: .04em;
}
.ansamblu-hint svg { opacity: .7; }

.section-cta-row {
  text-align: center;
  margin: 32px 0 80px;
}

/* =================================================
   UNIT MODAL
   ================================================= */
.unit-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  animation: modal-fade .25s ease;
}
.unit-modal[hidden] { display: none; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.unit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(4px);
}
.unit-modal__panel {
  position: relative;
  background: var(--bg);
  border-radius: 6px;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 90px rgba(0,0,0,.45);
  animation: modal-slide .3s ease;
  overflow: hidden;
}
@keyframes modal-slide {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.unit-modal__header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.unit-modal__title-wrap { flex: 1; min-width: 0; }
.unit-modal__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
  color: var(--ink);
}
.unit-modal__sub {
  margin: 4px 0 0;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.unit-modal__badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
}
.unit-modal__badge[data-status="disponibila"] { color: #2e7a3a; border-color: #b8e0c0; background: #ebf8ee; }
.unit-modal__badge[data-status="rezervata"]   { color: #8a5e0f; border-color: #f0d6a0; background: #fbf2dd; }
.unit-modal__badge[data-status="vanduta"]     { color: #8a2424; border-color: #e0b0b0; background: #f8e7e7; }
.unit-modal__badge[data-status="proiectare"]  { color: #2a5d8a; border-color: #bcd3e6; background: #e8f1fb; }

.unit-modal__close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
  transition: all .2s;
}
.unit-modal__close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.unit-modal__body {
  flex: 1;
  min-height: 420px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.unit-modal__pdf {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  display: block;
}
.unit-modal__pdf[hidden] { display: none; }

.unit-modal__empty {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px;
  color: var(--muted);
  text-align: center;
}
.unit-modal__empty[hidden] { display: none; }
.unit-modal__empty svg { color: var(--gold); opacity: .7; }
.unit-modal__empty-msg {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 440px;
}

.unit-modal__footer {
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.unit-modal__footer[hidden] { display: none; }
.unit-modal__footer .btn {
  display: inline-flex;
  align-items: center;
}

/* prevent body scroll while modal open */
body.modal-open { overflow: hidden; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 16px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 16px; height: 1px;
  background: var(--gold);
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--bg);
  padding: 48px 36px;
  transition: background .3s ease, transform .3s ease;
}
.feature:hover { background: var(--surface); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px;
  color: var(--gold);
  margin-bottom: 24px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink);
}
.feature p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }

/* ============ LOCATION ============ */
.loc-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-top: 36px;
}
.loc-group h4 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: .005em;
}
.loc-group ul { list-style: none; margin: 0; padding: 0; }
.loc-group li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.loc-group li:last-child { border-bottom: none; }
.loc-time {
  display: inline-block;
  min-width: 56px;
  font-weight: 500;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .04em;
}

.map-frame { aspect-ratio: 4/5; }
.map-canvas {
  width: 100%;
  height: 100%;
  background: var(--bg-alt);
  border-radius: var(--radius);
  position: relative;
  z-index: 0;
  isolation: isolate; /* contain Leaflet's internal z-indexes so they can't beat the header */
}

/* Tile color softening — keep the map quiet so the markers pop */
.leaflet-tile-pane { filter: saturate(.7) contrast(.95); }

/* Custom markers */
.map-pin {
  position: relative;
  width: 22px; height: 22px;
}
.map-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.map-pin.gold::before { background: var(--gold); }
.map-pin.dark::before { background: #1c1c1c; }
.map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: .9;
}

.leaflet-tooltip.map-label {
  background: rgba(28,28,28,.92);
  color: #fff;
  border: 0;
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  border-radius: 2px;
}
.leaflet-tooltip.map-label::before { display: none; }

.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255,255,255,.75) !important;
}

.map-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 0;
  letter-spacing: .03em;
}
.map-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.map-dot.gold { background: var(--gold); }
.map-dot.dark { background: #1c1c1c; }
.map-divider { color: var(--muted); margin: 0 4px; }

/* ============ CONTACT ============ */
.center-narrow { max-width: 880px; margin: 0 auto; text-align: center; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 50px 0 40px;
  text-align: left;
}
.contact-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  padding: 26px 24px;
  border: 1px solid var(--line);
  transition: all .3s ease;
  border-radius: var(--radius);
}
.contact-card:hover:not(.non-link) {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-card.non-link { cursor: default; }
.contact-icon {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 50%;
  color: var(--gold);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label {
  display: block;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-card strong { font-weight: 500; color: var(--ink); font-size: 16px; }
.closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  margin: 30px 0 0;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #161616;
  color: #b9b3a8;
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.footer-brand img {
  height: 44px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-brand p { margin: 0; font-size: 14px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: #b9b3a8; transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.footer-meta { font-size: 13px; }
.footer-meta p { margin: 0 0 6px; }

/* =================================================
   UNITS LISTING PAGE (unitati.html)
   ================================================= */
.page-units-listing { padding-top: 110px; }

.units-hero {
  background: var(--bg-alt);
  padding: 70px 0 50px;
  text-align: center;
}
.units-hero .section-title { margin-bottom: 12px; }
.units-hero .section-intro { max-width: 640px; margin: 0 auto; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 0;
}
.filter-chip {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-sans);
  font-weight: 500;
}
.filter-chip:hover { border-color: var(--gold); color: var(--ink); }
.filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-chip .count {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  opacity: .6;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 60px 0 90px;
}
.unit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
  position: relative;
}
.unit-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.unit-card.is-locked {
  opacity: .72;
  cursor: default;
}
.unit-card.is-locked:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.unit-card__preview {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.unit-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.unit-card:not(.is-locked):hover .unit-card__preview img { transform: scale(1.04); }
.unit-card__icon {
  color: var(--gold);
  opacity: .25;
}
.unit-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.unit-card__badge[data-status="disponibila"] { color: #2e7a3a; border-color: #b8e0c0; background: #ebf8ee; }
.unit-card__badge[data-status="rezervata"]   { color: #8a5e0f; border-color: #f0d6a0; background: #fbf2dd; }
.unit-card__badge[data-status="vanduta"]     { color: #8a2424; border-color: #e0b0b0; background: #f8e7e7; }
.unit-card__badge[data-status="proiectare"]  { color: #2a5d8a; border-color: #bcd3e6; background: #e8f1fb; }

.unit-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.unit-card__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  line-height: 1;
  color: var(--ink);
}
.unit-card__type {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.unit-card__cta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.unit-card__cta svg { transition: transform .25s; }
.unit-card:not(.is-locked):hover .unit-card__cta svg { transform: translateX(4px); }
.unit-card.is-locked .unit-card__cta { color: var(--muted); }

/* =================================================
   UNIT DETAIL PAGE (units/P*.html)
   ================================================= */
.page-unit-detail { padding-top: 110px; }

.breadcrumb {
  background: var(--bg-alt);
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .03em;
  border-bottom: 1px solid var(--line);
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 10px; opacity: .5; }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

.unit-hero-image {
  background: var(--bg-alt);
  padding: 36px 0 0;
}
.unit-hero-image__frame {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.unit-hero-image__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.unit-detail-hero {
  background: var(--bg-alt);
  padding: 36px 0 40px;
}
.unit-detail-hero .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.unit-detail-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.05;
  color: var(--ink);
}
.unit-detail-hero .unit-type {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.unit-detail-hero .status-pill {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.unit-detail-hero .status-pill[data-status="disponibila"] { color: #2e7a3a; border-color: #b8e0c0; background: #ebf8ee; }
.unit-detail-hero .status-pill[data-status="rezervata"]   { color: #8a5e0f; border-color: #f0d6a0; background: #fbf2dd; }
.unit-detail-hero .status-pill[data-status="vanduta"]     { color: #8a2424; border-color: #e0b0b0; background: #f8e7e7; }

.unit-actions {
  padding: 20px 0 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.unit-actions .btn { display: inline-flex; align-items: center; gap: 8px; }

.unit-pdf-wrap {
  background: var(--bg-alt);
  padding: 0 0 80px;
}
.unit-pdf-frame {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: 0;
  display: block;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.unit-pdf-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.mobile-pdf-fallback {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  margin-top: 12px;
}
.mobile-pdf-fallback svg { color: var(--gold); opacity: .8; margin-bottom: 14px; }
.mobile-pdf-fallback h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.mobile-pdf-fallback p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

/* =================================================
   UNIT GALLERY + LIGHTBOX
   ================================================= */
.unit-gallery-wrap {
  background: var(--bg);
  padding: 60px 0;
}
.unit-gallery-head {
  text-align: center;
  margin-bottom: 30px;
}
.unit-gallery-head .eyebrow { margin-bottom: 8px; }
.unit-gallery-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

.unit-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.unit-gallery a {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: zoom-in;
}
.unit-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.unit-gallery a:hover img { transform: scale(1.04); }
.unit-gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.2));
  opacity: 0;
  transition: opacity .25s;
}
.unit-gallery a:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 10, 10, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  animation: lb-fade .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  top: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__close { right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 24px; }
.lightbox__nav.next { right: 24px; }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  letter-spacing: .12em;
}

.unit-nav {
  padding: 36px 0 60px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.unit-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  transition: color .25s;
}
.unit-nav a:hover { color: var(--gold); }
.unit-nav .next { margin-left: auto; }

/* =================================================
   RESPONSIVE — units pages
   ================================================= */
@media (max-width: 900px) {
  .units-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .unit-detail-hero .container { grid-template-columns: 1fr; align-items: start; }
  .unit-pdf-frame { height: 65vh; min-height: 480px; }
  .unit-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lightbox { padding: 16px; }
  .lightbox__nav.prev { left: 8px; }
  .lightbox__nav.next { right: 8px; }
}

@media (max-width: 640px) {
  .units-grid { grid-template-columns: 1fr; gap: 16px; }
  .units-hero { padding: 50px 0 36px; }
  .filter-bar { gap: 6px; }
  .filter-chip { padding: 7px 12px; font-size: 11px; }
  .unit-card__title { font-size: 24px; }

  .unit-detail-hero { padding: 36px 0 28px; }
  .unit-pdf-frame { display: none; }
  .mobile-pdf-fallback { display: block; }
  .unit-pdf-wrap { padding-bottom: 50px; }
  .unit-actions .btn { flex: 1; justify-content: center; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 50px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .checklist { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .loc-groups { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .unit-modal { padding: 12px; }
  .unit-modal__panel { max-height: 96vh; }
  .unit-modal__header { padding: 16px 20px; gap: 12px; flex-wrap: wrap; }
  .unit-modal__title { font-size: 22px; }
  .unit-modal__body { min-height: 60vh; }
  .unit-modal__pdf { min-height: 60vh; }
  .ansamblu-tooltip { padding: 8px 10px; }
  .tooltip-id { font-size: 16px; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 40px;
    color: var(--ink);
    transition: right .35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.15);
  }
  .nav.open { right: 0; }
  .scrolled .nav { color: var(--ink); }
  .menu-toggle { display: flex; }
  .nav a { font-size: 17px; }
  .phone-link span { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; gap: 24px; }
  .stat-num { font-size: 38px; }
  .hero-mark { height: 44px; margin-bottom: 24px; }
  .hero-cta .btn { padding: 14px 24px; font-size: 12px; }
  .feature { padding: 36px 28px; }
}
