.didact-gothic-regular {
  font-family: "Didact Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

:root {
  --header-h: 80px;         /* adjust if your header is taller/shorter */
  --accent: #6B694D;        /* brand accent */
  --accent-rgb: 107,105,77; /* same color in RGB */
}

/* Page */
body {
  margin: 0;
  padding: var(--header-h) 0 0; /* top padding clears fixed header, no side padding */
  background: #FDFAF6;
  color: #6B694D;
  font-family: "Didact Gothic", Arial, sans-serif;
}

/* Keep page content padded instead of the body */
.main, .site-footer {
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #FDFAF6;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 2000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start !important; /* force left */
  max-width: none;   /* don’t center the header container */
  width: 100%;
  margin: 0;
  padding: 0 8px;    /* minimal breathing room from the edge */
}

.brand { display: inline-flex; margin: 0; }
.logo  { display: block; height: 70px; width: auto; padding-top: .7dvh; }

/* Controls (search + buttons + status) */
.controls {
  max-width: 700px;
  margin: 24px auto 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.controls input {
  flex: 0 0 100%;   /* full row */
  max-width: 100%;
  width: 100%;
  height: 44px;
  padding: 10px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  color: #1f1f1f;
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.controls input::placeholder { color: #9a9a9a; }
.controls input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25), 0 2px 8px rgba(0,0,0,0.06);
}

.controls button {
  flex: 0 0 auto;   /* keep buttons sized to content on the next row */
  height: 44px;
  padding: 0 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .2s, border-color .2s, color .2s, filter .15s;
}
.controls button:hover { background: #f7f7f7; }
.controls button:active { transform: translateY(1px); }
.controls button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25);
}

/* Primary action: Get directions */
#routeBtn {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), .35);
  background: #fff;
  box-shadow: none;
}
#routeBtn:hover { background: rgba(var(--accent-rgb), .07); filter: none; }
#routeBtn:active { transform: translateY(1px); }
#routeBtn:disabled { opacity: .6; cursor: not-allowed; }

/* Secondary action: Use my location */
#locBtn {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), .35);
  background: #fff;
}
#locBtn:hover { background: rgba(var(--accent-rgb), .07); }
#locBtn:disabled { opacity: .6; cursor: not-allowed; }

/* Status + summary */
.controls .status {
  width: 100%;
  text-align: center;
  font-size: 13px;
  min-height: 18px;
  color: #333;
}
.route-summary {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #1f1f1f;
  margin-top: 4px;
}

/* Main content (centered column) */
.main {
  max-width: 700px;
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Intro copy above the map */
.intro {
  text-align: center;
  line-height: 1.4;
  margin-bottom: 16px;
}
.intro p,
.intro h4 { margin: 0 0 10px 0; }
.intro .blessing { text-align: center; }

/* Map container */
#map {
  width: 700px;
  height: 700px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 12px;
  margin: 0 auto 24px;
  display: block;
}

/* Footer */
.site-footer {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
  line-height: 1.4;
}
.site-footer p { margin: 4px 0; }

/* Small screens */
@media (max-width: 760px) {
  .controls input,
  .controls button {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .controls { gap: 8px; }

  #map {
    width: 100%;
    height: 60vh; /* keep map visible on phones */
  }

}
