.district-map-section {
  grid-column: span 2;
  margin-bottom: 0;
  width: 100%;
  transition: grid-column 0.3s ease;
}
.district-map-section.expanded {
  grid-column: span 3;
  aspect-ratio: 16/8;
}
.district-map-toggle {
  display: none;
  width: 100%;
  align-items: stretch;
  gap: 0;
  margin-bottom: 16px;
  overflow: hidden;
  font-size: 16px;
}
.district-map-toggle.btn.blue {
  padding: 12px;
}
.district-map-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 104px;
  padding-right:8px;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}
.district-map-toggle__icon .slovakia-icon {
  width: 64px;
  height: auto;
  filter: brightness(0) invert(1);
}
.district-map-toggle__text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  padding: 0px 8px;
}
.district-map-wrapper {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: 100%;
}
#district-leaflet-map{
  height: 100%;
}
.district-map-container {
  width: 100%;
  height: 400px;
}
.district-map-container .leaflet-overlay-pane svg {
  pointer-events: auto !important;
}
.district-map-container .leaflet-overlay-pane svg path {
  fill: #e1e8f0;
  stroke: #fff;
  stroke-width: 0.8px;
  transition:
    fill 0.15s ease,
    opacity 0.15s ease;
  cursor: pointer;
  pointer-events: all !important;
}
.district-map-container .leaflet-overlay-pane svg path:hover,
.district-map-container .leaflet-overlay-pane svg path.hovered {
  fill: #1079ec !important;
  opacity: 1 !important;
}
.district-map-container .leaflet-overlay-pane svg a {
  pointer-events: none;
}
.district-map-expand {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background-color: #f0f6fe;
  color: #1079ec;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.district-map-expand:hover {
  background-color: #1079ec;
  color: #fff;
}
.district-map-section.expanded .district-map-expand i::before {
  content: "\f066";
}
.district-count-label {
  font-size: 10px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  fill: #1b1b1b;
  pointer-events: none;
  user-select: none;
  transition: font-size 0.15s ease, fill 0.15s ease;
}
.district-map-container .leaflet-overlay-pane svg .legend,
.district-map-container .leaflet-overlay-pane svg > rect {
  display: none;
}
.leaflet-control-attribution {
  display: none !important;
}
.leaflet-control-zoom {
  border: none !important;
}
.leaflet-control-zoom a {
  background-color: #f0f6fe !important;
  width: 36px !important;
  height: 36px !important;
  border: none !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #1079ec !important;
  font-size: 18px !important;
  line-height: 36px !important;
}
.leaflet-control-zoom a:hover {
  background-color: #1079ec !important;
  color: #fff !important;
}
.leaflet-control-zoom-in {
  margin-bottom: 4px !important;
  border-radius: 8px !important;
}
.leaflet-control-zoom-out {
  border-radius: 8px !important;
}
.district-tooltip {
  position: absolute;
  display: none;
  background: #1b1b1b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 2000;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.district-tooltip.visible {
  display: block;
}
.district-tooltip .tooltip-name {
  display: block;
  font-weight: 600;
  font-size: 20px;
  max-width: 80%;
}
.district-tooltip .tooltip-count {
  display: block;
  color: #93c5fd;
  font-size: 16px;
  margin-top: 4px;
}
.district-tooltip .tooltip-close {
  display: none;
}
.district-tooltip .tooltip-btn {
  display: none;
}
@media (max-width: 1300px) {
  .district-tooltip {
    padding-right: 30px;
  }
  .district-tooltip.visible {
    pointer-events: auto;
  }
  .district-tooltip .tooltip-close {
    display: block;
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
  }
  .district-tooltip .tooltip-close:hover {
    color: #fff;
  }
  .district-tooltip .tooltip-btn {
    display: block;
    margin-top: 8px;
    padding: 6px 14px;
    background: #1079ec;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
  }
}
@media (max-width: 1300px) {
  .district-map-section,
  .district-map-section.expanded {
    grid-column: span 3;
  }
  .district-map-expand {
    display: none;
  }
  .district-map-toggle {
    display: flex;
  }
  .district-map-wrapper {
    display: none;
    height: auto;
  }
  .district-map-wrapper.expanded {
    display: block;
  }
  #district-leaflet-map {
    height: 300px;
  }
}
@media (max-width: 768px) {
  .district-map-section {
    grid-column: span 2;
  }
}
@media (max-width: 480px) {
  .district-map-section {
    grid-column: span 1;
  }
}
