:root {
  --bg: #f4efe5;
  --paper: #fbf8f2;
  --ink: #28251f;
  --muted: #665d50;
  --forest: #4d6a4a;
  --forest-dark: #253a29;
  --earth: #a26b3d;
  --stone: #8a7a63;
  --cream: #fffaf2;
  --line: rgba(80, 67, 49, 0.18);
  --shadow: 0 18px 42px rgba(35, 29, 21, 0.12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

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

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Skip link */
.skip-link {
  position: fixed; left: 12px; top: 12px;
  transform: translateY(-150%); z-index: 80;
  padding: 10px 14px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  border: 1px solid var(--line);
}
.skip-link:focus { transform: translateY(0); }

/* Alert bar */
.top-alert {
  background: linear-gradient(90deg, #fff4ed, #ffe9e1);
  border-bottom: 2px solid #e12b2b;
  color: #b00000; font-size: 0.95rem; font-weight: 700;
}
.alert-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 46px; padding: 5px 0;
}
.alert-message, .alert-emergency {
  display: inline-flex; align-items: center; gap: 9px; color: #b00000;
}
.alert-message strong {
  color: #ff1d1d;
  text-shadow: 0 0 6px rgba(255,255,255,0.95), 0 0 13px rgba(255,0,0,0.5);
  animation: attentionPulse 1.25s ease-in-out infinite;
}
.alert-emergency img { width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }
@keyframes attentionPulse {
  0%,100% { filter: brightness(1); opacity: 1; }
  50% { filter: brightness(1.85); opacity: 0.72; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(244,239,229,0.92);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 88px; display: grid;
  grid-template-columns: minmax(360px,1.05fr) minmax(290px,0.82fr) minmax(210px,0.58fr);
  align-items: center; gap: 14px;
}
.brand {
  display: grid;
  grid-template-columns: auto minmax(150px,auto) auto;
  align-items: center; justify-content: start;
  gap: 12px; text-decoration: none; min-width: 0;
}
.brand-logo {
  width: auto; object-fit: contain; flex: 0 0 auto;
  filter: drop-shadow(0 2px 3px rgba(35,29,21,0.12));
}
.brand-logo-park { height: 58px; }
.brand-logo-romsilva { height: 79px; max-width: 143px; }

/* Institutional logos - ENLARGED per Gg's request */
.institutional-logos {
  display: inline-flex; align-items: center; justify-content: flex-end;
  gap: 14px; min-width: 0;
}
.institutional-logos img {
  width: auto; max-width: 140px; height: 72px;
  object-fit: contain;
}
.institutional-logos img[alt="ANMAP"] {
  max-width: 169px; height: 88px;
}

.brand-text { display: grid; line-height: 1.12; font-weight: 700; }
.brand-text span:last-child { font-size: 0.82rem; color: var(--muted); font-weight: 400; }

/* Menu */
.menu {
  display: flex; align-items: center; justify-content: center;
  gap: 4px 6px; flex-wrap: wrap; max-width: 360px; line-height: 1.1;
}
.menu a {
  text-decoration: none; border-radius: 999px; padding: 7px 9px;
  color: #302a22; font-size: 0.86rem; white-space: nowrap;
  cursor: pointer;
}
.menu a:hover, .menu a:focus { background: rgba(77,106,74,0.12); outline: none; }
.menu a.active { background: rgba(77,106,74,0.18); color: var(--forest-dark); font-weight: 700; }

/* Hero */
.hero {
  min-height: calc(100vh - 130px); display: grid; align-items: end;
  position: relative; overflow: hidden; isolation: isolate; background: #1c281f;
}
.hero-flags {
  position: absolute; top: 22px;
  right: max(16px, calc((100vw - var(--max)) / 2));
  z-index: 5; display: flex; gap: 8px; padding: 7px;
  border-radius: 999px;
  background: rgba(20,28,22,0.38);
  border: 1px solid rgba(255,250,242,0.32);
  backdrop-filter: blur(10px);
}
.flag {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; text-decoration: none; color: #fff;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 22px rgba(0,0,0,0.24);
  cursor: pointer;
}
.flag.ro { background: linear-gradient(90deg,#0033a0 0 33%,#fcd116 33% 66%,#ce1126 66%); }
.flag.en { background: linear-gradient(90deg,#123b7a 0 35%,#fff 35% 45%,#c8102e 45% 55%,#fff 55% 65%,#123b7a 65%); }
.flag.de { background: linear-gradient(180deg,#111 0 33%,#dd0000 33% 66%,#ffce00 66%); }
.flag.fr { background: linear-gradient(90deg,#0055a4 0 33%,#fff 33% 66%,#ef4135 66%); color: #111; }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg,rgba(13,22,15,0.82),rgba(13,22,15,0.34) 52%,rgba(13,22,15,0.28)),
    url("../img/galerie/pinul Negru/DD_domogled-pin-negru-apus.jpg") center/cover;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 38%; z-index: -1;
  background: linear-gradient(0deg,rgba(28,40,31,0.88),transparent);
}
.hero-content { color: var(--cream); padding: 72px 0 42px; max-width: 900px; }
.eyebrow {
  margin: 0 0 14px; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: #e5c49d;
}

h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 18px; max-width: 13ch; font-size: clamp(2.75rem,6.6vw,5.85rem); line-height: 0.93; }
h2 { margin-bottom: 14px; font-size: clamp(2rem,4vw,3.45rem); line-height: 1; }
h3 { margin-bottom: 10px; font-size: 1.25rem; line-height: 1.18; }

.hero-lead {
  max-width: 650px; margin-bottom: 26px; color: #fff8ea;
  font-size: clamp(1.18rem,2.1vw,1.55rem); line-height: 1.45;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid transparent; text-decoration: none; font-weight: 700; font-size: 0.96rem;
  cursor: pointer;
}
.button.primary { background: var(--cream); color: var(--forest-dark); }
.button.secondary { border-color: rgba(255,250,242,0.56); color: var(--cream); background: rgba(255,250,242,0.08); }

.hero-strip {
  margin-top: 48px; display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1px; overflow: hidden; border-radius: var(--radius);
  border: 1px solid rgba(255,250,242,0.28);
  background: rgba(255,250,242,0.18); backdrop-filter: blur(10px);
}
.stat { min-height: 94px; padding: 18px; background: rgba(255,250,242,0.1); color: #fff8ea; }
.stat strong { display: block; font-size: 1.4rem; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: rgba(255,250,242,0.78); font-size: 0.9rem; }

/* Sections */
main section { padding: 84px 0; scroll-margin-top: 96px; }
.section-head {
  display: grid; grid-template-columns: minmax(0,0.9fr) minmax(280px,0.6fr);
  gap: 34px; align-items: end; margin-bottom: 34px;
}
.section-head p { margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }

/* Grids */
.quick-grid, .trail-grid, .admin-grid {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px;
}
.trail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

/* Cards */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(251,248,242,0.88); box-shadow: var(--shadow); overflow: hidden;
}
.quick-card {
  min-height: 210px; padding: 22px; display: flex; flex-direction: column;
  justify-content: space-between; text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}
.quick-card:hover, .quick-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(35,29,21,0.16); outline: none;
}
.quick-card span { color: var(--earth); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.quick-card p, .trail-card p, .admin-card p { color: var(--muted); margin-bottom: 0; }

/* Split layout */
.split {
  display: grid; grid-template-columns: minmax(0,0.95fr) minmax(0,1.05fr);
  gap: 24px; align-items: stretch;
}
.feature-image { min-height: 560px; position: relative; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  padding: 12px 14px; border-radius: 14px; color: #fff8ea;
  background: rgba(20,28,22,0.66); backdrop-filter: blur(8px); font-size: 0.92rem;
}
.content-panel { padding: 34px; display: grid; align-content: center; }
.content-panel p { color: var(--muted); }

.check-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { padding-left: 28px; position: relative; color: #453d33; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--forest); box-shadow: 0 0 0 4px rgba(77,106,74,0.15);
}

/* Trail cards */
.trail-card { display: flex; flex-direction: column; min-height: 100%; cursor: pointer; }
.trail-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.trail-body { padding: 22px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px;
  border-radius: 999px; background: #eee4d6; color: #4d4032; font-size: 0.84rem; font-weight: 700;
}
.pill.blue { background: #dfeaf2; color: #27475d; }
.pill.red { background: #f2dfd9; color: #6e3022; }
.pill.green { background: #daf0d9; color: #2d5a2a; }
.pill.orange { background: #fdefd8; color: #7a4a0e; }

/* Marcaj SVG în pill */
.trail-marker-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 32px; background: #dfeaf2;
  border-radius: 8px; border: 1px solid #b8d0e8; flex-shrink: 0;
}
.trail-marker-pill.trail-marker-band {
  width: auto; height: auto; background: none; border: none; padding: 0;
}

/* Hint expand */
.trail-expand-hint {
  font-size: 0.78rem; color: var(--muted); margin-top: 8px; margin-bottom: 0;
  opacity: 0.6; font-style: italic;
}
.trail-card[aria-expanded="true"] .trail-expand-hint { display: none; }

/* Detalii traseu (hidden by default) */
.trail-detail { display: none; border-top: 2px solid var(--line); background: #f7f4ee; }
.trail-card[aria-expanded="true"] .trail-detail { display: block; }
.trail-detail-inner { padding: 24px 28px 28px; }
.trail-waypoints-label { font-weight: 700; font-size: 0.97rem; margin-bottom: 10px; color: var(--forest); }
.trail-waypoints { margin: 0 0 20px 22px; padding: 0; }
.trail-waypoints li { margin-bottom: 5px; font-size: 0.95rem; color: var(--text); }
.trail-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.65; margin-bottom: 13px; }
.trail-markers-inline { display: inline-block; vertical-align: middle; margin: 0 5px; }
.trail-close {
  display: inline-block; margin-top: 18px; background: none;
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 16px;
  cursor: pointer; font-size: 0.84rem; color: var(--muted); font-family: inherit;
}
.trail-close:hover { background: #e8e2d8; }

/* Grid când un card e expandat */
.trail-grid.has-expanded { grid-template-columns: 1fr; }
.trail-grid.has-expanded .trail-card:not([aria-expanded="true"]) { display: none; }

/* Info band (dark) */
.info-band { background: var(--forest-dark); color: var(--cream); }
.info-band .section-head p { color: rgba(255,250,242,0.75); }
.rule-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.rule {
  min-height: 190px; padding: 24px;
  border: 1px solid rgba(255,250,242,0.18); border-radius: var(--radius);
  background: rgba(255,250,242,0.08);
}
.rule p { margin-bottom: 0; color: rgba(255,250,242,0.76); }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-auto-rows: 250px; gap: 16px;
}
.gallery figure {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow);
}
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 9px 11px; border-radius: 12px;
  background: rgba(24,31,24,0.66); color: var(--cream); font-size: 0.88rem;
}

/* Galerie figures clickabile → linkuri către album */
.gallery-link {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.gallery-link:first-child { grid-row: span 2; }
.gallery-link figure { margin: 0; height: 100%; cursor: pointer; transition: transform 220ms ease; }
.gallery-link:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(35,29,21,0.18); }
.gallery-link:hover figure img { transform: scale(1.04); }
.gallery-link figure img { transition: transform 320ms ease; }
.gallery-link:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

/* Admin cards */
.admin-card { padding: 28px; min-height: 250px; }
.link-list { display: grid; gap: 10px; margin-top: 18px; }
.link-list a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; text-decoration: none; color: #2f2a23;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.link-list a:hover { color: var(--earth); }

/* Contact */
.contact { background: #e8ddce; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr);
  gap: 24px; align-items: stretch;
}
.contact-card { padding: 30px; min-height: 100%; }
address { font-style: normal; color: var(--muted); }

/* Footer */
.site-footer {
  padding: 30px 0; background: #1f2c22; color: rgba(255,250,242,0.82);
}
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--cream); text-decoration: none; }

/* ========== CONTENT PAGES (SPA) ========== */

/* Page section wrapper */
.page-section { padding: 84px 0; }
.page-section .wrap { max-width: 860px; }

/* Page titles */
.page-title {
  font-size: clamp(2rem,4vw,3rem); line-height: 1.05;
  margin-bottom: 8px; color: var(--ink);
}
.page-subtitle {
  font-size: 1.1rem; color: var(--muted);
  margin-bottom: 32px; max-width: 700px;
}

/* Prose content */
.prose { font-size: 1.05rem; line-height: 1.7; color: #3a3529; }
.prose p { margin-bottom: 1.2em; }
.prose h3 { margin-top: 2em; margin-bottom: 0.6em; font-size: 1.35rem; color: var(--ink); }
.prose h4 { margin-top: 1.5em; margin-bottom: 0.5em; font-size: 1.1rem; color: var(--forest-dark); }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.5em 0; padding: 1em 1.5em;
  border-left: 4px solid var(--forest);
  background: rgba(77,106,74,0.06); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--muted);
}

/* Emergency box */
.emergency-box {
  margin: 2em 0; padding: 24px 28px;
  background: linear-gradient(135deg, #fff4ed, #ffe9e1);
  border: 2px solid #e12b2b; border-radius: var(--radius);
}
.emergency-box h3 { color: #b00000; margin-top: 0; }
.emergency-box table { width: 100%; border-collapse: collapse; }
.emergency-box td { padding: 8px 12px; border-bottom: 1px solid rgba(224,50,50,0.2); }
.emergency-box td:first-child { font-weight: 700; color: #b00000; }

/* WIP banner */
.wip-banner {
  margin: 40px 0; padding: 48px 32px; text-align: center;
  background: var(--paper); border: 2px dashed var(--line);
  border-radius: var(--radius); color: var(--muted);
}
.wip-banner h3 { color: var(--stone); font-size: 1.3rem; }
.wip-banner p { max-width: 500px; margin: 0 auto; }

/* Sub-navigation for sections */
.sub-nav {
  margin-bottom: 40px; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.sub-nav-list {
  display: flex; gap: 8px; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 0;
}
.sub-nav-list a {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: 6px 14px; border-radius: 999px; text-decoration: none;
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; transition: all 150ms;
}
.sub-nav-list a:hover, .sub-nav-list a.active {
  background: var(--forest); color: var(--cream); border-color: var(--forest);
}

/* Reserves table */
.reserves-table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.reserves-table th {
  text-align: left; padding: 12px 14px; background: var(--forest-dark);
  color: var(--cream); font-size: 0.88rem; font-weight: 700;
}
.reserves-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.reserves-table tr:hover td { background: rgba(77,106,74,0.05); }

/* Staff grid */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; margin: 1.5em 0; }
.staff-card {
  padding: 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper);
}
.staff-card strong { display: block; color: var(--ink); }
.staff-card span { font-size: 0.9rem; color: var(--muted); }

/* Back to section link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 24px; font-size: 0.9rem; color: var(--forest);
  text-decoration: none; cursor: pointer;
}
.back-link:hover { color: var(--earth); }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; gap: 6px; align-items: center;
  margin-bottom: 16px; font-size: 0.85rem; color: var(--muted);
}
.breadcrumbs a { text-decoration: none; color: var(--forest); cursor: pointer; }
.breadcrumbs a:hover { color: var(--earth); }
.breadcrumbs span { color: var(--stone); }

/* ========== RESPONSIVE ========== */

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr; align-items: flex-start; padding: 14px 0; }
  .brand { min-width: 0; }
  .brand-logo-park { height: 52px; }
  .brand-logo-romsilva { height: 66px; max-width: 119px; }
  .institutional-logos { justify-content: flex-start; }
  .institutional-logos img { max-width: 120px; height: 62px; }
  .institutional-logos img[alt="ANMAP"] { max-width: 132px; height: 68px; }
  .hero { min-height: auto; }
  .hero-strip, .quick-grid, .trail-grid, .rule-grid, .admin-grid, .section-head, .split, .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-image { min-height: 420px; }
  .staff-grid { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
}

@media (max-width: 700px) {
  .alert-wrap { align-items: flex-start; flex-direction: column; gap: 2px; min-height: 0; }
  .alert-emergency img { width: 34px; height: 34px; }
  .brand { align-items: flex-start; }
  .brand-logo-park { height: 46px; }
  .brand-logo-romsilva { height: 57px; max-width: 106px; }
  .institutional-logos img { max-width: 100px; height: 54px; }
  .institutional-logos img[alt="ANMAP"] { max-width: 110px; height: 59px; }
  .hero-flags { top: 12px; right: 12px; gap: 5px; }
  .flag { width: 30px; height: 30px; font-size: 0.62rem; }
  .hero-content { padding: 54px 0 30px; }
  .hero-strip, .quick-grid, .trail-grid, .rule-grid, .admin-grid, .section-head,
  .split, .contact-grid, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 240px; }
  .gallery figure:first-child { grid-row: span 1; }
  main section, .page-section { padding: 58px 0; }
  .content-panel, .admin-card, .contact-card { padding: 24px; }
  .sub-nav-list { gap: 6px; }
  .reserves-table { font-size: 0.85rem; }
  .reserves-table th, .reserves-table td { padding: 8px 10px; }
}

/* ===== INTERACTIVE MAP LAYOUTS ===== */
.map-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
  align-items: stretch;
}
.map-container {
  flex: none;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-cards {
  flex: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.map-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.map-card:hover {
  border-color: var(--forest);
  box-shadow: 0 4px 14px rgba(35,29,21,0.1);
}
.map-card.active {
  border-color: var(--forest);
  border-width: 2px;
  box-shadow: 0 4px 14px rgba(77,106,74,0.2);
}
.map-card-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
}
.map-card h4 {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  line-height: 1.3;
}
.map-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.map-card .card-meta {
  font-size: 0.78rem;
  color: var(--stone);
  margin-top: 6px;
}
.tourist-map-base {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tourist-map-base-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.tourist-map-base-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.tourist-map-base-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.tourist-map-sheets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.tourist-map-sheet {
  margin: 0;
  background: #f7f4ee;
}
.tourist-map-sheet a {
  display: block;
  cursor: zoom-in;
}
.tourist-map-sheet img {
  width: 100%;
  height: min(64vh, 720px);
  object-fit: contain;
  background: #f7f4ee;
}
.tourist-map-sheet figcaption {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .map-layout {
    flex-direction: column;
  }
  .map-cards {
    flex: none;
    max-height: none;
    overflow-y: visible;
  }
}
@media (max-width: 700px) {
  .map-cards { flex-basis: auto; }
  .map-card { padding: 10px 12px; }
  .tourist-map-base-head { display: block; }
  .tourist-map-base-head p { margin-top: 4px; }
  .tourist-map-sheets { grid-template-columns: 1fr; }
  .tourist-map-sheet img { height: auto; max-height: 70vh; }
}
/* POI icons & tooltips */
.poi-icon { background: none !important; border: none !important; }
.poi-tooltip { font-size: 0.82rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }

/* ===== Trasee cards (pagina #harta) ===== */
.traseu-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251,248,242,0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.traseu-card:hover { box-shadow: 0 16px 36px rgba(35,29,21,0.14); transform: translateY(-1px); }
.traseu-card.active { border: 2px solid #1d6fb0; box-shadow: 0 0 0 3px rgba(29,111,176,0.18), 0 16px 40px rgba(29,111,176,0.15); }
.traseu-card.dimmed { opacity: 0.45; }
.traseu-card:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.traseu-card-head { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.traseu-nr {
  flex: 0 0 auto; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 700; font-size: 0.95rem;
  color: #fff; background: var(--earth);
}
.traseu-nr[data-difficulty="usor"]   { background: #4a7a3b; }
.traseu-nr[data-difficulty="mediu"]  { background: #b8841d; }
.traseu-nr[data-difficulty="dificil"]{ background: #9c3a2a; }

.traseu-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.traseu-info strong { font-size: 0.95rem; line-height: 1.3; color: var(--ink); font-weight: 600; }
.traseu-meta { font-size: 0.78rem; color: var(--muted); }

/* Pills + marker row in card */
.traseu-pills {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.traseu-pills .pill {
  min-height: 24px; padding: 3px 9px; font-size: 0.74rem; font-weight: 600;
  border-radius: 999px;
}
.traseu-pills .pill-ico {
  margin-right: 3px; font-size: 0.85em; opacity: 0.75;
}

/* Marker SVG (replicat din .trail-marker-pill dar self-contained) */
.trail-mark {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
}
.trail-mark svg { display: block; }
.trail-mark--missing {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-style: italic; color: var(--muted);
  padding: 3px 8px; border-radius: 999px;
  background: rgba(80,67,49,0.08); border: 1px dashed var(--line);
}

.traseu-toggle {
  flex: 0 0 auto; align-self: center; font-size: 0.9rem; color: var(--muted);
  transition: transform 180ms ease;
}
.traseu-card.open .traseu-toggle { transform: rotate(180deg); }

.traseu-card-desc {
  max-height: 0; overflow: hidden;
  transition: max-height 320ms ease, padding 220ms ease;
  padding: 0 14px;
  border-top: 0 solid var(--line);
}
.traseu-card.open .traseu-card-desc {
  max-height: 1400px;
  padding: 10px 14px 16px;
  border-top: 1px solid var(--line);
}
.traseu-card-desc p { font-size: 0.88rem; line-height: 1.55; color: var(--ink); margin: 0; }

/* ===== MAP TOOLTIP ===== */
.map-tooltip {
  background: rgba(37,58,41,0.92) !important;
  border: none !important;
  border-radius: 6px !important;
  color: #fffaf2 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  white-space: nowrap;
}
.map-tooltip::before { display: none !important; }

/* ===== POVEȘTI PAGE ===== */
.povesti-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.poveste-card {
  display: flex; gap: 0; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: box-shadow 200ms, transform 150ms;
}
.poveste-card:hover { box-shadow: 0 6px 24px rgba(37,58,41,0.13); transform: translateY(-2px); }
.poveste-card-h { flex-direction: row; align-items: stretch; }
.poveste-thumb {
  width: 160px; min-width: 160px; max-width: 160px;
  object-fit: cover; display: block; flex-shrink: 0;
}
.poveste-body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.poveste-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--forest);
  background: rgba(77,106,74,0.10); border-radius: 4px; padding: 2px 7px;
  display: inline-block; width: fit-content;
}
.poveste-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--ink); line-height: 1.3; }
.poveste-card p { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 600px) {
  .poveste-card-h { flex-direction: column; }
  .poveste-thumb { width: 100%; max-width: 100%; height: 180px; }
}

