:root {
  --navy: #0b3560;
  --blue: #1c5f9a;
  --sky: #e7f1fa;
  --white: #ffffff;
  --red: #c41e3a;
  --ink: #152231;
  --muted: #5a6573;
  --line: #c8d9ea;
  --panel: #f6f9fc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.top {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--navy);
}

.top h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.top-contact {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.top-contact a {
  color: var(--blue);
  text-decoration: none;
}

.top-contact a:hover {
  text-decoration: underline;
}

.top-contact .sep {
  color: var(--muted);
  margin: 0 0.35rem;
}

.search-section {
  margin-bottom: 1.5rem;
}

.search-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.search-row {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--line);
  border-radius: 4px;
}

.search-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 95, 154, 0.15);
}

.search-form button {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.search-form button:hover {
  filter: brightness(1.05);
}

.search-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.search-error {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  background: #fef2f2;
  border-left: 3px solid var(--red);
  color: #7f1d1d;
  font-size: 0.88rem;
}

.results-section[hidden] {
  display: none !important;
}

.results-summary {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.result-card {
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--panel);
}

.result-distance {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

.result-title {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.25;
}

.result-title:hover {
  color: var(--navy);
}

.brochure-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.result-address {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 1rem 0;
  padding: 0.85rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-fields dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-fields dd {
  margin: 0;
  font-size: 0.95rem;
  white-space: pre-line;
}

.contact-fields dd.is-empty {
  color: var(--muted);
}

.contact-fields .hours-block {
  grid-column: 1 / -1;
}

.map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 62%;
  background: var(--sky);
  border: 1px solid var(--line);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link-row {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

.map-link-row a {
  color: var(--blue);
  font-weight: 600;
}

@media (max-width: 520px) {
  .contact-fields {
    grid-template-columns: 1fr;
  }

  .search-row {
    flex-direction: column;
  }

  .search-form button {
    width: 100%;
  }
}
