:root{
  --border:#e7e7e7;
  --text:#111;
  --muted:#666;
  --primary:#0b5ea8;
  --bg:#fff;
  --card:#fff;
  --cardActive:#f3f7ff;
}

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

.layout{
  height:100vh;
  display:grid;
  grid-template-columns: 1.6fr 1fr;
}

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

.panel{
  border-left:1px solid var(--border);
  background:var(--bg);
  display:flex;
  flex-direction:column;
  min-width: 340px;
}

.panel__header{
  padding:16px;
  border-bottom:1px solid var(--border);
}

.panel__title{
  font-weight:800;
  letter-spacing:.3px;
  margin-bottom:12px;
}

.label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:10px 0 6px;
}

.input,.select{
  width:100%;
  padding:10px;
  border:1px solid var(--border);
  border-radius:6px;
  outline:none;
}

.row{
  display:grid;
  grid-template-columns: 1fr 120px;
  gap:10px;
  align-items:end;
}

.btn{
  width:100%;
  margin-top:12px;
  padding:12px;
  border:0;
  border-radius:6px;
  background:var(--primary);
  color:white;
  font-weight:800;
  cursor:pointer;
}

.btn:disabled{ opacity:.6; cursor:not-allowed; }

.status{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  min-height:16px;
}

.results{
  padding:16px;
  overflow:auto;
}

.card{
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--card);
  padding:12px;
  margin-bottom:12px;
  cursor:pointer;
}

.card.active{ background:var(--cardActive); }

.card__distance{
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}

.card__name{ font-weight:800; }
.card__secondary{ color:var(--muted); margin-top:2px; }
.card__addr{ margin-top:6px; line-height:1.25; }
.card__phone{ margin-top:6px; }

.card__btn{
  margin-top:10px;
  width:100%;
  padding:10px;
  border:1px solid var(--primary);
  background:white;
  color:var(--primary);
  border-radius:6px;
  font-weight:800;
  cursor:pointer;
}
