:root {
  --red: #df2f36;
  --red-dark: #bb2028;
  --ink: #202124;
  --muted: #686b70;
  --line: #e9e9eb;
  --soft: #f6f6f7;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { background: #f5f5f6; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -5%, rgba(223, 47, 54, .11), transparent 29rem),
    #f5f5f6;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

main { min-height: 100vh; }
.app-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px 12px 12px 3px;
  background: var(--red);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.05em;
}
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font-size: 19px; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 5px; }
.back-link { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 700; }

.locator-panel {
  position: relative;
  max-width: 720px;
  margin: 38px auto 0;
  padding: 38px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(30, 32, 36, .08);
  overflow: hidden;
}
.locator-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--red);
}
.locator-panel__intro { text-align: center; margin-bottom: 26px; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.locator-panel h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.locator-panel__intro > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.locate-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(223, 47, 54, .24);
  transition: transform .18s ease, background .18s ease;
}
.locate-button > span:first-child { font-size: 22px; }
.locate-button:hover { background: var(--red-dark); transform: translateY(-1px); }
.locate-button:disabled { opacity: .7; cursor: wait; }
.divider { display: flex; align-items: center; gap: 14px; color: #96989c; font-size: 12px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.search-form { position: relative; display: flex; align-items: center; gap: 10px; }
.search-icon { position: absolute; left: 17px; color: #8a8d92; pointer-events: none; font-size: 23px; line-height: 1; transform: rotate(-20deg); }
.search-form input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 0 124px 0 48px;
  outline: none;
  font-size: 16px;
}
.search-form input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(223, 47, 54, .12); background: #fff; }
.clear-search { position: absolute; right: 92px; border: 0; background: none; color: #85878b; padding: 6px; font-size: 25px; line-height: 1; }
.search-submit {
  position: absolute;
  right: 6px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 15px;
  background: #292a2d;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.message { margin: 16px 0 0; padding: 12px 14px; border-radius: 11px; background: #fff1f2; color: #9d1c25; font-size: 14px; line-height: 1.4; }
.position-label { margin-top: 17px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; }

.results { max-width: 960px; margin: 42px auto 0; padding: 0 28px 70px; }
.loading { padding: 45px 20px; text-align: center; color: var(--muted); }
.results-heading { margin: 34px 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.results-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.results-heading span { color: var(--muted); font-size: 13px; }
.point-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.point-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 7px 20px rgba(30, 32, 36, .035);
}
.point-card--featured {
  border: 0;
  padding: 26px;
  background: #242529;
  color: #fff;
  box-shadow: 0 18px 42px rgba(30, 32, 36, .18);
}
.point-card__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 13px; }
.pin { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--red); background: #fff1f2; font-size: 21px; }
.point-card--featured .pin { background: var(--red); color: #fff; }
.point-card h2 { margin: 1px 0 7px; font-size: 17px; line-height: 1.25; letter-spacing: -.018em; }
.point-card--featured h2 { font-size: 22px; }
.point-card .eyebrow { font-size: 10px; margin: 0 0 6px; }
.address { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.point-card--featured .address { color: #c9cace; }
.distance { align-self: center; border-radius: 999px; padding: 7px 10px; background: var(--red); color: #fff; font-size: 13px; white-space: nowrap; }
.hours { display: grid; gap: 4px; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.point-card--featured .hours { border-color: rgba(255, 255, 255, .13); }
.hours span { color: var(--muted); font-size: 12px; }
.point-card--featured .hours span { color: #aeb0b5; }
.hours strong { font-size: 13px; line-height: 1.4; font-weight: 700; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.action { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 11px; font-size: 13px; font-weight: 800; }
.action--primary { background: var(--red); color: #fff; }
.action--primary:hover { background: var(--red-dark); }
.action--secondary { background: var(--soft); }
.point-card--featured .action--secondary { color: #fff; background: rgba(255, 255, 255, .1); }
.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-state > div { color: var(--red); font-size: 28px; }
.empty-state h2 { color: var(--ink); margin: 12px 0 7px; }
.empty-state p { margin: 0; }

footer { max-width: 960px; margin: 0 auto; padding: 24px 28px 38px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 25px; color: var(--muted); font-size: 12px; line-height: 1.45; }
footer p { margin: 0; }
footer a { white-space: nowrap; text-decoration: underline; }

@media (max-width: 700px) {
  .app-header { height: 68px; padding: 0 18px; }
  .back-link { font-size: 0; }
  .back-link span { font-size: 18px; }
  .locator-panel { margin: 10px 14px 0; padding: 30px 20px 24px; border-radius: 22px; }
  .locator-panel::before { width: 5px; }
  .locator-panel__intro { margin-bottom: 22px; }
  .results { margin-top: 26px; padding: 0 14px 50px; }
  .point-list { grid-template-columns: 1fr; }
  .point-card { padding: 18px; }
  .point-card--featured { padding: 22px 18px; }
  .point-card__top { grid-template-columns: auto minmax(0, 1fr); }
  .distance { grid-column: 2; justify-self: start; margin-top: 4px; }
  footer { margin: 0 14px; padding: 22px 0 30px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
