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

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f5f0eb;
  color: #2c2c2c;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #e4ddd6;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  z-index: 1000;
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header-sub {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b45050;
}

header h1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3b2e2e;
}

#guest-count {
  font-size: .82rem;
  color: #7a6a6a;
  background: #f0ebe6;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

#map {
  flex: 1 1 0%;
  width: 100%;
  min-height: 300px;
}

.legend {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  font-size: .78rem;
  line-height: 1.5;
  min-width: 160px;
}

.legend h4 {
  margin-bottom: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: #3b2e2e;
  border-bottom: 1px solid #ede8e3;
  padding-bottom: 6px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.legend-circle {
  border-radius: 50%;
  background: rgba(180, 80, 80, .35);
  border: 2px solid rgba(180, 80, 80, .75);
  flex-shrink: 0;
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
  padding: 0;
  overflow: hidden;
}

.leaflet-popup-content { margin: 0; min-width: 180px; }

.popup-inner { padding: 14px 16px 12px; }

.popup-city { font-size: 1rem; font-weight: 700; color: #3b2e2e; margin-bottom: 6px; }

.popup-guests { font-size: .82rem; color: #6b5b5b; margin-bottom: 10px; }
.popup-guests strong { color: #b45050; }

.popup-carpool-msg {
  font-size: .82rem;
  color: #5a4a4a;
  background: #f5f0eb;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.4;
}

.popup-link {
  display: block;
  text-align: center;
  background: #2c3e50;
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background .18s;
  letter-spacing: .02em;
}
.popup-link:hover { background: #1a252f; }

@media (max-width: 480px) {
  header { padding: 10px 16px; }
  header h1 { font-size: 1rem; }
  #guest-count { display: none; }
  .legend { font-size: .72rem; padding: 10px 12px; min-width: 130px; }
}
