.city-mobility { display: grid; gap: 16px; }
.passenger-city-home .topbar > .location { display: none; }
.passenger-city-home .top-actions { margin-inline-start: auto; }
.city-header {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  min-height: 166px; padding: clamp(18px, 3.1vw, 32px); border-radius: 24px; color: #fff;
  background: radial-gradient(ellipse at 96% 9%, #0075f8 0%, transparent 64%),
    linear-gradient(120deg, #0b204c, #133f89);
  box-shadow: 0 10px 24px #143d7426;
}
.city-header h1 { color: #fff; margin: 9px 0 6px; font-size: clamp(1.85rem, 4.2vw, 3.15rem); }
#city-title:focus { outline: none; }
.city-header p { color: #e2edff; font-size: .94rem; }
.city-location { display: inline-flex; align-items: center; gap: 6px; color: #e2edff; font-size: .8rem; font-weight: 700; }
.city-header-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.city-location-status:empty { display: none; }
.city-header .city-locate { background: #08265950; color: #fff; border-color: #ffffff69; }
.city-header .city-locate:hover { background: #0e3c7f; }
.city-header .city-ride-link { flex-shrink: 0; border: 1px solid #ffffff4d; background: #fff; color: #143f7a; }
.city-header .city-ride-link:hover { background: #ebf3ff; }
.city-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.city-category {
  display: grid; justify-items: start; gap: 6px; min-height: 120px; padding: 13px;
  border: 1px solid var(--line); border-radius: 17px; background: #fff; color: var(--ink);
  box-shadow: var(--shadow); text-align: left;
}
.city-category:hover, .city-category[aria-pressed="true"] { background: #edf5ff; border-color: #82b4ff; }
.city-category-detail { color: var(--muted); font-size: .8rem; line-height: 1.36; }
.city-symbol {
  display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px;
  background: #e6f1ff; color: #0054ab;
}
.city-symbol.city-crash { background: #ffeeeb; color: #ad3a36; }
.city-symbol.city-rain { background: #e6f5ff; color: #236487; }
.city-symbol.city-protest { background: #edeaff; color: #5149a5; }
[data-category="traffic"][data-level="low"] {
  --traffic-background: #def7e8;
  --traffic-border: #70bd93;
  --traffic-symbol: #b9ebcf;
  --traffic-ink: #125135;
}
[data-category="traffic"][data-level="medium"] {
  --traffic-background: #fff3c4;
  --traffic-border: #d8ac43;
  --traffic-symbol: #ffe185;
  --traffic-ink: #634400;
}
[data-category="traffic"][data-level="high"] {
  --traffic-background: #ffe2e3;
  --traffic-border: #de858a;
  --traffic-symbol: #ffc2c6;
  --traffic-ink: #8a222d;
}
.city-category[data-category="traffic"][data-level] {
  color: var(--traffic-ink);
  background: var(--traffic-background);
  border-color: var(--traffic-border);
}
.city-category[data-category="traffic"][data-level] .city-symbol {
  color: inherit;
  background: var(--traffic-symbol);
}
.city-category[data-category="traffic"][data-level] .city-category-detail { color: inherit; font-weight: 750; }
.city-category[data-category="traffic"][data-level]:hover,
.city-category[data-category="traffic"][data-level][aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px var(--traffic-border), var(--shadow);
}
.city-reports { padding: clamp(14px, 2.2vw, 22px); }
.city-report-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.city-status { margin-top: 3px; color: var(--muted); font-size: .8rem; }
.city-refresh { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; }
.city-report-list { display: grid; gap: 9px; margin-top: 14px; }
.city-report-list-first { max-height: min(340px, 42dvh); overflow-y: auto; margin: 0 0 14px; overscroll-behavior: contain; }
.city-report {
  display: flex; align-items: flex-start; gap: 11px; min-width: 0; width: 100%; padding: 12px; text-align: left;
  border: 1px solid #e3ecf8; border-radius: 14px; background: #f7faff; color: var(--ink);
}
.city-report:hover, .city-report[aria-pressed="true"] { border-color: #a2c7ff; background: #edf5ff; }
.city-report > svg { flex-shrink: 0; margin: auto 0 auto auto; color: #456b9c; }
.city-report-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.city-report-copy strong { line-height: 1.36; font-size: .93rem; }
.city-report-copy small { color: #174b83; font-weight: 700; }
.city-report-copy time, .city-attribution, .city-empty { color: var(--muted); font-size: .8rem; }
.city-attribution a { color: var(--accent-dark); text-decoration: underline; }
.city-empty { padding: 15px; border-radius: 12px; background: #f5f8fd; }
.city-map { overflow: hidden; border: 1px solid #dfebf8; border-radius: 17px; background: #eaf1fa; }
.city-map-header, .city-map-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 13px; background: #f6faff;
}
.city-map-header strong { font-size: .94rem; }
.city-map-header small { margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.city-center { width: 39px; height: 39px; flex-shrink: 0; border-radius: 50%; }
.city-map iframe, .city-traffic-canvas { display: block; border: 0; width: 100%; height: clamp(330px, 61dvh, 560px); }
.city-traffic-map { position: relative; }
.city-traffic-status {
  position: absolute; top: 13px; left: 13px; max-width: calc(100% - 80px);
  padding: 7px 10px; border-radius: 9px; background: #fff; color: var(--muted); font-size: .8rem;
}
.city-traffic-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; list-style: none; margin: 0;
  padding: 9px 13px; background: #f6faff; color: var(--ink); font-size: .77rem; font-weight: 650;
}
.city-traffic-legend li { display: flex; align-items: center; gap: 6px; }
.city-traffic-legend li::before { content: ''; width: 13px; height: 4px; border-radius: 99px; background: var(--traffic-line); }
.city-traffic-legend [data-level="low"] { --traffic-line: #198652; }
.city-traffic-legend [data-level="medium"] { --traffic-line: #bf8700; }
.city-traffic-legend [data-level="high"] { --traffic-line: #ce3042; }
.city-traffic-updated { display: block; padding: 0 13px 9px; background: #f6faff; color: var(--muted); font-size: .74rem; }
.city-map-footer { justify-content: flex-end; }
.city-map-footer a { display: inline-flex; align-items: center; gap: 6px; }
.city-weather { margin-bottom: 13px; padding: 13px 15px; border-radius: 14px; background: #edf5ff; }
.city-weather p { margin: 3px 0; font-size: .86rem; color: var(--muted); }
.city-weather a { color: var(--accent-dark); text-decoration: underline; }
.city-weather small + .city-forecast { margin-top: 12px; padding-top: 12px; border-top: 1px solid #d3e2f7; }
@media (max-width: 900px) {
  .city-header { flex-direction: column; align-items: flex-start; gap: 13px; }
}
@media (max-width: 680px) {
  .city-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .city-header-actions { width: 100%; }
  .city-header-actions > * { flex: 1 1 auto; }
  .city-map iframe, .city-traffic-canvas { height: clamp(300px, 56dvh, 460px); }
  .city-category { min-height: 108px; padding: 11px; }
  .city-category-detail { font-size: .76rem; }
}
