@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

.nwf-root {
  --asphalt: #1E2124;
  --lane-yellow: #F0B429;
  --concrete-50: #F7F5F0;
  --concrete-100: #ECE9E1;
  --ink: #21252A;
  --ink-muted: #6C716F;
  --route-blue: #2A5F8F;
  --route-blue-bg: #E4EDF4;
  --sign-green: #29684C;
  --sign-green-bg: #E4EEE8;
  --route-brown: #9C5A1E;
  --route-brown-bg: #F3E7DA;
  --gray-tag: #5B5F62;
  --gray-tag-bg: #E7E5E0;
  --alert-red: #B23A32;

  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  background: var(--concrete-50);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  border-radius: 16px;
}

.nwf-header { margin-bottom: 28px; }

.nwf-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sign-green);
  margin: 0 0 6px;
}

.nwf-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  color: var(--asphalt);
}

.nwf-subtitle {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0;
}

.nwf-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: var(--asphalt);
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.nwf-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; }
.nwf-field-narrow { flex: 0 1 90px; }

.nwf-field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #C7CBCE;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nwf-field input, .nwf-field select {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #3A3F44;
  background: #2A2E33;
  color: #F5F5F0;
  outline: none;
}

.nwf-field input:focus, .nwf-field select:focus {
  border-color: var(--lane-yellow);
}

.nwf-field input::placeholder { color: #6B7076; }

.nwf-locate-btn {
  background: transparent;
  border: 1px solid #4A4F54;
  color: #E8E6DF;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.nwf-locate-btn:hover { border-color: var(--lane-yellow); }

.nwf-submit-btn {
  background: var(--lane-yellow);
  border: none;
  color: var(--asphalt);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.nwf-submit-btn:disabled { opacity: 0.6; cursor: default; }
.nwf-submit-btn:not(:disabled):hover { background: #E0A61E; }

.nwf-error {
  background: #FBEAE8;
  color: var(--alert-red);
  border: 1px solid #EBC5C0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
}

.nwf-empty {
  color: var(--ink-muted);
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
}

.nwf-results { display: flex; flex-direction: column; }

.nwf-result-row { display: flex; gap: 16px; }

.nwf-marker-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
  flex-shrink: 0;
}

.marker-badge {
  background: var(--sign-green);
  color: #EAF3EC;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  min-width: 48px;
}

.marker-distance { display: block; font-size: 14px; font-weight: 500; line-height: 1.1; }
.marker-unit { display: block; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }

.marker-line {
  flex: 1;
  width: 0;
  border-left: 2px dashed var(--lane-yellow);
  margin: 6px 0;
  min-height: 24px;
}

.nwf-card {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--concrete-100);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.nwf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.nwf-way-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-muted);
}

.highway-tag {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.tag-motorway { background: var(--route-blue-bg); color: var(--route-blue); }
.tag-primary { background: var(--sign-green-bg); color: var(--sign-green); }
.tag-secondary { background: var(--route-brown-bg); color: var(--route-brown); }
.tag-tertiary { background: var(--gray-tag-bg); color: var(--gray-tag); }

.nwf-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nwf-coords {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink);
}

.nwf-state {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: capitalize;
  margin-top: 2px;
}

.speed-sign {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--alert-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.speed-sign span {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--asphalt);
}

@media (max-width: 520px) {
  .nwf-search { flex-direction: column; align-items: stretch; }
  .nwf-field-narrow { flex: 1 1 auto; }
  .nwf-card-main { flex-wrap: wrap; }
}
