@font-face {
  font-family: Inter;
  src: url("assets/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #16253b;
  --muted: #748196;
  --blue: #1378f5;
  --surface: #f5f7fb;
  --line: #e8edf5;
}
body {
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #e9eef6;
  -webkit-font-smoothing: antialiased;
}
button {
  font-family: inherit;
  letter-spacing: -0.015em;
}
.app {
  box-shadow: 0 16px 70px #213c6512;
}
.nearby {
  background: var(--surface);
  min-height: 100dvh;
  padding: 24px 18px 28px;
}
.nearby-header {
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
}
.nearby-header .wordmark {
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1.3px;
  line-height: 1.1;
}
.wordmark span {
  color: var(--blue);
}
.nearby-header .text-button {
  font-size: 11px;
  color: var(--muted);
  min-height: 44px;
  padding: 8px 0 8px 8px;
}
.location-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f1ff;
  border-radius: 30px;
  color: #37628f;
  font-size: 11px;
  font-weight: 550;
  padding: 9px 12px;
  line-height: 1.4;
  max-width: 100%;
}
.location-note:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.view-title {
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: -1px;
  font-weight: 680;
  margin: 19px 0 18px;
  color: var(--ink);
}
.categories {
  gap: 7px;
  margin: 0 -18px;
  padding: 0 18px 5px;
  scroll-padding: 18px;
}
.categories button {
  font-family: inherit;
  border: 1px solid var(--line);
  background: #fff;
  color: #657288;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 550;
  min-height: 44px;
  padding: 10px 13px;
  box-shadow: none;
  flex-shrink: 0;
}
.categories button[aria-pressed="true"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 12px #1378f522;
}
.discovery-actions {
  display: flex;
  justify-content: flex-end;
  margin: 5px 0 3px;
}
.discovery-actions #refresh-location {
  background: transparent;
  border: 0;
  color: #52769d;
  font-size: 11px;
  padding: 7px 0;
  min-height: 44px;
  box-shadow: none;
}
.nearby-status {
  font-size: 10px;
  line-height: 1.6;
  color: #8290a3;
  margin: 2px 0 17px;
  letter-spacing: 0.01em;
}
.places {
  display: grid;
  gap: 12px;
}
.place {
  background: white;
  border: 1px solid #edf0f6;
  border-radius: 20px;
  padding: 15px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  box-shadow: 0 3px 13px #253f6011;
  align-items: start;
}
.place-art {
  width: 64px;
  height: 76px;
  min-width: 0;
  border-radius: 16px;
  background: #eaf2ff;
  color: #4b85cf;
  display: grid;
  place-items: center;
}
.place-art svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.place-art.cafes {
  background: #f3ede6;
  color: #b28562;
}
.place-art.food {
  background: #fcf0e8;
  color: #c1855a;
}
.place-art.parks {
  background: #eaf3ed;
  color: #69a17b;
}
.place-art.views {
  background: #eeedf9;
  color: #8d83bc;
}
.place-body h3 {
  font-family: inherit;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
  overflow-wrap: normal;
  hyphens: none;
}
.place p.place-category {
  font-size: 10px;
  color: #8a95a5;
  margin: 0 0 9px;
  line-height: 1.4;
}
.place p.walk-time {
  font-size: 10px !important;
  font-weight: 550;
  color: #536b89;
  line-height: 1.5;
  margin: 0 !important;
}
.place-body .choose-place {
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 550;
  background: transparent !important;
  color: var(--blue);
  min-height: 44px !important;
  padding: 11px 0 0 !important;
  line-height: 1.3;
  text-align: left;
}
.source {
  font-family: inherit;
  font-size: 9px;
  color: #94a0b1;
  line-height: 1.8;
  margin: 23px 3px 0;
}
.source a {
  color: #8190a5;
}
.route-header {
  padding: 12px 14px;
  min-height: 70px;
  box-shadow: 0 2px 12px #173d5b08;
}
.route-header h2 {
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: -0.4px;
}
.route-header button {
  color: var(--ink);
}
.route-bottom {
  padding: 17px 18px max(14px, env(safe-area-inset-bottom));
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -8px 30px #27405b12;
}
.route-stats {
  font-family: inherit;
  font-size: 15px;
  color: #5e728c;
}
.route-stats strong {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.8px;
  color: var(--ink);
}
#route-caption {
  font-size: 11px;
  color: #8591a2;
}
#route-message {
  font-family: inherit;
  font-size: 11px;
  color: #7a8799;
  line-height: 1.6;
}
.primary,
.route-bottom .primary {
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 15px;
  box-shadow: 0 6px 16px #1378f51a;
  font-size: 14px;
  font-weight: 600;
  min-height: 49px;
  letter-spacing: -0.2px;
}
.turn-panel {
  background: linear-gradient(115deg, #1479ed, #075bc5);
  border: 1px solid #ffffff60;
  box-shadow: 0 7px 25px #055fc930;
}
.turn-panel strong {
  font-size: 16px;
  letter-spacing: -0.4px;
}
.turn-panel div > span {
  font-size: 12px;
  opacity: 0.85;
}
.recenter {
  box-shadow: 0 4px 15px #2948611a;
  border: 1px solid #edf2f8;
  color: #376791;
}
.target-label {
  font-family: Inter, Arial, sans-serif;
}
.welcome h1 {
  font-family: inherit;
  letter-spacing: -0.8px;
  font-weight: 650;
}
.intro {
  font-family: inherit;
  line-height: 1.65;
  color: #788599;
}
@media (max-width: 350px) {
  .nearby {
    padding: 22px 14px;
  }
  .view-title {
    font-size: 23px;
  }
  .categories {
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .place {
    padding: 13px;
    gap: 11px;
    grid-template-columns: 55px minmax(0, 1fr);
  }
  .place-art {
    width: 55px;
    height: 70px;
  }
  .place-body h3 {
    font-size: 13px;
  }
  .walk-time {
    white-space: normal;
  }
}

.nearby-header {
  margin-bottom: 16px;
}
.location-note {
  margin: 0;
}
.view-title {
  margin-top: 18px;
}
.place p.place-category,
.place p.walk-time {
  font-size: 11px !important;
}
.nearby-status {
  font-size: 11px;
}

/* 0.4.2: complete filters, red accents and direct card navigation. */
:root {
  --blue: #e6002d;
  --surface: #f7f8fa;
}
.wordmark span,
.place-body .choose-place {
  color: var(--blue);
}
.location-note {
  background: #fff0f2;
  color: #9b4657;
}
.location-note:before {
  background: var(--blue);
}
.place-search-wrap {
  position: relative;
  margin: 0 0 14px;
}
.search-label {
  position: absolute;
  left: 14px;
  top: 10px;
  font:
    25px/1 Inter,
    Arial,
    sans-serif;
  color: #677488;
  pointer-events: none;
}
#place-search {
  font:
    12px/1.4 Inter,
    Arial,
    sans-serif;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px 42px;
  border: 1px solid #e6e9ef;
  border-radius: 24px;
  background: white;
  color: #1c293c;
  outline-offset: 3px;
  box-shadow: 0 3px 13px #18294305;
}
#place-search:focus {
  outline: 2px solid #e6002d40;
  border-color: #e6002d60;
}
.search-result-status {
  font-size: 11px;
  color: #69788a;
  line-height: 1.5;
  margin: 0 0 10px;
}
.search-result-status:empty {
  display: none;
}
.categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  margin: 0;
  padding: 0;
  gap: 8px;
}
.categories button {
  width: 100%;
  border-radius: 22px;
  min-height: 44px;
  font-size: 11px;
  padding: 9px 6px;
  white-space: nowrap;
  color: #5f6c7e;
  background: #e9ecf1;
  border-color: transparent;
}
.categories button[aria-pressed="true"] {
  background: #e6002d;
  border-color: #e6002d;
  box-shadow: none;
}
.places {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.place {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border-radius: 17px;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}
.place-art,
.place-art.parks,
.place-art.food,
.place-art.cafes,
.place-art.views {
  width: 100%;
  height: 86px;
  border-radius: 12px;
  flex-shrink: 0;
}
.place-art.sights {
  background: #fff0f2;
  color: #ce687d;
}
.place-body {
  padding: 0 2px 8px;
}
.place-body h3 {
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 5px;
  letter-spacing: -0.2px;
}
.place p.place-category {
  font-size: 10px !important;
  margin-bottom: 7px;
}
.place p.walk-time {
  font-size: 10px !important;
  white-space: normal;
  line-height: 1.5;
}
.place .card-hit {
  position: absolute !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 17px !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 2;
  cursor: pointer;
}
.place:has(.card-hit:focus-visible) {
  outline: 2px solid #e6002d;
  outline-offset: 3px;
}
.place:has(.card-hit:hover) {
  border-color: #f1bac5;
  box-shadow: 0 4px 17px #7e173414;
}
.primary,
.route-bottom .primary {
  background: #e6002d;
  border-color: #e6002d;
  box-shadow: 0 6px 16px #e6002d17;
}
.turn-panel {
  background: linear-gradient(115deg, #252f3c, #121c29);
  box-shadow: 0 7px 25px #17243724;
}
.recenter {
  color: #e6002d;
}
.discovery-actions #refresh-location {
  color: #a44859;
}
@media (max-width: 350px) {
  .categories {
    margin: 0;
    padding: 0;
    gap: 7px;
  }
  .categories button {
    font-size: 10px;
  }
  .place {
    padding: 9px;
    gap: 9px;
  }
  .place-art {
    width: 100%;
    height: 76px;
  }
  .place-body h3 {
    font-size: 11px;
  }
  .places {
    gap: 9px;
  }
}
