* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#map {
  width: 100%;
  height: 100%;
}
.leaflet-popup-content-wrapper {
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  padding: 0;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0;
  width: 220px !important;
}
.leaflet-popup-tip {
  background: #fff;
}
.popup-header {
  background: #2A4054;
  color: #fff;
  padding: 10px 14px 8px;
}
.popup-chapter {
  font-family: sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}
.popup-region {
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.popup-body {
  padding: 10px 14px 12px;
}
.popup-label {
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #2A4054;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 8px;
}
.popup-label:first-child {
  margin-top: 0;
}
.popup-value {
  font-family: sans-serif;
  font-size: 12px;
  color: #333;
  margin-top: 2px;
  line-height: 1.4;
}
.marker-cluster {
  background-color: rgba(241, 155, 101, 0.2) !important;
  border-radius: 50% !important;
}
.marker-cluster div {
  width: 30px !important;
  height: 30px !important;
  margin: 5px !important;
  background-color: #F19B65 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.marker-cluster span {
  color: #fff !important;
  font-family: sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
#map-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: sans-serif;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.engaged #map-hint {
  opacity: 0;
}
#map-loading {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f6f7;
  font-family: sans-serif;
  font-size: 13px;
  color: #888;
  gap: 12px;
}
#map-loading.error {
  color: #c0392b;
}
#map-loading.hidden {
  display: none;
}
.loading-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #ddd;
  border-top-color: #2A4054;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.leaflet-top.leaflet-left {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
.search-control {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  min-width: 230px;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10px 0 12px;
}
.search-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 1px;
  background: transparent;
  transition: background 0.15s;
}
.search-wrap:focus-within::after {
  background: #2A4054;
}
#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: sans-serif;
  font-size: 16px;
  color: #333;
  padding: 10px 0;
  background: transparent;
}
#search-input::placeholder {
  color: #aaa;
}
#search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 17px;
  color: #aaa;
  padding: 0 0 0 6px;
  line-height: 1;
}
#search-clear:hover {
  color: #2A4054;
}
#search-count {
  font-family: sans-serif;
  font-size: 11px;
  color: #888;
  padding: 4px 12px 6px;
  min-height: 20px;
}
#search-count.no-results {
  color: #c0392b;
}
