:root {
  --bg: #f3f7fb;
  --panel: #ffffff;
  --text: #16324f;
  --muted: #58718a;
  --line: #d8e4ef;
  --brand: #0a66c2;
  --brand-2: #0f8aa8;
  --danger-bg: #fff4de;
  --danger-border: #f4d088;
  --shadow: 0 10px 30px rgba(31, 67, 105, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero, .controls, .map-section, .results-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

h1, h2 { margin: 0 0 10px; }
.hero-copy, .section-head p, .label, .clinic-meta, .hours-note, .empty-state { color: var(--muted); }
.disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  line-height: 1.5;
}

.controls { display: grid; gap: 18px; }
.search-wrap input,
.filters-grid select,
.filters-grid input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.search-wrap input { font-size: 16px; }
.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; }
button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  cursor: pointer;
}
#map {
  width: 100%;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  background: #e9f1f8;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fbfdff;
}
.card h3 { margin: 0 0 6px; }
.card a { color: var(--brand); text-decoration: none; }
.card a:hover { text-decoration: underline; }
.clinic-meta { margin: 0 0 12px; line-height: 1.5; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5fc;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.tag.open { background: #e8f8ee; color: #1a7f42; }
.tag.closed { background: #fdeeee; color: #c03434; }
.hours-list { display: grid; gap: 8px; margin-top: 12px; }
.hours-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}
.hours-row strong { font-size: 14px; }
.hours-note { font-size: 13px; }
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

@media (max-width: 900px) {
  .filters-grid,
  .results-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .page-shell { width: min(100vw - 20px, 100%); padding-top: 16px; }
  .hero, .controls, .map-section, .results-section { padding: 18px; border-radius: 16px; }
  .filters-grid,
  .results-grid { grid-template-columns: 1fr; }
  .toggle-row,
  .section-head { flex-direction: column; align-items: stretch; }
  #map { height: 360px; }
}
