/* =========================================================
   Hunedoara Live — „Monocrom" (inspirat de brasovtourism.app).
   Ghid digital al județului: fundal alb, neutru zinc, UN singur
   accent (petrol/teal). Tipografie DM Sans (titraj) + Inter (corp).
   Un singur fișier CSS. Temă luminoasă implicit, se adaptează
   automat la modul întunecat al sistemului (prefers-color-scheme).
   ========================================================= */
/* Fonturi găzduite local (variabile, SIL OFL 1.1 — vezi fonts/README.txt): fără cereri către Google Fonts.
   Subseturile latin + latin-ext acoperă diacriticele românești (ă â î ș ț). */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-0101, U+0104-015D, U+0160-0161, U+0164-0217, U+021C-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/dm-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-0101, U+0104-015D, U+0160-0161, U+0164-0217, U+021C-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/dm-sans-ro.woff2") format("woff2"); unicode-range: U+0102-0103, U+015E-015F, U+0162-0163, U+0218-021B; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-ro.woff2") format("woff2"); unicode-range: U+0102-0103, U+015E-015F, U+0162-0163, U+0218-021B; }

:root {
  --bg:           #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #F4F4F5;
  --ink:          #18181B;
  --muted:        #52525B;
  --faint:        #71717A;
  --fainter:      #6E6E78;
  --border:       #E4E4E7;
  --border-strong:#D4D4D8;

  --accent:       #0E7C86;
  --accent-d:     #0A616A;
  --accent-soft:  rgba(14,124,134,.12);
  --amber:        #E8A33D;
  --on-accent:    #FFFFFF;   /* text pe fundal accent (contrast >= 4.5) */

  --shadow:    0 1px 1px rgba(24,24,27,.03), 0 18px 36px -24px rgba(24,24,27,.18);
  --radius:    10px;
  --radius-lg: 14px;
  --maxw:      1160px;

  --display: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0F1012;
    --surface:      #17181A;
    --surface-2:    #1C1D20;
    --ink:          #EDEDEE;
    --muted:        #A1A1AA;
    --faint:        #8A8A93;
    --fainter:      #8F8F98;
    --border:       #2A2B2E;
    --border-strong:#38393D;
    --accent:       #3FBFC9;
    --accent-d:     #6ED4DC;
    --accent-soft:  rgba(63,191,201,.16);
    --amber:        #F0B85B;
    --on-accent:    #0A1A1C;
    --shadow:    0 1px 1px rgba(0,0,0,.3), 0 20px 44px -24px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
}
p { margin: 0 0 12px; }
.muted { color: var(--muted); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  color: var(--ink); letter-spacing: -.01em; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* ecrane înguste de laptop: meniul („Orașe și comune”) încape pe un rând */
@media (min-width: 961px) and (max-width: 1140px) {
  .site-nav { gap: 9px; }
  .header-actions { gap: 8px; }
}
@media (min-width: 961px) and (max-width: 1060px) {
  .site-nav { gap: 7px; }
  .site-nav a { font-size: 11.5px; }
  .header-actions { gap: 6px; }
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent;
  color: var(--faint); cursor: pointer;
}
.icon-btn:hover { color: var(--accent); }
/* <button> pe paginile fără pereche, <a href> spre pagina RO/EN pereche în rest */
.lang-toggle {
  display: inline-block; line-height: normal; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  color: var(--muted); background: transparent; border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 13px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.ai-pill {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 999px;
  padding: 6px 14px; white-space: nowrap;
  text-decoration: none; cursor: pointer;
}
.ai-pill:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Global search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(24,24,27,.45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: 100%; max-width: 620px; max-height: 70vh;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.search-panel__row {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  color: var(--faint); flex-shrink: 0;
}
.search-panel__row input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--sans); font-size: 16px; color: var(--ink);
}
.search-panel__close {
  border: none; background: transparent; color: var(--faint); cursor: pointer;
  font-size: 22px; line-height: 1; padding: 2px 4px;
}
.search-panel__close:hover { color: var(--accent); }
.search-panel__results { overflow-y: auto; padding: 8px; }
.search-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.search-chips button {
  font: inherit; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--muted, var(--faint));
}
.search-chips button:hover { background: var(--surface-2); color: var(--ink); }
.search-chips button[aria-pressed="true"] { background: var(--accent, #0E7C86); border-color: var(--accent, #0E7C86); color: #fff; }
.search-panel__hint { color: var(--faint); font-size: 13.5px; padding: 20px 14px; margin: 0; }
.search-result {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: var(--radius); color: var(--ink);
}
.search-result:hover, .search-result:focus { background: var(--surface-2); color: var(--ink); }
.search-result__type {
  font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.search-result__title { font-size: 14.5px; font-weight: 600; }
.search-result__tagline { font-size: 12.5px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; gap: 8px;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-d); color: var(--on-accent); }
.btn--outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-reset {
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 16px; cursor: pointer; align-self: flex-end;
}
.btn-reset:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero__eyebrow {
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.hero h1 { font-size: 42px; max-width: 680px; }
.hero h1 .accent { color: var(--accent); }
.hero p { max-width: 560px; font-size: 16.5px; color: var(--muted); }
.hero__cta { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.hero__apps { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.quick a { display: inline-block; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.quick a:hover { border-color: var(--accent); color: var(--accent); }
.hero__apps-label { font-size: 12px; color: var(--fainter); }

/* ---------- Instalare aplicație (PWA) ---------- */
.footer-apps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-apps-label { font-size: 12px; color: var(--fainter); }
.app-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-app {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--ink); border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 12px;
}
button.badge-app { font-family: var(--sans); background: transparent; cursor: pointer; }
button.badge-app:hover { border-color: var(--accent); color: var(--accent); }
[data-pwa-install][hidden], [data-pwa-ios-hint][hidden] { display: none; }
.pwa-hint { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--muted); max-width: 520px; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  background: var(--surface-2);
}
.stat {
  text-align: center; padding: 22px 8px; display: flex; flex-direction: column; gap: 4px;
}
.stat__value { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--accent); }
.stat__label { font-size: 12px; color: var(--faint); }

/* ---------- Explore grid (home) ---------- */
.section { padding: 40px 0; }
.section > h2 { font-size: 20px; margin-bottom: 18px; }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; content-visibility: auto; contain-intrinsic-size: auto 560px; } /* sub pliu: pozele de fundal ale tile-urilor nu se cer până nu se apropie de ecran */
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); overflow: hidden;
}
.tile:hover { border-color: var(--accent); }
.tile__mark {
  position: relative; z-index: 1;
  width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft);
  color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.tile__title { position: relative; z-index: 1; font-size: 14.5px; font-weight: 600; }
.tile__desc { position: relative; z-index: 1; font-size: 12px; color: var(--faint); line-height: 1.4; }

/* Tile cu fotografie de fundal (Destinații, Orașe, Natură, Turism activ,
   Moștenire culturală, Afaceri, Știri): text alb peste gradient întunecat. */
.tile--photo {
  min-height: 178px; justify-content: flex-end; color: #fff; border-color: transparent;
  background-size: cover; background-position: center;
}
.tile--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,16,18,.04) 0%, rgba(15,16,18,.28) 48%, rgba(10,11,12,.92) 100%);
  transition: background .15s ease;
}
.tile--photo:hover { border-color: var(--accent); }
.tile--photo:hover::after {
  background: linear-gradient(180deg, rgba(14,124,134,.1) 0%, rgba(15,16,18,.34) 48%, rgba(8,44,48,.94) 100%);
}
.tile--photo .tile__mark {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.2); color: #fff;
}
.tile--photo .tile__desc { color: rgba(255,255,255,.85); }

/* Tile fără foto (Contact — nu are un subiect vizual firesc): stil accent, ca un CTA. */
.tile--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tile--accent .tile__desc { color: var(--on-accent); opacity: .9; }
.tile--accent:hover { border-color: var(--on-accent); }
.tile--accent .tile__mark { background: rgba(255,255,255,.2); color: var(--on-accent); }

/* ---------- Latest news (home) ---------- */
.news-list { display: flex; flex-direction: column; gap: 2px; }
.news-item {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--border); color: var(--ink);
}
.news-item:hover .news-item__title { color: var(--accent); }
.news-item__date { font-size: 12.5px; color: var(--fainter); white-space: nowrap; }
.news-item__title { font-weight: 600; }
.news-item__tagline { color: var(--muted); font-size: 13.5px; flex: 1; text-align: right; }

/* ---------- Filters ---------- */
.filters { padding: 24px 0 8px; }
.filters h2 { font-size: 17px; margin-bottom: 14px; }
.filters__row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field--search { flex: 1; min-width: 220px; }
.field input, .field select {
  font-family: var(--sans); font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.results-bar { padding: 16px 0 4px; font-size: 13px; color: var(--fainter); }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 12px 0 40px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; color: var(--ink); display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4/3; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.card__title { font-size: 15.5px; font-weight: 600; }
.card__tagline { font-size: 13.5px; color: var(--muted); flex: 1; }
.card__area { font-size: 12px; color: var(--fainter); }

.badge {
  display: inline-flex; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--surface); color: var(--muted);
}
.badge--example { background: var(--amber); color: #2a2103; position: absolute; top: 10px; left: 10px; }

.related-group__title {
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 2px;
}
.related-group__title:first-of-type { margin-top: 6px; }

/* ---------- Detail page ---------- */
.detail { padding-top: 32px; padding-bottom: 56px; }
.detail-back { display: inline-block; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; }
.detail-badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); display: flex; gap: 8px; align-items: center; }
.detail-title { font-size: 30px; margin: 8px 0 6px; }
.detail-tagline { font-size: 17px; color: var(--muted); max-width: 640px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 24px 0; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; height: auto; object-fit: cover; background: var(--surface-2); }
.detail-body { display: grid; grid-template-columns: minmax(0,2fr) minmax(240px,1fr); gap: 40px; align-items: start; }
.detail-description p { color: var(--ink); font-size: 16px; }
.detail-facts { background: var(--surface-2); border-radius: var(--radius); padding: 20px; }
.detail-facts h2 { font-size: 14px; margin-bottom: 12px; }
.detail-facts dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.detail-town { margin: 14px 0 0; font-size: 14px; }
.detail-town a { color: var(--accent); font-weight: 600; }
.detail-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--fainter); }
.detail-facts dd { margin: 0; font-size: 14.5px; }
.detail-map { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.not-found { padding: 64px 0; text-align: center; }

/* ---------- Reviews ---------- */
#reviews { padding: 40px 0 0; border-top: 1px solid var(--border); margin-top: 40px; }
#reviews h2 { font-size: 19px; margin-bottom: 14px; }
.reviews-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.reviews-avg { font-family: var(--display); font-weight: 700; font-size: 22px; }
.reviews-total { color: var(--fainter); font-size: 13.5px; }
.stars { color: var(--border-strong); font-size: 15px; letter-spacing: 1px; }
.star--full, .star--half { color: var(--amber); }
.reviews-empty { color: var(--muted); }
.reviews-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.review { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-author { font-weight: 600; font-size: 14px; }
.review-date { color: var(--fainter); font-size: 12.5px; }
.review-title { font-weight: 600; margin: 4px 0; }
.review-body { color: var(--muted); font-size: 14.5px; }
.review-photo { max-width: 220px; border-radius: 8px; margin-top: 8px; }

.review-form { background: var(--surface-2); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.review-form h3 { font-size: 16px; }
.rv-row { display: flex; gap: 14px; flex-wrap: wrap; }
.rv-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); flex: 1; min-width: 160px; }
.rv-field input[type="text"], .rv-field textarea, .rv-field input[type="file"] {
  font-family: var(--sans); font-size: 14px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--ink);
}
.rating-input { display: flex; gap: 4px; font-size: 22px; color: var(--border-strong); }
.ri-star input { position: absolute; opacity: 0; pointer-events: none; }
.ri-star { cursor: pointer; }
.ri-star:has(input:checked), .ri-star:has(~ .ri-star input:checked) { color: var(--amber); }
.rv-note { font-size: 12.5px; color: var(--fainter); margin: -6px 0 0; }
.rv-msg { font-size: 13.5px; margin: 0; }
.rv-msg--ok { color: var(--accent); }
.rv-msg--err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--surface-2); }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; padding-top: 36px; padding-bottom: 24px; }
.site-footer .brand { display: block; margin-bottom: 4px; }
.footer-tagline { font-size: 12.5px; color: var(--fainter); max-width: 240px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 24px; }
.footer-nav a { color: var(--muted); font-size: 13px; }
.footer-nav a:hover { color: var(--accent); }
.newsletter { display: flex; flex-direction: column; gap: 8px; }
.newsletter-label { font-size: 12px; font-weight: 600; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input {
  font-family: var(--sans); font-size: 13px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--surface); color: var(--ink); min-width: 180px;
}
.newsletter-row button {
  font-family: var(--sans); font-weight: 600; font-size: 13px; background: var(--accent); color: var(--on-accent);
  border: none; border-radius: 6px; padding: 9px 16px; cursor: pointer;
}
.site-footer__bottom {
  border-top: 1px solid var(--border); padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 14px;
}
.footer-note { font-size: 12px; color: var(--fainter); }
.footer-email { font-size: 12px; color: var(--faint); text-decoration: none; }
.footer-email:hover { color: var(--accent); }
.social-row { display: flex; gap: 10px; }
.social-row span {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted);
}

/* ---------- Static pages (Utile, Contact, 404, Credite) ---------- */
.prose { max-width: 720px; padding-top: 40px; padding-bottom: 60px; }
.prose h1 { font-size: 30px; margin-bottom: 10px; }
.prose h2 { font-size: 19px; margin: 32px 0 10px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.contact-email-line { font-size: 14px; color: var(--muted); }
.contact-email-line a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-email-line a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; margin-top: 24px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font-family: var(--sans); font-size: 14px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--ink);
}

/* ---------- Mulțumim (după trimiterea formularului) ---------- */
.thanks { padding-top: 64px; }
.thanks__icon {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.thanks__text { font-size: 16px; color: var(--muted); max-width: 560px; }
.thanks__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.thanks__note { max-width: 560px; }
.thanks__again { font-size: 14px; margin-top: 8px; }
.thanks__again a { color: var(--accent); font-weight: 600; text-decoration: none; }
.thanks__again a:hover { text-decoration: underline; }

/* ---------- Credite ---------- */
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; margin-top: 24px; }
.credit-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.credit-card h3 { font-size: 14px; margin-bottom: 4px; }
.credit-files { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.photo-credit { font-size: 11.5px; color: var(--fainter); margin: 8px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .explore-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-body { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .footer-nav { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 560px) {
  .explore-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer__top { flex-direction: column; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* ---------- Formularul „Trimite o poză” ---------- */
.contact-form select { font-family: var(--sans); font-size: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); }
.contact-form small { font-size: 12px; color: var(--muted); }
.contact-form .photo-warn { color: var(--ink); font-weight: 600; border-left: 3px solid var(--accent); padding-left: 8px; }
.contact-form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); }
.contact-form label.check input { margin-top: 3px; }
.photo-cta { margin-top: 14px; font-size: 14px; }
.photo-cta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.photo-cta a:hover { text-decoration: underline; }

/* ---------- Itinerarii ---------- */
.itin-page { max-width: 760px; padding-bottom: 48px; }
.itin h1 { margin-bottom: 8px; }
.itin-meta { font-size: 13px; font-weight: 600; color: var(--accent-d); margin: 0 0 16px; }
.itin-day { margin-top: 28px; }
.itin-day h2 { font-size: 19px; margin: 0 0 12px; }
.itin-stops { list-style: none; padding: 0; margin: 0; counter-reset: stop; display: flex; flex-direction: column; gap: 12px; }
.itin-stop { counter-increment: stop; position: relative; padding: 14px 16px 14px 52px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.itin-stop::before { content: counter(stop); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-d); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.itin-stop__name { font-weight: 600; color: var(--ink); text-decoration: none; }
.itin-stop__name:hover { color: var(--accent-d); text-decoration: underline; }
.itin-stop__cat { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.itin-stop p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.itin-stop__note { color: var(--ink) !important; }
.itin-stop__fact { color: var(--ink) !important; }
.itin-warn { margin-top: 24px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.itin-note { font-size: 13px; margin-top: 20px; }
.itin-grid { padding-top: 24px; }
.itin-day ul { padding-left: 20px; }

/* ---------- Harta ---------- */
.map-filters { border: 0; margin: 16px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.map-filters legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.map-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; background: var(--surface); cursor: pointer; }
.map-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-count { font-size: 13px; color: var(--muted); margin: 4px 0 8px; min-height: 20px; }
.map-box { height: 520px; max-height: 70vh; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.map-attrib { font-size: 12px; margin: 8px 0 0; }
.map-list ul { columns: 2 260px; padding-left: 18px; font-size: 14px; }
.map-list h3 { font-size: 15px; margin: 20px 0 6px; }
.map-box .leaflet-popup-content { font-family: var(--sans); font-size: 13px; line-height: 1.5; }
.map-box .leaflet-popup-content a { color: #0A616A; font-weight: 600; }

/* ---------- Calendar și vreme ---------- */
.cal-section { margin-top: 28px; }
.cal-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 12px; }
.cal-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 14px 16px; }
.cal-item[hidden] { display: none; }
.cal-item h3 { font-size: 16px; margin: 4px 0; }
.cal-item h3 a { color: var(--ink); text-decoration: none; }
.cal-item h3 a:hover { color: var(--accent-d); text-decoration: underline; }
.cal-item p { margin: 4px 0; font-size: 14px; }
.cal-item__cat { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-d); font-weight: 700; }
.cal-item__when { font-weight: 600; }
.cal-note { font-size: 13px; }
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 16px 0; min-height: 40px; }
.wx-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 16px; }
.wx-card h2 { font-size: 17px; margin: 0 0 2px; }
.wx-elev { font-size: 12px; margin: 0 0 8px; }
.wx-now { font-size: 14px; margin: 0 0 10px; }
.wx-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wx-days li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; font-size: 13.5px; padding-top: 8px; border-top: 1px solid var(--border); }
.wx-day { font-weight: 600; }
.wx-temp { text-align: right; font-weight: 600; }
.wx-sky, .wx-extra { color: var(--muted); font-size: 12.5px; }
.wx-extra { text-align: right; }
.wx-credit { font-size: 12px; }

/* ---------- CLS: spațiu rezervat cât timp motoarele JS (home.js / listing.js) nu au randat încă ---------- */
/* Clasa js-rendered se pune pe <html> după prima randare. Până atunci conținutul generat de JS are înălțimea
   ecranului, deci footer-ul și secțiunile de sub el nu „sar” în zona vizibilă când apar cardurile. */
html:not(.js-rendered) #grid,
html:not(.js-rendered) #home-highlights:not([data-prerendered]) { min-height: 100vh; }
html:not(.js-rendered) #explore-grid:not([data-prerendered]) { min-height: 60vh; }

/* destinatii.html: localitățile grupate pe zone */
.zone-towns { margin: 40px 0 8px; }
.zone-towns h2 { margin-bottom: 6px; }
.zone-group { margin-top: 22px; }
.zone-group h3 { font-size: 16px; margin-bottom: 8px; }
.zone-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 20px; }
.zone-group a { color: var(--accent); font-weight: 500; }
