html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}
#map {
  height: 100%;
  width: 100%;
}

.cc-pill {
  display: inline-block;
  padding: 5px 12px;
  background-color: #e0f0ff;
  border-radius: 999px;
  font-weight: 600;
  color: #004c8c;
  border: 1px solid #b0d4f1;
  vertical-align: middle;
}

/* Drawer panel */
.charity-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 360px;
  max-width: 90vw;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  z-index: 1000;
  overflow-y: auto;
  padding: 16px 18px 24px;
}
.charity-panel.open {
  transform: translateX(0);
}
.charity-panel.open ~ .leaflet-control-zoom {
  transform: translateX(360px);
  transition: transform 0.25s ease;
}
.panel-close {
  position: sticky;
  top: 0;
  float: right;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.panel-content canvas {
  width: 100% !important;
  height: auto !important;
}
.panel-section-title {
  font-weight: 600;
  margin: 12px 0 6px;
}
.muted {
  color: #555;
}
@media (max-width: 480px) {
  .charity-panel {
    width: 92vw;
  }
}

/* Stack spacing for top-right controls */
.leaflet-top .leaflet-control {
  margin-top: 8px;
}
.leaflet-right .leaflet-control {
  margin-right: 10px;
}
#charity-search-container {
  position: relative;
  z-index: 888;
  display: block;
  background-color: #fff;
  border-radius: 4px;
  border: 2px solid #abbabc;
  padding: 1px 2px;
  box-shadow: none !important;
}

#charity-search-btn {
  background: url("search-heart.svg") no-repeat center center;
}

.leaflet-control-geocoder-form input {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
}

.toast {
  visibility: hidden;
  min-width: 288px;
  background-color: #323232;
  color: rgb(255 255 255 / 0.87);
  text-align: center;
  border-radius: 4px;
  padding: 14px;
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  box-shadow: 0 3px 6px rgb(0 0 0 / 0.16);
}
.toast.show {
  visibility: visible;
  opacity: 1;
}
#loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.2);
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s ease infinite;
  transform: translate(-50%, -50%);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
body.panel-open {
  overflow: hidden;
}

.chart-box {
  position: relative;
  width: 100%;
  height: min(34vh, 360px);
  margin: 8px 0 18px;
  aspect-ratio: 1 / 1;
}
.chart-box > canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.register-btn {
  display: inline-block;
  padding: 6px 12px;
  background-color: #d39919;
  color: #fdf3dc;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.2s;
}
.register-btn:hover {
  background-color: #b58014;
}

.addr-pop strong {
  font-size: 18px;
}
