*{box-sizing:border-box}html,body{height:100%;margin:0;font:15px/1.4 Arial,sans-serif;color:#163649}body{display:flex;flex-direction:column;background:#e9eeea}#tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px;background:#f7f8f4}button,select{font:inherit;min-height:35px;border:1px solid #b8c8c7;border-radius:20px;padding:4px 13px;background:white;color:#17394a;cursor:pointer}button:hover,button:focus-visible{background:#e1edb8}label{display:flex;align-items:center;gap:7px;margin-left:auto}select{max-width:35vw}#city-map{flex:1;min-height:220px;background:#e3e9e5}.s54-pin{display:grid;place-items:center;width:26px;height:26px;color:white;background:#224d65;border:3px solid white;border-radius:50%;box-shadow:0 1px 6px #0e283981;font-size:13px;font-weight:bold}.s54-pin.house,.s54-pin.cottage{background:#68803e}.s54-pin.group{background:#193d53}.s54-pin:focus-visible{outline:3px solid #d4e7a5}.leaflet-popup-content{margin:13px 15px;color:#1b3547;font:14px/1.38 Arial,sans-serif;min-width:178px}.leaflet-popup-content img{width:100%;height:92px;object-fit:cover;border-radius:9px}.leaflet-popup-content h2{font-size:17px;margin:6px 0}.leaflet-popup-content p{margin:5px 0}.leaflet-popup-content a{display:block;color:#1d5573;font-weight:700;margin-top:8px}@media(max-width:610px){label span{display:none}#tools{gap:4px}label{margin:0;flex:1}select{max-width:100%;width:100%;min-width:0}button,select{font-size:12px;padding:4px 8px}.leaflet-control-attribution{max-width:77%;font-size:9px!important}}
.s54-group-list{max-height:155px;overflow:auto;overscroll-behavior:contain;border-top:1px solid #d6dfd9;margin-top:8px}.s54-group-list button{display:block;width:100%;border:0;border-radius:0;border-bottom:1px solid #d6dfd9;background:#fff;color:#214b65;text-align:left;font-size:13px;padding:8px 2px;line-height:1.3}.s54-group-list button:hover{background:#f1f4eb}.s54-map-group>button{min-height:28px;font-size:12px}

#tools{display:grid;grid-template-columns:auto auto auto minmax(130px,1fr)}
#tools label{min-width:0;margin:0}
#tools select{min-width:0;max-width:100%}
#points{width:100%}
.collection-label select{font-weight:600}
@media(max-width:730px){
  #tools{grid-template-columns:1fr 1fr auto auto}
  .collection-label{grid-column:span 2}
  #tools label:last-child{grid-column:1/-1}
  #tools select{width:100%}
  #tools label span{display:none}
}
@media(max-width:440px){
  #tools{grid-template-columns:1fr 1fr}
  .collection-label{grid-column:1/-1}
  #tools select,#tools button{font-size:14px}
}

@media(max-width:600px){
  .leaflet-popup-content img{height:64px}
  .leaflet-popup-content h2{font-size:16px}
  .leaflet-popup-content{margin:10px 13px}
}
