/* =====================================================================
   «Ο Δήμος μας» (Figma "Ο Δήμος μας" + "Menu Row")
   Photo from the section settings (--municipality-bg, set in the template) under the blue tint.
   ===================================================================== */

#municipality[version="1"] {
  background: var(--sf-overlay-municipality), var(--municipality-bg, none) no-repeat center / cover;
  background-color: var(--sf-brand-deep);
}

#municipality[version="1"] .municipality-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sf-gap-md);
}

#municipality[version="1"] .sf-section-title {
  width: 100%;
  color: var(--sf-on-dark);
}

#municipality[version="1"] .municipality-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
}

#municipality[version="1"] .municipality-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sf-gap-xs);
  min-height: 60px;
  padding: 16px 0;
  color: var(--sf-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: var(--sf-fs-lg);
  font-weight: 400;
  line-height: var(--sf-lh-body);
  text-align: center;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.3s ease, font-weight 0.3s ease;
}

/* The chevron slides in on hover / focus (it keeps its place, so the text doesn't jump) */
#municipality[version="1"] .municipality-link i {
  font-size: 14px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover: a light white tint (--surface-white, #FFFFFF26) fades in on the row */
#municipality[version="1"] .municipality-link:hover,
#municipality[version="1"] .municipality-link:focus-visible {
  color: var(--sf-on-dark);
  background-color: var(--surface-white, #ffffff26);
  font-weight: 600;
}

#municipality[version="1"] .municipality-link:hover i,
#municipality[version="1"] .municipality-link:focus-visible i {
  opacity: 1;
  transform: translateX(0);
}

#municipality[version="1"] .municipality-link:focus-visible {
  outline: 3px solid var(--sf-on-dark);
  outline-offset: -3px;
}

#municipality[version="1"] .municipality-empty {
  margin: 0;
  color: var(--sf-on-dark);
}

@media (prefers-reduced-motion: reduce) {
  #municipality[version="1"] .municipality-link,
  #municipality[version="1"] .municipality-link i {
    transition: none;
  }
}
