:root{--accent:#0e6efd;--muted:#6c757d;--bg:#f7f8fa}
*{box-sizing:border-box;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,'Helvetica Neue',Arial}
body{margin:0;background:var(--bg);color:#111}
.topbar{background:white;padding:12px 16px;border-bottom:1px solid #e6e9ef}
.topbar h1{margin:0;font-size:1.1rem}
.container{padding:16px;max-width:1100px;margin:0 auto}
.controls{background:white;padding:12px;border-radius:8px;box-shadow:0 1px 3px rgba(16,24,40,.03);margin-bottom:12px}
.controls .search-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.controls .search-form .left,.controls .search-form .right{display:flex;gap:8px;align-items:center}
.controls .left .date,.controls .right .control-item{display:flex;flex-direction:column}
.controls label{display:flex;flex-direction:column;font-size:0.85rem;margin:0}
.controls input[type=date], .controls input[type=text]{padding:8px;border:1px solid #e6e9ef;border-radius:6px;min-width:140px}
.controls .control-item.flex-1{flex:1;min-width:140px}
.controls button{background:var(--accent);color:white;padding:8px 12px;border-radius:6px;border:none;cursor:pointer;white-space:nowrap}
.controls .hint{margin:8px 0 0;font-size:0.85rem;color:var(--muted)}

/* Responsive controls */
@media (max-width: 800px){
  .controls .search-form .left,.controls .search-form .right{width:100%;justify-content:space-between;flex-wrap:wrap}
  .controls .left .date{flex:1 1 48%;margin-bottom:8px}
  .controls .search-form .right .control-item.flex-1{flex:1 1 100%;order:2}
  .controls .search-form button{width:100%;order:3;margin-top:8px}
  .controls .left .date input,.controls .right .control-item input{width:100%}
}
.map-and-list{display:flex;gap:12px}
#map{height:60vh;border-radius:8px;flex:1;min-height:300px}
.results{width:320px;background:white;padding:12px;border-radius:8px;overflow:auto}
.results h3{margin-top:0}
.result-item{padding:8px;border-radius:6px;border-bottom:1px dashed #f0f0f0;cursor:pointer}
.result-item .muted{color:var(--muted);font-size:0.9rem}
.footer{text-align:center;padding:12px;font-size:0.9rem;color:var(--muted)}
.muted{color:var(--muted)}

/* Responsive */
@media (max-width: 800px){
  .map-and-list{flex-direction:column}
  .results{width:100%;max-height:36vh}
  #map{height:50vh}
}

/* Small popup tweaks */
.leaflet-popup-content img{max-width:100%;height:auto}
