:root {
  --ink: #0f2740;
  --ink-soft: #3d556d;
  --sky: #0b6e99;
  --sky-deep: #0a4d6e;
  --navy: #0b3d5c;
  --sand: #f4f1ea;
  --sand-deep: #e8e2d6;
  --surface: #ffffff;
  --accent: #d97706;
  --accent-hover: #b45309;
  --success: #166534;
  --danger: #991b1b;
  --border: rgba(15, 39, 64, 0.1);
  --shadow: 0 12px 32px rgba(15, 39, 64, 0.08);
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --tap: 44px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(11, 110, 153, 0.14), transparent 40%),
    linear-gradient(180deg, #f7f4ee 0%, #eef4f8 50%, #f7f4ee 100%);
  min-height: 100vh;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sky);
}

a:hover {
  color: var(--sky-deep);
}

:focus-visible {
  outline: 3px solid rgba(11, 110, 153, 0.45);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Nav ---------- */
.site-nav {
  background: linear-gradient(105deg, var(--navy), var(--sky));
  padding: 0.65rem 0;
  box-shadow: 0 4px 20px rgba(11, 61, 92, 0.25);
}

.site-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  color: #fff !important;
  text-decoration: none !important;
}

.site-nav .navbar-brand:hover .brand-wordmark-smart,
.site-nav .navbar-brand:hover .brand-wordmark-citizen {
  opacity: 0.92;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
}

.brand-mark {
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  font-family: var(--display);
  letter-spacing: 0.01em;
}

.brand-wordmark-smart {
  font-size: 1.35rem;
  font-style: italic;
  color: #fff;
}

.brand-wordmark-citizen {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.brand-logo--footer .brand-wordmark-smart {
  color: #fff;
}

.brand-logo--footer .brand-wordmark-citizen {
  color: rgba(255, 255, 255, 0.88);
}

.brand-logo--hero .brand-mark {
  width: 42px;
  height: 42px;
}

.brand-logo--hero .brand-wordmark-smart {
  font-size: 1.7rem;
  color: #fff;
}

.brand-logo--hero .brand-wordmark-citizen {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.brand-logo--auth .brand-mark {
  width: 44px;
  height: 44px;
}

.brand-logo--auth .brand-wordmark-smart {
  font-size: 1.85rem;
  color: var(--navy);
}

.brand-logo--auth .brand-wordmark-citizen {
  font-size: 1.1rem;
  color: var(--sky-deep);
}

.footer-brand .brand-logo {
  margin-bottom: 0.35rem;
}

.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.85rem !important;
  border-radius: 0.65rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0.45rem 0.65rem;
}

.site-nav .navbar-collapse {
  padding-top: 0.75rem;
}

@media (min-width: 992px) {
  .site-nav .navbar-collapse {
    padding-top: 0;
  }
}

.site-nav .btn {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 600;
}

.site-nav .btn-nav-auth {
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  min-width: 5.75rem;
}

.site-nav .btn-nav-login {
  background: #fbbf24;
  border: 2px solid #fbbf24;
  color: #0b3d5c !important;
}

.site-nav .btn-nav-login:hover,
.site-nav .btn-nav-login:focus-visible,
.site-nav .btn-nav-login.is-active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0b3d5c !important;
}

.site-nav .btn-nav-logout {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff !important;
}

.site-nav .btn-nav-logout:hover,
.site-nav .btn-nav-logout:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff !important;
}

.btn-tap {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--sky);
  border-color: var(--sky);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--sky-deep);
  border-color: var(--sky-deep);
}

.btn-warning {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-warning:hover,
.btn-warning:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-outline-light {
  border-width: 1.5px;
}

/* ---------- Flash ---------- */
.flash-stack {
  padding-top: 1rem;
}

.alert {
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.alert .btn-close {
  min-width: 2rem;
  min-height: 2rem;
}

/* ---------- Home ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4rem 0;
  color: #fff;
  background:
    linear-gradient(128deg, #082f49 0%, #0a4d6e 55%, #0b6e99 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to right, #000, transparent 75%);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -18rem;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(255,255,255,.025),
    0 0 0 10rem rgba(255,255,255,.02);
}

.home-hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.home-hero-glow-one {
  top: -10rem;
  left: 35%;
  width: 24rem;
  height: 24rem;
  background: rgba(14, 165, 233, 0.14);
}

.home-hero-glow-two {
  right: 4%;
  bottom: -9rem;
  width: 23rem;
  height: 23rem;
  background: rgba(251, 191, 36, 0.1);
}

.home-hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.home-hero-copy {
  max-width: 42rem;
}

.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.home-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.14);
}

.home-hero h1 {
  max-width: 46rem;
  margin: 0 0 1.15rem;
  font-family: var(--display);
  font-size: clamp(3.1rem, 9vw, 5.8rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.home-hero h1 em {
  color: #fbbf24;
  font-weight: 400;
}

.home-hero-lead {
  max-width: 37rem;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 2vw, 1.17rem);
  line-height: 1.7;
}

.home-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.home-hero-actions .btn {
  min-height: 3.15rem;
  border-radius: 0.8rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.home-primary-action {
  gap: 0.7rem;
  background: #fbbf24;
  border-color: #fbbf24;
  color: #102c3e;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}

.home-primary-action:hover,
.home-primary-action:focus {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #102c3e;
  transform: translateY(-1px);
}

.home-primary-action span {
  transition: transform 160ms ease;
}

.home-primary-action:hover span {
  transform: translateX(3px);
}

.home-secondary-action {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  color: #fff;
  backdrop-filter: blur(8px);
}

.home-secondary-action:hover,
.home-secondary-action:focus {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.13);
  color: #fff;
}

.home-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.4rem;
  color: rgba(255,255,255,.64);
  font-size: 0.76rem;
}

.home-hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-hero-proof span::before {
  content: "✓";
  color: #86efac;
  font-weight: 800;
}

.home-hero-proof strong {
  color: rgba(255,255,255,.9);
}

.home-pulse-card {
  position: relative;
  width: min(100%, 34rem);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1.35rem;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(2, 20, 32, .35);
  transform: rotate(0.7deg);
}

.home-pulse-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  pointer-events: none;
}

.home-pulse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.home-pulse-head > div {
  display: grid;
  gap: 0.08rem;
}

.home-pulse-label {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-pulse-head strong {
  font-size: 0.94rem;
}

.home-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 800;
}

.home-live-status i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}

.home-mini-map {
  position: relative;
  height: 16rem;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background:
    linear-gradient(28deg, transparent 40%, rgba(22,101,52,.1) 40% 63%, transparent 63%),
    linear-gradient(155deg, transparent 42%, rgba(22,101,52,.08) 42% 59%, transparent 59%),
    #e8f0eb;
}

.home-mini-map::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(15,39,64,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,39,64,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotate(-5deg) scale(1.15);
}

.home-road {
  position: absolute;
  z-index: 1;
  display: block;
  height: 8px;
  border: 2px solid rgba(15,39,64,.24);
  border-inline: 0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.road-a {
  top: 47%;
  left: -10%;
  width: 120%;
  transform: rotate(-12deg);
}

.road-b {
  top: 38%;
  left: 30%;
  width: 90%;
  transform: rotate(54deg);
}

.road-c {
  top: 73%;
  left: 4%;
  width: 78%;
  transform: rotate(25deg);
}

.home-map-water {
  position: absolute;
  z-index: 0;
  top: -15%;
  left: 10%;
  width: 2rem;
  height: 140%;
  border-radius: 50%;
  background: rgba(14,165,233,.32);
  transform: rotate(28deg);
}

.home-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  color: #fff;
  font-size: 0;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(15,39,64,.25);
  transform: rotate(-45deg);
}

.home-pin.pin-road {
  top: 22%;
  left: 59%;
  background: #c2410c;
}

.home-pin.pin-water {
  top: 62%;
  left: 27%;
  background: #0369a1;
}

.home-pin.pin-safety {
  top: 48%;
  right: 12%;
  background: #b91c1c;
}

.home-pin::after {
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(45deg);
}

.home-pin.pin-road::after { content: "R"; }
.home-pin.pin-water::after { content: "W"; }
.home-pin.pin-safety::after { content: "S"; }

.home-map-you {
  position: absolute;
  z-index: 2;
  top: 48%;
  left: 48%;
  width: 0.9rem;
  height: 0.9rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #0b6e99;
  box-shadow: 0 0 0 7px rgba(11,110,153,.2);
}

.home-map-label {
  position: absolute;
  z-index: 1;
  color: rgba(15,39,64,.55);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.label-center {
  top: 55%;
  left: 51%;
}

.label-river {
  left: 12%;
  bottom: 12%;
}

.home-pulse-issues {
  padding: 0.65rem 1rem 0.8rem;
}

.home-pulse-issues > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
}

.home-pulse-issues > div + div {
  border-top: 1px solid var(--border);
}

.home-pulse-icon {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.home-pulse-icon.road { background: #c2410c; }
.home-pulse-icon.resolved { background: #15803d; }

.home-pulse-issues p {
  display: grid;
  margin: 0;
  line-height: 1.3;
}

.home-pulse-issues p strong {
  font-size: 0.76rem;
}

.home-pulse-issues p small {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.home-pulse-time {
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.home-impact,
.home-process,
.home-report-section {
  padding-top: 4rem;
}

.home-section-intro {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.home-section-kicker,
.home-card-kicker {
  display: inline-block;
  margin-bottom: 0.28rem;
  color: var(--sky-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-section-intro h2,
.home-report-intro h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.home-section-intro > p,
.home-report-intro > p {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.home-stat-card {
  position: relative;
  display: grid;
  gap: 0.75rem;
  overflow: hidden;
  min-height: 10rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 24px rgba(15,39,64,.05);
}

.home-stat-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--stat-tint);
}

.home-stat-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: var(--stat-tint);
  color: var(--stat-color);
  font-weight: 900;
}

.home-stat-card > div {
  display: grid;
}

.home-stat-card strong {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
}

.home-stat-card span {
  font-size: 0.82rem;
  font-weight: 700;
}

.home-stat-card small {
  align-self: end;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.stat-open { --stat-color: #b45309; --stat-tint: #fef3c7; }
.stat-progress { --stat-color: #0369a1; --stat-tint: #e0f2fe; }
.stat-resolved { --stat-color: #15803d; --stat-tint: #dcfce7; }
.stat-emergency { --stat-color: #b91c1c; --stat-tint: #fee2e2; }

.home-section-intro-centered {
  text-align: center;
}

.home-section-intro-centered > p {
  margin-inline: auto;
}

.home-process-grid {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.home-process-step {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,.78);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.home-process-num {
  position: absolute;
  top: -0.35rem;
  right: 0.75rem;
  color: rgba(11,61,92,.07);
  font-family: var(--display);
  font-size: 4.5rem;
  line-height: 1;
}

.home-process-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.1rem;
  border-radius: 0.75rem;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 7px 16px rgba(11,61,92,.18);
}

.home-process-step:nth-child(2) .home-process-icon {
  background: var(--sky);
}

.home-process-step:nth-child(3) .home-process-icon {
  background: var(--accent);
}

.home-process-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.03rem;
}

.home-process-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.home-report-section {
  padding-bottom: 4rem;
  scroll-margin-top: 1rem;
}

.home-report-intro {
  display: grid;
  gap: 0.35rem;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.home-report-sidebar {
  display: grid;
  gap: 0;
}

.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.home-card-head > div {
  display: grid;
}

.home-card-kicker {
  margin-bottom: 0.2rem;
}

.home-card-kicker i {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.home-text-link:hover span {
  transform: translateX(2px);
}

.home-recent-card .issue-list {
  gap: 0.6rem;
}

.home-recent-card .issue-card {
  padding: 0.85rem;
  border-color: rgba(15,39,64,.08);
  box-shadow: none;
}

.home-recent-card .issue-card:hover {
  border-color: rgba(11,110,153,.25);
  background: rgba(11,110,153,.025);
  transform: translateY(-1px);
}

.home-issue-id {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--sky-deep);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.home-category-card .chip {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-category-card .chip:hover {
  border-color: rgba(11,110,153,.25);
  background: rgba(11,110,153,.08);
  color: var(--sky-deep);
}

@media (min-width: 576px) {
  .home-hero-actions {
    flex-direction: row;
  }

  .home-stat-card {
    min-height: 11rem;
    padding: 1.2rem;
  }
}

@media (min-width: 768px) {
  .home-section-intro {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
    align-items: end;
    margin-bottom: 1.8rem;
  }

  .home-section-intro-centered {
    display: block;
  }

  .home-section-intro-centered > p {
    margin-top: 0.65rem;
  }

  .home-stat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .home-process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .home-process-grid::before {
    content: "";
    position: absolute;
    top: 2.55rem;
    left: 16%;
    right: 16%;
    z-index: -1;
    border-top: 1px dashed rgba(11,110,153,.28);
  }
}

@media (min-width: 992px) {
  .home-hero {
    min-height: 41rem;
    display: grid;
    align-items: center;
    padding: 5rem 0;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(25rem, 0.92fr);
    gap: 4.5rem;
  }

  .home-pulse-card {
    margin-right: 0;
    transform: rotate(1.4deg);
  }

  .home-impact {
    position: relative;
    z-index: 2;
  }

  .home-stat-grid {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    background: rgba(255,255,255,.62);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .home-report-sidebar {
    position: sticky;
    top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-primary-action,
  .home-process-step,
  .home-recent-card .issue-card {
    transition: none;
  }
}

/* ---------- Legacy hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0 2.25rem;
  background:
    linear-gradient(125deg, rgba(11, 61, 92, 0.92), rgba(11, 110, 153, 0.78)),
    url("https://images.unsplash.com/photo-1449824913935-59a10b8d2000?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
}

.hero-brand,
.display-font {
  font-family: var(--display);
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.hero .lead {
  font-size: 1.05rem;
  max-width: 34rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero-actions .btn {
  min-height: var(--tap);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }
}

/* Trust strip / stats below hero */
.trust-strip {
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.trust-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .trust-panel {
    grid-template-columns: repeat(4, 1fr);
    padding: 1.15rem 1.35rem;
    gap: 1rem;
  }
}

.trust-stat {
  text-align: center;
  padding: 0.5rem;
}

.trust-stat .value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--sky-deep);
  line-height: 1.1;
}

.trust-stat .label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.how-it-works {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}

@media (min-width: 768px) {
  .how-it-works {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.how-step {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.how-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(11, 110, 153, 0.12);
  color: var(--sky-deep);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.how-step h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.how-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Cards / page ---------- */
.page-wrap {
  padding: 1.25rem 0 2.5rem;
}

@media (min-width: 768px) {
  .page-wrap {
    padding: 2rem 0 3.5rem;
  }
}

.section-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 576px) {
  .page-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.page-header h1 {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  margin: 0;
}

.page-header p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(247, 244, 238, 0.45);
}

.report-card {
  overflow: hidden;
}

.report-form-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.report-eyebrow {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--sky-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-time {
  align-self: flex-start;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(11, 110, 153, 0.2);
  border-radius: 999px;
  background: rgba(11, 110, 153, 0.07);
  color: var(--sky-deep);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .report-form-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.report-form {
  display: grid;
  gap: 1rem;
}

.report-form .form-section {
  margin-bottom: 0;
}

.report-step {
  padding: 1rem;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 39, 64, 0.035);
}

.report-step-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.report-step-number {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  border-radius: 50%;
  background: var(--sky-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.report-step-head h3 {
  margin: 0 0 0.15rem;
}

.report-step-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.report-form textarea.form-control {
  min-height: auto;
  resize: vertical;
}

.report-form #id_description {
  min-height: 7rem;
}

.report-form #id_address {
  min-height: 4.75rem;
}

.live-location-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.4rem;
}

.live-location-head > span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
}

.report-form .map-canvas {
  height: 260px;
  min-height: 240px;
}

.report-upload {
  padding: 0.85rem;
  border: 1px dashed rgba(11, 110, 153, 0.35);
  border-radius: 0.75rem;
  background: rgba(11, 110, 153, 0.035);
}

.report-upload-note {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.report-submit {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.report-submit p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
}

.report-submit p strong {
  color: var(--ink);
}

.report-submit .btn {
  width: 100%;
}

@media (min-width: 576px) {
  .report-step {
    padding: 1.15rem;
  }

  .report-submit {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .report-submit .btn {
    width: auto;
    min-width: 10rem;
  }
}

.form-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--sky-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  min-height: var(--tap);
  border-radius: 0.7rem;
  border-color: rgba(15, 39, 64, 0.16);
  padding: 0.6rem 0.85rem;
}

textarea.form-control {
  min-height: 6rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 0.2rem rgba(11, 110, 153, 0.15);
}

.form-text {
  font-size: 0.8rem;
}

.field-error,
.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  color: var(--danger);
  font-size: 0.85rem;
}

/* ---------- Issue cards ---------- */
.issue-list {
  display: grid;
  gap: 0.85rem;
}

.issue-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.issue-card:hover,
.issue-card:focus-visible {
  border-color: rgba(11, 110, 153, 0.35);
  box-shadow: 0 8px 22px rgba(15, 39, 64, 0.08);
  color: inherit;
  transform: translateY(-1px);
}

.issue-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.issue-card-title {
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0;
  line-height: 1.3;
}

.issue-card-meta {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
}

.badge {
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35em 0.7em;
}

.badge-priority.Low { background: #e2e8f0; color: #334155; }
.badge-priority.Medium { background: #fef3c7; color: #92400e; }
.badge-priority.High { background: #ffedd5; color: #9a3412; }
.badge-priority.Emergency { background: #fee2e2; color: #991b1b; }

.badge-status.Pending { background: #e0f2fe; color: #075985; }
.badge-status.Verified { background: #dbeafe; color: #1e40af; }
.badge-status.In\ Progress { background: #fef9c3; color: #854d0e; }
.badge-status.Completed { background: #dcfce7; color: #166534; }
.badge-status.Rejected { background: #fee2e2; color: #991b1b; }

.empty-state {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--ink-soft);
}

.empty-state h2,
.empty-state h3 {
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.guest-cta {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border: 1px dashed rgba(11, 110, 153, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(11, 110, 153, 0.05);
}

.guest-cta .btn {
  min-height: var(--tap);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Detail ---------- */
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 1rem;
}

.edited-stamp {
  color: var(--sky-deep);
  font-weight: 600;
}

.issue-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.issue-owner-actions .btn {
  min-height: var(--tap);
}

.issue-delete-form {
  margin: 0;
}

.delete-preview {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(185, 28, 28, 0.04);
}

.issue-card-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.issue-card-wrap .issue-card {
  border: 0;
  border-radius: 0;
}

.issue-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin: 0 0.15rem;
}

.issue-card-actions form {
  margin: 0;
}

.detail-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (min-width: 576px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-item {
  background: rgba(247, 244, 238, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.detail-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}

.detail-item .value {
  font-weight: 600;
}

.confirm-panel {
  background: linear-gradient(180deg, rgba(11, 110, 153, 0.08), rgba(11, 110, 153, 0.03));
  border: 1px solid rgba(11, 110, 153, 0.2);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-top: 1.25rem;
}

.confirm-panel .btn {
  width: 100%;
  min-height: var(--tap);
}

@media (min-width: 576px) {
  .confirm-panel .btn {
    width: auto;
  }
}

.confirm-sticky {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.media-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Auth ---------- */
.auth-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 1.25rem 0.85rem 2rem;
}

.auth-card {
  width: min(520px, 100%);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: rgba(15, 39, 64, 0.06);
  padding: 0.35rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.auth-tabs a {
  text-align: center;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.auth-tabs a.active {
  background: #fff;
  color: var(--sky-deep);
  box-shadow: 0 2px 8px rgba(15, 39, 64, 0.08);
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(11, 110, 153, 0.12);
  border: 2px solid rgba(11, 110, 153, 0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--sky-deep);
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.readonly-field {
  background: #f1f5f9 !important;
  color: var(--ink-soft);
}

/* ---------- Map ---------- */
.map-canvas {
  width: 100%;
  height: 48vh;
  min-height: 240px;
  max-height: 360px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #e8eef3;
  overflow: hidden;
}

.map-canvas.map-tall {
  height: 55vh;
  min-height: 280px;
  max-height: 560px;
}

@media (min-width: 768px) {
  .map-canvas {
    height: 280px;
    max-height: none;
  }

  .map-canvas.map-tall {
    height: min(70vh, 560px);
  }
}

.map-page-intro {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.map-page-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.map-page-intro > div > p {
  max-width: 40rem;
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.map-page-tips {
  display: grid;
  gap: 0.65rem;
}

.map-tip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
}

.map-tip span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--sky-deep);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.map-tip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.map-tip strong {
  color: var(--ink);
}

.map-shell {
  overflow: hidden;
}

.map-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.map-toolbar-actions,
.map-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.map-radius-chip,
.map-count-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 110, 153, 0.18);
  background: rgba(11, 110, 153, 0.08);
  color: var(--sky-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.map-count-chip.is-empty {
  background: rgba(15, 39, 64, 0.05);
  border-color: var(--border);
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .map-page-intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .map-page-tips {
    grid-template-columns: repeat(3, 1fr);
  }

  .map-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.map-workspace {
  display: grid;
  gap: 1rem;
}

.map-stage {
  min-width: 0;
}

@media (min-width: 992px) {
  .map-workspace {
    grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.7fr);
    gap: 1.1rem;
    align-items: start;
  }

  .map-shell .map-canvas.map-tall {
    height: min(68vh, 540px);
    max-height: none;
  }

  .map-side-panel {
    position: sticky;
    top: 1rem;
  }
}

.map-side-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: rgba(247, 250, 252, 0.9);
}

.map-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.map-side-note {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.map-side-list {
  display: grid;
  gap: 0.55rem;
  max-height: 22rem;
  overflow: auto;
  padding-right: 0.15rem;
}

@media (min-width: 992px) {
  .map-side-list {
    max-height: min(52vh, 430px);
  }
}

.map-side-empty {
  padding: 1.1rem 0.85rem;
  border: 1px dashed rgba(11, 110, 153, 0.28);
  border-radius: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.map-side-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(15, 39, 64, 0.08);
  border-radius: 0.8rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.map-side-item:hover,
.map-side-item:focus-visible {
  border-color: rgba(11, 110, 153, 0.28);
  box-shadow: 0 6px 16px rgba(15, 39, 64, 0.06);
  transform: translateY(-1px);
}

.map-side-item.is-selected {
  border-color: rgba(11, 110, 153, 0.4);
  background: rgba(11, 110, 153, 0.05);
}

.map-side-item-body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.map-side-item-body strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-side-item-meta {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.3;
}

.map-side-item-status {
  justify-self: end;
}

.map-side-help {
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.map-status {
  font-size: 0.9rem;
  color: var(--ink-soft);
  min-height: 1.4rem;
}

.map-status.is-ok { color: var(--success); }
.map-status.is-error { color: var(--danger); }
.map-status.is-loading { color: var(--sky-deep); }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.95rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.map-legend-note {
  font-weight: 600;
  color: var(--ink);
}

.map-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--sky);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 39, 64, 0.2);
}

.map-dot.issue {
  background: var(--accent);
}

.map-cat-swatch {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  background: var(--cat-color, #475569);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border: 2px solid #0f172a;
  line-height: 1;
}

.map-fallback {
  height: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.map-info {
  max-width: 240px;
  font-size: 0.9rem;
  line-height: 1.4;
  font-family: var(--font);
}

.map-info a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin-top: 0.4rem;
  font-weight: 600;
}

.map-card {
  width: min(78vw, 230px);
  font-family: var(--font);
  color: var(--ink);
}

.map-card-photo {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 0.55rem;
  background: #dbe4ec;
}

.map-card-photo--placeholder {
  display: grid;
  place-items: center;
  gap: 0.15rem;
  color: #fff;
  background: linear-gradient(145deg, var(--cat-color, #475569), #0f172a);
  font-weight: 800;
}

.map-card-photo--placeholder span {
  font-size: 1.6rem;
  line-height: 1;
}

.map-card-photo--placeholder small {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.map-card-body {
  padding-top: 0.55rem;
}

.map-card-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.map-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.map-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cat-color, var(--ink-soft));
}

.map-card-cat::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cat-color, #475569);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.25);
}

.map-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #eef3f7;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.map-badge-priority {
  background: #fff1e8;
  color: #9a3412;
}

.map-card-distance {
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.map-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin-top: 0.45rem;
  border-radius: 0.65rem;
  background: var(--sky-deep);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  touch-action: manipulation;
}

.map-card-action:hover,
.map-card-action:focus-visible {
  filter: brightness(1.05);
}

.detail-map-label {
  max-width: 190px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1.3;
}

.detail-map-label span {
  color: var(--ink-soft);
}

.detail-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.detail-map-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.65rem 0.15rem 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.detail-map-caption strong {
  color: var(--ink);
}

.detail-map-pin {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--sky-deep);
  box-shadow: 0 0 0 2px rgba(11, 110, 153, 0.25);
}

.detail-map-caption-note {
  color: var(--ink-soft);
  font-weight: 500;
}

body.embedded-app .map-toolbar {
  padding-bottom: 0.15rem;
}

.location-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

@media (min-width: 576px) {
  .location-actions {
    flex-direction: row;
    align-items: center;
  }
}

.location-actions .btn {
  min-height: var(--tap);
  width: 100%;
}

@media (min-width: 576px) {
  .location-actions .btn {
    width: auto;
    flex-shrink: 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
  padding: 2rem 0;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.footer-brand {
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body {
  display: flex;
  flex-direction: column;
}

main#main {
  flex: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .issue-card,
  .btn,
  .nav-link {
    transition: none !important;
  }

  .issue-card:hover {
    transform: none;
  }
}

/* ---------- Android WebView embedded shell ---------- */
body.embedded-app {
  --native-bottom-nav: 0px;
  background: #f4f7fa;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--native-bottom-nav) + 3.25rem);
}

body.embedded-app .site-nav,
body.embedded-app .site-footer {
  display: none !important;
}

body.embedded-app .hero {
  padding: 1.75rem 0 1.5rem;
  border-radius: 0 0 1.25rem 1.25rem;
}

body.embedded-app .hero h1 {
  font-size: clamp(1.7rem, 7vw, 2.2rem);
}

body.embedded-app .hero .lead {
  font-size: 0.98rem;
}

body.embedded-app .trust-strip {
  margin-top: -0.85rem;
}

body.embedded-app .page-wrap,
body.embedded-app .auth-shell {
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

body.embedded-app .section-card {
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 39, 64, 0.07);
}

body.embedded-app .auth-shell {
  min-height: auto;
  place-items: stretch;
}

body.embedded-app .auth-card {
  width: 100%;
  border-radius: 1rem;
}

body.embedded-app .map-canvas.map-tall {
  height: 48vh;
  min-height: 260px;
}

body.embedded-app .confirm-sticky {
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

body.embedded-app .embedded-logout-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0.35rem);
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}

body.embedded-app .embedded-logout-bar .btn {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 39, 64, 0.15);
  box-shadow: 0 4px 16px rgba(15, 39, 64, 0.12);
}
