/* ================================================
   Core map & layout
   ================================================ */
html, body, #map {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

#map {
  width: 100%;
  margin-top: 56px; /* pushed down by banner height */
}

/* ================================================
   Popups & tooltips
   ================================================ */
.hover-tooltip {
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  padding: 0;
  max-width: 300px;
  pointer-events: none;
  font-family: Arial, sans-serif;
}

.preview-popup {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 0;
  min-width: 320px;
  max-width: 90vw;
  pointer-events: none;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

/* ================================================
   Floating map controls – dark glass style
   ================================================ */
/* Stack container – positions both controls as a column above bottom-left */
#map-controls-stack {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.map-control {
  position: static;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: Arial, sans-serif;
  min-width: 180px;
  color: white;
}

.control-header {
  padding: 8px 14px 6px;
  color: #ddd;
  font-size: 0.9em;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Legend */
.legend-control {
  max-height: 60vh;
  overflow-y: auto;
}

#legend-parties {
  padding: 8px 12px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Legend swatches */
#legend-parties > div {
  display: flex;
  align-items: center;
  margin: 6px 0;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  box-shadow: none;
}

#legend-parties > div:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* Layers */
.layers-control {
  z-index: 1200 !important; /* always above sidebars */
}

.layer-btn {
  display: block;
  width: 100%;
  padding: 12px 18px;
  margin: 0;
  border: none;
  background: transparent;
  color: white;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.layer-btn:hover {
  background: rgba(255,255,255,0.12);
}

.layer-btn.active {
  background: #003DA5;
  color: white;
  font-weight: 600;
}

.layer-btn[data-layer="federal"].active {
  background: #d32f2f;
}

/* ================================================
   Top banner
   ================================================ */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #000000;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.banner-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h1 {
  margin: 0;
  font-size: 1.8em;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  font-size: 0.85em;
  opacity: 0.7;
  display: block;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 8px 14px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-btn:hover,
.nav-btn:focus {
  background: rgba(255,255,255,0.08);
}

.nav-btn.active {
  background: rgba(255,255,255,0.12);
  font-weight: 600;
}

/* ================================================
   Party sidebar (legend click) – dark + transparent
   ================================================ */
.party-sidebar {
  position: fixed;
  right: 0;
  top: 60px;
  bottom: 0;
  width: 420px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  z-index: 1100;
  box-shadow: -6px 0 24px rgba(0,0,0,0.5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid rgba(255,255,255,0.08);
}

.party-sidebar.open {
  transform: translateX(0);
}

.party-sidebar #sidebar-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.4em;
  color: #ffffff;
  opacity: 0.8;
  cursor: pointer;
  z-index: 10;
  padding: 8px;
}

.party-sidebar #sidebar-close-btn:hover {
  opacity: 1;
}

.party-sidebar .sidebar-content {
  padding: 60px 24px 24px;
}

.party-sidebar .members-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.party-sidebar .member-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
  cursor: pointer;
  width: 100%;
}

.party-sidebar .member-card:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

.party-sidebar .card-image {
  height: 144px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--offset-x, 50%) var(--offset-y, 50%);
  position: relative;
}

.party-sidebar .party-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
}

.party-sidebar .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 40%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.party-sidebar .member-card:hover .card-overlay {
  opacity: 1;
}

.party-sidebar .card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 16px 24px;
  color: white;
  z-index: 3;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95),
               0 2px 8px rgba(0,0,0,0.75),
               0 3px 12px rgba(0,0,0,0.5);
}

.party-sidebar .member-card:hover .card-text {
  opacity: 1;
  transform: translateY(0);
}

.party-sidebar .card-text h4 {
  margin: 0 0 4px;
  font-size: 1.15em;
  font-weight: 700;
}

.party-sidebar .card-text p {
  margin: 0;
  font-size: 0.95em;
}

/* ================================================
   Member detail sidebar – dark theme to match party sidebar
   ================================================ */
.member-detail-sidebar {
  position: fixed;
  right: 0;
  top: 60px;
  bottom: 0;
  width: 420px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  z-index: 1200;
  box-shadow: -8px 0 40px rgba(0,0,0,0.35);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.member-detail-sidebar.open {
  transform: translateX(0);
}

/* Close button */
.member-detail-sidebar #sidebar-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  color: #bbb;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.member-detail-sidebar #sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: rotate(90deg);
}

/* Hero section */
.member-detail-sidebar .hero-image {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.member-detail-sidebar .party-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  z-index: 2;
}

.member-detail-sidebar .image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.92) 100%);
}

/* Main content area */
.member-detail-sidebar .member-info {
  padding: 24px 24px 32px;
  background: transparent;
  color: #ffffff;
}

/* Headings & text */
.member-detail-sidebar .member-info h3 {
  margin: 0 0 6px;
  font-size: 1.55em;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.member-detail-sidebar .riding {
  color: #666;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.member-detail-sidebar .member-term {
  color: #555;
  font-size: 0.78em;
  margin: 0 0 22px;
}

/* Contact cards */
.member-detail-sidebar .contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-detail-sidebar .contact-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease,
              box-shadow 0.18s ease, transform 0.18s ease;
}

.member-detail-sidebar .contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* Reset card styles for the profile link wrapper */
.member-detail-sidebar .contact-item:has(.external-profile) {
  background: transparent;
  border: none;
  padding: 0;
}
.member-detail-sidebar .contact-item:has(.external-profile):hover {
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
}

.member-detail-sidebar .contact-item strong {
  display: block;
  font-size: 0.7em;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.member-detail-sidebar .contact-item p,
.member-detail-sidebar .contact-item a:not(.external-profile) {
  margin: 0;
  font-size: 0.93em;
  color: #ddd;
  line-height: 1.45;
}

.member-detail-sidebar .contact-item a:not(.external-profile) {
  color: #5db8ff;
  text-decoration: none;
  font-weight: 500;
}

.member-detail-sidebar .contact-item a:not(.external-profile):hover {
  color: #85ccff;
  text-decoration: underline;
}

/* External profile – full-width CTA button */
.member-detail-sidebar .external-profile {
  display: block;
  text-align: center;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #bbb;
  font-size: 0.88em;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.2s ease;
}

.member-detail-sidebar .external-profile:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Social icons */
.member-detail-sidebar .social-links {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.member-detail-sidebar .social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.member-detail-sidebar .social-icon-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px) scale(1.1);
}

.member-detail-sidebar .social-links img {
  width: 18px;
  height: 18px;
  display: block;
}

.member-detail-sidebar .social-text-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.member-detail-sidebar .social-text-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px) scale(1.1);
  color: #ffffff;
  text-decoration: none;
}

/* ── Member news section ─────────────────────────────────────────────────── */
.member-news-section {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.member-news-heading {
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #555;
  margin: 0 0 10px;
}

.member-news-loading {
  font-size: 0.8em;
  color: #444;
  margin: 0;
}

.member-news-empty {
  font-size: 0.82em;
  color: #444;
  margin: 0;
}

.member-news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.member-news-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.member-news-title {
  font-size: 0.84em;
  font-weight: 600;
  color: #ddd;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-news-meta {
  font-size: 0.72em;
  color: #555;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #map-controls-stack {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 320px;
  }
  .party-sidebar,
  .member-detail-sidebar {
    width: 100%;
    top: auto;
    bottom: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transform: translateY(100%);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
  }
  .party-sidebar.open,
  .member-detail-sidebar.open {
    transform: translateY(0);
  }
  .party-sidebar .sidebar-content,
  .member-detail-sidebar .member-info {
    padding: 50px 16px 16px;
  }
}

/* Top banner */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #000000;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.banner-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h1 {
  margin: 0;
  font-size: 1.8em;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  font-size: 0.85em;
  opacity: 0.7;
  display: block;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 8px 14px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-btn:hover,
.nav-btn:focus {
  background: rgba(255,255,255,0.08);
}

.nav-btn.active {
  background: rgba(255,255,255,0.12);
  font-weight: 600;
}
/* About overlay */
.about-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.about-overlay.open {
  opacity: 1;
  visibility: visible;
}

.about-content {
  background: #0e0e0e;
  color: #e8e8e8;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 40px 44px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.38s ease;
}

.about-overlay.open .about-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close button */
#about-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

#about-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  transform: rotate(90deg);
}

/* Header */
.about-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-header h1 {
  margin: 0 0 6px;
  font-size: 2.2em;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(130deg, #ffffff 30%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-tagline {
  margin: 0;
  font-size: 0.88em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

/* Body text */
.about-content > p {
  line-height: 1.7;
  margin: 14px 0;
  color: #bbb;
  font-size: 1em;
}

/* Sections */
.about-section {
  margin-top: 32px;
}

.about-section h2 {
  margin: 0 0 10px;
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #555;
}

.about-section p {
  line-height: 1.7;
  margin: 0 0 14px;
  color: #bbb;
  font-size: 1em;
}

/* Blockquote */
.about-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid #003DA5;
  background: rgba(0, 61, 165, 0.07);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #ccc;
  line-height: 1.65;
}

.about-content blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.88em;
  color: #666;
}

/* Link buttons */
.about-link-btn {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ddd;
  text-decoration: none;
  font-size: 0.93em;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.about-link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateX(3px);
  text-decoration: none;
}

/* Footer */
.about-footer {
  margin-top: 36px !important;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.83em !important;
  color: #444 !important;
  line-height: 1.6 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .about-content {
    padding: 28px 24px;
  }
}
/* ── Municipal legend items ── */
#municipal-legend-items {
  padding: 8px 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 0.82em;
  color: #ccc;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  display: inline-block;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Hamlet sub-toggle ── */
.layer-sub-btn {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #aaa;
  font-size: 0.82em;
  padding: 5px 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.layer-sub-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.layer-sub-btn.active {
  background: rgba(240,165,0,0.2);
  border-color: rgba(240,165,0,0.4);
  color: #F0A500;
}

/* ── Municipal type list sidebar ── */
.legend-item-clickable {
  cursor: pointer;
  border-radius: 5px;
  padding: 3px 4px;
  transition: background 0.15s;
}

.legend-item-clickable:hover {
  background: rgba(255,255,255,0.1);
}

.municipal-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-left: 16px;
}

.municipal-list-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #f0f0f0;
}

.municipal-list-count {
  font-size: 0.8rem;
  color: #666;
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 10px;
}

.municipal-list {
  padding: 8px 0;
  overflow-y: auto;
}

.municipal-list-item {
  padding: 8px 20px;
  font-size: 0.9rem;
  color: #ccc;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.municipal-list-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.municipal-list-empty {
  padding: 16px 20px;
  color: #555;
  font-size: 0.85rem;
}

/* ── WIP notice ── */
#wip-notice {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-left: 3px solid #9A8240;
  border-radius: 8px;
  padding: 12px 36px 12px 14px;
  max-width: 300px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#wip-notice.hidden {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
}

#wip-notice p {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

#wip-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #444;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

#wip-close:hover { color: #aaa; }
