/* ======================================
   BASE RESET & GLOBAL STYLES
====================================== */
@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:wght@400;700&display=swap');

:root {
  --color-primary: #131313;
  --color-accent: #f8f8f8;
  --color-bg: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Host Grotesk", sans-serif;
  background: var(--color-bg);
  color: var(--color-primary);
}

/* ======================================
   MAP SPECIFIC STYLES
====================================== */
#map {
  height: 100vh;
  width: 100%;
  background-color: #ffffff;
}

#toggleLegend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: #fff;
  border: none;
  padding: 0.5rem;
  z-index: 1000;
  cursor: pointer;
}

#toggleLegend svg {
  display: block;
}

/* ======================================
   LEGEND STYLES
====================================== */
.info.legend {
  background: #fff !important;
  padding: 0;
  border: 1px solid var(--color-primary);
  font-family: "Host Grotesk", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  width: 180px;
}

.info.legend h3 {
  margin: 0;
  padding: 0.25rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  background-color: var(--color-primary);
  color: white;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
}

.info.legend .legend-item {
  padding: 0.2rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.info.legend .legend-item:last-child {
  border-bottom: none;
}

.info.legend .legend-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border: 1px solid;
}

.info.legend .legend-label {
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: normal;
}

/* ======================================
   POPUP STYLES
====================================== */
.leaflet-popup-content-wrapper {
  border-radius: 0;
  padding: 0;
  border: 1px solid var(--color-primary);
  box-shadow: none;
}

.leaflet-popup-content {
  margin: 0;
  width: auto !important;
  min-width: 250px;
  font-family: "Host Grotesk", sans-serif;
  line-height: 1.5;
}

.leaflet-popup-content h3 {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  background-color: var(--color-primary);
  color: white;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.leaflet-popup-content .section {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

.leaflet-popup-content .section:last-child {
  border-bottom: none;
}

.leaflet-popup-content .section-title {
  display: block;
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 0.25rem;
}

.leaflet-popup-content .section-value {
  display: block;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: normal;
}

.leaflet-popup-tip {
  background: var(--color-primary);
}

.leaflet-popup-close-button {
  color: #fff !important;
  font-size: 1rem !important;
  padding: 0 4px 0 0 !important;
  right: 0 !important;
  top: 0 !important;
  margin: 0 !important;
}

.leaflet-control a,
.leaflet-control button {
  border: none !important;
  box-shadow: none !important;
  background-color: none;
}

.leaflet-bar, .leaflet-control {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  border-radius: 0;
}

.leaflet-bar a,
.leaflet-bar a:hover,
.leaflet-bar a:focus,
.leaflet-control a,
.leaflet-control a:hover,
.leaflet-control a:focus,
.leaflet-control button {
  border: none !important;
  background-color: #ffffff !important;
  border-radius: 0 !important;
  margin-bottom: .25rem;
}