/* Asociația de Proprietari New Point Villas — shared site chrome
   Direction: minimal monochrome + teal accent (civic / restrained) */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,560;9..144,700&family=Source+Sans+3:wght@400;550;650;700&display=swap");

:root {
  --ink: #141816;
  --muted: #5c6560;
  --line: #d8d9d4;
  --bg: #f4f3ef;
  --surface: #fffcf9;
  --stone: #e6e2da;
  --stone-deep: #ccc5b8;
  --brand: #0a5c54;
  --brand-deep: #063d38;
  --brand-mid: #0d7368;
  --brand-soft: #e4efed;
  --accent-warm: #8f7355;
  --danger: #8b1e1e;
  --ok: #1f5c45;
  --shadow: 0 10px 28px rgba(20, 24, 22, 0.07);
  --radius: 10px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Georgia", serif;
  --nav-h: 64px;
  --max: 1080px;
  --map-max: 1180px;
}

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

html { scroll-behavior: smooth; }

body.site-body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--brand); }
a:hover { color: var(--brand-deep); }

img { max-width: 100%; height: auto; }

/* ——— Site navigation ——— */
/* Lock chrome tokens + typography on .site-nav so page-specific inline
   styles (aga-2026 / regulament / documentatie) cannot restyle the menu or logo. */
.site-nav {
  --ink: #141816;
  --muted: #5c6560;
  --line: #d8d9d4;
  --surface: #fffcf9;
  --brand: #0a5c54;
  --brand-deep: #063d38;
  --brand-soft: #e4efed;
  --shadow: 0 10px 28px rgba(20, 24, 22, 0.07);
  --radius: 10px;
  --display: "Fraunces", "Georgia", serif;
  --nav-font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --nav-link-size: 0.88rem;
  --nav-toggle-size: 0.85rem;
  --nav-logo-size: 1.05rem;
  --nav-logo-sub-size: 0.72rem;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: var(--nav-font);
  font-size: var(--nav-link-size);
  line-height: 1.55;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav .site-logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--brand-deep);
  line-height: 1.15;
  padding: 10px 0;
}
.site-nav .site-logo strong {
  /* Literal stack — never inherit page --display (Libre Franklin on AGA, etc.) */
  font-family: "Fraunces", "Georgia", serif;
  font-size: var(--nav-logo-size);
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-nav .site-logo span {
  font-family: var(--nav-font);
  font-size: var(--nav-logo-sub-size);
  color: var(--muted);
  font-weight: 550;
  font-synthesis: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--nav-font);
  font-weight: 650;
  font-size: var(--nav-toggle-size);
  line-height: 1.55;
  cursor: pointer;
}

.site-nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  align-items: center;
}

.site-nav .site-nav-links a,
.site-nav .site-nav-links a span {
  font-family: var(--nav-font);
  font-weight: 650;
  font-size: var(--nav-link-size);
  line-height: 1.55;
}
.site-nav .site-nav-links a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav .site-nav-links a span {
  color: inherit;
}
.site-nav .site-nav-links a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
/* Active item only — never restyles the nav chrome */
.site-nav .site-nav-links a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

@media (max-width: 960px) {
  .site-nav-toggle { display: inline-flex; align-items: center; margin-left: auto; }
  .site-nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 14px 14px;
    box-shadow: var(--shadow);
    margin-left: 0;
  }
  .site-nav.is-open .site-nav-links { display: flex; }
  .site-nav .site-nav-links a { padding: 12px 14px; border-radius: 10px; }
}

/* ——— Language switcher (page content, not nav) ——— */
.lang-switch-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line, #e6e4df);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 5;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}
.lang-switch-row--auto {
  margin: 0.75rem 0 1rem;
}
.lang-switch-row--gate {
  margin: 0 0 1.25rem;
  justify-content: center;
}
.home-hero .lang-switch-row,
.contact-page-hero .lang-switch-row,
.map-hero .lang-switch-row,
.hero .lang-switch-row {
  margin-top: 0;
  margin-bottom: 1.1rem;
}
.lang-switch-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  flex-shrink: 0;
}
.lang-switch-sep {
  color: var(--stone-deep);
  font-size: 0.78rem;
  user-select: none;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.2;
}
.lang-switch button:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}
.lang-switch button.is-active {
  color: #fff;
  background: var(--brand);
}
.i18n-ro-notice {
  margin: 0.6rem 0 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
}
.i18n-ro-notice[hidden] { display: none !important; }

/* ——— Site footer ——— */
.site-footer {
  margin-top: 48px;
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 40px 18px 28px;
}
.site-footer a { color: #d7efe9; }
.site-footer a:hover { color: #fff; }
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 700;
}
.site-footer p, .site-footer li {
  margin: 0 0 8px;
  font-size: 0.92rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .meta {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 22px; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(10, 92, 84, 0.28);
}
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--brand-deep);
  border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn-ghost-dark {
  background: var(--stone);
  color: var(--brand-deep);
}
.btn-ghost-dark:hover { background: var(--stone-deep); color: var(--brand-deep); }

/* Returning users with a stored token: avoid gate FOUC while auth-check runs.
   Inline head script sets html.npv-session-likely before first paint. */
html.npv-session-likely .site-gate,
html.npv-session-likely .aga-gate {
  display: none !important;
}
html.npv-session-likely .site-content.is-locked,
html.npv-session-likely .aga-content.is-locked {
  display: block !important;
}

/* ——— Site-wide access gate ——— */
.site-gate {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, #e4efed 0%, transparent 55%),
    var(--bg);
}
.site-gate.is-visible { display: flex; }
.site-gate-layout {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(180px, 0.9fr);
  gap: 28px 48px;
  align-items: center;
  width: 100%;
  max-width: 820px;
}
.site-gate-panel {
  width: 100%;
  max-width: 400px;
  padding: 8px 4px 0;
  min-width: 0;
}
.site-gate-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  pointer-events: none;
}
.site-gate-visual .home-hero-tree {
  width: min(100%, 340px);
}
.site-gate-panel .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 14px;
}
.site-gate-panel h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.site-gate-panel > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
}
.site-gate-panel label {
  display: block;
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.site-gate-panel input[type="email"],
.site-gate-panel input[type="text"],
.site-gate-panel input[type="number"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  background: var(--surface);
}
.site-gate-panel .error {
  color: var(--danger);
  font-size: 0.88rem;
  margin: -6px 0 12px;
  display: none;
}
.site-gate-panel .error.is-visible { display: block; }
.site-gate-panel .btn { width: 100%; margin-top: 4px; }
.site-gate-panel .btn.gate-resend { margin-top: 10px; }
.site-gate-panel .gate-back {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}
.site-gate-panel .gate-back:hover { color: var(--brand-deep); }
.site-gate-panel .gate-sent-hint {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--ink);
}
.site-gate-php-hint {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--brand-soft);
  border-radius: 8px;
}
.site-gate-php-hint.is-visible { display: block; }
.site-gate-php-hint code {
  font-size: 0.78rem;
  word-break: break-all;
}
.site-gate-note {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 900px) {
  .site-gate-layout,
  .aga-gate-layout {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 16px;
  }
  .site-gate-visual,
  .aga-gate-visual {
    order: 1;
    min-height: 0;
    max-height: none;
    width: 100%;
    max-width: 300px;
    margin: 8px auto 0;
    opacity: 1;
    align-items: center;
  }
  .site-gate-panel,
  .aga-gate-panel {
    order: 0;
  }
  .site-gate-visual .home-hero-tree,
  .aga-gate-visual .home-hero-tree {
    width: 100%;
    max-width: 280px;
  }
}
@media (max-width: 520px) {
  .site-gate-visual,
  .aga-gate-visual {
    max-width: min(100%, 260px);
  }
}

/* Math CAPTCHA (anti-spam) */
.npv-captcha {
  margin: 4px 0 14px;
  padding: 12px 12px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--stone, #f6f5f2);
}
.npv-captcha-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
}
.npv-captcha-question strong {
  font-variant-numeric: tabular-nums;
}
.npv-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.npv-captcha-input {
  width: 5.5rem !important;
  max-width: 100%;
  margin-bottom: 0 !important;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.npv-captcha-input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.npv-captcha-refresh {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.npv-captcha-refresh:hover {
  color: var(--brand-deep);
}
.npv-captcha-refresh:disabled {
  opacity: 0.55;
  cursor: wait;
}
.site-gate-panel .npv-captcha-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.report-form .npv-captcha {
  margin-top: 4px;
}
.site-content.is-locked { display: none !important; }
.site-lockbar {
  display: none;
  max-width: var(--map-max);
  margin: 0 auto;
  padding: 10px 18px 0;
  justify-content: flex-end;
}
.site-lockbar.is-visible { display: flex; gap: 8px; flex-wrap: wrap; }
.site-lockbar button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.site-lockbar button:hover { color: var(--ink); border-color: var(--brand); }

/* ——— Homepage ——— */
.home-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  overflow: hidden;
  background: transparent;
}
.home-hero--airy {
  border-bottom: 1px solid var(--line);
}
.home-hero--airy::before,
.home-hero--airy::after { display: none; }

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--map-max);
  margin: 0 auto;
  padding: 56px 22px 44px;
  width: 100%;
}
.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  grid-template-areas:
    "hero-lang hero-tree"
    "hero-main hero-tree";
  gap: 16px 40px;
  align-items: start;
}
.home-hero-lang {
  grid-area: hero-lang;
  margin-bottom: 0;
}
.home-hero-main {
  grid-area: hero-main;
  min-width: 0;
}
.home-hero-visual {
  grid-area: hero-tree;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  min-height: 0;
  pointer-events: none;
}
.home-hero-tree {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(100%, 380px);
  margin: 0 auto;
  overflow: visible;
}
.hero-tree-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 420 / 480;
  flex-shrink: 0;
}
.hero-tree-clouds,
.hero-tree-sky,
.hero-tree-fx,
.hero-tree-svg {
  grid-row: unset;
  grid-column: unset;
}
.hero-tree-clouds {
  position: absolute;
  inset: 0 0 auto;
  height: 32%;
  pointer-events: none;
  z-index: 1;
}
.hero-tree-cloud {
  position: absolute;
  display: block;
  height: 12px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(20, 24, 22, 0.05);
  animation: hero-tree-cloud-drift 14s ease-in-out infinite;
}
.hero-tree-cloud::before,
.hero-tree-cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
  box-shadow: inherit;
}
.hero-tree-cloud::before {
  width: 18px;
  height: 18px;
  top: -9px;
  left: 10%;
}
.hero-tree-cloud::after {
  width: 14px;
  height: 14px;
  top: -6px;
  right: 12%;
}
.hero-tree-cloud--1 {
  width: 58px;
  top: 18%;
  left: 8%;
  opacity: 0.88;
  animation-duration: 16s;
}
.hero-tree-cloud--1::before {
  width: 20px;
  height: 20px;
  top: -10px;
  left: 14%;
}
.hero-tree-cloud--1::after {
  width: 16px;
  height: 16px;
  top: -7px;
  right: 18%;
}
.hero-tree-cloud--2 {
  width: 72px;
  top: 4%;
  left: 34%;
  opacity: 0.94;
  animation-duration: 19s;
  animation-delay: -4s;
}
.hero-tree-cloud--2::before {
  width: 22px;
  height: 22px;
  top: -11px;
  left: 18%;
}
.hero-tree-cloud--2::after {
  width: 18px;
  height: 18px;
  top: -8px;
  right: 16%;
}
.hero-tree-cloud--3 {
  width: 46px;
  top: 12%;
  right: 6%;
  left: auto;
  opacity: 0.78;
  animation-duration: 13s;
  animation-delay: -7s;
}
.hero-tree-cloud--3::before {
  width: 16px;
  height: 16px;
  top: -8px;
  left: 12%;
}
.hero-tree-cloud--3::after {
  width: 12px;
  height: 12px;
  top: -5px;
  right: 14%;
}
.hero-tree-cloud--4 {
  width: 52px;
  top: 24%;
  left: 52%;
  opacity: 0;
  animation-duration: 21s;
  animation-delay: -2s;
}
.hero-tree-cloud--4::before {
  width: 17px;
  height: 17px;
  top: -8px;
  left: 16%;
}
.hero-tree-cloud--4::after {
  width: 13px;
  height: 13px;
  top: -5px;
  right: 15%;
}
.hero-tree-cloud--5 {
  width: 64px;
  top: 8%;
  left: 18%;
  opacity: 0;
  animation-duration: 24s;
  animation-delay: -9s;
}
.hero-tree-cloud--5::before {
  width: 21px;
  height: 21px;
  top: -10px;
  left: 20%;
}
.hero-tree-cloud--5::after {
  width: 16px;
  height: 16px;
  top: -7px;
  right: 14%;
}
.hero-tree-sky {
  position: absolute;
  inset: -8% -6% 55%;
  z-index: 0;
  border-radius: 50% 50% 42% 42% / 55% 55% 45% 45%;
  background: radial-gradient(ellipse 90% 80% at 50% 100%, rgba(228, 239, 237, 0.55) 0%, transparent 72%);
  pointer-events: none;
  transition: background 3.2s ease, opacity 1s ease, filter 2.4s ease;
}
.hero-tree-celestial {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 2.8s ease, transform 3.2s ease, background 3.2s ease, box-shadow 3.2s ease, top 3.2s ease, left 3.2s ease, right 3.2s ease;
  box-shadow: none;
}
.hero-tree-cloud {
  transition: background 2.8s ease, box-shadow 2.8s ease, opacity 1.4s ease;
}
.hero-tree-fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.hero-tree-fx-rain,
.hero-tree-fx-snow,
.hero-tree-fx-stars,
.hero-tree-fx-fog,
.hero-tree-fx-lightning {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}
.hero-tree-fx-rain-drop {
  position: absolute;
  top: -12%;
  left: calc((var(--i, 0) * 3.7%) + 2%);
  width: 1px;
  height: 14px;
  background: linear-gradient(to bottom, transparent, rgba(120, 160, 190, 0.55));
  border-radius: 1px;
  animation: hero-tree-rain-fall 0.85s linear infinite;
  animation-delay: calc(var(--i, 0) * -0.07s);
  opacity: 0;
}
.hero-tree-fx-snow-flake {
  position: absolute;
  top: -8%;
  left: calc((var(--i, 0) * 4.6%) + 1%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.45);
  animation: hero-tree-snow-fall 4.5s linear infinite;
  animation-delay: calc(var(--i, 0) * -0.22s);
  opacity: 0;
}
.hero-tree-fx-star {
  position: absolute;
  top: calc(4% + (var(--i, 0) * 1.3%));
  left: calc(6% + ((var(--i, 0) * 17) % 88));
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  opacity: 0;
  animation: hero-tree-star-twinkle 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.35s);
}
.hero-tree-fx-fog {
  background: linear-gradient(to bottom, rgba(180, 190, 195, 0.38) 0%, rgba(210, 215, 218, 0.22) 45%, transparent 85%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
.hero-tree-fx-lightning {
  background: rgba(255, 255, 255, 0);
}

/* —— Time-of-day sky (base atmosphere) —— */
.home-hero-tree[data-tod="dawn"] .hero-tree-sky {
  background:
    radial-gradient(ellipse 70% 55% at 18% 78%, rgba(255, 176, 148, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 95% 85% at 50% 100%, rgba(255, 214, 196, 0.58) 0%, rgba(186, 168, 198, 0.28) 48%, transparent 82%);
}
.home-hero-tree[data-tod="sunrise"] .hero-tree-sky {
  background:
    radial-gradient(ellipse 55% 48% at 22% 72%, rgba(255, 168, 92, 0.7) 0%, transparent 68%),
    radial-gradient(ellipse 95% 85% at 50% 100%, rgba(255, 196, 150, 0.62) 0%, rgba(255, 168, 168, 0.32) 42%, transparent 80%);
}
.home-hero-tree[data-tod="day"] .hero-tree-sky {
  background: radial-gradient(ellipse 90% 80% at 50% 100%, rgba(228, 239, 237, 0.62) 0%, transparent 72%);
}
.home-hero-tree[data-tod="golden"] .hero-tree-sky {
  background:
    radial-gradient(ellipse 60% 50% at 78% 70%, rgba(255, 170, 70, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 95% 85% at 50% 100%, rgba(255, 210, 140, 0.58) 0%, rgba(255, 170, 110, 0.28) 45%, transparent 80%);
}
.home-hero-tree[data-tod="sunset"] .hero-tree-sky {
  background:
    radial-gradient(ellipse 58% 52% at 82% 68%, rgba(255, 120, 64, 0.68) 0%, transparent 68%),
    radial-gradient(ellipse 98% 88% at 50% 100%, rgba(255, 150, 100, 0.55) 0%, rgba(180, 90, 120, 0.32) 48%, transparent 82%);
}
.home-hero-tree[data-tod="dusk"] .hero-tree-sky {
  background:
    radial-gradient(ellipse 70% 60% at 75% 70%, rgba(120, 90, 160, 0.42) 0%, transparent 70%),
    radial-gradient(ellipse 98% 88% at 50% 100%, rgba(70, 70, 110, 0.62) 0%, rgba(40, 48, 78, 0.38) 52%, transparent 84%);
}
.home-hero-tree[data-tod="night"] .hero-tree-sky {
  background: radial-gradient(ellipse 95% 85% at 50% 100%, rgba(28, 38, 52, 0.72) 0%, rgba(18, 26, 38, 0.35) 55%, transparent 82%);
}

/* Weather tints layered on TOD (desaturate / cool without replacing phase) */
.home-hero-tree[data-weather="clear"] .hero-tree-sky {
  filter: none;
}
.home-hero-tree[data-weather="partly"] .hero-tree-sky {
  filter: saturate(0.95) brightness(0.98);
}
.home-hero-tree[data-weather="cloudy"] .hero-tree-sky {
  filter: saturate(0.72) brightness(0.92);
}
.home-hero-tree[data-weather="drizzle"] .hero-tree-sky,
.home-hero-tree[data-weather="rain"] .hero-tree-sky {
  filter: saturate(0.55) brightness(0.88) hue-rotate(8deg);
}
.home-hero-tree[data-weather="snow"] .hero-tree-sky {
  filter: saturate(0.45) brightness(1.05);
}
.home-hero-tree[data-weather="storm"] .hero-tree-sky {
  filter: saturate(0.35) brightness(0.72);
}
.home-hero-tree[data-weather="fog"] .hero-tree-sky {
  filter: saturate(0.5) brightness(0.96);
}
.home-hero-tree[data-tod="night"][data-weather="storm"] .hero-tree-sky,
.home-hero-tree[data-tod="dusk"][data-weather="storm"] .hero-tree-sky {
  filter: saturate(0.3) brightness(0.55);
  background: radial-gradient(ellipse 98% 88% at 50% 100%, rgba(18, 24, 38, 0.82) 0%, rgba(12, 16, 28, 0.45) 55%, transparent 84%);
}

/* Soft sun / moon disc */
.home-hero-tree[data-tod="dawn"] .hero-tree-celestial,
.home-hero-tree[data-tod="sunrise"] .hero-tree-celestial,
.home-hero-tree[data-tod="golden"] .hero-tree-celestial,
.home-hero-tree[data-tod="sunset"] .hero-tree-celestial {
  opacity: 0.9;
  visibility: visible;
  background: radial-gradient(circle at 35% 35%, #fff6d8 0%, #ffb14a 55%, #ff7a3a 100%);
  box-shadow: 0 0 18px rgba(255, 160, 70, 0.55), 0 0 36px rgba(255, 120, 60, 0.28);
}
.home-hero-tree[data-tod="dawn"] .hero-tree-celestial {
  top: 58%;
  left: 14%;
  width: 14px;
  height: 14px;
}
.home-hero-tree[data-tod="sunrise"] .hero-tree-celestial {
  top: 42%;
  left: 18%;
  width: 20px;
  height: 20px;
}
.home-hero-tree[data-tod="golden"] .hero-tree-celestial {
  top: 38%;
  left: auto;
  right: 16%;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 35% 35%, #fff0c8 0%, #ff9a3c 55%, #e86a20 100%);
}
.home-hero-tree[data-tod="sunset"] .hero-tree-celestial {
  top: 52%;
  left: auto;
  right: 12%;
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 35% 35%, #ffd9a0 0%, #ff7a3a 50%, #d94a40 100%);
  box-shadow: 0 0 20px rgba(255, 100, 50, 0.55), 0 0 40px rgba(200, 60, 80, 0.25);
}
.home-hero-tree[data-tod="dusk"] .hero-tree-celestial,
.home-hero-tree[data-tod="night"] .hero-tree-celestial {
  opacity: 0.78;
  visibility: visible;
  top: 18%;
  left: auto;
  right: 18%;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 35% 35%, #f5f3e8 0%, #d8d4c4 70%, #b8b4a4 100%);
  box-shadow: 0 0 10px rgba(220, 225, 240, 0.35);
}
.home-hero-tree[data-tod="day"] .hero-tree-celestial {
  opacity: 0;
  visibility: hidden;
}
.home-hero-tree[data-weather="storm"] .hero-tree-celestial,
.home-hero-tree[data-weather="rain"] .hero-tree-celestial,
.home-hero-tree[data-weather="drizzle"] .hero-tree-celestial,
.home-hero-tree[data-weather="fog"] .hero-tree-celestial {
  opacity: 0.25;
}

.home-hero-tree[data-weather="clear"] .hero-tree-cloud {
  background: rgba(255, 255, 255, 0.78);
}
.home-hero-tree[data-weather="partly"] .hero-tree-cloud {
  background: rgba(255, 255, 255, 0.8);
}
.home-hero-tree[data-weather="cloudy"] .hero-tree-cloud,
.home-hero-tree[data-weather="fog"] .hero-tree-cloud {
  background: rgba(210, 215, 220, 0.88);
  box-shadow: 0 1px 4px rgba(20, 24, 22, 0.08);
}
.home-hero-tree[data-weather="drizzle"] .hero-tree-cloud,
.home-hero-tree[data-weather="rain"] .hero-tree-cloud {
  background: rgba(175, 185, 195, 0.9);
  box-shadow: 0 1px 5px rgba(20, 24, 22, 0.1);
}
.home-hero-tree[data-weather="snow"] .hero-tree-cloud {
  background: rgba(230, 235, 242, 0.92);
}
.home-hero-tree[data-weather="storm"] .hero-tree-cloud {
  background: rgba(130, 140, 155, 0.92);
  box-shadow: 0 2px 6px rgba(10, 14, 22, 0.18);
}

/* TOD cloud warmth / coolness */
.home-hero-tree[data-tod="dawn"] .hero-tree-cloud,
.home-hero-tree[data-tod="sunrise"] .hero-tree-cloud {
  background: rgba(255, 228, 210, 0.82);
  box-shadow: 0 1px 4px rgba(180, 90, 50, 0.08);
}
.home-hero-tree[data-tod="golden"] .hero-tree-cloud {
  background: rgba(255, 232, 196, 0.84);
  box-shadow: 0 1px 4px rgba(180, 100, 40, 0.08);
}
.home-hero-tree[data-tod="sunset"] .hero-tree-cloud {
  background: rgba(255, 200, 180, 0.78);
  box-shadow: 0 1px 4px rgba(160, 60, 50, 0.1);
}
.home-hero-tree[data-tod="dusk"] .hero-tree-cloud {
  background: rgba(140, 140, 170, 0.48);
  box-shadow: none;
}
.home-hero-tree[data-tod="night"] .hero-tree-cloud,
.home-hero-tree[data-daynight="night"] .hero-tree-cloud {
  background: rgba(120, 130, 145, 0.42);
  box-shadow: none;
}
.home-hero-tree[data-tod="dawn"][data-weather="rain"] .hero-tree-cloud,
.home-hero-tree[data-tod="sunrise"][data-weather="rain"] .hero-tree-cloud,
.home-hero-tree[data-tod="golden"][data-weather="rain"] .hero-tree-cloud,
.home-hero-tree[data-tod="sunset"][data-weather="rain"] .hero-tree-cloud,
.home-hero-tree[data-tod="dawn"][data-weather="drizzle"] .hero-tree-cloud,
.home-hero-tree[data-tod="sunrise"][data-weather="drizzle"] .hero-tree-cloud,
.home-hero-tree[data-tod="golden"][data-weather="drizzle"] .hero-tree-cloud,
.home-hero-tree[data-tod="sunset"][data-weather="drizzle"] .hero-tree-cloud {
  background: rgba(190, 170, 165, 0.88);
}
.home-hero-tree[data-tod="dawn"][data-weather="storm"] .hero-tree-cloud,
.home-hero-tree[data-tod="sunrise"][data-weather="storm"] .hero-tree-cloud,
.home-hero-tree[data-tod="golden"][data-weather="storm"] .hero-tree-cloud,
.home-hero-tree[data-tod="sunset"][data-weather="storm"] .hero-tree-cloud {
  background: rgba(130, 120, 130, 0.9);
}
.home-hero-tree[data-weather="cloudy"] .hero-tree-cloud--4,
.home-hero-tree[data-weather="cloudy"] .hero-tree-cloud--5,
.home-hero-tree[data-weather="fog"] .hero-tree-cloud--4,
.home-hero-tree[data-weather="rain"] .hero-tree-cloud--4,
.home-hero-tree[data-weather="drizzle"] .hero-tree-cloud--4,
.home-hero-tree[data-weather="storm"] .hero-tree-cloud--4,
.home-hero-tree[data-weather="storm"] .hero-tree-cloud--5,
.home-hero-tree[data-weather="snow"] .hero-tree-cloud--4 {
  opacity: var(--cloud-opacity, 0.82);
}
.home-hero-tree[data-weather="cloudy"] .hero-tree-cloud,
.home-hero-tree[data-weather="fog"] .hero-tree-cloud {
  animation-duration: 22s;
}
.home-hero-tree[data-weather="clear"] .hero-tree-cloud--2,
.home-hero-tree[data-weather="clear"] .hero-tree-cloud--3 {
  opacity: 0.45;
}
.home-hero-tree[data-weather="clear"] .hero-tree-cloud--1 {
  --cloud-opacity: 0.62;
}
.home-hero-tree[data-weather="drizzle"] .hero-tree-fx-rain,
.home-hero-tree[data-weather="rain"] .hero-tree-fx-rain,
.home-hero-tree[data-weather="storm"] .hero-tree-fx-rain {
  opacity: 1;
  visibility: visible;
}
.home-hero-tree[data-weather="drizzle"] .hero-tree-fx-rain-drop {
  height: 10px;
  opacity: 0.45;
}
.home-hero-tree[data-weather="rain"] .hero-tree-fx-rain-drop,
.home-hero-tree[data-weather="storm"] .hero-tree-fx-rain-drop {
  opacity: 0.72;
}
.home-hero-tree[data-weather="storm"] .hero-tree-fx-rain-drop {
  height: 18px;
  animation-duration: 0.65s;
}
.home-hero-tree[data-weather="snow"] .hero-tree-fx-snow {
  opacity: 1;
  visibility: visible;
}
.home-hero-tree[data-weather="snow"] .hero-tree-fx-snow-flake {
  opacity: 0.85;
}
.home-hero-tree[data-weather="fog"] .hero-tree-fx-fog {
  opacity: 1;
  visibility: visible;
}
.home-hero-tree[data-weather="storm"] .hero-tree-fx-lightning {
  visibility: visible;
  animation: hero-tree-lightning 7s ease-in-out infinite;
}
.home-hero-tree[data-tod="night"][data-weather="clear"] .hero-tree-fx-stars,
.home-hero-tree[data-tod="night"][data-weather="partly"] .hero-tree-fx-stars,
.home-hero-tree[data-tod="dusk"][data-weather="clear"] .hero-tree-fx-stars,
.home-hero-tree[data-tod="dusk"][data-weather="partly"] .hero-tree-fx-stars,
.home-hero-tree[data-daynight="night"][data-weather="clear"] .hero-tree-fx-stars,
.home-hero-tree[data-daynight="night"][data-weather="partly"] .hero-tree-fx-stars {
  opacity: 1;
  visibility: visible;
}
.home-hero-tree[data-tod="dusk"][data-weather="clear"] .hero-tree-fx-stars,
.home-hero-tree[data-tod="dusk"][data-weather="partly"] .hero-tree-fx-stars {
  opacity: 0.55;
}
.home-hero-tree[data-tod="night"][data-weather="clear"] .hero-tree-fx-star,
.home-hero-tree[data-tod="night"][data-weather="partly"] .hero-tree-fx-star,
.home-hero-tree[data-daynight="night"][data-weather="clear"] .hero-tree-fx-star,
.home-hero-tree[data-daynight="night"][data-weather="partly"] .hero-tree-fx-star {
  opacity: 0.55;
}
.home-hero-tree[data-tod="dusk"][data-weather="clear"] .hero-tree-fx-star,
.home-hero-tree[data-tod="dusk"][data-weather="partly"] .hero-tree-fx-star {
  opacity: 0.35;
}
.home-hero-tree[data-season="late-autumn"] .hero-tree-leaves {
  filter: hue-rotate(42deg) saturate(1.12) brightness(1.04);
}
.home-hero-tree[data-daynight="night"] .hero-weather {
  background: rgba(22, 28, 36, 0.82);
  border-color: rgba(120, 140, 160, 0.22);
  color: rgba(230, 235, 240, 0.92);
}
.home-hero-tree[data-daynight="night"] .hero-weather-line,
.home-hero-tree[data-daynight="night"] .hero-weather-line--precip,
.home-hero-tree[data-daynight="night"] .hero-weather-reminder,
.home-hero-tree[data-daynight="night"] .hero-weather-meta {
  color: rgba(220, 228, 235, 0.88);
}
.home-hero-tree[data-daynight="night"] .hero-weather-aqi-label {
  color: rgba(200, 210, 220, 0.65);
}
@keyframes hero-tree-rain-fall {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-4px, 115%, 0); }
}
@keyframes hero-tree-snow-fall {
  0% { transform: translate3d(0, 0, 0); opacity: 0.85; }
  100% { transform: translate3d(8px, 115%, 0); opacity: 0.35; }
}
@keyframes hero-tree-star-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 0.9; transform: scale(1.15); }
}
@keyframes hero-tree-lightning {
  0%, 89%, 91%, 93%, 100% { background: rgba(255, 255, 255, 0); opacity: 0; }
  90% { background: rgba(255, 255, 255, 0.28); opacity: 1; }
  92% { background: rgba(255, 255, 255, 0.12); opacity: 0.6; }
}
.hero-tree-svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero-weather {
  position: static;
  z-index: 4;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 14px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 115, 104, 0.12);
  box-shadow: 0 6px 18px rgba(20, 24, 22, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  font-family: var(--sans);
  pointer-events: auto;
}
.hero-weather-line {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-weather-line--precip {
  margin-top: 2px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-weather-alert {
  margin: 0 0 6px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #7a2e00;
  background: rgba(255, 196, 120, 0.38);
  border: 1px solid rgba(196, 92, 0, 0.22);
}
.hero-weather--alert-hail .hero-weather-alert {
  color: #5b1a6e;
  background: rgba(216, 180, 254, 0.45);
  border-color: rgba(123, 44, 191, 0.28);
}
.hero-weather--alert-thunder .hero-weather-alert {
  color: #4a2800;
  background: rgba(255, 183, 77, 0.42);
  border-color: rgba(180, 83, 9, 0.28);
}
.hero-weather--alert-heavy_rain .hero-weather-alert,
.hero-weather--alert-freezing_rain .hero-weather-alert {
  color: #0c4a6e;
  background: rgba(125, 211, 252, 0.38);
  border-color: rgba(3, 105, 161, 0.22);
}
.hero-weather--alert-heavy_snow .hero-weather-alert {
  color: #1e3a5f;
  background: rgba(224, 242, 254, 0.72);
  border-color: rgba(59, 130, 246, 0.2);
}
.hero-weather-line--aqi {
  margin-top: 2px;
  font-size: 0.86rem;
  font-weight: 600;
}
.hero-weather-aqi-label {
  font-weight: 500;
  color: rgba(20, 24, 22, 0.58);
}
.hero-weather-line--aqi .hero-weather-value {
  font-weight: 600;
}
.hero-weather-reminder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 6px 0 0;
  padding-top: 5px;
  border-top: 1px solid rgba(13, 115, 104, 0.1);
  font-size: 0.72rem;
  line-height: 1.35;
  font-style: italic;
  font-weight: 500;
  color: rgba(20, 24, 22, 0.62);
}
.hero-weather-reminder-icon {
  flex: 0 0 auto;
  width: 0.85em;
  height: 0.85em;
  opacity: 0.72;
}
.hero-weather-reminder-text {
  text-align: left;
}
.hero-weather-meta {
  margin: 5px 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
}
.hero-weather-updated {
  margin-top: 2px;
  font-size: 0.64rem;
  opacity: 0.88;
}
.hero-weather--loading {
  opacity: 0.72;
}
.hero-weather--empty {
  opacity: 0.55;
}
.hero-weather-aqi--1 .hero-weather-line--aqi .hero-weather-value { color: #0a7a45; }
.hero-weather-aqi--2 .hero-weather-line--aqi .hero-weather-value { color: #6b8f00; }
.hero-weather-aqi--3 .hero-weather-line--aqi .hero-weather-value { color: #b8860b; }
.hero-weather-aqi--4 .hero-weather-line--aqi .hero-weather-value { color: #c45c00; }
.hero-weather-aqi--5 .hero-weather-line--aqi .hero-weather-value { color: #c0392b; }
.hero-weather-aqi--6 .hero-weather-line--aqi .hero-weather-value { color: #7b2cbf; }
.hero-weather-aqi--na .hero-weather-line--aqi .hero-weather-value { color: var(--muted); }
.site-gate-visual .hero-weather,
.aga-gate-visual .hero-weather {
  width: 100%;
  margin-top: 8px;
}
@keyframes hero-tree-cloud-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: var(--cloud-opacity, 0.85);
  }
  50% {
    transform: translate3d(7px, -2px, 0);
    opacity: calc(var(--cloud-opacity, 0.85) + 0.08);
  }
}
.hero-tree-cloud--1 { --cloud-opacity: 0.88; }
.hero-tree-cloud--2 { --cloud-opacity: 0.94; }
.hero-tree-cloud--3 { --cloud-opacity: 0.78; }
.hero-tree-ground {
  fill: rgba(10, 92, 84, 0.08);
  opacity: 0;
  transform-origin: 210px 452px;
}
.hero-tree-svg--growing .hero-tree-ground,
.hero-tree-svg--grown .hero-tree-ground,
.hero-tree-svg--static .hero-tree-ground {
  opacity: 1;
}
.hero-tree-svg--growing .hero-tree-ground {
  animation: hero-tree-ground-in 800ms ease-out 0.2s both;
}
.hero-tree-branch {
  fill: none;
  stroke: url(#npv-tree-trunk);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-tree-leaf {
  fill: url(#npv-tree-leaf);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.hero-tree-svg--static .hero-tree-leaf {
  opacity: 0.92;
}
.hero-tree-svg--sway .hero-tree-leaves {
  animation: hero-tree-sway 5.5s ease-in-out infinite;
  transform-origin: 210px 320px;
}
.hero-tree-svg--sway .hero-tree-leaf:nth-child(odd) {
  animation: hero-tree-leaf-sway 4.2s ease-in-out infinite;
}
.hero-tree-svg--sway .hero-tree-leaf:nth-child(even) {
  animation: hero-tree-leaf-sway 4.8s ease-in-out 0.6s infinite reverse;
}
@keyframes hero-tree-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes hero-tree-leaf-in {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
  to {
    opacity: 0.92;
    transform: scale(1);
  }
}
@keyframes hero-tree-ground-in {
  from {
    opacity: 0;
    transform: scaleX(0.4);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
@keyframes hero-tree-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(0.55deg); }
}
@keyframes hero-tree-leaf-sway {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-tree-cloud {
    animation: none !important;
  }
  .hero-tree-sky,
  .hero-tree-celestial,
  .hero-tree-cloud {
    transition: none !important;
  }
  .hero-tree-svg--sway .hero-tree-leaves,
  .hero-tree-svg--sway .hero-tree-leaf {
    animation: none !important;
  }
  .hero-tree-fx-rain-drop,
  .hero-tree-fx-snow-flake,
  .hero-tree-fx-star,
  .hero-tree-fx-lightning {
    animation: none !important;
  }
  .hero-tree-fx-rain,
  .hero-tree-fx-snow {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .home-hero-tree[data-weather="fog"] .hero-tree-fx-fog {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .home-hero-tree[data-tod="night"][data-weather="clear"] .hero-tree-fx-stars,
  .home-hero-tree[data-tod="night"][data-weather="partly"] .hero-tree-fx-stars,
  .home-hero-tree[data-tod="dusk"][data-weather="clear"] .hero-tree-fx-stars,
  .home-hero-tree[data-tod="dusk"][data-weather="partly"] .hero-tree-fx-stars,
  .home-hero-tree[data-daynight="night"][data-weather="clear"] .hero-tree-fx-stars,
  .home-hero-tree[data-daynight="night"][data-weather="partly"] .hero-tree-fx-stars {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .home-hero-tree[data-tod="night"][data-weather="clear"] .hero-tree-fx-star,
  .home-hero-tree[data-tod="night"][data-weather="partly"] .hero-tree-fx-star,
  .home-hero-tree[data-daynight="night"][data-weather="clear"] .hero-tree-fx-star,
  .home-hero-tree[data-daynight="night"][data-weather="partly"] .hero-tree-fx-star {
    animation: none !important;
    opacity: 0.5 !important;
  }
}
.home-brand {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--brand-deep);
  max-width: 18ch;
  animation: fade-up 0.7s ease both;
}
.home-headline {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 550;
  margin: 0 0 8px;
  max-width: 42ch;
  color: var(--ink);
  animation: fade-up 0.7s ease 0.08s both;
}
.home-lede {
  margin: 0 0 6px;
  max-width: 48ch;
  font-size: 0.98rem;
  color: var(--muted);
  animation: fade-up 0.7s ease 0.16s both;
}
.home-address {
  margin: 0 0 22px;
  max-width: 48ch;
  font-size: 0.95rem;
  color: var(--muted);
  animation: fade-up 0.7s ease 0.2s both;
}
.home-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  animation: fade-up 0.7s ease 0.24s both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-map-hero {
  max-width: var(--map-max);
  margin: 0 auto;
  padding: 40px 22px 8px;
}
.home-map-intro {
  margin-bottom: 20px;
}
.home-map-intro h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}
.map-layout--home {
  padding-bottom: 8px;
}

.home-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 22px 16px;
}
.home-section--airy {
  padding-top: 72px;
  padding-bottom: 40px;
}
.home-section h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--brand-deep);
  margin: 0 0 10px;
}
.home-section > .section-lede {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.02rem;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}
.home-about-grid p { margin: 0 0 14px; }
.home-facts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.home-facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin: 12px 0 2px;
}
.home-facts dt:first-child { margin-top: 0; }
.home-facts dd { margin: 0; font-weight: 650; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.quick-links--airy {
  gap: 28px 40px;
  margin-top: 8px;
}
.quick-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 22px 20px 20px;
  border-left: 3px solid var(--brand);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.quick-link:hover {
  background: var(--brand-soft);
  border-color: var(--brand-mid);
}
.quick-link h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--brand-deep);
}
.quick-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.quick-link .go {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand);
}

.docs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.docs-strip p {
  margin: 0;
  flex: 1 1 280px;
  color: var(--muted);
  font-size: 0.95rem;
}

.law-note {
  margin: 40px auto 24px;
  max-width: var(--max);
  padding: 0 18px;
}
.law-note-inner {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 70ch;
}
.law-note-inner strong { color: var(--ink); }

@media (max-width: 900px) {
  .home-hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero-lang"
      "hero-main"
      "hero-tree";
    gap: 14px;
    align-items: stretch;
  }
  .home-hero-lang {
    margin-bottom: 0;
  }
  .home-hero-visual {
    align-self: stretch;
    width: 100%;
    min-height: 0;
    max-height: none;
    margin: 12px 0 0;
    opacity: 1;
    overflow: visible;
  }
  .home-hero-tree {
    width: 100%;
    max-width: none;
  }
  .hero-tree-stage {
    width: min(100%, 260px);
    margin: 0 auto;
  }
  .hero-weather {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 10px 12px 11px;
  }
  .hero-weather-line {
    font-size: 0.88rem;
  }
  .hero-weather-line--aqi {
    font-size: 0.82rem;
  }
  .hero-weather-reminder {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 0.72rem;
    gap: 5px;
  }
  .hero-weather-meta {
    font-size: 0.68rem;
  }
  .hero-weather-updated {
    font-size: 0.66rem;
  }
  .home-ctas {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .home-ctas .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 10px;
    font-size: 0.82rem;
  }
}
@media (max-width: 520px) {
  .hero-tree-stage {
    width: min(100%, 220px);
  }
  .hero-weather {
    padding: 8px 10px 9px;
  }
  .home-ctas .btn {
    padding: 10px 6px;
    font-size: 0.76rem;
  }
}

/* ——— Inner page chrome helpers ——— */
.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 18px 8px;
}
.page-shell > .wrap {
  max-width: none;
  margin: 0;
  padding: 0 0 40px;
}

/* Soften original rounded “card heroes” under site nav */
.page-shell .hero {
  margin-top: 8px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.contact-block h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--brand-deep);
  margin: 0 0 12px;
}
.contact-block p, .contact-block li { margin: 0 0 10px; }
.contact-block ul { padding-left: 1.1rem; margin: 0 0 12px; }
.contact-page-hero {
  padding: 36px 0 12px;
}
.contact-page-hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 10px;
}
.contact-page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--brand-deep);
  margin: 0 0 10px;
}
.contact-page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ——— AGA email/OTP gate ——— */
.aga-gate {
  display: none;
  min-height: calc(100vh - var(--nav-h) - 180px);
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
}
.aga-gate.is-visible { display: flex; }
.aga-gate-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(160px, 0.85fr);
  gap: 24px 40px;
  align-items: center;
  width: 100%;
  max-width: 820px;
}
.aga-gate-panel {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.aga-gate-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  pointer-events: none;
}
.aga-gate-visual .home-hero-tree {
  width: min(100%, 300px);
}
.aga-gate-panel h1 {
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--brand-deep);
  margin: 0 0 8px;
}
.aga-gate-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.aga-gate-panel label {
  display: block;
  font-weight: 650;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.aga-gate-panel input[type="email"],
.aga-gate-panel input[type="text"],
.aga-gate-panel input[type="number"] {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
}
.aga-gate-panel .error {
  color: var(--danger);
  font-size: 0.88rem;
  margin: -4px 0 12px;
  display: none;
}
.aga-gate-panel .error.is-visible { display: block; }
.aga-gate-panel .gate-back {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}
.aga-gate-panel .gate-sent-hint {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--ink);
}
.aga-gate-panel .npv-captcha-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.aga-gate-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}
.aga-content.is-locked { display: none !important; }

.aga-lockbar {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px 0;
  justify-content: flex-end;
}
.aga-lockbar.is-visible { display: flex; }
.aga-lockbar button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.aga-lockbar button:hover { color: var(--ink); border-color: var(--brand); }

/* ——— Hartă / sesizări (minimal map page) ——— */
.map-page .map-shell {
  max-width: var(--map-max);
}

.map-hero {
  padding: 36px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.map-hero .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 12px;
}
.map-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.05;
}
.map-lede {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.02rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 32px;
}

.map-panel-head h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.map-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 1.4em;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.map-toolbar-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-start;
  flex: 1 1 100%;
  justify-content: space-between;
}
.utilities-status {
  flex: 1 1 280px;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface);
}
.utilities-status-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.util-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.util-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 10px;
  align-items: center;
  font-size: 0.88rem;
}
.util-bulb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.util-bulb--ok {
  background: var(--ok);
  box-shadow: 0 0 0 2px rgba(31, 92, 69, 0.25);
  animation: util-bulb-ok-pulse 3s ease-in-out infinite;
}
.util-bulb--warn {
  background: #c9920a;
  box-shadow: 0 0 0 2px rgba(201, 146, 10, 0.25);
}
.util-bulb--alert {
  background: #c45c4a;
  animation: util-bulb-pulse 1.8s ease-in-out infinite;
}
@keyframes util-bulb-ok-pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(31, 92, 69, 0.3);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 8px 2px rgba(31, 92, 69, 0.22);
    opacity: 0.88;
  }
}
@keyframes util-bulb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 92, 74, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(196, 92, 74, 0); }
}
.util-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.util-label {
  line-height: 1.25;
  color: var(--ink);
}
.util-meta {
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--muted);
}
.util-report-btn {
  font: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.util-report-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand-mid);
}
.map-manual {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-manual select {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 9px 12px;
  min-width: min(100%, 280px);
}

.map-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.leg-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  display: inline-block;
  flex-shrink: 0;
}
.leg-house { background: #c8ccc6; }
.leg-street { background: #e8ebe7; border-color: #a8aea6; }
.leg-reported {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 3px var(--brand-soft);
  border-radius: 50%;
}
.leg-community {
  background: rgba(196, 92, 74, 0.2);
  border-color: #c45c4a;
  border-radius: 50%;
  animation: map-legend-pulse 1.8s ease-in-out infinite;
}
@keyframes map-legend-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 92, 74, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(196, 92, 74, 0); }
}

.map-canvas {
  border: 1px solid var(--line);
  background: #faf9f7;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  position: relative;
}
.npv-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 820px);
  min-height: 420px;
  user-select: none;
}

.map-extent {
  fill: none;
  stroke: #d0d2cc;
  stroke-width: 1;
  stroke-dasharray: 4 3;
  pointer-events: none;
}
.map-zone-box {
  fill: none;
  stroke: #c45c4a;
  stroke-width: 2;
  pointer-events: none;
}
.map-zone-label {
  fill: #b33a2b;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.map-bloc-label {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
}
.map-neighbor {
  fill: #eceae4;
  stroke: #c8c4ba;
  stroke-width: 1;
  stroke-dasharray: 5 4;
  pointer-events: none;
}
.map-neighbor-label {
  fill: #9a958c;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.map-road-label,
.map-row-label,
.map-pin-label {
  fill: var(--muted);
  font-family: var(--font);
  pointer-events: none;
}
.map-road-label {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-row-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.map-pin-label {
  font-size: 9px;
  fill: #8a918a;
}

.map-street {
  fill: #e4e7e2;
  stroke: #b8beb8;
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.15s ease, stroke 0.15s ease;
  outline: none;
}
.map-street:hover,
.map-street:focus-visible {
  fill: #d5ebe6;
  stroke: var(--brand);
}
.map-street.is-selected {
  fill: #c5e0da;
  stroke: var(--brand-deep);
  stroke-width: 1.5;
}
.map-street.is-reported {
  stroke: var(--brand-mid);
  stroke-dasharray: 3 2;
}

.map-house {
  cursor: pointer;
  outline: none;
}
.map-house rect {
  fill: #b9beb8;
  stroke: #2a302c;
  stroke-width: 1.1;
  transition: fill 0.15s ease, stroke 0.15s ease, stroke-width 0.15s ease;
}
.map-house:hover rect,
.map-house:focus-visible rect {
  fill: #9eb8b2;
  stroke: var(--brand-deep);
  stroke-width: 1.6;
}
.map-house.is-selected rect {
  fill: var(--brand);
  stroke: var(--brand-deep);
  stroke-width: 2;
}
.map-house.is-reported rect {
  stroke: var(--brand-deep);
  stroke-width: 1.5;
}
.map-house-label {
  fill: #1a1f1c;
  font-family: var(--font);
  font-size: 8px;
  font-weight: 700;
  pointer-events: none;
}
.map-house.is-selected .map-house-label {
  fill: #fff;
}

.map-marker circle {
  fill: var(--brand);
  stroke: #fff;
  stroke-width: 1.5;
  pointer-events: none;
}
.map-marker--street circle {
  fill: var(--accent-warm);
}

/* Community sesizări — pulsing hotspots (other owners) */
.map-community-street-glow {
  fill: none;
  stroke: #c45c4a;
  stroke-width: 12;
  stroke-linejoin: round;
  opacity: 0.22;
  pointer-events: none;
  animation: map-community-glow-pulse 2.4s ease-in-out infinite;
}
.map-community-street-line {
  fill: rgba(196, 92, 74, 0.14);
  stroke: none;
  pointer-events: none;
  animation: map-community-fill-pulse 2.4s ease-in-out infinite;
}
.map-community-street-line.map-street-hit {
  pointer-events: visibleFill;
  cursor: pointer;
  outline: none;
}
.map-community-street-edge {
  fill: none;
  stroke: #c45c4a;
  stroke-width: 2.8;
  stroke-dasharray: 7 5;
  pointer-events: none;
  animation: map-community-stroke-pulse 2.4s ease-in-out infinite;
}
.map-pulse-ring {
  fill: rgba(196, 92, 74, 0.18);
  stroke: #c45c4a;
  stroke-width: 1.8;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pulse-ring 1.9s ease-out infinite;
}
.map-pulse-ring--delay {
  animation-delay: 0.85s;
}
.map-pulse-dot {
  fill: #c45c4a;
  stroke: #fff;
  stroke-width: 1.5;
  pointer-events: none;
  animation: map-pulse-dot 1.9s ease-in-out infinite;
}
.map-pulse-count {
  fill: #9b2c2c;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}
.map-pulse-hit {
  fill: #000;
  fill-opacity: 0.01;
  stroke: none;
  pointer-events: visibleFill;
  cursor: pointer;
}
.map-street-hit:focus-visible {
  stroke: var(--brand);
  stroke-width: 2;
  stroke-dasharray: 4 3;
}
.map-community-tooltip {
  position: absolute;
  z-index: 30;
  max-width: min(280px, 92vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 31, 28, 0.14);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
  pointer-events: none;
}
.map-community-tooltip.is-interactive {
  pointer-events: auto;
}
.map-tooltip-delete {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--danger);
  font: inherit;
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.map-tooltip-delete:hover {
  color: var(--ink);
}
.map-community-tooltip[hidden] {
  display: none !important;
}
.map-community-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}
.map-community-tooltip span {
  display: block;
}
.map-community-tooltip-hint {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.map-community-tooltip-entry {
  margin-top: 4px;
  padding-left: 8px;
  border-left: 2px solid var(--brand-soft, #d4e8dc);
  color: var(--ink-soft, #3d4540);
  font-size: 0.8rem;
}
.map-community-tooltip-entry + .map-community-tooltip-entry {
  margin-top: 6px;
}
.map-community-tooltip-desc {
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.map-community-tooltip-desc + .map-community-tooltip-desc {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-soft, #3d4540);
}
.map-community-tooltip-meta {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Report submit success overlay */
.report-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 24, 22, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.report-success-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.report-success-overlay-panel {
  max-width: min(560px, 92vw);
  padding: 32px 28px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--brand, #2d6a4f);
  box-shadow: 0 16px 48px rgba(26, 31, 28, 0.28);
  text-align: center;
  cursor: pointer;
}
.report-success-overlay-message {
  margin: 0;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.report-success-overlay-hint {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.map-house.is-hotspot-others rect {
  animation: map-house-others-pulse 2.2s ease-in-out infinite;
}
.map-street.is-hotspot-others {
  animation: map-street-others-pulse 2.2s ease-in-out infinite;
}
.map-street.is-hotspot-mine {
  animation: map-street-others-pulse 2.2s ease-in-out infinite;
}
@keyframes map-pulse-ring {
  0% { transform: scale(0.55); opacity: 0.85; }
  100% { transform: scale(2.3); opacity: 0; }
}
@keyframes map-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes map-community-fill-pulse {
  0%, 100% { fill-opacity: 0.12; }
  50% { fill-opacity: 0.32; }
}
@keyframes map-community-stroke-pulse {
  0%, 100% { stroke-opacity: 0.95; stroke-width: 2.8; }
  50% { stroke-opacity: 0.45; stroke-width: 4.2; }
}
@keyframes map-community-glow-pulse {
  0%, 100% { opacity: 0.12; stroke-width: 10; }
  50% { opacity: 0.42; stroke-width: 17; }
}
@keyframes map-house-others-pulse {
  0%, 100% { stroke: #c45c4a; stroke-width: 1.6; }
  50% { stroke: #e8927f; stroke-width: 2.2; }
}
@keyframes map-street-others-pulse {
  0%, 100% { fill: #ebeae6; stroke: #c45c4a; }
  50% { fill: #f5ddd8; stroke: #e8927f; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pulse-ring,
  .map-pulse-ring--delay,
  .map-pulse-dot,
  .map-community-street-line,
  .map-community-street-edge,
  .map-community-street-glow,
  .map-house.is-hotspot-others rect,
  .map-street.is-hotspot-others,
  .map-street.is-hotspot-mine,
  .leg-community {
    animation: none !important;
  }
}

.map-footnote {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 70ch;
}
.map-delete-notice {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft, #3d4540);
  max-width: 70ch;
}
.report-item-owner {
  display: block;
  margin: 0 0 6px;
  font-size: 0.76rem;
  color: var(--muted);
  word-break: break-all;
}
.report-delete-btn {
  margin-left: auto;
}
.reports-history-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.reports-history-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
}
.reports-history-empty {
  margin: 0 0 8px;
}
.report-item.is-resolved {
  opacity: 0.88;
}
.report-item-resolved {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.report-item-resolved-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.12);
  color: var(--ok, #2e7d32);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.map-aside {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 12px);
}
.map-aside-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.map-aside-head h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.btn-text {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-text:hover { color: var(--danger); }
.map-aside-lede {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
.map-aside-lede code {
  font-size: 0.84em;
  background: var(--stone);
  padding: 1px 5px;
  border-radius: 4px;
}
.reports-empty {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.reports-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(62vh, 560px);
  overflow: auto;
}
.report-item {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.report-item-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}
.report-item-top strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.report-item-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.report-item-desc {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.report-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* Modal */
body.modal-open { overflow: hidden; }
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.report-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 22, 0.45);
}
.report-modal-panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  padding: 20px 20px 24px;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform 0.22s ease;
  -webkit-overflow-scrolling: touch;
}
.report-modal.is-open .report-modal-panel {
  transform: translateY(0);
}
@media (min-width: 640px) {
  .report-modal {
    align-items: center;
    padding: 24px;
  }
  .report-modal-panel {
    border-radius: 12px;
  }
}
.report-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.report-modal-head h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.report-modal-close {
  border: 1px solid var(--line);
  background: var(--bg);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.report-modal-close:hover {
  border-color: var(--ink);
}

.report-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.report-form .field > span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.report-form input,
.report-form select,
.report-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.report-form input:focus,
.report-form select:focus,
.report-form textarea:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand);
}
.report-form input[readonly] {
  background: var(--bg);
  color: var(--ink);
  font-weight: 650;
}
.field-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px 4px;
  margin: 0 0 14px;
}
.field-group legend {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 4px;
}
.report-status {
  margin: 0 0 12px;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.report-status.is-ok { color: var(--ok); }
.report-status.is-error { color: var(--danger); }
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.report-actions .btn.is-disabled,
.report-actions a.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.report-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    position: static;
  }
  .npv-map {
    max-height: none;
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .map-hero { padding-top: 24px; }
  .report-actions .btn { flex: 1 1 auto; }
}

/* ——— FAQ / deșeuri content pages ——— */
.content-page {
  padding-bottom: 48px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
  max-width: 720px;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 18px 0;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
}
.faq-body p { margin: 0 0 12px; }
.faq-body ul { margin: 0 0 12px; padding-left: 1.15rem; }
.faq-body li { margin-bottom: 4px; }

.prose {
  max-width: 720px;
  margin-top: 28px;
  font-size: 1.02rem;
  color: var(--ink);
}
.prose h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--brand-deep);
  margin: 40px 0 14px;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
  color: var(--ink);
}
.prose p { margin: 0 0 14px; color: var(--muted); }
.prose p strong, .prose li strong { color: var(--ink); }
.prose ul { margin: 0 0 16px; padding-left: 1.15rem; color: var(--muted); }
.prose li { margin-bottom: 6px; }
.prose .callout {
  border-left: 3px solid var(--brand);
  padding: 12px 0 12px 16px;
  margin: 24px 0;
  color: var(--ink);
}
.container-list {
  list-style: none;
  padding-left: 0 !important;
}
.container-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.content-figure {
  margin: 28px 0;
  padding: 0;
}
.content-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.content-figure--half {
  max-width: 420px;
}
.content-figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
