/* ============================================================
   Bulci Nostalgia — token de design
   Temă: arhivă sătească / album de familie, nu muzeu rece.
   Paletă inspirată din: pergament vechi, cărămida ruinelor
   abației, verdele văii Mureșului, sigiliul de ceară al
   documentelor vechi (folosit ca element de semnătură).
   ============================================================ */

/* Fonturile Google se încarcă din base.html (<link> cu preconnect), nu de aici —
   @import în CSS blochează randarea paginii până se descarcă fontul. */

:root {
  --parchment: #F1E9D8;
  --parchment-deep: #E6DBC0;
  --ink: #2C2416;
  --ink-soft: #5B4F3A;
  --terracotta: #B14F2C;
  --terracotta-deep: #8F3D21;
  --forest: #2E4A3B;
  --forest-deep: #223729;
  --gold: #A17A32;
  --stone-line: #CBBB94;
  --white-card: #FBF7EC;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(44, 36, 22, 0.06), 0 8px 20px -8px rgba(44, 36, 22, 0.18);
  --shadow-card-hover: 0 2px 4px rgba(44, 36, 22, 0.08), 0 20px 36px -12px rgba(44, 36, 22, 0.28);
  --shadow-lift: 0 12px 28px -10px rgba(44, 36, 22, 0.32);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(177, 79, 44, 0.05), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(46, 74, 59, 0.05), transparent 45%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--terracotta-deep); transition: color var(--transition); }

/* ---------- Reveal la scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #7A5A22;
  display: inline-block;
  margin-bottom: 0.6em;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / navigație ---------- */

.site-header {
  background: var(--forest);
  color: var(--parchment);
  border-bottom: 4px solid var(--terracotta);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition), background-color var(--transition);
}
.site-header.scrolled {
  background: rgba(46, 74, 59, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--parchment);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-collapse {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--parchment);
}

.brand-seal {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--parchment);
  text-decoration: none;
  opacity: 0.85;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  border-bottom-color: var(--terracotta);
}

.nav-item-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: inherit;
  opacity: 0.85;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0;
  transition: opacity var(--transition);
}
.nav-dropdown-toggle::after { content: "▾"; font-size: 0.65em; transition: transform var(--transition); }
.nav-item-dropdown:hover .nav-dropdown-toggle,
.nav-item-dropdown.open .nav-dropdown-toggle { opacity: 1; }
.nav-item-dropdown.open .nav-dropdown-toggle::after { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 210px;
  background: var(--white-card);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-hover);
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 50;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown,
.nav-item-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  color: var(--ink);
  opacity: 1;
  border-bottom: none;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  font-size: 0.9rem;
}
.nav-dropdown a:hover { background: var(--parchment-deep); border-bottom: none; }

.nav-auth {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.88rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-terracotta { background: var(--terracotta); color: #fff; box-shadow: 0 6px 16px -6px rgba(177, 79, 44, 0.55); }
.btn-terracotta:hover { background: var(--terracotta-deep); box-shadow: 0 10px 22px -6px rgba(143, 61, 33, 0.6); }

.btn-ghost { background: transparent; color: var(--parchment); border-color: rgba(241,233,216,0.4); }
.btn-ghost:hover { border-color: var(--parchment); }

.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--parchment); }

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--stone-line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  height: 160%;
  background: radial-gradient(circle, rgba(177, 79, 44, 0.09), transparent 65%);
  pointer-events: none;
  animation: derivaGlow 14s ease-in-out infinite alternate;
}
@keyframes derivaGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6%, 4%) scale(1.08); }
}
.hero-grid { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-cta { display: flex; gap: 0.9rem; margin-top: 1.6rem; flex-wrap: wrap; }

.hero-seal-panel {
  background: var(--white-card);
  border: 1px solid var(--stone-line);
  box-shadow: var(--shadow-card);
  padding: 1.6rem;
  border-radius: var(--radius);
  position: relative;
}

.hero-seal-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--stone-line);
  pointer-events: none;
}

.hero-cronologie {
  padding: 1.4rem 0 1rem;
  max-height: 460px;
  display: flex;
  flex-direction: column;
}

.cronologie-titlu {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding: 0 1.6rem 0.8rem;
  flex-shrink: 0;
}

.cronologie-lista {
  overflow-y: auto;
  padding: 0 1.6rem;
  flex: 1;
  /* fadeout subtil sus/jos, ca sa se vada clar ca lista se deruleaza */
  mask-image: linear-gradient(to bottom, transparent, black 16px, black calc(100% - 16px), transparent);
}

.cronologie-item {
  border-top: 1px solid var(--stone-line);
  padding: 0.8rem 0;
}
.cronologie-item:first-child { border-top: none; }

.cronologie-perioada {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--terracotta-deep);
  display: block;
  margin-bottom: 0.15em;
}

.cronologie-eveniment {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: block;
}

.cronologie-descriere {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.3em 0 0;
  line-height: 1.5;
}

.cronologie-admin-link {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  padding: 0.7rem 1.6rem 0;
  flex-shrink: 0;
  border-top: 1px solid var(--stone-line);
  margin-top: 0.4rem;
}

.cronologie-pagina-lista {
  margin-top: 1.2rem;
  background: var(--white-card);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.4rem 1.4rem;
}

.bibliografie-lista {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.bibliografie-lista li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--stone-line);
  font-size: 0.94rem;
}
.bibliografie-lista li:first-child { border-top: none; }
.bibliografie-sursa { color: var(--ink-soft); font-size: 0.88rem; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Secțiuni generale ---------- */

.section { padding: 3.5rem 0; }
.section-alt { background: var(--parchment-deep); }
.section-forest { background: var(--forest); color: var(--parchment); }
.section-forest h2 { color: var(--parchment); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.card {
  background: var(--white-card);
  border: 1px solid var(--stone-line);
  box-shadow: var(--shadow-card);
  padding: 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--terracotta);
}
.card img { border-radius: var(--radius-sm); transition: transform 0.5s var(--ease); }
.card:hover img { transform: scale(1.045); }

.card h3 { margin-bottom: 0.3em; }
.card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }

.casa-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.casa-card-text { flex: 1; min-width: 0; }

.casa-card-descriere {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.casa-card-qr {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 1px solid var(--stone-line);
  border-radius: 3px;
  background: #fff;
  padding: 5px;
}

.casa-card-cover {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--stone-line);
}

@media (max-width: 480px) {
  .casa-card-qr { width: 56px; height: 56px; padding: 3px; }
  .casa-card-cover { width: 48px; height: 48px; }
  .casa-card-inner { gap: 0.7rem; }
}

/* ---------- Harta satului ---------- */

#harta-satului {
  height: 480px;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.harta-overlay-activare {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 36, 22, 0.18);
  cursor: pointer;
}
.harta-overlay-activare span {
  background: var(--forest);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  #harta-satului { height: min(70vw, 360px); }
}

.leaflet-popup-content-wrapper {
  background: var(--white-card);
  border-radius: var(--radius);
  font-family: var(--font-body);
}

.map-popup-porecla {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--terracotta-deep);
  display: block;
}

.map-popup-nr {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* ---------- Poreclele Bulciului (glosar) ---------- */

.porecle-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
  margin-top: 2rem;
}

.porecla-item {
  background: var(--white-card);
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.porecla-item:hover { background: var(--parchment-deep); }

.porecla-nume {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--terracotta-deep);
}

.porecla-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Pagina casei ---------- */

.casa-header {
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 1.4rem;
  margin-bottom: 2rem;
}

.casa-porecla { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.1em; }
.casa-nume-oficial { color: var(--ink-soft); font-size: 1.05rem; }
.casa-nr { font-family: var(--font-mono); font-size: 0.78rem; color: #7A5A22; }

.poza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.3rem;
  margin: 1.5rem 0 2.5rem;
}

.poza-frame {
  background: #fff;
  padding: 0.5rem 0.5rem 1rem;
  border: 1px solid var(--stone-line);
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt, -1deg));
  transition: transform var(--transition), box-shadow var(--transition);
}
.poza-frame:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  z-index: 1;
}
.poza-frame:nth-child(3n+1) { --tilt: 1deg; }
.poza-frame:nth-child(3n+2) { --tilt: -1.4deg; }

.poza-frame img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: contain;
  background: var(--parchment-deep);
  cursor: zoom-in;
}
.poza-frame figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  padding-top: 0.5rem;
  text-align: center;
}

@media (max-width: 640px) {
  .poza-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.8rem;
    margin: 1.1rem 0 1.8rem;
  }
  .poza-frame {
    transform: none;
    padding: 0.3rem 0.3rem 0.5rem;
  }
  .poza-frame:hover { transform: translateY(-3px); }
  .poza-frame img { height: 140px; }
  .poza-frame figcaption { font-size: 0.65rem; padding-top: 0.35rem; }
}

.poveste-card {
  background: var(--white-card);
  border-left: 3px solid var(--terracotta);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-card);
}

.poveste-card h3 { margin-bottom: 0.3em; }
.poveste-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 0.7em; }

.badge-pending {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gold);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.5rem;
}

.badge-coperta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--forest);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.5rem;
}

/* ---------- Formulare ---------- */

.form-panel {
  background: var(--white-card);
  border: 1px solid var(--stone-line);
  box-shadow: var(--shadow-card);
  padding: 1.8rem;
  border-radius: var(--radius);
  max-width: 480px;
}

.form-panel.wide { max-width: 640px; }

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 1rem 0 0.35rem;
}
label:first-of-type { margin-top: 0; }

input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--stone-line);
  border-radius: var(--radius-sm);
  background: var(--parchment);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type=text]:focus, input[type=email]:focus, input[type=password]:focus,
input[type=number]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(177, 79, 44, 0.15);
}

input[type=file] {
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.rich-editor {
  border: 1.5px solid var(--stone-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--parchment);
}

.rich-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.6rem;
  background: var(--parchment-deep);
  border-bottom: 1.5px solid var(--stone-line);
}

.rich-editor-toolbar button {
  font-family: var(--font-body);
  font-size: 0.82rem;
  background: var(--white-card);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
  transition: background-color var(--transition), border-color var(--transition);
}
.rich-editor-toolbar button:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

.rich-editor-sep {
  width: 1px;
  height: 20px;
  background: var(--stone-line);
  margin: 0 0.2rem;
}

.rich-editor-content {
  min-height: 220px;
  max-height: 480px;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
}
.rich-editor-content:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(177, 79, 44, 0.2); }
.rich-editor-content p { margin: 0 0 0.9em; }
.rich-editor-content h2, .rich-editor-content h3 { font-family: var(--font-display); margin: 0.6em 0 0.4em; }
.rich-editor-content ul, .rich-editor-content ol { margin: 0 0 0.9em; padding-left: 1.4em; }

.rich-editor-hidden { display: none; }

textarea { min-height: 120px; resize: vertical; }

.form-actions { margin-top: 1.4rem; }

/* ---------- Flash-uri ---------- */

.flash-list { list-style: none; padding: 0; margin: 1rem auto; max-width: 1080px; padding: 0 1.5rem; }
.flash {
  font-family: var(--font-body);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  border-left: 3px solid;
}
.flash-success { background: #EAF1E8; border-color: var(--forest); }
.flash-error { background: #F7E4DC; border-color: var(--terracotta); }
.flash-info { background: #EFEAD9; border-color: var(--gold); }

/* ---------- Tabele admin ---------- */

table.admin-table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: 0.92rem; }
table.admin-table th, table.admin-table td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--stone-line);
}
table.admin-table th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--ink-soft); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.stat-card { background: var(--white-card); border: 1px solid var(--stone-line); padding: 1.1rem; border-radius: var(--radius); }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; color: var(--terracotta-deep); }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Carusel evoluția satului ---------- */

.carusel-wrap {
  position: relative;
  margin-top: 1.8rem;
}

.carusel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--stone-line);
}

.carusel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.carusel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

.carusel-slide img {
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
  display: block;
}

.carusel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4.5rem 2rem 1.8rem;
  background: linear-gradient(to top, rgba(20, 15, 8, 0.95) 0%, rgba(20, 15, 8, 0.88) 55%, rgba(20, 15, 8, 0.35) 85%, transparent 100%);
  color: var(--parchment);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.carusel-perioada {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.carusel-titlu {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--parchment);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.carusel-descriere {
  font-size: 0.95rem;
  color: rgba(241, 233, 216, 0.9);
  max-width: 62ch;
  margin-top: 0.2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.carusel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(241, 233, 216, 0.5);
  background: rgba(34, 27, 15, 0.45);
  color: var(--parchment);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}
.carusel-nav:hover { background: var(--terracotta); border-color: var(--terracotta); }
.carusel-prev { left: 1rem; }
.carusel-next { right: 1rem; }

.carusel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carusel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stone-line);
  cursor: pointer;
}
.carusel-dot.activ { background: var(--terracotta); }

@media (max-width: 640px) {
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); line-height: 1.18; }

  .carusel-slide img { height: min(46vh, 380px); }

  .carusel-caption {
    padding: 1.6rem 1.2rem 1.3rem;
    background: linear-gradient(to top, rgba(20, 15, 8, 0.92) 0%, rgba(20, 15, 8, 0.78) 65%, transparent 100%);
    gap: 0.15rem;
  }

  .carusel-perioada { font-size: 1.6rem; }
  .carusel-titlu { font-size: 1.05rem; }

  .carusel-descriere {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ---------- Galeria comunitară „Poze vechi din sat" ---------- */

.comunitate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.comunitate-card {
  background: var(--white-card);
  border: 1px solid var(--stone-line);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}

.comunitate-card img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: var(--parchment-deep);
  display: block;
  cursor: zoom-in;
}

.comunitate-card figcaption {
  padding: 0.9rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.comunitate-descriere {
  font-size: 0.95rem;
  color: var(--ink);
}

.comunitate-autor {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox-overlay.activ { display: flex; }

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(241, 233, 216, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: var(--parchment);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--terracotta); border-color: var(--terracotta); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: var(--parchment);
  padding: 2.2rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
}
.site-footer a { color: var(--parchment); }

@media (max-width: 1100px) {
  .nav-bar { flex-wrap: nowrap; padding: 0.6rem 1rem; }

  .brand { gap: 0.4rem; min-width: 0; flex: 1 1 auto; }
  .brand-seal { width: 28px; height: 28px; }
  .brand-text {
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.15;
    white-space: normal;
    word-break: keep-all;
  }
  .brand-text small {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    white-space: normal;
  }

  .nav-toggle {
    display: flex;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    gap: 4px;
  }

  .nav-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 4px solid var(--terracotta);
    box-shadow: 0 16px 28px -8px rgba(0, 0, 0, 0.4);
  }
  .nav-collapse.open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
  }

  .nav-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(241, 233, 216, 0.15);
  }
  .nav-auth .btn { text-align: center; }

  .nav-item-dropdown { width: 100%; }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.2rem 0;
    font-size: inherit;
  }

  .nav-dropdown {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.4rem 0 0 1rem;
    margin-top: 0.4rem;
    width: 100%;
  }
  .nav-item-dropdown.open .nav-dropdown { display: block; }

  .nav-dropdown a {
    color: var(--parchment);
    opacity: 0.85;
    padding: 0.5rem 0;
  }
  .nav-dropdown a:hover { background: transparent; opacity: 1; }
}

/* =====================================================================
   DESIGN 40+ — simplu, cald, text mare, ținte mari (strat final)
   ===================================================================== */
:root {
  --parchment: #FAF6EC;
  --parchment-deep: #EFE7D3;
  --white-card: #FFFFFF;
  --ink: #2A2118;
  --ink-soft: #4A3F2E;
  --terracotta: #9C3F1E;
  --terracotta-deep: #7E3017;
  --gold: #7A5A22;
  --stone-line: #8A7A55;
  --font-mono: 'Karla', -apple-system, sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body { font-size: 1.125rem; line-height: 1.7; background-image: none; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.25; }
h3 { font-size: 1.3rem; line-height: 1.3; }
p, li { max-width: 68ch; }
.lede-mare { font-size: 1.25rem; max-width: 60ch; }
.hero::before { display: none; animation: none; }
.reveal { opacity: 1; transform: none; }

/* accesibilitate */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--terracotta); outline-offset: 3px;
}
.sari-la-continut { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: .8rem 1.2rem; z-index: 300; }
.sari-la-continut:focus { left: 1rem; top: 1rem; }

/* text mic -> minim 16px */
.eyebrow, .cronologie-perioada, .cronologie-descriere, .comunitate-autor, .poveste-meta,
.poza-frame figcaption, .casa-card-descriere, .casa-nr, .map-popup-nr, .stat-label,
.badge-pending, .badge-coperta, .carusel-perioada, .carusel-descriere {
  font-family: var(--font-body); font-size: 1rem; text-transform: none; letter-spacing: 0;
}
.eyebrow { display: none; }
table.admin-table, table.admin-table th, table.admin-table td { font-size: 1rem; text-transform: none; letter-spacing: 0; }
.badge-pending { background: #6B4E1B; color: #fff; padding: .2rem .6rem; }

/* antet */
.site-header { border-bottom-width: 4px; }
.site-header.scrolled { background: var(--forest); backdrop-filter: none; }
.nav-bar { padding: .7rem 1.5rem; }
.brand-text { font-size: 1.35rem; }
.brand-text small { font-family: var(--font-body); font-size: .85rem; letter-spacing: 0; text-transform: none; color: #E8D9AE; }
.nav-links { gap: .4rem 1.6rem; font-size: 1.15rem; }
.nav-links a { opacity: 1; padding: .55rem .1rem; border-bottom: 3px solid transparent; display: inline-block; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: #E8D9AE; font-weight: 700; }
.nav-auth { font-size: 1.05rem; gap: .6rem; }
.btn { font-size: 1.1rem; min-height: 52px; padding: .75rem 1.5rem; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { transform: none; }
.btn-sm { min-height: 48px; font-size: 1rem; padding: .55rem 1.1rem; }
.btn-mare { min-height: 60px; font-size: 1.25rem; padding: .9rem 2rem; }
.btn-ghost { border-color: var(--parchment); border-width: 2px; }
.btn-outline { border-width: 2px; }
.link-simplu { font-size: 1.15rem; font-weight: 700; color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 48px; }
.cont-meniu { position: relative; }
.cont-meniu summary { list-style: none; cursor: pointer; }
.cont-meniu summary::-webkit-details-marker { display: none; }
.cont-meniu summary::after { content: " ▾"; }
.cont-meniu-lista { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 2px solid var(--stone-line); border-radius: var(--radius); min-width: 230px; padding: .4rem; z-index: 120; box-shadow: var(--shadow-card-hover); }
.cont-meniu-lista a { display: flex; align-items: center; min-height: 52px; padding: 0 1rem; color: var(--ink); text-decoration: none; font-size: 1.1rem; border-radius: var(--radius-sm); }
.cont-meniu-lista a:hover { background: var(--parchment-deep); }

/* pagina principală */
.hero { padding: 3rem 0 2.5rem; }
.hero .lede { font-size: 1.25rem; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.8rem; margin-top: 1.6rem; }
.hero-seal-panel::before { display: none; }
.hero-cronologie { max-height: none; }
.cronologie-lista { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.cronologie-titlu { font-family: var(--font-display); font-size: 1.4rem; color: var(--terracotta-deep); text-transform: none; letter-spacing: 0; }
.cronologie-perioada { color: var(--terracotta-deep); font-weight: 700; }
.cronologie-eveniment { font-size: 1.2rem; }
.section-placi { background: transparent; }
.placi { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.placa { display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 2px solid var(--stone-line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card); min-height: 170px; }
.placa:hover, .placa:focus-visible { border-color: var(--terracotta); background: #FFF9EE; }
.placa-titlu { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--terracotta-deep); line-height: 1.2; }
.placa-text { font-size: 1.1rem; color: var(--ink-soft); }
.placa-sageata { margin-top: auto; font-weight: 700; color: var(--forest); font-size: 1.1rem; }
.invitatie { text-align: center; }
.invitatie .lede-mare { margin: 0 auto 1.4rem; }

/* carusel: legenda sub imagine */
.carusel-nav { width: 60px; height: 60px; font-size: 1.6rem; }
.carusel-dot { width: 16px; height: 16px; }
.carusel-caption { position: static; background: var(--forest); color: #fff; padding: 1rem 1.3rem; }
.carusel-titlu { font-size: 1.4rem; }
.carusel-descriere { display: block; -webkit-line-clamp: unset; color: #F1E9D8; }

/* formulare */
label { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); display: block; margin-bottom: .35rem; }
input, textarea, select { font-size: 1.15rem; min-height: 52px; padding: .75rem 1rem; background: #fff; border: 2px solid var(--stone-line); border-radius: var(--radius-sm); }
textarea { min-height: 220px; line-height: 1.6; }
::placeholder { color: #6B5F48; opacity: 1; }
input[type=file] { padding: .6rem; }
input[type=file]::file-selector-button { min-height: 48px; font-size: 1.05rem; font-weight: 700; background: var(--forest); color: #fff; border: 0; border-radius: var(--radius-pill); padding: .6rem 1.4rem; margin-right: 1rem; cursor: pointer; }
.camp-cautare { width: 100%; max-width: 560px; font-size: 1.3rem; min-height: 60px; margin-bottom: 1.2rem; }
.fara-rezultate { font-size: 1.2rem; font-weight: 700; color: var(--terracotta-deep); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.form-actions .btn { width: 100%; max-width: 420px; }
.flash { font-size: 1.2rem; font-weight: 700; padding: 1.1rem 1.3rem; border-left-width: 8px; }
.rich-editor-toolbar button { min-height: 48px; min-width: 48px; font-size: 1rem; }

/* galerii, case, hartă */
.poza-frame { transform: none !important; }
.poza-frame figcaption { color: var(--ink); }
.comunitate-card img { height: auto; max-height: 420px; }
.casa-card-cover { width: 120px; height: 120px; object-fit: cover; }
.casa-card h3 { font-size: 1.4rem; }
.casa-card:hover, .card:hover, .poza-frame:hover { transform: none; }
.casa-qr { margin-top: 1rem; }
#harta-satului { height: 480px; }
.leaflet-control-zoom a { width: 48px !important; height: 48px !important; line-height: 48px !important; font-size: 1.6rem !important; }
.map-popup-porecla { font-size: 1.3rem; font-weight: 700; }
.harta-overlay-activare span { font-size: 1.2rem; padding: 1rem 1.6rem; }
.lightbox-close { width: auto; height: 56px; padding: 0 1.4rem; border-radius: var(--radius-pill); background: #fff; color: var(--ink); font-size: 1.2rem; font-weight: 700; opacity: 1; }
.site-footer { font-size: 1.05rem; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
.site-footer { margin-top: 0; }
.continut-editorial { font-size: 1.2rem; line-height: 1.75; max-width: 66ch; }
.continut-editorial h2 { margin-top: 2em; }
.continut-editorial ul, .continut-editorial ol { padding-left: 1.4em; }
.continut-editorial blockquote { border-left: 5px solid var(--terracotta); margin: 1.5em 0; padding: .2em 1.2em; color: var(--ink-soft); }

@media (hover: none) { .btn:hover { transform: none; } }

/* mobil */
@media (max-width: 1100px) {
  .nav-bar { padding: .5rem 1rem; }
  .brand-text { font-size: 1.1rem; }
  .brand-text small { display: none; }
  .brand-seal { width: 36px; height: 36px; }
  .nav-toggle { width: auto; min-width: 52px; height: 52px; flex-direction: row; align-items: center; gap: .6rem; padding: 0 .8rem; border: 2px solid var(--parchment); border-radius: var(--radius-pill); color: var(--parchment); }
  .nav-toggle-bars { display: flex; flex-direction: column; gap: 5px; width: 22px; }
  .nav-toggle-bars span { height: 3px; }
  .nav-toggle-text { font-weight: 700; font-size: 1.05rem; }
  .nav-toggle.open .nav-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle.open .nav-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-collapse { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; }
  .nav-links { gap: 0; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(250,246,236,.2); }
  .nav-links a { display: flex; align-items: center; min-height: 56px; width: 100%; font-size: 1.25rem; border-bottom: 0; }
  .nav-auth .btn, .cont-meniu summary { min-height: 56px; width: 100%; }
  .cont-meniu-lista { position: static; margin-top: .5rem; }
}
@media (max-width: 860px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .poza-grid { grid-template-columns: 1fr; }
  .poza-frame img { height: auto; max-height: 70vh; }
  .casa-qr, .casa-card-qr { display: none; }
  .hero-cta .btn-mare { width: 100%; }
  #harta-satului { height: min(100vw, 420px); }
  .container { padding: 0 1.1rem; }
  .form-panel { padding: 1.2rem; }
}
.nav-toggle .nav-toggle-text { width: auto; height: auto; background: none; display: inline; }
.nav-toggle .nav-toggle-bars { background: none; height: auto; display: flex; }
.nav-toggle .nav-toggle-bars span { width: 100%; height: 3px; display: block; }
@media (max-width: 860px) { .nav-toggle .nav-toggle-bars { width: 22px; flex-direction: column; gap: 5px; } }

.nav-toggle.open .nav-toggle-text { opacity: 1; }
.nav-toggle.open span:nth-child(1), .nav-toggle.open span:nth-child(3) { transform: none; }
.nav-toggle.open span:nth-child(2) { opacity: 1; }
.nav-toggle.open .nav-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-bar { max-width: 1240px; }
.nav-collapse { gap: 1.2rem; flex-wrap: nowrap; }
.hero-grid { align-items: start; }
@media (min-width: 1101px) { .nav-bar { flex-wrap: nowrap; } .nav-links { flex-wrap: nowrap; white-space: nowrap; } .brand-text small { display: none; } }
.btn, .brand-text { white-space: nowrap; }
@media (min-width: 1101px) { .nav-links { gap: .4rem 1.2rem; font-size: 1.1rem; } .nav-collapse { gap: 1rem; } .nav-auth .btn { padding: .6rem 1.1rem; } }
.form-panel input, .form-panel textarea, .form-panel select { background: #fff; border: 2px solid var(--stone-line); }
.arata-parola { display: flex; align-items: center; gap: .7rem; font-weight: 400; margin-top: .6rem; min-height: 48px; }
.arata-parola input { width: 24px; height: 24px; min-height: 0; padding: 0; }
.form-panel p a, .form-panel a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Prima pagină: listă derulantă cu poze (stânga) + istoric pe scurt (dreapta) ---- */
.evolutie-top { padding: 2rem 0 1rem; }
.evolutie-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.evolutie-grid.fara-poze { grid-template-columns: 1fr; }
.select-mare { width: 100%; font-size: 1.25rem; min-height: 60px; font-weight: 700; cursor: pointer; margin-bottom: 1rem; }
.evolutie-figura { margin: 0; background: #fff; border: 2px solid var(--stone-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.evolutie-figura img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; background: var(--parchment-deep); }
.evolutie-figura figcaption { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.3rem 1.2rem; }
.evolutie-perioada { color: var(--terracotta-deep); font-weight: 700; font-size: 1.05rem; }
.evolutie-titlu { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.evolutie-descriere { font-size: 1.1rem; color: var(--ink-soft); }
.evolutie-top .cronologie-item { padding: .7rem 0; }
.hero-jos { padding: 2rem 0 2.5rem; border-bottom: 0; }
@media (max-width: 860px) { .evolutie-grid { grid-template-columns: 1fr; } .evolutie-top { padding-top: 1rem; } }
.hero-cronologie .link-simplu { margin: .4rem 1.5rem 1.3rem; }
.perioade-lista { list-style: none; margin: 0; padding: 0 1rem; }
.perioade-lista li { max-width: none; }
.perioada-btn { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; text-align: left; background: transparent; border: 2px solid transparent; border-radius: var(--radius-sm); padding: .6rem .8rem; min-height: 56px; cursor: pointer; font-family: var(--font-body); color: var(--ink); }
.perioada-btn:hover { background: var(--parchment-deep); }
.perioada-btn.activ { background: #FFF3DF; border-color: var(--terracotta); }
.evolutie-top .carusel-slide img { height: auto; max-height: 460px; }
.taburi { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.4rem; }
.tab-btn { min-height: 64px; font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; color: var(--forest); background: #fff; border: 2px solid var(--stone-line); border-radius: var(--radius); cursor: pointer; padding: .6rem 1rem; }
.tab-btn:hover { background: var(--parchment-deep); }
.tab-btn.activ { background: var(--forest); color: #fff; border-color: var(--forest); }
.tab-panou[hidden] { display: none; }
.cronologie-tab { max-width: 760px; background: #fff; border: 2px solid var(--stone-line); border-radius: var(--radius); padding: .8rem 1.6rem 1.4rem; }
.cronologie-tab .cronologie-descriere { margin: .2rem 0 0; }
.cronologie-tab .link-simplu { margin-right: 1.5rem; margin-top: .8rem; }

/* ---- Revizie după audit: carusel + perioade (mobil și accesibilitate) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-txt, .carusel-numar { display: none; }
.cta-sus { display: none; }
.carusel-nav { background: #2A2118; border: 2px solid #fff; color: #fff; }
.carusel-dot { position: relative; border: 0; padding: 0; }
.carusel-dot::before { content: ""; position: absolute; inset: -14px; }
.carusel-dot.activ { width: 32px; border-radius: 8px; }
.cronologie-titlu { font-size: 1.5rem; font-weight: 700; margin: 0; padding: 0 1.5rem; }
.hero-cronologie { padding-top: 1.2rem; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { box-shadow: 0 0 0 6px #fff; }
.tab-btn.activ:focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--ink); }
.carusel-slide { scroll-margin-top: 84px; }
.carusel-wrap { scroll-margin-top: 84px; }
.evolutie-top .carusel-wrap { margin-top: 0; }
.perioada-btn:active, .tab-btn:active { background: #FFE9C7; }

@media (max-width: 860px) {
  .evolutie-top { padding-top: .8rem; }
  .taburi { margin-bottom: .8rem; }
  .tab-btn { min-height: 56px; font-size: 1.2rem; }
  .evolutie-grid { display: flex; flex-direction: column; gap: 1rem; }
  .perioade-nav { order: -1; padding: .8rem .8rem 1rem; box-shadow: none; }
  .cronologie-titlu { padding: 0 .3rem; font-size: 1.25rem; }
  .perioade-lista { display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem 0 0; }
  .perioade-lista li { flex: 0 0 auto; }
  .perioada-btn { border: 2px solid var(--stone-line); background: #fff; min-height: 52px; padding: .5rem 1rem; align-items: center; width: auto; }
  .perioada-btn .cronologie-eveniment { display: none; }
  .perioada-btn .cronologie-perioada { font-size: 1.1rem; }
  .perioada-btn.activ { background: var(--forest); border-color: var(--forest); }
  .perioada-btn.activ .cronologie-perioada { color: #fff; }
  .evolutie-top .carusel-slide img { aspect-ratio: 4 / 3; height: auto; max-height: 40vh; object-fit: cover; }
  .carusel-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
  .carusel-viewport { grid-column: 1 / -1; }
  .carusel-nav { position: static; transform: none; width: auto; height: auto; min-height: 60px; border-radius: var(--radius-pill); font-size: 1.25rem; font-weight: 700; padding: 0 1rem; }
  .carusel-prev { grid-column: 1; grid-row: 2; }
  .carusel-next { grid-column: 3; grid-row: 2; }
  .nav-txt { display: inline; }
  .carusel-numar { display: block; grid-column: 2; grid-row: 2; font-size: 1.2rem; font-weight: 700; text-align: center; }
  .carusel-dots { display: none; }
  .cta-sus { display: block; padding-top: .4rem; padding-bottom: .4rem; }
  .cta-sus .btn { width: 100%; }
  .hero-jos .hero-cta .btn-mare { display: none; }
  .placi { grid-auto-rows: 1fr; }
}

/* ---- Poze vechi: ani, de identificat, tabel case ---- */
.camp-ajutor { color: var(--ink-soft); font-size: 1rem; margin: .2rem 0 .8rem; }
.bloc-identificat { margin-top: 2rem; padding: 1.2rem; background: #FFF3DF; border: 2px solid var(--terracotta); border-radius: 10px; }
.bloc-identificat h2 { margin-top: 0; }
.ani-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.an-chip { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.1rem; background: #fff; border: 2px solid var(--stone-line); border-radius: 999px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.an-chip:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.an-sectiune { scroll-margin-top: 90px; margin-top: 1.5rem; }
.an-titlu { font-size: 1.8rem; border-bottom: 3px solid var(--terracotta); padding-bottom: .2rem; margin-bottom: 1rem; }
.an-titlu span { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.poza-an { display: inline-block; background: var(--forest); color: #fff; font-weight: 700; padding: .1rem .6rem; border-radius: 6px; margin-bottom: .3rem; }
.poza-loc { display: block; font-weight: 700; color: var(--terracotta-deep); }
.poza-lipsa { display: block; color: #6B4E1B; font-weight: 700; font-size: 1rem; }
.poza-actiuni { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.tabel-scroll { overflow-x: auto; margin-top: 1rem; }
.tabel-case { width: 100%; border-collapse: collapse; background: #fff; font-size: 1.1rem; }
.tabel-case th, .tabel-case td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--stone-line); }
.tabel-case th { background: var(--forest); color: #fff; }
.tabel-case .td-nr { font-weight: 700; width: 4.5rem; }
.rand-casa { cursor: pointer; }
.rand-casa:hover { background: #FFF3DF; }
.rand-btn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--terracotta-deep); text-decoration: underline; cursor: pointer; padding: .4rem 0; min-height: 44px; text-align: left; }
.rand-poze td { background: #FAF6EC; }
.mini-poze { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin: .5rem 0 1rem; }
.mini-poze figure { margin: 0; }
.mini-poze img { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.mini-poze figcaption { font-size: 1rem; }
@media (max-width: 860px) { .tabel-case th, .tabel-case td { padding: .6rem .5rem; } }

/* ---- Cronologia casei + poze întregi ---- */
.cronologie-casa { position: relative; margin: 1.2rem 0 1.5rem; padding-left: 1.2rem; border-left: 4px solid var(--terracotta); }
.cc-an { margin-bottom: 2rem; position: relative; }
.cc-an::before { content: ""; position: absolute; left: calc(-1.2rem - 12px); top: .55rem; width: 20px; height: 20px; background: var(--terracotta); border: 4px solid var(--parchment); border-radius: 50%; }
.cc-an-eticheta span { display: inline-block; background: var(--forest); color: #fff; font-weight: 700; font-size: 1.5rem; padding: .1rem .9rem; border-radius: 8px; }
.cc-an-poze { display: grid; gap: 1.2rem; margin-top: .8rem; }
.cc-poza { margin: 0; background: #fff; border: 1px solid var(--stone-line); border-radius: 8px; padding: .6rem; }
.cc-poza img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #EFE8D6; border-radius: 4px; cursor: zoom-in; }
.cc-poza figcaption { padding: .6rem .3rem .2rem; font-size: 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.mini-poze img { height: 150px; object-fit: contain; background: #EFE8D6; }
.comunitate-card img { object-fit: contain; background: #EFE8D6; }
