html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#map {
  position: absolute;
  inset: 0;
}

.pin-marker {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  transform-origin: 50% 100%;
}

.pin-marker.pin-highlight {
  animation: pin-pulse 1s ease-in-out 2;
}

@keyframes pin-pulse {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.5); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.popup-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.popup-address {
  font-size: 13px;
  color: #444;
}

.popup-note {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

.fab-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #222;
}

.fab:active {
  background: #f0f0f0;
}

.fab svg {
  width: 22px;
  height: 22px;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1500;
  display: none;
}

.panel-backdrop.open {
  display: block;
}

.panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.2s ease-out;
}

.panel-backdrop.open .panel {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.panel-header h2 {
  margin: 0;
  font-size: 17px;
}

.panel-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
}

.panel-search-box {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.panel-search-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.panel-list {
  overflow-y: auto;
  flex: 1;
}

.panel-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
}

.panel-list-item:active {
  background: #f5f5f5;
}

.panel-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.panel-list-item-name {
  font-size: 15px;
}

.panel-empty {
  padding: 24px 16px;
  color: #888;
  text-align: center;
  font-size: 14px;
}

@media (min-width: 700px) {
  .fab-stack {
    top: 16px;
    left: 16px;
  }
}
