/* Floating info button (above credits) */
.floating-info-btn {
  position: fixed;
  bottom: 43px;
  right: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: bold;
  border: 1.5px solid #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1400;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.floating-info-btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  border-color: #111;
}
/* Floating copyright button */
.floating-credits-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: bold;
  border: 1.5px solid #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1400;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.floating-credits-btn:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  border-color: #111;
}

/* Credits modal styles */
.credits-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.32);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.credits-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 90vw;
  min-width: 260px;
  max-height: 80vh;
  padding: 24px 20px 18px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  overflow-y: auto;
}
.credits-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
}
.credits-modal-close:hover {
  color: #1976d2;
}

.custom-marker-dot {
  width: 15px;
  height: 15px;
  background: #1976d2;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  display: block;
}

  .marker-cluster {
    background: #1976d2 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    text-align: center;
    padding: 0;
    line-height: 1;
    transition: box-shadow 0.3s, border-color 0.3s;
  }
  .marker-cluster.highlighted {
    box-shadow: 0 0 0 6px #ffeb3b99, 0 1px 4px rgba(0,0,0,0.18);
    border-color: #ffeb3b !important;
    z-index: 1201;
  }
.marker-cluster > div {
  background: none !important;
  color: inherit !important;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 0;
}
.search-results {
  position: fixed;
  left: 50%;
  bottom: calc(56px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  z-index: 1300;
  min-width: 220px;
  max-width: 90vw;
  padding: 4px 0;
  font-size: 15px;
}
.search-result {
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  color: #1e293b;
  background: #fff;
  transition: background 0.15s;
}
.search-result:last-child {
  border-bottom: none;
}
.search-result:hover, .search-result.active {
  background: #e0e7ff;
  color: #2563eb;
}


:root {
  --bg: #0b0c10;
  --panel: #ffffff;
  --accent: #0066ff;
  --text: #0b0c10;
  --navbar-height: 60px;
  --navbar-controls-gap: 10px;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

#app { position: relative; }
.app-header {
  position: fixed;
  top: env(safe-area-inset-top);
  left: env(safe-area-inset-left);
  right: env(safe-area-inset-right);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.brand-title { color: #fff; font-weight: 600; font-size: 16px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }

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

/* Default: mobile view, controls centered */
/* Default: mobile view, controls centered */
.controls {
  position: fixed;
  top: calc(var(--navbar-height) + var(--navbar-controls-gap));
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  padding: 8px;
  display: flex;
  gap: 8px;
  z-index: 1200;
}

@media (min-width: 768px) {
  :root {
    --navbar-controls-gap: 15px;
  }
  .controls {
    left: 18px;
    transform: none;
    top: calc(var(--navbar-height) + var(--navbar-controls-gap));
  }
}



.control-btn {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
}

.control-btn.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.control-select {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 8px 32px 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 9L1 4h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}

.control-input {
  width: 200px;
  max-width: 42vw;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
}


/* Make default Leaflet controls more touch friendly */
.leaflet-control-zoom {
  top: 80px !important; /* 75px nav + 5px gap */
  left: 10px !important;
}
.leaflet-control-zoom a {
  width: 40px; height: 40px; line-height: 40px; font-size: 18px;
}
.leaflet-popup-content {
  font-size: 14px;
  max-height: 260px;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .brand-title { font-size: 18px; }
}
