/* ============================================================
   style.css — avânt pTRN v2.0
   ============================================================ */

/* ── Variabile design Nordic ── */
:root {
  --primary: #2C3E50;
  --primary-light: #3A506B;
  --accent: #5BC0BE;
  --accent-dark: #3A92A8;
  --background: #F8F9FA;
  --surface: #FFFFFF;
  --text-primary: #2C3E50;
  --text-secondary: #6C757D;
  --border: #E9ECEF;
  --success: #28A745;
  --error: #DC3545;
  --warning: #FFC107;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;

  /* Culori pin utilizator */
  --pin-user: #F4891F;
  --pin-user-dark: #D4720F;
  --pin-avant: #5BC0BE;
}

* { margin: 0; padding: 0; box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; }

body { background-color: var(--background); color: var(--text-primary); line-height: 1.6; }

/* ── Splash screen ── */
#splash-screen {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #FFFFFF; display: flex; flex-direction: column;
  justify-content: center; align-items: center; z-index: 9999; color: var(--text-primary);
}
.splash-logo { max-width: 400px; width: 80%; height: auto; margin-bottom: 24px; animation: fadeIn 0.8s ease-in; }
.splash-subtitle { margin: 0; font-size: 18px; font-weight: 500; color: var(--text-secondary); letter-spacing: 2px; }
.spinner {
  width: 50px; height: 50px;
  border: 3px solid rgba(44, 62, 80, 0.1);
  border-top: 3px solid var(--primary);
  border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ── Harta ── */
#map { height: 100vh; width: 100%; transition: filter 0.3s ease; }
.blurred { filter: blur(5px); }

/* ── Buton auth (login / logout) — vizibil mereu, top-right ── */
/* Același stil cu butoanele zoom Leaflet: fundal var(--primary), fără border,
   z-index egal cu zoom (1000) ca să fie în același plan vizual */
.logout-btn {
  position: fixed; top: 16px; right: 16px;
  width: 36px; height: 36px; padding: 0;
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow-sm); transition: all 0.2s ease;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
}
.logout-btn:hover { background: var(--primary-light); transform: translateY(-1px); }
.logout-btn[data-state="login"] { background: var(--primary); }
.logout-btn[data-state="login"]:hover { background: var(--primary-light); }
.logout-btn .btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
}
.logout-btn .btn-icon svg { width: 18px; height: 18px; display: block; }
.logout-btn .btn-text { display: none; }

/* ── Badge expirare abonament — punct 10px suprapus colț dreapta-sus ── */
#expiry-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: transparent;
  display: none;           /* ascuns implicit; JS îl activează */
  z-index: 1;
  pointer-events: none;
  transition: background 0.4s ease;
}
/* Culori progresive: zi 27 galben → 28 portocaliu → 29-30 roșu */
#expiry-dot[data-urgency="low"]    { background: #FFC107; display: block; } /* ziua 27 */
#expiry-dot[data-urgency="medium"] { background: #F4891F; display: block; } /* ziua 28 */
#expiry-dot[data-urgency="high"]   { background: #E74C3C; display: block; } /* ziua 29-30 */

/* ── Buton X închide overlay autentificare ── */
.auth-form { position: relative; }
.auth-close-btn {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; padding: 0;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-secondary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; z-index: 10;
}
.auth-close-btn:hover { background: var(--border); color: var(--text-primary); }

/* ── Panou navigator proiecte — DESKTOP ── */
/* Layout dreapta, stivuit — calcul precis cu padding Leaflet:
   1. Logout:    top 16px, înălțime 36px  → bottom la 52px
   2. Zoom:      containerul .leaflet-top.leaflet-right are padding: 10px
                 → zoom pornește la: 10px (padding) + 60px (margin-top) = 70px
                 → gap real logout→zoom = 70 - 52 = 18px
                 → conținut: zoom-in 36px + zoom-out 36px = 72px
                   (GPS-ul e position:absolute în interiorul containerului → nu adaugă înălțime)
                 → zoom se termină la: 70 + 72 = 142px
   3. Navigator: top = 142px + 18px (același gap ca logout→zoom) = 160px  */
#map-controls {
  position: fixed; top: 160px; right: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  z-index: 1100; width: 300px; transition: all 0.3s ease;
  /* display controlat de auth.js — nu setăm display aici */
}

/* Collapsed: exact 36×36px — același cu butonul zoom și logout */
#map-controls.collapsed {
  width: 36px;
}

.mc-header {
  display: flex; align-items: center; padding: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--primary); color: white;
  border-radius: var(--radius) var(--radius) 0 0;
}
.mc-header span { flex: 1; margin-left: 10px; font-weight: 500; }

/* Toggle button — dimensiune normală */
.toggle-btn {
  background: none; border: none; color: white; cursor: pointer;
  font-size: 16px; padding: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Collapsed: header devine exact 36×36px — egal cu zoom și logout */
#map-controls.collapsed .mc-header {
  padding: 0;
  justify-content: center;
  height: 36px;
  border-radius: var(--radius-sm);
  border-bottom: none;
}
#map-controls.collapsed .mc-header span { display: none; }
#map-controls.collapsed .toggle-btn { transform: rotate(180deg); }
.mc-content { padding: 15px; }
#map-controls.collapsed .mc-content { display: none; }

/* ── Filtre compacte ── */
.filter-section { margin-bottom: 12px; }
.filter-compact { display: flex; gap: 8px; justify-content: space-between; padding: 8px 0; }
.filter-compact-item {
  display: flex; align-items: center; justify-content: center;
  flex: 1; padding: 10px 8px; border-radius: 6px; cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(220, 53, 69, 0.05);
  border: 2px solid rgba(220, 53, 69, 0.3);
  position: relative; opacity: 0.5;
}
.filter-compact-item:hover { background: rgba(44, 62, 80, 0.1); border-color: rgba(91, 192, 190, 0.5); opacity: 0.7; }
.filter-compact-item input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.filter-icon-small { width: 24px; height: 24px; stroke: var(--text-secondary); fill: none; transition: all 0.2s ease; opacity: 0.4; }
.filter-compact-item:hover .filter-icon-small { stroke: var(--primary); transform: scale(1.1); opacity: 0.6; }
.filter-compact-item input[type="checkbox"]:checked ~ .filter-icon-small { stroke: #5BC0BE; fill: rgba(91, 192, 190, 0.2); opacity: 1; }
.filter-compact-item:has(input[type="checkbox"]:checked),
.filter-compact-item.filter-active { background: rgba(91, 192, 190, 0.15); border-color: #5BC0BE; opacity: 1; box-shadow: 0 0 8px rgba(91, 192, 190, 0.3); }
.filter-compact-item:has(input[type="checkbox"]:not(:checked)),
.filter-compact-item.filter-inactive { background: rgba(220, 53, 69, 0.05); border-color: rgba(220, 53, 69, 0.3); opacity: 0.5; }

.divider-line { height: 1px; background: var(--border); margin: 12px 0; }
#map-controls.collapsed .filter-section { display: none; }

/* ── Butoane navigator ── */
.nav-btn {
  display: flex; align-items: center; width: 100%;
  padding: 12px 15px; margin-bottom: 10px; font-size: 14px;
  cursor: pointer; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--background); transition: all 0.2s ease;
}
.nav-btn:hover { background: #f1f3f5; transform: translateY(-1px); }
.nav-btn .btn-icon { margin-right: 10px; font-size: 16px; }
#map-controls.collapsed .nav-btn { justify-content: center; width: 40px; height: 40px; padding: 0; margin-bottom: 8px; }
#map-controls.collapsed .btn-text { display: none; }
#map-controls.collapsed .btn-icon { margin-right: 0; }
.nav-btn.danger { border-color: rgba(220, 53, 69, 0.3); background: rgba(220, 53, 69, 0.05); }
.nav-btn.danger:hover { background: rgba(220, 53, 69, 0.1); }

/* ── Buton import Excel ── */
#importExcelBtn {
  background: rgba(91, 192, 190, 0.08);
  border-color: rgba(91, 192, 190, 0.4);
  color: var(--primary);
}
#importExcelBtn:hover { background: rgba(91, 192, 190, 0.18); border-color: var(--accent); }

/* ── Layer switcher ── */
#layer-switcher {
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 0;
}
#layer-switcher .layer-label {
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-secondary);
  padding: 0 2px; margin-bottom: 4px;
}
#layer-switcher .filter-compact-item {
  display: flex; align-items: center;
  justify-content: flex-start;
  padding: 8px 10px; gap: 8px;
}
#layer-switcher .filter-compact-item input {
  position: static; opacity: 1;
  width: 16px; height: 16px;
  accent-color: var(--accent); cursor: pointer;
}
#layer-switcher .filter-compact-item span { font-size: 13px; color: var(--text-primary); }

/* ── Badge plan utilizator ── */
#plan-badge {
  font-size: 11px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.5px;
  padding: 4px 8px; margin-top: 8px;
  background: rgba(91,192,190,0.1);
  border-radius: 4px; text-align: center;
}

#selectedCount { font-weight: bold; color: var(--accent); }

/* ── Route info ── */
#route-info {
  font-size: 13px; color: var(--text-primary);
  padding: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-sm); margin-top: 12px;
  border: 1px solid var(--border); box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* ── Toast notificare proximitate ── */
#nearby-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 24px; background: var(--surface); color: var(--text-primary);
  padding: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow-md);
  z-index: 1300; display: flex; align-items: center; gap: 16px;
  max-width: calc(100% - 48px); width: auto; border: 1px solid var(--border);
}
.nearby-text { font-size: 14px; line-height: 1.4; flex: 1; }
.nearby-actions { display: flex; align-items: center; gap: 10px; }
.toast-btn { padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--background); color: var(--text-primary); cursor: pointer; font-size: 13px; transition: all 0.2s ease; }
.toast-btn.primary { background: var(--primary); color: white; border: none; }
.toast-btn.primary:hover { background: var(--primary-light); }
.toast-btn.link { background: transparent; border: none; color: var(--primary); text-decoration: underline; }
.toast-btn.link:hover { background: rgba(0,0,0,0.05); }

/* ── Toast import Excel ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}

/* ── Overlay autentificare ── */
.overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); display: flex;
  justify-content: center; align-items: center;
  z-index: 1000; backdrop-filter: blur(4px); padding: 20px;
}
.auth-form {
  background: var(--surface); padding: 32px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 20px;
  width: 100%; max-width: 400px; box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.auth-form h2 { text-align: center; margin-bottom: 8px; color: var(--primary); font-weight: 600; font-size: 24px; }
.auth-form .btn-primary, .auth-form .btn-secondary { width: 100%; }
.input-group { position: relative; }
.auth-form input {
  padding: 16px; font-size: 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all 0.2s ease;
  background: var(--background); width: 100%;
}
.auth-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 192, 190, 0.1); }

.btn-primary, .btn-secondary {
  padding: 16px; font-size: 16px; border: none;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.2s ease; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--accent); color: white; }
.btn-secondary:hover { background: var(--accent-dark); }
.link-button { background: transparent !important; color: var(--primary) !important; text-decoration: underline; font-size: 14px !important; padding: 12px !important; }
.link-button:hover { color: var(--primary-light) !important; }

.divider { text-align: center; position: relative; margin: 16px 0; color: var(--text-secondary); font-size: 14px; }
.divider:before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider span { background: var(--surface); padding: 0 16px; position: relative; }

.google-btn { background: var(--surface) !important; color: var(--text-primary) !important; border: 1px solid var(--border) !important; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 16px !important; }
.google-btn:hover { border-color: var(--accent) !important; }

.error-message { color: var(--error); background: rgba(220, 53, 69, 0.05); border: 1px solid rgba(220, 53, 69, 0.2); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; text-align: center; display: none; }
.success-message { color: var(--success); background: rgba(40, 167, 69, 0.05); border: 1px solid rgba(40, 167, 69, 0.2); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; text-align: center; display: none; }
.error-message:not(:empty), .success-message:not(:empty) { display: block; }

/* ── Loading indicator ── */
#loading-indicator {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8); color: white; padding: 24px;
  border-radius: var(--radius); display: none; z-index: 1400; text-align: center;
}
#loading-indicator .spinner { width: 30px; height: 30px; margin: 0 auto 12px; border: 2px solid rgba(255,255,255,0.3); border-top: 2px solid white; }
#loading-text { font-size: 14px; }

/* ── Popup-uri proiecte avânt Pro ── */
.popup-container { min-width: 280px; max-width: 320px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.popup-header { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.project-name { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.project-date { font-size: 12px; color: var(--text-secondary); }
.project-address { margin: 12px 0; font-size: 14px; line-height: 1.4; }
.project-address div { margin-bottom: 4px; }

.visit-info { background: #f8f9fa; padding: 12px; border-radius: var(--radius-sm); margin: 12px 0; border-left: 3px solid var(--accent); }
.visit-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 4px; }
.visit-status { display: flex; align-items: center; gap: 5px; }
.visit-date { font-size: 14px; font-weight: 500; color: var(--primary); }
.no-visit { color: var(--text-secondary); font-style: italic; }

.popup-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.nav-popup-btn { padding: 12px 16px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s ease; }
.nav-popup-btn:hover { background: var(--primary-light); }

/* ── Popup utilizator One/Multi ── */
.popup-container--user .project-name { color: var(--pin-user-dark); }
.popup-container--user .visit-info { border-left-color: var(--pin-user); }

/* Buton apel telefonic — add-on */
.call-popup-btn {
  padding: 12px 16px; background: var(--success); color: white;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 14px; display: flex; align-items: center;
  justify-content: center; gap: 8px; transition: all 0.2s ease;
  text-decoration: none;
}
.call-popup-btn:hover { background: #1e7e34; }

.checkbox-container { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-primary); transition: all 0.2s ease; }
.checkbox-container:hover { background: #e8f5e9 !important; }
.checkbox-container input[type="checkbox"] { cursor: pointer; accent-color: var(--accent); }

/* ── Pin-uri personalizate ── */
.custom-pin-icon { background: transparent !important; border: none !important; }
.custom-pin-icon svg { filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3)); transition: all 0.2s ease; }
.custom-pin-icon:hover svg { transform: translateY(-2px); filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.4)); }
.custom-pin-icon.selected svg path { fill: #FFC107 !important; }
.custom-pin-icon.selected { animation: pulse 2s ease-in-out infinite; }

/* Pin utilizator — portocaliu distinct */
.user-pin-icon { background: transparent !important; border: none !important; }
.user-pin-icon svg { filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3)); transition: all 0.2s ease; }
.user-pin-icon:hover svg { transform: translateY(-2px); filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.4)); }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ── Clustere Leaflet ── */
.marker-cluster-small { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important; }
.marker-cluster-small div { background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%) !important; color: white !important; }
.marker-cluster-medium { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important; }
.marker-cluster-medium div { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%) !important; color: white !important; }
.marker-cluster-large { background: linear-gradient(135deg, #EA4335 0%, #D33B2C 100%) !important; }
.marker-cluster-large div { background: linear-gradient(135deg, #D33B2C 0%, #EA4335 100%) !important; color: white !important; }

/* ── Route action button ── */
.route-action-btn {
  background: var(--accent); color: white; border: none;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
  font-weight: 500; padding: 8px 12px; transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.route-action-btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(91, 192, 190, 0.3); }

/* ── Project list ── */
.project-list-item { transition: all 0.2s ease; }
.project-list-item:hover { transform: translateX(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.project-number-badge { background: var(--primary); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; flex-shrink: 0; }
.remove-btn { background: var(--error); color: white; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; }
.remove-btn:hover { background: #c82333; transform: scale(1.05); box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3); }

.project-list-container::-webkit-scrollbar { width: 8px; }
.project-list-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.project-list-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.project-list-container::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ── Badge precizie adresă ── */
.coord-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12px; color: var(--text-secondary); }
.coord-badge__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.coord-badge--exact .coord-badge__dot   { background: #28a745; }
.coord-badge--approx .coord-badge__dot  { background: #ffc107; }

/* ── Legendă vizuală hartă — ELIMINATĂ din hartă, integrată în ghidul rapid ── */
/* #map-legend se ascunde definitiv — informația e în onboarding.js */
#map-legend { display: none !important; }

/* ── Responsive design — DOAR pentru auth form și popup-uri ── */
/* NB: #map-controls pe mobile e ascuns via mobile-fixes.css FIX 13 (display:none !important)
       și înlocuit cu bottom sheet #map-controls-bs.
       NU setăm top/width pentru #map-controls în această secțiune
       ca să nu interferăm cu desktop-ul. */
@media (max-width: 768px) {
  .auth-form { padding: 24px; }
  .popup-container { min-width: 240px; max-width: 280px; }
  .filter-compact { gap: 6px; }
  .filter-compact-item { padding: 8px 6px; }
  .filter-icon-small { width: 20px; height: 20px; }
  .route-action-btn { font-size: 12px; padding: 6px 10px; }
  .project-number-badge { width: 28px; height: 28px; font-size: 12px; }
  .remove-btn { padding: 6px 10px; font-size: 12px; }
}

/* ── SVG iconițe în butoane navigator ── */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

.logout-btn .btn-icon svg { width: 18px; height: 18px; }
.nav-btn.danger .btn-icon svg { stroke: var(--error); }

.type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; margin-bottom: 6px;
}
.type-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

#layer-switcher .filter-compact-item svg {
  width: 14px; height: 14px;
  stroke: var(--text-secondary); flex-shrink: 0;
}

/* ── Animații ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalFadeIn { from { opacity: 0; transform: scale(0.95) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.overlay, #nearby-toast { animation: fadeIn 0.3s ease; }

/* ── Zoom control — uniformizat cu butonul logout ──
   Containerul .leaflet-top.leaflet-right are padding: 10px (Leaflet default).
   Logout: top 16px + h 36px = bottom la 52px
   Zoom: 10px (padding container) + 60px (margin-top) = pornește la 70px
   → gap logout→zoom = 18px
   Aliniere dreapta: margin-right: 16px = aceeași cu right: 16px al logout-ului ── */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  margin-top: 60px !important;
  margin-right: 16px !important;
}

.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease !important;
  /* Fix + dezaxat față de cercul GPS:
     clip-path tăie jos-ul butonului + → simbolul + pare ridicat
     Adăugăm padding-bottom mic pentru a reechilibra centrul vizual */
  padding-bottom: 2px !important;
}

.leaflet-control-zoom a:last-child {
  border-bottom: none !important;
  /* butonul − nu are clip-path, deci nu are nevoie de corecție */
  padding-bottom: 0 !important;
}

.leaflet-control-zoom a:hover {
  background: var(--primary-light) !important;
  color: white !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  display: flex !important;
  width: 36px !important;
  height: 36px !important;
}