html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: system-ui, sans-serif;
}

#map {
  width: 100%;
  height: 100%;
}

#panel {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  width: 280px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

#panel h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

#panel label {
  display: block;
  margin: 8px 0;
  font-size: 14px;
}

button {
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: #222;
  color: white;
  cursor: pointer;
}

#result {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.ol-popup {
  position: absolute;
  bottom: 12px;
  left: -50px;
  min-width: 260px;
  max-width: 340px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  font-size: 13px;
}

.ol-popup::after,
.ol-popup::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 48px;
  border: solid transparent;
  pointer-events: none;
}

.ol-popup::after {
  border-top-color: rgba(255, 255, 255, 0.98);
  border-width: 10px;
  margin-left: -10px;
}

.ol-popup::before {
  border-top-color: rgba(0,0,0,0.12);
  border-width: 11px;
  margin-left: -11px;
}

.ol-popup-closer {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #eee;
  color: #333;
  line-height: 24px;
}

.popup-title {
  margin: 0 28px 10px 0;
  font-size: 15px;
  font-weight: 700;
}

.popup-address {
  margin-bottom: 10px;
  color: #444;
  line-height: 1.4;
}

.popup-info {
  width: 100%;
  border-collapse: collapse;
}

.popup-info th,
.popup-info td {
  padding: 5px 0;
  border-top: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}

.popup-info th {
  width: 92px;
  color: #555;
  font-weight: 600;
}
