:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5f6f67;
  --line: #d9e4dd;
  --panel: #ffffff;
  --field: #f7fbf8;
  --leaf: #1f8a55;
  --leaf-dark: #0f5132;
  --sky: #dff3ff;
  --sun: #f6b74a;
  --shadow: 0 18px 45px rgba(29, 64, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(223, 243, 255, 0.86), rgba(236, 248, 239, 0.92) 48%, rgba(255, 247, 229, 0.82)),
    #eef7f0;
}

.top-promo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 18px;
  min-height: 52px;
  background: linear-gradient(90deg, var(--leaf-dark), var(--leaf));
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 81, 50, 0.18);
  z-index: 5;
}

.top-promo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.top-promo-link:hover .top-promo-text strong {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.top-promo-thumb {
  flex: 0 0 auto;
  width: 58px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.top-promo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-promo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.top-promo-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.top-promo-tagline {
  font-size: 0.76rem;
  opacity: 0.85;
}

.top-promo-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  flex: 0 1 auto;
}

.top-promo-contact a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 2px;
  word-break: break-word;
}

.top-promo-contact a:hover {
  text-decoration-color: #ffffff;
}

.top-promo-sep {
  opacity: 0.7;
}

@media (max-width: 720px) {
  .top-promo {
    padding: 8px 12px;
    gap: 10px;
  }

  .top-promo-tagline {
    display: none;
  }

  .top-promo-contact {
    font-size: 0.78rem;
  }
}

@media (max-width: 520px) {
  .top-promo {
    flex-wrap: wrap;
  }

  .top-promo-contact {
    width: 100%;
    justify-content: flex-start;
  }
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  width: min(1600px, 100%);
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  padding: 12px 14px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(15, 81, 50, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(150deg, var(--leaf), var(--leaf-dark));
  box-shadow: 0 6px 16px rgba(15, 81, 50, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-tag {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--leaf-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.results-panel,
.map-wrap {
  border: 1px solid rgba(15, 81, 50, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.search-bar {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-bar-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
}

.field {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.field-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.field-label .optional-hint {
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
}

#zipFieldWrap input {
  width: 130px;
}

.field-distance .distance-input {
  width: 120px;
}

#preferenceWrap select {
  width: 160px;
}

#activityWrap select {
  width: 130px;
}

.field-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(31, 138, 85, 0.14);
}

.distance-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.distance-input input {
  border: 0;
  box-shadow: none;
}

.distance-input strong {
  padding: 0 14px;
  color: var(--leaf-dark);
}

.search-bar button[type="submit"],
.card-actions button,
.card-actions a {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
}

.search-bar button[type="submit"] {
  padding: 0 22px;
  background: var(--leaf);
  color: #fff;
}

.toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--leaf);
  cursor: pointer;
}

.toggle span {
  user-select: none;
}

.search-bar button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.status.is-error {
  color: #b42318;
}

.workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 0;
  height: 100%;
}

.site-footer {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 81, 50, 0.14);
  min-height: 0;
}

.site-footer-legal {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
}

.route-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  pointer-events: none;
}

.route-loading-overlay.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.route-loading-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(247, 251, 248, 0.78);
  backdrop-filter: blur(7px);
}

.route-loading-card {
  position: relative;
  z-index: 1;
  max-width: 300px;
  text-align: center;
  padding: 26px 30px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 138, 85, 0.14);
  box-shadow: var(--shadow);
}

.route-loading-visual {
  position: relative;
  width: 148px;
  height: 76px;
  margin: 0 auto 14px;
}

.route-loading-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 148px;
  height: auto;
  margin: 0 auto;
  color: var(--leaf);
  overflow: visible;
}

.route-loading-track-path {
  stroke-dasharray: 11 13;
  animation: route-loading-march 1.15s linear infinite;
}

@keyframes route-loading-march {
  to {
    stroke-dashoffset: -48;
  }
}

.route-loading-orbit {
  position: absolute;
  width: 118px;
  height: 118px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(31, 138, 85, 0.12);
  border-top-color: var(--leaf);
  opacity: 0.75;
  animation: route-loading-spin 1.05s linear infinite;
}

@keyframes route-loading-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.route-loading-msg {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--leaf-dark);
  line-height: 1.4;
}

.route-loading-steps {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 14px;
}

.route-loading-steps span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  opacity: 0.35;
  animation: route-loading-bounce 1s ease-in-out infinite;
}

.route-loading-steps span:nth-child(2) {
  animation-delay: 0.14s;
}

.route-loading-steps span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes route-loading-bounce {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  35% {
    transform: translateY(-9px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-loading-overlay {
    transition: none;
  }

  .route-loading-track-path,
  .route-loading-orbit,
  .route-loading-steps span {
    animation: none;
  }

  .route-loading-steps span {
    opacity: 0.65;
  }
}

.plan-mode-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-mode-fieldset legend {
  margin: 0 0 4px;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.plan-mode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-height: 38px;
  align-items: center;
}

.plan-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}

.plan-option input {
  width: auto;
  min-height: auto;
  accent-color: var(--leaf);
}

.path-type-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.path-type-fieldset legend {
  margin: 0 0 4px;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.path-type-fieldset legend .optional-hint {
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
}

.path-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 38px;
  align-items: center;
}

.path-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
}

.path-option input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--leaf);
  cursor: pointer;
}

.path-option-strict {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--leaf-dark);
}

.pin-mode-hint {
  margin: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--leaf-dark);
  line-height: 1.35;
  background: rgba(31, 138, 85, 0.08);
}

.pin-mode-hint:empty {
  display: none;
}

.btn-secondary {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--leaf-dark);
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--leaf);
}

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

.field-hidden {
  display: none !important;
}

.leaflet-div-icon.map-plan-pin {
  border: 0;
  background: transparent;
}

.map-plan-pin {
  display: grid !important;
  place-items: center;
  width: 28px !important;
  height: 32px !important;
  margin-left: -14px !important;
  margin-top: -32px !important;
  font-weight: 900;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(165deg, var(--leaf), var(--leaf-dark));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(29, 64, 45, 0.35);
}

.map-plan-pin span {
  transform: rotate(45deg);
  line-height: 1;
}

.map-plan-pin-a {
  background: linear-gradient(165deg, #3b82f6, #1d4ed8);
}

.map-plan-pin-b {
  background: linear-gradient(165deg, #fb923c, #c2410c);
}

.results-panel {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.6rem;
}

.results-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.route-list {
  display: grid;
  gap: 14px;
}

.route-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--route-color);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.route-card.is-active {
  border-color: var(--route-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--route-color) 18%, transparent);
  transform: translateX(2px);
}

.route-topline {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.route-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--route-color);
}

.route-card h3 {
  margin: 8px 0 12px;
  font-size: 1.04rem;
  line-height: 1.35;
}

dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 10px;
}

dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.card-actions-span {
  grid-column: 1 / -1;
}

.card-actions button {
  background: rgba(31, 138, 85, 0.12);
  color: var(--leaf-dark);
}

.card-actions a {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
}

.card-actions .btn-export {
  background: var(--leaf);
  color: #fff;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.card-actions .btn-export:hover {
  background: var(--leaf-dark);
}

.card-actions .btn-export-secondary {
  background: transparent;
  color: var(--leaf-dark);
  border: 1px solid rgba(15, 81, 50, 0.25);
  font-weight: 700;
  cursor: pointer;
  min-height: 34px;
  font-size: 0.85rem;
}

.card-actions .btn-export-secondary:hover {
  background: rgba(31, 138, 85, 0.08);
  border-color: var(--leaf);
}

.export-help {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 81, 50, 0.18);
  border-radius: 8px;
  background: rgba(31, 138, 85, 0.05);
  font-size: 0.86rem;
  color: var(--ink);
}

.export-help summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--leaf-dark);
  list-style: none;
  padding: 2px 0;
}

.export-help summary::-webkit-details-marker {
  display: none;
}

.export-help summary::before {
  content: '▸ ';
  color: var(--leaf);
}

.export-help[open] summary::before {
  content: '▾ ';
}

.export-help-body {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  line-height: 1.45;
}

.export-help-body p {
  margin: 0;
}

.export-help-body a {
  color: var(--leaf-dark);
  font-weight: 700;
}

.map-wrap {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #eef3ec;
}

.map-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(29, 64, 45, 0.16);
  pointer-events: auto;
}

.map-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--leaf);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 120ms ease, transform 80ms ease;
}

.map-button:hover {
  background: var(--leaf-dark);
}

.map-button:active {
  transform: translateY(1px);
}

.map-button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.map-controls .toggle {
  margin: 0;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.map-style-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.map-style-label {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.map-style-control select {
  min-height: 32px;
  width: auto;
  min-width: 148px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.map-style-control select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(31, 138, 85, 0.14);
  outline: none;
}

.leaflet-control-zoom {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(29, 64, 45, 0.14);
}

.leaflet-control-zoom a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.leaflet-control-attribution {
  margin: 0;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.7rem;
}

.leaflet-popup-content {
  font: 0.92rem/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
}

.leaflet-popup-content a {
  color: var(--leaf-dark);
  font-weight: 800;
}

.bike-tooltip {
  background: #0c4a6e;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.32);
}

.bike-tooltip:before {
  border-top-color: #0c4a6e;
}

.bike-route-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border: 1.5px solid #0284c7;
  border-radius: 4px;
  background: #ffffff;
  color: #0c4a6e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.32);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.bike-parking-marker {
  background: transparent;
  border: 0;
}

.bike-parking-pin {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid #ffffff;
  background: #0284c7;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.45);
}

.trailhead-marker {
  background: transparent;
  border: 0;
}

.trailhead-pin {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: var(--route-color, #0f5132);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0;
  box-shadow: 0 4px 10px rgba(15, 81, 50, 0.32);
}

.trailhead-badge {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(31, 138, 85, 0.14);
  color: var(--leaf-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 920px) {
  body {
    min-height: 100%;
    overflow: auto;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .workspace {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .results-panel,
  .map-wrap {
    min-height: 0;
  }

  .map-wrap {
    height: min(68vh, 560px);
  }

  #map {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 10px;
  }

  .results-panel {
    padding: 18px;
  }

  .search-bar-fields {
    gap: 10px 12px;
  }

  .field {
    flex: 1 1 auto;
  }

  #zipFieldWrap input,
  .field-distance .distance-input,
  #preferenceWrap select,
  #activityWrap select {
    width: 100%;
  }

  .field-actions {
    width: 100%;
  }

  .field-actions button {
    flex: 1 1 auto;
  }

  .workspace {
    gap: 12px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }
}
