/* ==========================================================================
   HARTA CUSTOM - STILURI EDITABILE PENTRU PROIECT
   ========================================================================== */

/* Variabile generale, layout, dashboard, popup-uri și fullscreen */

:root {
            --latime-sidebar: 400px;
            --fundal-pagina: #ffffff;
            --fundal-sidebar: #fafafa;
            --bordura-standard: #dddddd;
            --bordura-subtila: #e5e5e5;
            --culoare-text: #222222;
            --culoare-text-secundar: #666666;
            --font-general: Arial, sans-serif;
            --font-size-normal: 14px;
            --font-size-mic: 12px;
            --font-size-titlu: 20px;
        }
        html, body {
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
            font-family: var(--font-general);
            color: var(--culoare-text);
            background: var(--fundal-pagina);
        }
        #app {
            display: grid;
            grid-template-columns: var(--latime-sidebar) 1fr;
            width: 100%;
            height: 100%;
        }
        #sidebar {
            border-right: 1px solid var(--bordura-standard);
            padding: 40px 14px 14px 14px;
            overflow-y: auto;
            background: var(--fundal-sidebar);
            box-sizing: border-box;
            z-index: 900;
        }
        #map {
            width: 100%;
            height: 100%;
        }
        h1 {
            font-size: var(--font-size-titlu);
            margin: 0 0 10px 0;
            text-align: center;
        }
        .muted {
            color: var(--culoare-text-secundar);
            font-size: var(--font-size-mic);
            line-height: 1.45;
            margin-bottom: 12px;
            text-align: center;
        }
        .group {
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--bordura-subtila);
        }
        .group:last-child {
            border-bottom: 0;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        label {
            display: block;
            margin: 6px 0 4px;
            font-size: var(--font-size-normal);
            font-weight: bold;
            text-align: center;
        }
        input[type="text"], select, input[type="range"] {
            width: 100%;
            box-sizing: border-box;
        }
        input[type="text"], select {
            padding: 8px;
            border: 1px solid #cccccc;
            border-radius: 6px;
            background: #ffffff;
            color: var(--culoare-text);
        }
        .row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            align-items: end;
            margin-top: 6px;
        }
        button {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid #bbbbbb;
            border-radius: 6px;
            background: #ffffff;
            cursor: pointer;
            min-height: 38px;
        }
        button:hover {
            background: #f0f0f0;
        }
        .year-display {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-top: 6px;
            font-size: 12px;
            color: #666;
        }
        .year-badge {
            background: #1e88e5;
            color: white;
            border-radius: 999px;
            padding: 3px 10px;
            font-weight: bold;
            min-width: 46px;
            text-align: center;
        }
        #timelineWrap {
            width: 100%;
            height: 220px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background: #fff;
            overflow: hidden;
        }
        #timelineSvg {
            width: 100%;
            height: 220px;
            display: block;
        }
        .stats {
            font-size: 13px;
            line-height: 1.55;
            color: #222;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 10px 22px;
        }
        .legend {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px 10px;
            font-size: 12px;
            margin-top: 20px;
			margin-left: 20px;
        }
        .legend div {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .legend span {
            display: inline-block;
            width: 14px;
            height: 14px;
            border-radius: 2px;
        }
        .leaflet-control-layers {
            box-shadow: 0 1px 6px rgba(0,0,0,.18);
        }
        .leaflet-popup-content {
            max-width: 300px;
        }
        @media (max-width: 980px) {
            #app {
                grid-template-columns: 1fr;
                grid-template-rows: auto 1fr;
            }
            #sidebar {
                max-height: 45vh;
            }
        }
        
        .leaflet-control-fullscreen a {
            display: block;
            width: 30px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            text-decoration: none;
            color: #222;
            font-size: 16px;
            font-weight: bold;
            background: #fff;
        }
        .leaflet-control-fullscreen a:hover {
            background: #f4f4f4;
        }


/* ==========================================================================
   ETICHETE RUTE (SVG)
   --------------------------------------------------------------------------
   Layer separat pentru etichete de rută.
   Aceste reguli forțează etichetele să rămână mici și discrete.
   ========================================================================== */
.route-label-marker {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none;
  width: 36px !important;
  height: 24px !important;
  margin: 0;
  overflow: visible;
}

.route-label-marker img {
  display: block;
  width: 36px !important;
  max-width: 36px !important;
  height: auto !important;
  max-height: 24px !important;
  opacity: 0.92;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.95))
          drop-shadow(0 0 1px rgba(0, 0, 0, 0.25));
}

/* =========================================================
   STATISTICI SUB PIE CHART - LOOK NOU
   ========================================================= */

.stats {
    padding: 10px 14px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    font-size: 13px;
    line-height: 1.35;
	padding-left: 10px;
}

.stats-label {
    font-weight: 700;
    color: #1f2d3d;
    white-space: nowrap;
}

.stats-value {
    color: #2f3e4f;
    text-align: right;
}

.stats-utilizare .stats-label {
    color: #33a02c;
}

.stats-constructie .stats-label {
    color: #ed971c;
}

.stats-planificare .stats-label {
    color: #1060f5;
}


/* Layere noi: Localități */
.localitati-label {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #0a0a0a;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-left: 2px;
}
.localitati-label:before {
  display: none;
}
