:root {
  --street-ink: var(--owtl-ink, #17211f);
  --street-muted: var(--owtl-muted, #61706c);
  --street-panel: var(--owtl-panel, #fffefd);
  --street-line: var(--owtl-line, #d8ded8);
  --street-green: var(--owtl-green, #0d8774);
  --street-blue: var(--owtl-blue, #225f9a);
  --street-amber: var(--owtl-amber, #c7901d);
  --street-coral: var(--owtl-coral, #d75d48);
  --street-shadow: var(--owtl-shadow, 0 18px 46px rgba(31, 42, 38, 0.11));
}

.street-shell {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.street-header,
.coverage-note,
.control-panel,
.map-panel,
.results-panel,
.source-panel,
.detail-panel {
  border: 1px solid var(--street-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: var(--street-shadow);
}

.street-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
  padding: 30px 26px 24px;
  overflow: hidden;
}

.street-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #0e1110, var(--street-green), var(--street-blue), var(--street-amber), var(--street-coral));
}

.street-header::after {
  content: "MAP MODULE";
  position: absolute;
  right: 18px;
  top: 14px;
  color: var(--street-muted);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.street-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  line-height: 0.9;
}

.street-lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--street-muted);
  font-weight: 730;
  line-height: 1.6;
}

.street-stats {
  display: grid;
  gap: 7px;
  min-width: 220px;
  padding: 18px;
  border: 1px solid #0e1110;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(14, 17, 16, 0.06) 0 3px, transparent 3px 9px),
    #fff;
}

.street-stats span {
  color: var(--street-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.street-stats strong {
  font-size: 1.35rem;
}

.coverage-note {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-top: 18px;
  padding: 14px 16px;
  color: var(--street-muted);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.5;
}

.coverage-note strong {
  flex: 0 0 auto;
  color: var(--street-ink);
}

.map-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(420px, 1fr) minmax(310px, 380px);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.control-panel,
.results-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 560px;
  padding: 16px;
}

.map-panel {
  position: relative;
  height: min(62vh, 560px);
  min-height: 430px;
  overflow: hidden;
}

.map-canvas {
  position: absolute;
  inset: 0;
}

.map-fallback {
  position: absolute;
  inset: 18px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px dashed #0e1110;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 247, 0.94)),
    repeating-linear-gradient(135deg, rgba(14, 17, 16, 0.07) 0 2px, transparent 2px 16px);
  text-align: center;
}

.map-fallback[hidden] {
  display: none;
}

.map-fallback h2,
.map-fallback p {
  margin: 0;
}

.map-fallback p {
  max-width: 460px;
  color: var(--street-muted);
  font-weight: 720;
  line-height: 1.58;
}

.search-panel,
.filter-panel {
  display: grid;
  gap: 10px;
}

.search-panel label,
.filter-panel h2,
.panel-title-row h2,
.detail-panel h2,
.source-panel h2 {
  margin: 0;
}

.search-panel label {
  color: var(--street-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input,
button {
  min-height: 40px;
  border: 1px solid #0e1110;
  border-radius: 6px;
  color: var(--street-ink);
}

input {
  width: 100%;
  padding: 0 11px;
  background: #fff;
}

button,
.source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #0e1110;
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(14, 17, 16, 0.055) 0 3px, transparent 3px 9px),
    #fff;
  color: var(--street-ink);
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.quiet-button {
  min-height: 34px;
  border-color: var(--street-line);
  color: var(--street-muted);
}

.helper-text {
  margin: 0;
  color: var(--street-muted);
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.45;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.panel-title-row h2 {
  font-size: 1.08rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-chip {
  justify-content: flex-start;
  gap: 8px;
  min-height: 38px;
  border-color: var(--street-line);
  background: #fff;
  color: var(--street-muted);
}

.filter-chip.active {
  border-color: #0e1110;
  color: var(--street-ink);
  background:
    linear-gradient(90deg, rgba(13, 135, 116, 0.14), rgba(34, 95, 154, 0.09)),
    #fff;
}

.filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--chip-color, var(--street-blue));
}

.detail-panel {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  box-shadow: none;
}

.detail-panel p {
  margin: 0;
  color: var(--street-muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
}

.detail-meta {
  display: grid;
  gap: 7px;
  margin: 0;
}

.detail-meta div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
}

.detail-meta dt {
  color: var(--street-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-meta dd {
  margin: 0;
  font-weight: 760;
}

.result-count {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #0e1110;
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

.result-list {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-right: 3px;
}

.result-card {
  display: grid;
  gap: 11px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--street-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 42, 38, 0.055);
}

.result-select {
  display: grid;
  gap: 9px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  color: inherit;
  font: inherit;
  align-items: start;
  justify-items: start;
  grid-template-columns: 1fr;
}

.result-card:hover,
.result-card.active {
  border-color: #0e1110;
  box-shadow: 0 12px 26px rgba(31, 42, 38, 0.09);
}

.result-card h3 {
  margin: 0;
  color: var(--street-ink);
  font-size: 1.02rem;
  line-height: 1.24;
}

.result-card p {
  margin: 0;
  color: var(--street-muted);
  font-size: 0.84rem;
  font-weight: 520;
  line-height: 1.42;
}

.result-card .result-location {
  color: var(--street-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.result-card .result-artist,
.street-info .info-artist {
  color: var(--street-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.result-card .result-description {
  display: block !important;
  width: 100%;
  padding: 9px 10px;
  border-left: 3px solid var(--street-green);
  border-radius: 6px;
  background: rgba(13, 135, 116, 0.075);
  color: var(--street-ink);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
}

.inline-source,
.info-source {
  justify-self: start;
  color: var(--street-blue);
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--street-line);
  border-radius: 999px;
  color: var(--street-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.source-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: 24px;
  margin-top: 18px;
  padding: 20px;
}

.source-panel p {
  margin: 10px 0 0;
  color: var(--street-muted);
  font-weight: 700;
  line-height: 1.55;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  color: var(--street-ink);
  font-weight: 850;
}

.source-list span {
  color: var(--street-muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.gm-style .street-info {
  max-width: 260px;
  color: #17211f;
  font-family: var(--owtl-font, sans-serif);
}

.street-info h3 {
  margin: 0 0 7px;
}

.street-info p {
  margin: 0;
  color: #61706c;
  font-weight: 400;
  line-height: 1.4;
}

.street-info .info-description {
  margin-top: 8px;
  color: #17211f;
  font-weight: 400;
}

.street-info .info-source {
  display: inline-flex;
  margin-top: 9px;
}

@media (max-width: 1180px) {
  .map-workspace {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  }

  .results-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 780px) {
  .street-shell {
    width: min(100% - 18px, 720px);
    padding-top: 16px;
  }

  .street-header,
  .source-panel,
  .map-workspace {
    grid-template-columns: 1fr;
  }

  .street-header {
    padding: 24px 18px 18px;
  }

  .street-header::after {
    position: static;
  }

  .coverage-note {
    display: grid;
  }

  .control-panel,
  .results-panel,
  .map-panel {
    min-height: auto;
  }

  .map-panel {
    height: 48vh;
    min-height: 330px;
  }

  .search-row,
  .filter-grid,
  .result-list,
  .source-list {
    grid-template-columns: 1fr;
  }
}
