/* Stiluri preluate din tema incdt.ro (default-theme) */
:root {
  --fundal: #f8f8f8;
  --suprafata: #ffffff;
  --text: #242a36;
  --text-2: #6b7280;
  --gri-meniu: #9ca3a9;
  --linie: #e4e4e4;
  --albastru: #2465a9;
  --portocaliu: #ffa801;
  --visiniu: #75140C;
  --umbra: 5px 11px 10px -10px rgb(0 0 0 / 6%);
  --umbra-antet: 0 6px 13px 0 rgb(0 0 0 / 6%);
  --font: Poppins, Verdana, Geneva, sans-serif;
  --font-meniu: Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundal);
  color: var(--text);
  font: 15px/1.65 var(--font);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: var(--albastru); }
h1, h2, h3 { font-family: var(--font); font-weight: 500; line-height: 1.25; margin: 0 0 .5em; }
img { max-width: 100%; display: block; }

.bara-in { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* Antet */
.bara { background: var(--suprafata); box-shadow: var(--umbra-antet); position: sticky; top: 0; z-index: 1000; }
.bara .bara-in { display: flex; align-items: center; gap: 28px; min-height: 110px; flex-wrap: wrap; }
.sigla-link img { width: 170px; height: auto; }
.site-titlu {
  color: var(--visiniu); text-decoration: none; font-size: 22px; font-weight: 500;
  padding-left: 28px; border-left: 1px solid var(--linie); line-height: 1.2;
}
.nav { display: flex; gap: 0; margin-left: auto; flex-wrap: wrap; }
.nav a {
  font: 600 15px/28px var(--font-meniu); text-transform: uppercase; color: var(--gri-meniu);
  text-decoration: none; padding: 11px 14px; transition: color .3s;
}
.nav a:hover, .nav a.activ { color: var(--albastru); }

/* Prima pagină */
.erou { padding: 30px 0 0; }
.caseta {
  display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: center;
  background: var(--suprafata); border: 1px solid rgb(212 212 212);
  box-shadow: 10px 10px 14px -7px rgb(212 212 212); padding: 25px;
}
.caseta p { margin: 0; text-align: justify; }
.caseta-sigle { display: flex; align-items: center; justify-content: center; gap: 28px; }
.caseta-sigle img:first-child { width: 175px; height: auto; }
.caseta-sigle img:last-child { width: 150px; height: auto; }

.sectiune-titlu { text-align: center; margin: 44px 0 36px; }
.sectiune-titlu h1, .sectiune-titlu h2 {
  display: block; position: relative; color: var(--albastru); font-weight: 600;
  font-size: 28px; padding-bottom: 20px; margin: 0 0 14px;
}
.sectiune-titlu h1::before, .sectiune-titlu h2::before {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 40px; height: 2px;
  margin-left: -20px; background: var(--portocaliu);
}
.sectiune-titlu .sub { margin: 0; color: var(--text-2); }

.grila { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px; padding-bottom: 48px; }
.card {
  background: var(--suprafata); border-bottom: 2px solid var(--portocaliu);
  box-shadow: 0 0 20px rgb(0 0 0 / 6%); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 26px rgb(0 0 0 / 10%); }
.card-img { aspect-ratio: 4961 / 3508; background: #eee; position: relative; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-nr {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 600; box-shadow: 0 2px 6px rgb(0 0 0 / .3);
}
.card-corp { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h2 { font-size: 21px; margin: 0; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--albastru); }
.card-meta { color: var(--text-2); margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--linie); }
.card-actiuni { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 4px;
  font: 600 15px/1.5 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--portocaliu); background: var(--portocaliu); color: #fff;
}
.btn:hover { background: #e69700; border-color: #e69700; }
.btn.sec { background: transparent; color: var(--albastru); border-color: var(--linie); font-weight: 500; }
.btn.sec:hover { border-color: var(--albastru); }

/* Pagina rutei */
.cale { font-size: 14px; color: var(--text-2); margin: 28px 0 10px; }
.cale a { text-decoration: none; }
.ruta-cap { display: flex; align-items: center; gap: 14px; }
.ruta-cap .card-nr { position: static; flex: none; width: 42px; height: 42px; font-size: 18px; }
.ruta-cap h1 { margin: 0; font-size: 2rem; color: var(--visiniu); }
.ruta-desc {
  background: var(--suprafata); border: 1px solid var(--linie); box-shadow: var(--umbra);
  padding: 22px 26px; margin: 18px 0 28px; text-align: justify;
}
.ruta-desc p { margin: 0 0 .8em; }
.ruta-desc p:last-child { margin: 0; }

.taburi { display: flex; gap: 4px; border-bottom: 1px solid var(--linie); margin-bottom: 18px; }
.tab {
  background: none; border: 0; padding: 10px 16px; font: 600 14px var(--font-meniu); text-transform: uppercase;
  color: var(--gri-meniu); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--albastru); }
.tab[aria-selected="true"] { color: var(--albastru); border-color: var(--portocaliu); }

.ruta-corp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding-bottom: 48px; align-items: start; }
.panou-harta { background: var(--suprafata); border: 1px solid var(--linie); box-shadow: var(--umbra); overflow: hidden; position: sticky; top: 130px; }
.harta-viu { height: calc(100vh - 170px); min-height: 420px; }
.harta-img { cursor: zoom-in; position: relative; }
.harta-img .indiciu {
  position: absolute; right: 12px; bottom: 12px; background: rgb(36 101 169 / .9); color: #fff;
  padding: 5px 12px; border-radius: 4px; font-size: 13px;
}

.lista { background: var(--suprafata); border: 1px solid var(--linie); box-shadow: var(--umbra); }
.lista-cap { padding: 16px; border-bottom: 1px solid var(--linie); }
.lista-cap h2 { font-size: 18px; margin: 0 0 10px; color: var(--albastru); font-weight: 600; }
.cauta {
  width: 100%; padding: 8px 2px; border: 0; border-bottom: 1px solid #ccc;
  font: 15px var(--font); background: transparent; color: var(--text);
}
.cauta:focus { outline: 0; border-bottom-color: var(--albastru); }
.judet { padding: 12px 16px 4px; font: 700 12.5px var(--font-meniu); letter-spacing: .05em; text-transform: uppercase; color: var(--gri-meniu); }
.lista ol { list-style: none; margin: 0; padding: 0 8px 8px; }
.obiectiv {
  width: 100%; text-align: left; background: none; border: 0; border-radius: 4px; cursor: pointer;
  padding: 8px 10px; font: 14.5px/1.4 var(--font); color: var(--text); display: flex; gap: 10px; align-items: flex-start;
}
.obiectiv:hover, .obiectiv.activ { background: #fff6e5; }
.obiectiv .punct { flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; margin-top: 1px; }
.obiectiv small { display: block; color: var(--text-2); font-size: 13px; }
.gol { padding: 16px; color: var(--text-2); }

/* Markere hartă */
.marker {
  width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 600 11px/26px var(--font);
  text-align: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .45);
}
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content { font: 14px/1.45 var(--font); margin: 12px 14px; }
.leaflet-popup-content strong { font-weight: 600; font-size: 15px; color: var(--visiniu); }
.leaflet-popup-content .btn { margin-top: 8px; font-size: 13.5px; }
.legenda { background: #fff; padding: 10px 12px; border-radius: 4px; box-shadow: 0 1px 6px rgb(0 0 0 / .2); font: 13px/1.6 var(--font); max-width: 240px; }
.legenda label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.legenda i { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* Fișa obiectivului */
dialog { border: 0; padding: 0; color: var(--text); }
dialog::backdrop { background: rgb(36 42 54 / .6); }
.fisa { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border-bottom: 3px solid var(--portocaliu); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
#fisa-continut { padding: 28px 30px 30px; }
.fisa .eticheta { display: inline-block; color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 12.5px; font-weight: 500; margin-bottom: 10px; }
.fisa h2 { font-size: 1.75rem; color: var(--visiniu); padding-right: 36px; }
.fisa h3 { color: var(--albastru); font-size: 18px; font-weight: 600; }
.fisa dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 16px 0; padding: 16px 0; border-block: 1px dotted #ccc; }
.fisa dt { font-weight: 600; color: var(--text-2); font-size: 13.5px; }
.fisa dd { margin: 0; }
.fisa .descriere { text-align: justify; }
.fisa .descriere p { margin: 0 0 .8em; }
.fisa-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.inchide {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--fundal); font-size: 24px; line-height: 1; cursor: pointer; color: var(--text); z-index: 2;
}
.inchide:hover { background: var(--linie); }

.zoom { width: 100vw; height: 100vh; max-width: none; max-height: none; background: #111; }
.zoom-scena { width: 100%; height: 100%; overflow: hidden; touch-action: none; cursor: grab; }
.zoom-scena img { transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.zoom-ajutor { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); margin: 0; color: #ddd; background: rgb(0 0 0 / .6); padding: 6px 12px; border-radius: 4px; font-size: 13px; white-space: nowrap; }

/* Subsol */
.subsol { background: var(--albastru); color: #fff; }
.subsol .bara-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; flex-wrap: wrap; padding-block: 12px; }
.subsol p { margin: 0; }
.subsol ul { list-style: none; margin: 0; padding: 0; display: flex; }
.subsol li { border-right: 1px solid #fff; }
.subsol li:last-child { border-right: 0; }
.subsol a { color: #fff; text-decoration: none; padding: 0 14px; }
.subsol a:hover { text-decoration: underline; }

@media (max-width: 992px) {
  .bara .bara-in { min-height: 80px; gap: 14px; padding-block: 8px; }
  .sigla-link img { width: 120px; }
  .site-titlu { font-size: 18px; padding-left: 14px; }
  .nav { margin-left: 0; width: 100%; justify-content: center; border-top: 1px solid var(--linie); }
  .nav a { font-size: 13px; padding: 6px 10px; }
  .ruta-corp { grid-template-columns: 1fr; }
  .panou-harta { position: static; }
  .harta-viu { height: 60vh; min-height: 340px; }
  .caseta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav a[href^="https"] { display: none; }
  .caseta { padding: 18px; }
  .caseta-sigle img:first-child { width: 130px; }
  .caseta-sigle img:last-child { width: 100px; }
  .grila { grid-template-columns: 1fr; }
  .ruta-cap h1 { font-size: 1.5rem; }
  .sectiune-titlu h1 { font-size: 23px; }
  .fisa dl { grid-template-columns: 1fr; gap: 2px; }
  .fisa dd { margin-bottom: 8px; }
  #fisa-continut { padding: 22px 18px; }
  .ruta-desc { padding: 18px; text-align: left; }
}
