:root {
  --bg: #ffffff;
  --ink: #1f2328;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #1a73e8;
  --accent-soft: #e8f0fe;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex;
  flex-direction: column;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ header */
#topbar {
  flex: 0 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}
.bar {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 650; letter-spacing: -.01em;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ------------------------------------------------------------------ search */
.search {
  position: relative;
  width: 100%;
  max-width: 620px;
}
.search .icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; pointer-events: none;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
}
#addr {
  width: 100%;
  height: 54px;
  padding: 0 44px 0 48px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 27px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s;
}
#addr::placeholder { color: #9ca3af; }
#addr:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm);
}
.search.open #addr { border-radius: 27px 27px 0 0; box-shadow: none; border-color: var(--line); }

#clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%;
  background: #f3f4f6; color: var(--muted);
  font-size: 17px; line-height: 1; cursor: pointer;
}
#clear:hover { background: #e5e7eb; color: var(--ink); }

#suggest {
  position: absolute; left: 0; right: 0; top: 100%;
  margin: 0; padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 336px; overflow-y: auto;
  z-index: 1200;
}
#suggest li {
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 1px;
}
#suggest li .a { font-size: 14.5px; font-weight: 550; }
#suggest li .t { font-size: 12.5px; color: var(--muted); }
#suggest li[aria-selected="true"], #suggest li:hover { background: var(--accent-soft); }
#suggest li.empty { color: var(--muted); cursor: default; font-size: 14px; }
#suggest li.empty:hover { background: none; }

#result {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r-row { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.4; }
.r-row b { font-weight: 650; }
.r-ico { flex: 0 0 auto; font-size: 15px; line-height: 1.3; }
.r-dim { color: var(--muted); font-size: 13px; }
.r-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 3px; padding: 0;
  border: 0; border-radius: 50%;
  background: #e5e7eb; color: var(--muted);
  font-size: 10px; font-weight: 700; cursor: help; vertical-align: 1px;
}
.r-info:hover { background: var(--accent-soft); color: var(--accent); }

.towns { margin: 0; font-size: 12.5px; color: var(--muted); letter-spacing: .01em; }

/* --------------------------------------------------------------------- map */
#map { flex: 1 1 auto; min-height: 0; background: #eceff1; }

.hint {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: rgba(31, 35, 40, .88);
  color: #fff;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

/* Owner labels on each parcel */
.owner-label {
  background: rgba(255, 255, 255, .94);
  color: #17212e;
  border: 1px solid rgba(16, 24, 40, .14);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .18);
}
.owner-label::before { display: none; }
.leaflet-tooltip.owner-label { margin: 0; }

/* Shul markers */
.shul-pin { background: none; border: 0; }
.shul-pin span {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  font-size: 16px; line-height: 1;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(16, 24, 40, .18);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .28);
}
.shul-pin:hover span { transform: scale(1.12); transition: transform .1s; }

/* Parcel popup */
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 14px 16px; }
.pp-owner { font-size: 15px; font-weight: 680; letter-spacing: -.01em; margin-bottom: 3px; }
.pp-addr { font-size: 13px; color: var(--muted); }
.pp-meta { font-size: 11.5px; color: #9ca3af; margin-top: 7px; }

.leaflet-control-attribution { font-size: 10px; }

@media (max-width: 640px) {
  .bar { padding: 16px 14px 18px; gap: 11px; }
  #addr { height: 50px; font-size: 16px; }
  .towns { font-size: 11.5px; }
}
