/* City-map product shell. Homepage editorial styling remains in styles.css. */

body.is-city-map-active {
  min-height: 100svh;
  background: #09090d;
}

html:has(body.is-city-map-active) {
  min-height: 100%;
  height: 100%;
  overflow: hidden;
}

.poi-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poi-list-toggle,
.poi-detail-sheet-bar {
  display: none;
}

.poi-detail-card.is-empty {
  display: none;
}

.poi-detail-card.is-status {
  display: grid;
  place-content: center;
}

.poi-panel-state {
  max-width: 28rem;
  margin: auto;
  color: rgba(255, 244, 248, 0.72);
  padding: 20px;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.5;
  text-align: center;
}

.poi-readiness {
  --readiness-accent: #ff8fc7;
  display: grid;
  gap: 3px;
  margin: 12px 0;
  border-left: 3px solid var(--readiness-accent);
  color: rgba(255, 245, 250, 0.72);
  padding: 2px 0 2px 10px;
  font-size: 11px;
  line-height: 1.35;
}

.poi-readiness strong {
  color: var(--readiness-accent);
  font-size: 12px;
  font-weight: 920;
}

.poi-readiness[data-readiness-level="verified"] {
  --readiness-accent: #62d5a6;
}

.poi-readiness[data-readiness-level="address_matched"] {
  --readiness-accent: #8fa7ff;
}

.poi-readiness[data-readiness-level="status_recheck"] {
  --readiness-accent: #e5b95f;
}

.poi-trust-policy {
  margin: 2px 0 8px;
  color: rgba(255, 245, 250, 0.58);
  font-size: 10px;
  line-height: 1.45;
}

.city-map-layout:has(.poi-detail-card.is-empty) {
  grid-template-columns: minmax(0, 1fr);
}

.city-map-error-state,
.city-map-empty-state {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 95, 168, 0.32);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 95, 168, 0.1), transparent 36%),
    rgba(9, 9, 13, 0.97);
  color: #fff4f8;
  padding: 24px;
  text-align: center;
}

.city-map-error-state p,
.city-map-empty-state p {
  max-width: 360px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 244, 248, 0.7);
}

.home-shell.is-city-map.has-empty-city .local-map-heading,
.home-shell.is-city-map .poi-strip.is-empty {
  display: none;
}

.city-map-retry-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #ff5fa8;
  color: #170810;
  padding: 0 18px;
  font-weight: 850;
}

.home-shell.is-city-map .local-map-card {
  background: #dcdadd;
  box-shadow: 0 18px 50px rgba(42, 16, 30, 0.24);
}

.home-shell.is-city-map .local-map-canvas {
  border-color: rgba(32, 20, 28, 0.18);
  background: #e8e6e8;
}

.home-shell.is-city-map .local-map-canvas::before {
  display: none;
}

.home-shell.is-city-map .leaflet-map-host {
  background: #e8e6e8;
  color: #22141d;
}

.home-shell.is-city-map .leaflet-map-host .leaflet-tile-pane {
  filter: grayscale(0.72) contrast(0.84) brightness(1.08) saturate(0.5);
  opacity: 1;
}

.home-shell.is-city-map .leaflet-map-host .leaflet-overlay-pane {
  background: rgba(236, 91, 151, 0.018);
}

.kindred-poi-marker {
  --marker-accent: #ff5fa8;
  background: var(--marker-accent);
}

.kindred-poi-marker.is-bar {
  --marker-accent: #ff5fa8;
}

.kindred-poi-marker.is-relax {
  --marker-accent: #e5b95f;
}

.kindred-poi-marker.is-event {
  --marker-accent: #56cfa0;
}

.kindred-poi-marker.is-hotel {
  --marker-accent: #7896ff;
}

.kindred-poi-marker.is-district {
  --marker-accent: #f2edf0;
}

.kindred-poi-marker.is-estimated {
  border-color: var(--marker-accent);
  background: #16161b;
  color: var(--marker-accent);
}

.kindred-poi-marker.is-cluster {
  --marker-accent: #ff86bd;
  background: #141419;
  color: #ff9bc9;
}

.kindred-poi-marker.is-selected,
.kindred-poi-marker.is-list-hovered {
  background: #fff5fa;
  color: #a90f50;
}

.type-filter {
  --filter-accent: #ff5fa8;
}

.type-filter[data-poi-category="Bar"] {
  --filter-accent: #ff5fa8;
}

.type-filter[data-poi-category="Relax"] {
  --filter-accent: #e5b95f;
}

.type-filter[data-poi-category="Event"] {
  --filter-accent: #56cfa0;
}

.type-filter[data-poi-category="Hotel"] {
  --filter-accent: #7896ff;
}

.type-filter[data-poi-category="District"] {
  --filter-accent: #f2edf0;
}

.type-filter svg {
  stroke: var(--filter-accent);
}

.type-filter.is-active {
  border-color: transparent;
  background: var(--filter-accent);
  color: #170d13;
}

.poi-detail-trust,
.poi-visit-notes {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 95, 168, 0.24);
  padding-top: 0;
}

.poi-detail-trust > summary,
.poi-visit-notes > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 245, 250, 0.82);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.poi-detail-trust > summary::-webkit-details-marker,
.poi-visit-notes > summary::-webkit-details-marker {
  display: none;
}

.poi-detail-trust > summary::after,
.poi-visit-notes > summary::after {
  content: "+";
  color: #ff8fc7;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}

.poi-detail-trust[open] > summary::after,
.poi-visit-notes[open] > summary::after {
  content: "−";
}

.poi-visit-notes .poi-detail-section:first-of-type {
  margin-top: 4px;
}

@media (min-width: 768px) {
  body.is-city-map-active {
    display: block;
    overflow: hidden;
  }

  .home-shell.is-city-map {
    width: 100vw;
    max-width: none;
    height: 100svh;
    min-height: 640px;
    overflow: hidden;
    padding: 0;
  }

  .home-shell.is-city-map::before {
    width: 100%;
    height: 100%;
    opacity: 0.62;
    clip-path: ellipse(66% 92% at 100% 42%);
  }

  .home-shell.is-city-map .site-header {
    position: absolute;
    z-index: 30;
    left: 0;
    top: 0;
    width: 100%;
    height: 60px;
    display: grid;
    grid-template-columns: minmax(200px, auto) minmax(0, 1fr) minmax(300px, 520px);
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 245, 250, 0.12);
    background: rgba(8, 8, 12, 0.92);
    padding: 0 20px;
    backdrop-filter: blur(14px);
  }

  .home-shell.is-city-map .brand-wordmark {
    font-size: 21px;
  }

  .home-shell.is-city-map .primary-nav,
  .home-shell.is-city-map .tip-button {
    display: none;
  }

  .home-shell.is-city-map .header-actions {
    grid-column: 3;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
  }

  .home-shell.is-city-map .search-form,
  .home-shell.is-city-map .language-select {
    height: 40px;
  }

  .home-shell.is-city-map .city-map-view {
    position: absolute;
    inset: 60px 0 0;
    width: auto;
    height: auto;
    display: grid;
    grid-template-rows: 62px 42px minmax(0, 1fr) 96px;
    gap: 10px;
    margin: 0;
    padding: 12px 18px 14px;
  }

  .home-shell.is-city-map .city-map-copy {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(180px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .home-shell.is-city-map .back-home-button {
    height: 40px;
    border-radius: 8px;
  }

  .home-shell.is-city-map .city-map-eyebrow,
  .home-shell.is-city-map .city-map-copy > p:not(.city-map-eyebrow) {
    display: none;
  }

  .home-shell.is-city-map .city-map-copy h1 {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    color: #fff5fa;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 0.95;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-shell.is-city-map .city-map-meta {
    min-width: 0;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin: 0;
    font-size: 10px;
  }

  .home-shell.is-city-map .city-map-meta span {
    min-height: 30px;
    border-radius: 8px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .home-shell.is-city-map .city-map-meta span:last-child {
    display: none;
  }

  .home-shell.is-city-map .content-tier {
    color: #fff5fa;
  }

  .home-shell.is-city-map .type-filter-bar {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 0 24px 0 0;
    scrollbar-width: none;
  }

  .home-shell.is-city-map .type-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .home-shell.is-city-map .type-filter {
    min-width: 118px;
    height: 40px;
    flex: 1 0 118px;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 0 10px;
    font-size: 11px;
  }

  .home-shell.is-city-map .type-filter svg {
    width: 18px;
    height: 18px;
  }

  .home-shell.is-city-map .city-map-layout {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 31vw);
    gap: 12px;
  }

  .home-shell.is-city-map .local-map-card {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }

  .home-shell.is-city-map .local-map-heading {
    left: 10px;
    top: 10px;
    right: auto;
    max-width: 390px;
    border: 1px solid rgba(255, 245, 250, 0.16);
    border-radius: 8px;
    background: rgba(8, 8, 12, 0.82);
    color: rgba(255, 245, 250, 0.8);
    padding: 7px 9px;
    font-size: 10px;
    line-height: 1.3;
    backdrop-filter: blur(8px);
  }

  .home-shell.is-city-map .local-map-canvas {
    inset: 0;
    border-radius: 8px;
  }

  .home-shell.is-city-map .poi-detail-card {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .home-shell.is-city-map .poi-strip {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    margin: 0;
  }

  .home-shell.is-city-map .poi-strip-header {
    height: 20px;
  }

  .home-shell.is-city-map .poi-strip h2 {
    margin: 0;
    color: #24101c;
    font-size: 11px;
  }

  .home-shell.is-city-map .poi-list {
    height: 72px;
    max-width: none;
    margin-top: 4px;
    padding: 0 0 2px;
  }

  .home-shell.is-city-map .poi-row {
    min-width: 210px;
    height: 68px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-shell.is-city-map .site-header {
    grid-template-columns: auto minmax(0, 1fr) minmax(270px, 42vw);
  }

  .home-shell.is-city-map .city-map-meta span:nth-child(2) {
    display: none;
  }

  .home-shell.is-city-map .city-map-layout {
    grid-template-columns: minmax(0, 1fr) minmax(288px, 38vw);
  }

  .home-shell.is-city-map .poi-detail-card {
    padding: 16px;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .home-shell.is-city-map .city-map-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-shell.is-city-map .poi-detail-card {
    position: absolute;
    z-index: 1002;
    right: 12px;
    bottom: 12px;
    width: min(430px, calc(100% - 24px));
    height: auto;
    max-height: calc(100% - 24px);
    background: rgba(10, 10, 14, 0.97);
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.48);
    padding: 0 16px 16px;
    backdrop-filter: blur(14px);
  }

  .home-shell.is-city-map .poi-detail-sheet-bar {
    position: sticky;
    z-index: 8;
    top: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 245, 250, 0.1);
    background: rgba(11, 11, 15, 0.98);
  }

  .home-shell.is-city-map .poi-sheet-grabber {
    display: none;
  }

  .home-shell.is-city-map .poi-detail-back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #ff9bc9;
    padding: 0;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .home-shell.is-city-map.has-selected-poi .city-map-view {
    grid-template-rows: 62px 42px minmax(0, 1fr) 0;
  }

  .home-shell.is-city-map.has-selected-poi .poi-strip {
    display: none;
  }
}

@media (max-width: 767px) {
  html:has(body.is-city-map-active),
  body.is-city-map-active {
    min-height: 100%;
    height: 100%;
    overflow: hidden;
  }

  body.is-city-map-active {
    display: block;
    overscroll-behavior: none;
  }

  .home-shell.is-city-map {
    width: 100%;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .home-shell.is-city-map::before {
    width: 100%;
    height: 100%;
    opacity: 0.36;
    clip-path: ellipse(74% 64% at 112% 24%);
  }

  .home-shell.is-city-map .site-header {
    position: absolute;
    z-index: 40;
    left: 0;
    top: 0;
    width: 100%;
    height: 56px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 245, 250, 0.12);
    background: rgba(8, 8, 12, 0.94);
    padding: 7px 10px;
    backdrop-filter: blur(14px);
  }

  .home-shell.is-city-map .brand-wordmark {
    max-width: 122px;
    overflow: hidden;
    font-size: 17px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-shell.is-city-map .primary-nav,
  .home-shell.is-city-map .tip-button {
    display: none;
  }

  .home-shell.is-city-map .header-actions {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    gap: 6px;
  }

  .home-shell.is-city-map .search-form,
  .home-shell.is-city-map .language-select {
    width: 100%;
    height: 40px;
  }

  .home-shell.is-city-map .search-form input {
    min-width: 0;
    padding-left: 12px;
    font-size: 12px;
  }

  .home-shell.is-city-map .language-select select {
    padding: 0 8px;
    font-size: 11px;
  }

  .home-shell.is-city-map .city-map-view {
    position: absolute;
    inset: 56px 0 0;
    width: auto;
    height: auto;
    display: grid;
    grid-template-rows: 52px 40px minmax(0, 1fr);
    gap: 7px;
    margin: 0;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .home-shell.is-city-map .city-map-copy {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: 30px 18px;
    column-gap: 9px;
    align-items: center;
  }

  .home-shell.is-city-map .back-home-button {
    width: 38px;
    height: 38px;
    grid-column: 1;
    grid-row: 1 / 3;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
  }

  .home-shell.is-city-map .back-home-button span:last-child,
  .home-shell.is-city-map .city-map-eyebrow,
  .home-shell.is-city-map .city-map-copy > p:not(.city-map-eyebrow) {
    display: none;
  }

  .home-shell.is-city-map .city-map-copy h1 {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
    margin: 0;
    color: #fff5fa;
    font-size: 27px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-shell.is-city-map .city-map-meta {
    min-width: 0;
    grid-column: 2;
    grid-row: 2;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
    margin: 0;
    font-size: 9px;
  }

  .home-shell.is-city-map .city-map-meta span {
    min-height: 17px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 245, 250, 0.76);
    padding: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-shell.is-city-map .city-map-meta span:last-child {
    display: none;
  }

  .home-shell.is-city-map .content-tier {
    color: #ffc1db;
  }

  .home-shell.is-city-map .type-filter-bar {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 22px 0 0;
    scrollbar-width: none;
  }

  .home-shell.is-city-map .type-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .home-shell.is-city-map .type-filter {
    min-width: 88px;
    width: auto;
    height: 38px;
    flex: 0 0 auto;
    grid-template-columns: 17px minmax(0, auto) auto;
    gap: 5px;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 10px;
  }

  .home-shell.is-city-map .type-filter svg {
    width: 16px;
    height: 16px;
  }

  .home-shell.is-city-map .type-filter small {
    min-width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .home-shell.is-city-map .city-map-layout {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: hidden;
  }

  .home-shell.is-city-map .local-map-card {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    border-radius: 8px;
  }

  .home-shell.is-city-map .local-map-canvas {
    inset: 0;
    border-radius: 8px;
  }

  .home-shell.is-city-map .local-map-heading {
    left: 8px;
    top: 8px;
    right: auto;
    max-width: calc(100% - 176px);
    overflow: hidden;
    border: 1px solid rgba(255, 245, 250, 0.16);
    border-radius: 8px;
    background: rgba(8, 8, 12, 0.8);
    color: rgba(255, 245, 250, 0.8);
    padding: 6px 7px;
    font-size: 9px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
  }

  .home-shell.is-city-map .map-controls {
    right: 8px;
    top: 8px;
    gap: 3px;
    padding: 4px;
  }

  .home-shell.is-city-map .map-control-button,
  .home-shell.is-city-map .map-reset-button {
    height: 36px;
  }

  .home-shell.is-city-map .map-control-button {
    width: 36px;
  }

  .home-shell.is-city-map .map-scale-indicator {
    display: none;
  }

  .home-shell.is-city-map .map-reset-button {
    max-width: 58px;
    overflow: hidden;
    padding: 0 7px;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-shell.is-city-map .map-attribution {
    left: 8px;
    right: auto;
    top: 52px;
    bottom: auto;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-shell.is-city-map .kindred-poi-marker {
    --marker-size: 29px;
  }

  .home-shell.is-city-map .kindred-poi-marker.is-cluster {
    --marker-size: 33px;
  }

  .home-shell.is-city-map .poi-strip {
    position: absolute;
    z-index: 1000;
    left: 8px;
    right: 8px;
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: 126px;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    border: 1px solid rgba(255, 95, 168, 0.42);
    border-radius: 8px;
    background: rgba(10, 10, 14, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    padding: 0 10px 8px;
    transition: height 220ms var(--ease-editorial);
    backdrop-filter: blur(14px);
  }

  .home-shell.is-city-map .poi-strip.is-expanded {
    height: min(58svh, 500px);
  }

  .home-shell.is-city-map.has-selected-poi .poi-strip {
    display: none;
  }

  .home-shell.is-city-map .poi-strip-header {
    height: 42px;
    border-bottom: 1px solid rgba(255, 245, 250, 0.1);
  }

  .home-shell.is-city-map .poi-strip h2 {
    margin: 0;
    color: #fff5fa;
    font-size: 11px;
  }

  .home-shell.is-city-map .poi-list-toggle {
    width: 44px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #ff8fc7;
    font-size: 18px;
    line-height: 1;
  }

  .home-shell.is-city-map .poi-list-toggle span {
    transition: transform 180ms var(--ease-standard);
  }

  .home-shell.is-city-map .poi-strip.is-expanded .poi-list-toggle span {
    transform: rotate(180deg);
  }

  .home-shell.is-city-map .poi-list {
    height: calc(100% - 42px);
    max-height: none;
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding: 8px 0 0;
    scroll-snap-type: x proximity;
    overscroll-behavior: contain;
  }

  .home-shell.is-city-map .poi-strip.is-expanded .poi-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: none;
    padding-right: 2px;
  }

  .home-shell.is-city-map .poi-row {
    width: 250px;
    min-width: 250px;
    height: 68px;
    flex: 0 0 250px;
    scroll-snap-align: start;
  }

  .home-shell.is-city-map .poi-strip.is-expanded .poi-row {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .home-shell.is-city-map .poi-detail-card {
    position: absolute;
    z-index: 1002;
    left: 8px;
    right: 8px;
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-height: min(70svh, 580px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 8px;
    padding: 0 14px 14px;
    scrollbar-gutter: stable;
  }

  .home-shell.is-city-map .poi-detail-sheet-bar {
    position: sticky;
    z-index: 8;
    top: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 245, 250, 0.1);
    background: rgba(11, 11, 15, 0.97);
  }

  .home-shell.is-city-map .poi-sheet-grabber {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 245, 250, 0.28);
    transform: translateX(-50%);
  }

  .home-shell.is-city-map .poi-detail-back {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #ff9bc9;
    padding: 8px 0 0;
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
  }

  .home-shell.is-city-map .poi-detail-kicker {
    margin-top: 14px;
  }

  .home-shell.is-city-map .poi-detail-title-row h2 {
    font-size: 23px;
  }

  .home-shell.is-city-map .poi-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-shell.is-city-map .poi-detail-facts div {
    min-width: 0;
  }

  .home-shell.is-city-map .poi-detail-facts dd {
    overflow-wrap: anywhere;
  }

  .home-shell.is-city-map .poi-detail-actions {
    position: relative;
    z-index: 1;
    bottom: auto;
    margin: 12px 0 0;
    padding: 0;
    background: transparent;
  }

  .home-shell.is-city-map .poi-detail-card.is-detail-active {
    animation: kindredMobileSheetIn 220ms var(--ease-editorial) both;
  }
}

@media (max-width: 420px) {
  .home-shell.is-city-map .brand-wordmark {
    max-width: 112px;
    font-size: 16px;
  }

  .home-shell.is-city-map .city-map-copy h1 {
    font-size: 25px;
  }

  .home-shell.is-city-map .poi-detail-kicker {
    margin-top: 10px;
  }

  .home-shell.is-city-map .city-map-meta span:nth-child(2) {
    display: none;
  }

  .home-shell.is-city-map .local-map-heading {
    max-width: calc(100% - 166px);
  }
}

@media (max-height: 700px) and (max-width: 767px) {
  .home-shell.is-city-map .city-map-view {
    grid-template-rows: 46px 38px minmax(0, 1fr);
    gap: 5px;
    padding-top: 5px;
  }

  .home-shell.is-city-map .type-filter {
    height: 36px;
  }

  .home-shell.is-city-map .poi-strip {
    height: 116px;
  }
}

@keyframes kindredMobileSheetIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shell.is-city-map .poi-strip,
  .home-shell.is-city-map .poi-list-toggle span,
  .home-shell.is-city-map .poi-detail-card.is-detail-active {
    animation: none;
    transition: none;
  }
}

/* iOS precision pass 2: fix the empty-detail layout and give compact map
   controls the hierarchy of a native-feeling tool surface. */
.home-shell.is-city-map .city-map-layout:has(.poi-detail-card.is-empty) {
  grid-template-columns: minmax(0, 1fr) !important;
}

.home-shell.is-city-map .site-header {
  border-bottom-color: rgba(255, 95, 168, 0.22);
  background: rgba(7, 7, 10, 0.88);
  box-shadow: 0 12px 34px rgba(14, 0, 7, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(28px) saturate(1.28);
  backdrop-filter: blur(28px) saturate(1.28);
}

.home-shell.is-city-map .brand-wordmark,
.home-shell.is-city-map .city-map-copy h1,
.home-shell.is-city-map .poi-detail-title-row h2 {
  letter-spacing: -0.025em;
}

.home-shell.is-city-map .search-form:focus-within {
  border-color: rgba(255, 143, 194, 0.74);
  box-shadow:
    0 0 0 3px rgba(255, 95, 168, 0.14),
    var(--city-highlight),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

.home-shell.is-city-map .type-filter-bar {
  scroll-padding-inline: 2px 28px;
}

.home-shell.is-city-map .type-filter {
  min-height: 44px;
  transition:
    color 160ms var(--ease-editorial),
    background-color 160ms var(--ease-editorial),
    border-color 160ms var(--ease-editorial),
    box-shadow 160ms var(--ease-editorial),
    transform 160ms var(--ease-editorial);
}

.home-shell.is-city-map .type-filter.is-active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 28px rgba(69, 0, 29, 0.23);
}

.home-shell.is-city-map .poi-detail-description,
.home-shell.is-city-map .poi-panel-state,
.home-shell.is-city-map .poi-readiness {
  text-wrap: pretty;
}

.home-shell.is-city-map .poi-detail-description {
  line-height: 1.52;
}

.home-shell.is-city-map .poi-navigation-button,
.home-shell.is-city-map .poi-secondary-button,
.home-shell.is-city-map .poi-photo-upload-button {
  min-height: 44px;
}

@media (max-width: 359px) {
  .home-shell.is-city-map {
    --city-header-height: calc(104px + env(safe-area-inset-top));
  }

  .home-shell.is-city-map .site-header {
    height: var(--city-header-height);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 44px;
    grid-template-areas:
      "brand language"
      "search search";
    gap: 4px 8px;
    padding:
      calc(6px + env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      6px
      max(10px, env(safe-area-inset-left));
  }

  .home-shell.is-city-map .brand-wordmark {
    grid-area: brand;
    max-width: 168px;
  }

  .home-shell.is-city-map .header-actions {
    display: contents;
  }

  .home-shell.is-city-map .search-form {
    grid-area: search;
    overflow: visible;
    border-radius: 13px;
  }

  .home-shell.is-city-map .language-select {
    grid-area: language;
    width: clamp(82px, 24vw, 104px);
    justify-self: end;
  }

  .home-shell.is-city-map .search-results {
    right: 0;
    left: 0;
    width: 100%;
    max-height: min(336px, 44dvh);
    border-radius: 16px;
  }

  .home-shell.is-city-map .city-map-view {
    gap: 7px;
  }

  .home-shell.is-city-map .city-map-copy h1 {
    font-size: clamp(25px, 8vw, 30px);
  }

  .home-shell.is-city-map .type-filter-bar {
    padding-right: 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
  }

  .home-shell.is-city-map .poi-strip {
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 44px rgba(0, 0, 0, 0.34), var(--city-highlight);
  }

  .home-shell.is-city-map .poi-detail-card {
    border-radius: 20px 20px 13px 13px;
    background: rgba(7, 7, 10, 0.94);
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.38), var(--city-highlight);
    -webkit-backdrop-filter: blur(28px) saturate(1.18);
    backdrop-filter: blur(28px) saturate(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shell.is-city-map .type-filter {
    transition-duration: 0.01ms !important;
  }
}

/* OPTION A CITY EXPERIENCE */

body.is-city-map-active {
  background: #07070a;
}

.home-shell.is-city-map {
  background:
    linear-gradient(112deg, rgba(139, 0, 54, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 28%),
    #f23883;
}

.home-shell.is-city-map::before {
  background:
    radial-gradient(circle at 76% 32%, rgba(255, 95, 168, 0.14), transparent 26%),
    linear-gradient(145deg, #121218, #07070a 72%);
}

.home-shell.is-city-map .site-header {
  border-bottom-color: rgba(255, 95, 168, 0.44);
  background: rgba(7, 7, 10, 0.94);
  box-shadow: 0 14px 34px rgba(25, 0, 11, 0.28);
}

.home-shell.is-city-map .site-header::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -1px;
  width: 86px;
  height: 2px;
  background: #ff5fa8;
  pointer-events: none;
}

.home-shell.is-city-map .search-form,
.home-shell.is-city-map .language-select {
  border-color: rgba(255, 95, 168, 0.5);
  background: rgba(13, 13, 18, 0.96);
}

.city-title-slices {
  position: relative;
  isolation: isolate;
}

.city-title-slices > span {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff4f8;
}

.city-title-slices::before,
.city-title-slices::after {
  content: none;
  position: absolute;
  inset: 0;
  color: #ff8fc2;
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
  pointer-events: none;
}

.city-title-slices::before {
  z-index: 2;
  clip-path: inset(0 0 62% 0);
  opacity: 0.58;
  transform: translate3d(1px, -1px, 0);
}

.city-title-slices::after {
  z-index: 2;
  clip-path: inset(68% 0 0 0);
  opacity: 0.58;
  transform: translate3d(-1px, 1px, 0);
}

.home-shell.is-city-map .back-home-button {
  border: 1px solid rgba(255, 95, 168, 0.42);
  border-radius: 4px;
  background: rgba(8, 8, 12, 0.9);
  color: #ff9bc9;
  box-shadow: none;
}

.home-shell.is-city-map .city-map-meta span {
  border-color: rgba(255, 95, 168, 0.34);
  border-radius: 4px;
  background: rgba(8, 8, 12, 0.76);
  color: rgba(255, 244, 248, 0.76);
}

.home-shell.is-city-map .type-filter {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 95, 168, 0.34);
  border-radius: 4px;
  background: rgba(9, 9, 13, 0.86);
  color: rgba(255, 244, 248, 0.78);
  box-shadow: none;
}

.home-shell.is-city-map .type-filter::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 5px;
  left: 8px;
  height: 1px;
  opacity: 0;
  background: currentColor;
  transform: scaleX(0.45);
  transition:
    opacity 180ms var(--ease-editorial),
    transform 180ms var(--ease-editorial);
}

.home-shell.is-city-map .type-filter.is-active {
  border-color: transparent;
  background: var(--filter-accent);
  color: #170810;
  box-shadow: 0 12px 28px rgba(70, 0, 29, 0.22);
}

.home-shell.is-city-map .type-filter.is-active::after {
  opacity: 0.52;
  transform: scaleX(1);
}

.home-shell.is-city-map .type-filter.is-empty {
  opacity: 0.46;
  cursor: not-allowed;
}

.home-shell.is-city-map .local-map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 95, 168, 0.4);
  border-radius: 4px;
  background: #0a0a0e;
  box-shadow:
    0 24px 68px rgba(31, 0, 13, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-shell.is-city-map .local-map-card::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: -35% 0 auto;
  height: 36%;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 95, 168, 0.08), transparent);
  pointer-events: none;
  animation: kindredMapScan 420ms var(--ease-editorial) 130ms both;
}

.home-shell.is-city-map .local-map-heading {
  border-radius: 4px;
  background: rgba(7, 7, 10, 0.84);
  color: rgba(255, 244, 248, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
}

.home-shell.is-city-map .local-map-canvas {
  border-color: rgba(255, 95, 168, 0.36);
  border-radius: 3px;
  background:
    radial-gradient(circle at 48% 44%, rgba(255, 95, 168, 0.07), transparent 38%),
    #111116;
}

.home-shell.is-city-map .leaflet-map-host {
  background:
    radial-gradient(circle at 48% 44%, rgba(255, 95, 168, 0.07), transparent 38%),
    #111116;
  color: #fff4f8;
}

.home-shell.is-city-map .leaflet-map-host .leaflet-tile-pane {
  filter: grayscale(1) invert(0.92) contrast(1.14) brightness(0.72) saturate(0.42);
  opacity: 0.92;
}

.home-shell.is-city-map .leaflet-map-host .leaflet-overlay-pane {
  background: rgba(242, 56, 131, 0.045);
}

.home-shell.is-city-map .local-map-dim {
  z-index: 3;
  background: rgba(24, 16, 21, 0.08);
}

.home-shell.is-city-map .local-map-canvas.has-selected-poi .local-map-dim {
  opacity: 0.08;
}

.home-shell.is-city-map .map-tile-status {
  position: absolute;
  z-index: 640;
  left: 50%;
  top: 50%;
  width: min(310px, calc(100% - 40px));
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 95, 168, 0.28);
  border-radius: 4px;
  background: rgba(8, 8, 12, 0.9);
  color: rgba(255, 244, 248, 0.86);
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.home-shell.is-city-map .map-tile-status[hidden] {
  display: none;
}

.home-shell.is-city-map .map-tile-status.is-error {
  border-color: rgba(255, 95, 168, 0.55);
  pointer-events: auto;
}

.home-shell.is-city-map .map-tile-status button {
  min-width: 88px;
  min-height: 34px;
  border: 1px solid rgba(255, 244, 248, 0.28);
  border-radius: 3px;
  background: #f23883;
  color: #fff;
  padding: 0 12px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.home-shell.is-city-map .map-controls {
  border: 1px solid rgba(255, 95, 168, 0.34);
  border-radius: 4px;
  background: rgba(7, 7, 10, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.home-shell.is-city-map .map-control-button,
.home-shell.is-city-map .map-reset-button {
  border-radius: 3px;
  background: #111117;
  color: #ff9bc9;
}

.home-shell.is-city-map .map-control-button:disabled {
  border-color: rgba(255, 244, 248, 0.16);
  color: rgba(255, 244, 248, 0.34);
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
}

.home-shell.is-city-map .map-attribution {
  border-radius: 2px;
  background: rgba(7, 7, 10, 0.82);
  color: rgba(255, 244, 248, 0.72);
}

.home-shell.is-city-map .kindred-poi-marker {
  --marker-size: 26px;
  border-width: 2px;
  box-shadow:
    0 0 0 2px rgba(7, 7, 10, 0.92),
    0 0 0 4px rgba(255, 95, 168, 0.14),
    0 8px 20px rgba(0, 0, 0, 0.42);
  animation: kindredLeafletPinIn 220ms var(--ease-editorial);
}

.home-shell.is-city-map .kindred-poi-marker.is-cluster {
  --marker-size: 30px;
}

.home-shell.is-city-map .kindred-poi-marker b {
  font-size: 8px;
}

.home-shell.is-city-map .kindred-poi-marker.is-selected,
.home-shell.is-city-map .kindred-poi-marker.is-list-hovered {
  transform: scale(1.12);
  box-shadow:
    0 0 0 2px rgba(7, 7, 10, 0.94),
    0 0 0 5px rgba(255, 95, 168, 0.34),
    0 0 18px rgba(255, 95, 168, 0.34),
    0 12px 26px rgba(0, 0, 0, 0.48);
}

.home-shell.is-city-map .kindred-poi-tooltip {
  border-radius: 3px;
  background: rgba(7, 7, 10, 0.96);
}

.home-shell.is-city-map .poi-detail-card {
  isolation: isolate;
  z-index: 3;
  border: 1px solid rgba(255, 95, 168, 0.42);
  border-radius: 4px;
  background:
    linear-gradient(155deg, rgba(255, 95, 168, 0.07), transparent 34%),
    rgba(7, 7, 10, 0.97);
  color: #fff4f8;
  box-shadow:
    -14px 0 50px rgba(23, 0, 10, 0.22),
    0 28px 74px rgba(0, 0, 0, 0.36);
}

.home-shell.is-city-map .poi-detail-card::-webkit-scrollbar {
  width: 6px;
}

.home-shell.is-city-map .poi-detail-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 95, 168, 0.42);
}

.home-shell.is-city-map .poi-detail-kicker {
  color: #ff78b5;
  letter-spacing: 0;
}

.home-shell.is-city-map .poi-detail-title-row h2 {
  color: #fff4f8;
}

.home-shell.is-city-map .poi-readiness {
  border-left-width: 2px;
  background: rgba(255, 255, 255, 0.025);
  padding: 8px 10px;
}

.home-shell.is-city-map .poi-detail-description {
  color: rgba(255, 244, 248, 0.78);
}

.home-shell.is-city-map .poi-detail-facts div {
  min-height: 50px;
  border-width: 1px 0 0;
  border-color: rgba(255, 244, 248, 0.12);
  border-radius: 0;
  background: transparent;
  padding: 9px 2px;
}

.home-shell.is-city-map .poi-detail-facts.is-essential {
  border-bottom: 1px solid rgba(255, 244, 248, 0.12);
}

.home-shell.is-city-map .poi-detail-actions {
  gap: 7px;
}

.home-shell.is-city-map .poi-navigation-button,
.home-shell.is-city-map .poi-secondary-button,
.home-shell.is-city-map .poi-photo-upload-button {
  min-height: 40px;
  border-radius: 3px;
}

.home-shell.is-city-map .poi-navigation-button {
  background: #ff5fa8;
  color: #170810;
}

.home-shell.is-city-map .poi-secondary-button,
.home-shell.is-city-map .poi-photo-upload-button {
  border-color: rgba(255, 95, 168, 0.42);
  background: rgba(255, 95, 168, 0.06);
  color: #ff9bc9;
}

.home-shell.is-city-map .poi-detail-trust,
.home-shell.is-city-map .poi-visit-notes {
  border-top-color: rgba(255, 95, 168, 0.28);
}

.home-shell.is-city-map .poi-strip h2 {
  color: #190711;
}

.home-shell.is-city-map .poi-row {
  border-radius: 3px;
  background: rgba(7, 7, 10, 0.9);
  box-shadow: none;
}

.home-shell.is-city-map .poi-row.is-selected {
  border-color: #fff4f8;
  background: #ff5fa8;
  color: #170810;
  box-shadow: 0 12px 30px rgba(74, 0, 31, 0.26);
}

@media (min-width: 768px) {
  .home-shell.is-city-map .city-map-view {
    grid-template-rows: 66px 42px minmax(0, 1fr) 96px;
    gap: 8px;
    padding: 12px 18px 14px;
  }

  .home-shell.is-city-map .city-map-copy h1 {
    font-size: 44px;
  }

  .home-shell.is-city-map .city-map-layout {
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .home-shell.is-city-map .site-header {
    background: rgba(7, 7, 10, 0.96);
  }

  .home-shell.is-city-map .brand-wordmark {
    max-width: 122px;
    font-size: 0;
  }

  .home-shell.is-city-map .brand-wordmark::before {
    content: "Kindred Map";
    font-size: 17px;
  }

  html:lang(zh) .home-shell.is-city-map .brand-wordmark::before {
    content: "同路地图";
  }

  .home-shell.is-city-map .local-map-card {
    position: absolute;
    inset: 0;
  }

  .home-shell.is-city-map .city-map-copy h1 {
    font-size: 31px;
  }

  .home-shell.is-city-map .local-map-heading {
    background: rgba(7, 7, 10, 0.88);
  }

  .home-shell.is-city-map .kindred-poi-marker {
    --marker-size: 24px;
  }

  .home-shell.is-city-map .kindred-poi-marker.is-cluster {
    --marker-size: 28px;
  }

  .home-shell.is-city-map .poi-strip {
    border-radius: 4px 4px 0 0;
    background: rgba(7, 7, 10, 0.96);
  }

  .home-shell.is-city-map .poi-strip h2 {
    color: #fff4f8;
  }

  .home-shell.is-city-map .poi-detail-card {
    background: rgba(7, 7, 10, 0.98);
  }
}

/* POI decision panel: keep every travel-critical field visible without changing the map shell. */
.home-shell.is-city-map .poi-inline-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-shell.is-city-map .poi-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-shell.is-city-map .poi-detail-back .poi-inline-icon {
  width: 14px;
  height: 14px;
}

.home-shell.is-city-map .poi-detail-title-row > div {
  min-width: 0;
}

.home-shell.is-city-map .poi-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 7px 0 0;
  color: rgba(255, 244, 248, 0.58);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 850;
  text-transform: uppercase;
}

.home-shell.is-city-map .poi-detail-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: #ff5fa8;
}

.home-shell.is-city-map .poi-photo-empty {
  min-height: 76px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 11px 0;
  border: 1px dashed rgba(255, 95, 168, 0.4);
  border-radius: 3px;
  background: rgba(255, 95, 168, 0.045);
  padding: 11px;
}

.home-shell.is-city-map .poi-photo-empty > .poi-inline-icon {
  width: 25px;
  height: 25px;
  color: #ff78b5;
}

.home-shell.is-city-map .poi-photo-empty > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: inherit;
  text-transform: none;
}

.home-shell.is-city-map .poi-photo-empty strong {
  color: #fff4f8;
  font-size: 11px;
  line-height: 1.25;
}

.home-shell.is-city-map .poi-photo-empty small {
  color: rgba(255, 244, 248, 0.55);
  font-size: 10px;
  line-height: 1.35;
}

.home-shell.is-city-map .poi-photo {
  height: auto;
  aspect-ratio: auto;
  position: relative;
  margin: 11px 0;
  border: 1px solid rgba(255, 95, 168, 0.3);
  border-radius: 3px;
}

.home-shell.is-city-map .poi-photo figcaption {
  position: static;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(7, 7, 10, 0.84);
  padding: 6px 8px;
  color: rgba(255, 244, 248, 0.76);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
}

.home-shell.is-city-map .poi-photo-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.home-shell.is-city-map .poi-detail-description {
  display: block;
  overflow: visible;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: initial;
}

.home-shell.is-city-map .poi-recommendation {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  margin-top: 11px;
  border-left: 2px solid #ff5fa8;
  background: rgba(255, 95, 168, 0.06);
  padding: 10px;
}

.home-shell.is-city-map .poi-recommendation > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #ff78b5;
}

.home-shell.is-city-map .poi-recommendation h3,
.home-shell.is-city-map .poi-review-summary h3,
.home-shell.is-city-map .poi-information > h3,
.home-shell.is-city-map .poi-visit-planning > h3 {
  margin: 0;
  color: #ff78b5;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
}

.home-shell.is-city-map .poi-recommendation p {
  margin: 4px 0 0;
  color: #fff4f8;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 720;
}

.home-shell.is-city-map .poi-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 13px 0 0;
  border-top: 1px solid rgba(255, 244, 248, 0.13);
  border-bottom: 1px solid rgba(255, 244, 248, 0.13);
}

.home-shell.is-city-map .poi-metrics > div {
  min-width: 0;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 7px;
}

.home-shell.is-city-map .poi-metrics > div:nth-child(even) {
  border-left: 1px solid rgba(255, 244, 248, 0.1);
}

.home-shell.is-city-map .poi-metrics > div:nth-child(n + 3) {
  border-top: 1px solid rgba(255, 244, 248, 0.1);
}

.home-shell.is-city-map .poi-metrics dt {
  color: rgba(255, 244, 248, 0.48);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.home-shell.is-city-map .poi-metrics dd {
  min-width: 0;
  margin: 0;
  color: #fff4f8;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.home-shell.is-city-map .poi-metrics small {
  color: rgba(255, 244, 248, 0.48);
  font-size: 9px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.home-shell.is-city-map .poi-review-summary,
.home-shell.is-city-map .poi-information,
.home-shell.is-city-map .poi-visit-planning {
  margin-top: 13px;
  border-top: 1px solid rgba(255, 244, 248, 0.12);
  padding-top: 11px;
}

.home-shell.is-city-map .poi-review-summary header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.home-shell.is-city-map .poi-review-summary header span {
  max-width: 55%;
  color: rgba(255, 244, 248, 0.44);
  font-size: 9px;
  line-height: 1.25;
  text-align: right;
}

.home-shell.is-city-map .poi-review-summary p {
  margin: 7px 0 0;
  color: rgba(255, 244, 248, 0.76);
  font-size: 11px;
  line-height: 1.48;
}

.home-shell.is-city-map .poi-review-summary.is-community {
  margin-top: 9px;
  border-top-style: dashed;
}

.home-shell.is-city-map .poi-information .poi-detail-facts,
.home-shell.is-city-map .poi-visit-planning .poi-detail-facts {
  margin: 5px 0 0;
}

.home-shell.is-city-map .poi-detail-facts dt {
  display: flex;
  align-items: center;
  gap: 5px;
}

.home-shell.is-city-map .poi-detail-facts dt .poi-inline-icon {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
  color: #ff78b5;
}

.home-shell.is-city-map .poi-detail-facts dd {
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.home-shell.is-city-map .poi-detail-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 13px;
  padding-bottom: 2px;
}

.home-shell.is-city-map .poi-visit-actions > :first-child {
  grid-column: 1 / -1;
  min-height: 46px;
}

.home-shell.is-city-map .poi-community-section {
  margin-top: 13px;
  border-top: 1px solid rgba(255, 244, 248, 0.12);
  padding-top: 11px;
}

.home-shell.is-city-map .poi-community-section h3 {
  margin: 0 0 8px;
  color: rgba(255, 244, 248, 0.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-shell.is-city-map .poi-community-actions .poi-secondary-button,
.home-shell.is-city-map .poi-community-actions .poi-photo-upload-button {
  width: 100%;
  min-height: 44px;
  margin: 0;
  border-color: rgba(255, 244, 248, 0.2);
  background: rgba(255, 244, 248, 0.035);
  color: rgba(255, 244, 248, 0.72);
}

.home-shell.is-city-map .poi-evidence-actions a {
  border-color: rgba(255, 244, 248, 0.18);
  color: rgba(255, 244, 248, 0.7);
}

.home-shell.is-city-map .poi-navigation-button,
.home-shell.is-city-map .poi-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  text-align: center;
  text-transform: none;
}

.home-shell.is-city-map .poi-secondary-button.is-wanted,
.home-shell.is-city-map .poi-secondary-button.is-wanted:disabled {
  border-color: rgba(255, 244, 248, 0.5);
  background: rgba(255, 244, 248, 0.1);
  color: #fff4f8;
  opacity: 1;
}

.home-shell.is-city-map .poi-visit-planning .poi-tags {
  margin-top: 9px;
}

.home-shell.is-city-map .poi-detail-trust > summary {
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-shell.is-city-map .poi-detail-trust > summary .poi-inline-icon {
  color: #ff78b5;
}

.home-shell.is-city-map .poi-detail-card.is-detail-active .poi-photo,
.home-shell.is-city-map .poi-detail-card.is-detail-active .poi-recommendation,
.home-shell.is-city-map .poi-detail-card.is-detail-active .poi-metrics,
.home-shell.is-city-map .poi-detail-card.is-detail-active .poi-review-summary,
.home-shell.is-city-map .poi-detail-card.is-detail-active .poi-information,
.home-shell.is-city-map .poi-detail-card.is-detail-active .poi-visit-planning {
  animation: kindredRiseIn 340ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: var(--item-delay, 0ms);
}

@media (max-width: 420px) {
  .home-shell.is-city-map .poi-photo-empty {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .home-shell.is-city-map .poi-photo-empty .poi-photo-upload-button {
    grid-column: 1 / -1;
    width: 100%;
  }

}

@keyframes kindredMapScan {
  from {
    opacity: 0;
    transform: translate3d(0, -50%, 0);
  }

  40% {
    opacity: 0.7;
  }

  to {
    opacity: 0;
    transform: translate3d(0, 330%, 0);
  }
}

@keyframes kindredLeafletPinIn {
  from {
    opacity: 0;
    transform: scale(0.82);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shell.is-city-map .city-title-slices,
  .home-shell.is-city-map .city-title-slices::before,
  .home-shell.is-city-map .city-title-slices::after,
  .home-shell.is-city-map .local-map-card::after,
  .home-shell.is-city-map .kindred-poi-marker {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep the street layer light enough to read while the black/pink product chrome stays intact. */
.home-shell.is-city-map .local-map-card {
  background: #d8d7d4;
}

.home-shell.is-city-map .local-map-canvas,
.home-shell.is-city-map .leaflet-map-host {
  background:
    radial-gradient(circle at 48% 44%, rgba(255, 95, 168, 0.05), transparent 38%),
    #d8d7d4;
  color: #fff4f8;
}

.home-shell.is-city-map .leaflet-map-host .leaflet-tile-pane {
  filter: grayscale(0.82) contrast(0.92) brightness(1.08) saturate(0.52);
  opacity: 1;
}

.home-shell.is-city-map .leaflet-map-host .leaflet-overlay-pane {
  background: rgba(242, 56, 131, 0.025);
}

.home-shell.is-city-map .local-map-dim,
.home-shell.is-city-map .local-map-canvas.has-selected-poi .local-map-dim {
  background: rgba(7, 7, 10, 0.1);
  opacity: 0.08;
}

/* CANONICAL MAP POLISH */
.home-shell.is-city-map .local-map-card {
  border-color: rgba(255, 95, 168, 0.58);
  box-shadow:
    0 28px 76px rgba(19, 0, 8, 0.34),
    inset 0 1px 0 rgba(255, 244, 248, 0.045),
    inset 0 0 0 1px rgba(255, 95, 168, 0.035);
}

.home-shell.is-city-map .local-map-heading,
.home-shell.is-city-map .map-controls,
.home-shell.is-city-map .map-tile-status {
  backdrop-filter: blur(12px) saturate(0.78);
}

.home-shell.is-city-map .local-map-heading {
  border-color: rgba(255, 95, 168, 0.26);
  background: rgba(7, 7, 10, 0.88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.home-shell.is-city-map .map-controls {
  border-color: rgba(255, 95, 168, 0.54);
  background: rgba(7, 7, 10, 0.94);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 244, 248, 0.05);
}

.home-shell.is-city-map .map-control-button,
.home-shell.is-city-map .map-reset-button {
  border-color: rgba(255, 95, 168, 0.4);
  transition:
    color 160ms var(--ease-editorial),
    border-color 160ms var(--ease-editorial),
    background-color 160ms var(--ease-editorial),
    transform 160ms var(--ease-editorial);
}

.home-shell.is-city-map .type-filter {
  transition:
    color 180ms var(--ease-editorial),
    border-color 180ms var(--ease-editorial),
    background-color 180ms var(--ease-editorial),
    box-shadow 180ms var(--ease-editorial),
    transform 180ms var(--ease-editorial);
}

.home-shell.is-city-map .poi-detail-card::before {
  content: "";
  position: absolute;
  z-index: 12;
  top: 0;
  left: 0;
  width: 82px;
  height: 2px;
  background: #ff5fa8;
  box-shadow: 0 0 18px rgba(255, 95, 168, 0.34);
  pointer-events: none;
}

.home-shell.is-city-map .poi-detail-card {
  border-color: rgba(255, 95, 168, 0.58);
  background:
    radial-gradient(circle at 8% 0, rgba(255, 95, 168, 0.09), transparent 24%),
    linear-gradient(155deg, rgba(255, 95, 168, 0.045), transparent 34%),
    rgba(7, 7, 10, 0.985);
  box-shadow:
    -18px 0 58px rgba(23, 0, 10, 0.24),
    0 30px 82px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 244, 248, 0.035);
}

.home-shell.is-city-map .poi-readiness {
  border-top: 1px solid rgba(255, 244, 248, 0.035);
  border-right: 1px solid rgba(255, 244, 248, 0.035);
  border-bottom: 1px solid rgba(255, 244, 248, 0.035);
}

.home-shell.is-city-map .poi-row {
  border-color: rgba(255, 95, 168, 0.34);
  transition:
    color 180ms var(--ease-editorial),
    border-color 180ms var(--ease-editorial),
    background-color 180ms var(--ease-editorial),
    box-shadow 180ms var(--ease-editorial),
    transform 180ms var(--ease-editorial);
}

.home-shell.is-city-map .kindred-poi-marker {
  --marker-size: 25px;
  box-shadow:
    0 0 0 2px rgba(7, 7, 10, 0.94),
    0 0 0 3px rgba(255, 95, 168, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.48);
}

.home-shell.is-city-map .kindred-poi-marker.is-cluster {
  --marker-size: 29px;
}

.home-shell.is-city-map .kindred-poi-marker.is-selected,
.home-shell.is-city-map .kindred-poi-marker.is-list-hovered {
  transform: scale(1.12);
  box-shadow:
    0 0 0 2px rgba(7, 7, 10, 0.96),
    0 0 0 5px rgba(255, 95, 168, 0.32),
    0 0 22px rgba(255, 95, 168, 0.42),
    0 14px 30px rgba(0, 0, 0, 0.5);
}

@media (hover: hover) and (pointer: fine) {
  .home-shell.is-city-map .map-control-button:hover,
  .home-shell.is-city-map .map-reset-button:hover {
    border-color: #ff8fc2;
    background: rgba(255, 95, 168, 0.13);
    color: #fff4f8;
    transform: translateY(-2px);
  }

  .home-shell.is-city-map .type-filter:not(.is-active):not(.is-empty):hover,
  .home-shell.is-city-map .poi-row:not(.is-selected):hover {
    border-color: rgba(255, 95, 168, 0.72);
    background: rgba(255, 95, 168, 0.09);
    transform: translateY(-2px);
  }
}

@media (max-width: 767px) {
  .home-shell.is-city-map .kindred-poi-marker {
    --marker-size: 23px;
  }

  .home-shell.is-city-map .kindred-poi-marker.is-cluster {
    --marker-size: 27px;
  }

  .home-shell.is-city-map .poi-detail-card::before {
    width: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shell.is-city-map .map-control-button,
  .home-shell.is-city-map .map-reset-button,
  .home-shell.is-city-map .type-filter,
  .home-shell.is-city-map .poi-row {
    transition-duration: 1ms !important;
  }

  .home-shell.is-city-map .map-control-button:hover,
  .home-shell.is-city-map .map-reset-button:hover,
  .home-shell.is-city-map .type-filter:hover,
  .home-shell.is-city-map .poi-row:hover {
    transform: none;
  }
}

@media (max-width: 767px) {
  .home-shell.is-city-map {
    --city-touch-target: 44px;
    --city-header-height: calc(60px + env(safe-area-inset-top));
  }

  .home-shell.is-city-map .site-header {
    height: var(--city-header-height);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding:
      calc(8px + env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      8px
      max(10px, env(safe-area-inset-left));
  }

  .home-shell.is-city-map .brand-wordmark {
    max-width: 106px;
    min-height: var(--city-touch-target);
    display: inline-flex;
    align-items: center;
  }

  .home-shell.is-city-map .header-actions {
    grid-template-columns: minmax(132px, 1fr) 68px;
  }

  .home-shell.is-city-map .search-form,
  .home-shell.is-city-map .language-select,
  .home-shell.is-city-map .search-form input,
  .home-shell.is-city-map .search-form > button,
  .home-shell.is-city-map .language-select select {
    min-height: var(--city-touch-target);
    height: var(--city-touch-target);
  }

  .home-shell.is-city-map .search-form > button {
    min-width: var(--city-touch-target);
  }

  .home-shell.is-city-map .search-form {
    position: relative;
    min-width: 132px;
    display: block;
    padding: 0;
  }

  .home-shell.is-city-map .search-form input {
    box-sizing: border-box;
    width: 100%;
    padding: 0 48px 0 14px;
  }

  .home-shell.is-city-map .search-form > button {
    position: absolute;
    top: 0;
    right: 0;
  }

  .home-shell.is-city-map .city-map-view {
    inset: var(--city-header-height) 0 0;
    grid-template-rows: 52px var(--city-touch-target) minmax(0, 1fr);
    gap: 8px;
    padding:
      8px
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .home-shell.is-city-map .city-map-copy {
    grid-template-columns: var(--city-touch-target) minmax(0, 1fr);
    grid-template-rows: 31px 18px;
    column-gap: 10px;
  }

  .home-shell.is-city-map .back-home-button {
    width: var(--city-touch-target);
    height: var(--city-touch-target);
  }

  .home-shell.is-city-map .city-map-copy h1 {
    max-width: 100%;
    font-size: clamp(24px, 8.1vw, 31px);
    text-overflow: clip;
  }

  .home-shell.is-city-map .type-filter-bar {
    gap: 4px;
    overflow-x: auto;
    scroll-padding-inline: 0 16px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    padding-right: 18px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 12px), transparent 100%);
  }

  .home-shell.is-city-map .type-filter {
    width: auto;
    min-width: 0;
    height: var(--city-touch-target);
    min-height: var(--city-touch-target);
    flex: 0 0 max(min(92px, calc((100% - 36px) / 3)), 8.5em);
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 4px;
    scroll-snap-align: start;
    padding-inline: 6px;
    font-size: 10px;
  }

  .home-shell.is-city-map .map-controls {
    gap: 4px;
    padding: 4px;
  }

  .home-shell.is-city-map .map-control-button,
  .home-shell.is-city-map .map-reset-button,
  .home-shell.is-city-map .map-tile-status button,
  .home-shell.is-city-map .city-map-retry-button {
    min-height: var(--city-touch-target);
    height: var(--city-touch-target);
  }

  .home-shell.is-city-map .map-control-button {
    width: var(--city-touch-target);
    min-width: var(--city-touch-target);
  }

  .home-shell.is-city-map .map-reset-button {
    width: max(68px, 6em);
    max-width: min(112px, 38vw);
    min-width: max(58px, 5em);
  }

  .home-shell.is-city-map .poi-community-actions {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(112px, 7.5em)), 1fr));
  }

  .home-shell.is-city-map .local-map-heading {
    max-width: calc(100% - 194px);
    min-height: 32px;
    display: flex;
    align-items: center;
  }

  .home-shell.is-city-map .map-attribution {
    top: 58px;
  }

  .home-shell.is-city-map .poi-list-toggle {
    width: var(--city-touch-target);
    height: var(--city-touch-target);
    min-height: var(--city-touch-target);
  }

  .home-shell.is-city-map .poi-strip-header {
    height: var(--city-touch-target);
    min-height: var(--city-touch-target);
  }

  .home-shell.is-city-map .poi-strip.is-expanded {
    height: min(48svh, calc(100% - 96px), 460px);
  }

  .home-shell.is-city-map .poi-list {
    height: calc(100% - var(--city-touch-target));
  }

  .home-shell.is-city-map .poi-strip:not(.is-expanded) .poi-list {
    scrollbar-width: none;
  }

  .home-shell.is-city-map .poi-strip:not(.is-expanded) .poi-list::-webkit-scrollbar {
    display: none;
  }

  .home-shell.is-city-map .poi-row {
    min-height: 72px;
  }

  .home-shell.is-city-map .poi-detail-card {
    max-height: min(68svh, calc(100% - 96px), 580px);
    scroll-padding-block: 50px 16px;
  }

  .home-shell.is-city-map .poi-detail-sheet-bar,
  .home-shell.is-city-map .poi-detail-back {
    min-height: var(--city-touch-target);
  }

  .home-shell.is-city-map .poi-navigation-button,
  .home-shell.is-city-map .poi-secondary-button,
  .home-shell.is-city-map .poi-photo-upload-button,
  .home-shell.is-city-map .poi-photo-cover,
  .home-shell.is-city-map .poi-photo-thumbnail,
  .home-shell.is-city-map .poi-detail-trust > summary,
  .home-shell.is-city-map .poi-detail-trust a,
  .home-shell.is-city-map .poi-evidence-actions a {
    min-height: var(--city-touch-target);
  }

  .home-shell.is-city-map .poi-detail-trust > summary,
  .home-shell.is-city-map .poi-detail-trust a,
  .home-shell.is-city-map .poi-evidence-actions a {
    display: inline-flex;
    align-items: center;
  }

  .home-shell.is-city-map :is(
    .back-home-button,
    .type-filter,
    .map-control-button,
    .map-reset-button,
    .poi-list-toggle,
    .poi-row,
    .poi-detail-back,
    .poi-navigation-button,
    .poi-secondary-button,
    .poi-photo-upload-button,
    .poi-photo-cover,
    .poi-photo-thumbnail,
    .city-map-retry-button,
    .map-tile-status button
  ):focus-visible {
    outline: 2px solid #fff4f8;
    outline-offset: 2px;
  }

  .home-shell.is-city-map :is(
    .back-home-button,
    .type-filter:not(:disabled),
    .map-control-button:not(:disabled),
    .map-reset-button,
    .poi-list-toggle,
    .poi-row,
    .poi-detail-back,
    .poi-navigation-button,
    .poi-secondary-button:not(:disabled),
    .poi-photo-upload-button,
    .city-map-retry-button,
    .map-tile-status button
  ):active {
    filter: brightness(1.1);
    transform: translateY(1px) scale(0.985);
  }
}

@media (max-width: 359px) {
  .home-shell.is-city-map {
    --city-header-height: calc(104px + env(safe-area-inset-top));
  }

  .home-shell.is-city-map .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 44px;
    grid-template-areas:
      "brand language"
      "search search";
    gap: 4px 8px;
    padding-block: calc(6px + env(safe-area-inset-top)) 6px;
  }

  .home-shell.is-city-map .brand-wordmark {
    grid-area: brand;
    max-width: 160px;
  }

  .home-shell.is-city-map .header-actions {
    display: contents;
  }

  .home-shell.is-city-map .search-form {
    grid-area: search;
  }

  .home-shell.is-city-map .language-select {
    grid-area: language;
    width: clamp(76px, 7ch, 112px);
  }

  .home-shell.is-city-map .city-map-view {
    grid-template-rows: 48px var(--city-touch-target) minmax(0, 1fr);
    gap: 6px;
    padding-top: 6px;
  }

  .home-shell.is-city-map .city-map-copy h1 {
    font-size: 24px;
  }

  .home-shell.is-city-map .poi-strip {
    height: 120px;
  }

  .home-shell.is-city-map .poi-strip.is-expanded {
    height: min(48svh, calc(100svh - var(--city-header-height) - 216px));
  }

  .home-shell.is-city-map .poi-detail-card {
    padding-inline: 12px;
  }
}

@media (max-width: 932px) and (max-height: 500px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .home-shell.is-city-map {
    --city-touch-target: 44px;
    width: 100%;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .home-shell.is-city-map .site-header {
    position: absolute;
    z-index: 40;
    inset: 0 0 auto;
    width: 100%;
    height: calc(56px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: calc(6px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  }

  .home-shell.is-city-map .brand-wordmark {
    max-width: 122px;
    min-height: var(--city-touch-target);
    display: inline-flex;
    align-items: center;
    font-size: 18px;
  }

  .home-shell.is-city-map .primary-nav,
  .home-shell.is-city-map .tip-button {
    display: none;
  }

  .home-shell.is-city-map .header-actions {
    grid-column: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(132px, 1fr) 72px;
    gap: 6px;
  }

  .home-shell.is-city-map .search-form,
  .home-shell.is-city-map .language-select,
  .home-shell.is-city-map .search-form input,
  .home-shell.is-city-map .search-form > button,
  .home-shell.is-city-map .language-select select {
    height: var(--city-touch-target);
    min-height: var(--city-touch-target);
  }

  .home-shell.is-city-map .city-map-view,
  .home-shell.is-city-map.has-selected-poi .city-map-view {
    position: absolute;
    inset: calc(56px + env(safe-area-inset-top)) 0 0;
    width: auto;
    height: auto;
    display: grid;
    grid-template-rows: var(--city-touch-target) var(--city-touch-target) minmax(0, 1fr);
    gap: 5px;
    margin: 0;
    padding: 5px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .home-shell.is-city-map .city-map-copy {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: var(--city-touch-target) minmax(0, 1fr);
    grid-template-rows: 27px 17px;
    align-items: center;
    column-gap: 8px;
  }

  .home-shell.is-city-map .back-home-button {
    width: var(--city-touch-target);
    height: var(--city-touch-target);
    grid-column: 1;
    grid-row: 1 / 3;
    justify-content: center;
    padding: 0;
  }

  .home-shell.is-city-map .city-map-copy h1 {
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
    margin: 0;
    font-size: 25px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-shell.is-city-map .city-map-meta {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    justify-content: flex-start;
    overflow: hidden;
    margin: 0;
    white-space: nowrap;
  }

  .home-shell.is-city-map .city-map-eyebrow,
  .home-shell.is-city-map .city-map-copy > p:not(.city-map-eyebrow),
  .home-shell.is-city-map .back-home-button span:last-child {
    display: none;
  }

  .home-shell.is-city-map .type-filter-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    padding-right: 28px;
  }

  .home-shell.is-city-map .type-filter {
    min-width: 92px;
    height: var(--city-touch-target);
    min-height: var(--city-touch-target);
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .home-shell.is-city-map .city-map-layout {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: hidden;
  }

  .home-shell.is-city-map .local-map-card {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 0;
  }

  .home-shell.is-city-map .local-map-canvas {
    inset: 0;
  }

  .home-shell.is-city-map .map-control-button,
  .home-shell.is-city-map .map-reset-button {
    height: var(--city-touch-target);
    min-height: var(--city-touch-target);
  }

  .home-shell.is-city-map .map-control-button {
    width: var(--city-touch-target);
  }

  .home-shell.is-city-map .poi-strip,
  .home-shell.is-city-map .poi-detail-card {
    position: absolute;
    z-index: 1002;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(6px, env(safe-area-inset-bottom));
    left: auto;
    width: min(390px, 52vw);
    height: auto;
    max-height: calc(100% - 12px);
    overflow-y: auto;
  }

  .home-shell.is-city-map .poi-strip {
    min-height: 0;
    height: min(180px, calc(100% - 12px));
  }

  .home-shell.is-city-map .poi-strip.is-expanded {
    height: calc(100% - 12px);
  }

  .home-shell.is-city-map .poi-strip-header,
  .home-shell.is-city-map .poi-list-toggle,
  .home-shell.is-city-map .poi-detail-back,
  .home-shell.is-city-map .poi-navigation-button,
  .home-shell.is-city-map .poi-secondary-button,
  .home-shell.is-city-map .poi-photo-upload-button {
    min-height: var(--city-touch-target);
  }

  .home-shell.is-city-map .poi-list-toggle {
    width: var(--city-touch-target);
    height: var(--city-touch-target);
    display: grid;
  }

  .home-shell.is-city-map .poi-list {
    height: calc(100% - var(--city-touch-target));
    overflow-x: hidden;
    overflow-y: auto;
  }

  .home-shell.is-city-map .poi-row {
    width: 100%;
    min-width: 0;
    min-height: 68px;
  }
}

/* iOS precision polish: soften the product chrome while preserving the black,
   pink and street-map Option A identity. */
.home-shell.is-city-map {
  --city-radius-control: 11px;
  --city-radius-panel: 16px;
  --city-shadow-control: 0 1px 2px rgba(0, 0, 0, 0.24), 0 9px 24px rgba(0, 0, 0, 0.2);
  --city-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.home-shell.is-city-map .site-header {
  border-bottom-color: rgba(255, 95, 168, 0.25);
  background: rgba(7, 7, 10, 0.82);
  box-shadow: 0 10px 32px rgba(14, 0, 7, 0.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
}

.home-shell.is-city-map :is(.search-form, .language-select) {
  border-color: rgba(255, 95, 168, 0.32);
  background: rgba(13, 13, 18, 0.76);
  box-shadow: var(--city-highlight), 0 6px 18px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.home-shell.is-city-map .back-home-button {
  border-color: rgba(255, 95, 168, 0.32);
  border-radius: var(--city-radius-control);
  background: rgba(8, 8, 12, 0.74);
  box-shadow: var(--city-highlight), var(--city-shadow-control);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.home-shell.is-city-map .city-map-meta span {
  border-radius: 8px;
}

.home-shell.is-city-map .type-filter {
  border-color: rgba(255, 95, 168, 0.27);
  border-radius: var(--city-radius-control);
  background: rgba(9, 9, 13, 0.78);
  box-shadow: var(--city-highlight);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

.home-shell.is-city-map .type-filter.is-active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 9px 22px rgba(70, 0, 29, 0.2);
}

.home-shell.is-city-map .local-map-card {
  border-color: rgba(255, 95, 168, 0.36);
  border-radius: var(--city-radius-panel);
  box-shadow: 0 24px 64px rgba(19, 0, 8, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-shell.is-city-map :is(.local-map-canvas, .leaflet-map-host) {
  border-radius: calc(var(--city-radius-panel) - 2px);
}

.home-shell.is-city-map .local-map-heading {
  border-radius: 10px;
  background: rgba(7, 7, 10, 0.74);
  box-shadow: var(--city-highlight), 0 8px 24px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
}

.home-shell.is-city-map .map-controls {
  border-color: rgba(255, 95, 168, 0.36);
  border-radius: 14px;
  background: rgba(7, 7, 10, 0.8);
  box-shadow: var(--city-highlight), 0 12px 32px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.home-shell.is-city-map :is(.map-control-button, .map-reset-button) {
  border-radius: 10px;
}

.home-shell.is-city-map .map-attribution,
.home-shell.is-city-map .kindred-poi-tooltip {
  border-radius: 7px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.home-shell.is-city-map .poi-detail-card {
  border-color: rgba(255, 95, 168, 0.4);
  border-radius: var(--city-radius-panel);
  background: rgba(7, 7, 10, 0.96);
  box-shadow: -12px 0 40px rgba(23, 0, 10, 0.18), 0 28px 70px rgba(0, 0, 0, 0.34), var(--city-highlight);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
}

.home-shell.is-city-map .poi-detail-card::before {
  left: 16px;
  width: 52px;
  height: 3px;
  border-radius: 999px;
}

.home-shell.is-city-map :is(.poi-readiness, .poi-recommendation, .poi-photo-empty) {
  border-radius: 10px;
}

.home-shell.is-city-map :is(
  .poi-navigation-button,
  .poi-secondary-button,
  .poi-photo-upload-button,
  .city-map-retry-button,
  .map-tile-status button
) {
  border-radius: var(--city-radius-control);
  transition:
    color 160ms var(--ease-editorial),
    background-color 160ms var(--ease-editorial),
    border-color 160ms var(--ease-editorial),
    box-shadow 160ms var(--ease-editorial),
    transform 160ms var(--ease-editorial);
}

.home-shell.is-city-map .poi-navigation-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 22px rgba(73, 0, 31, 0.22);
}

.home-shell.is-city-map .poi-row {
  border-radius: 10px;
  box-shadow: var(--city-highlight), 0 6px 18px rgba(0, 0, 0, 0.12);
}

.home-shell.is-city-map .poi-row.is-selected {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 26px rgba(74, 0, 31, 0.22);
}

.home-shell.is-city-map .search-results {
  border-color: rgba(255, 95, 168, 0.34);
  border-radius: 16px;
  background: rgba(7, 7, 10, 0.9);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.4), var(--city-highlight);
  padding: 6px;
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  backdrop-filter: blur(24px) saturate(1.18);
}

.home-shell.is-city-map .search-result-item {
  border-radius: 10px;
}

.home-shell.is-city-map .search-result-item:hover,
.home-shell.is-city-map .search-result-item:focus-visible {
  background: rgba(255, 95, 168, 0.12);
}

.home-shell.is-city-map :is(
  .back-home-button,
  .type-filter,
  .map-control-button,
  .map-reset-button,
  .poi-list-toggle,
  .poi-row,
  .poi-detail-back,
  .poi-navigation-button,
  .poi-secondary-button,
  .poi-photo-upload-button,
  .city-map-retry-button,
  .map-tile-status button
):focus-visible {
  outline: 3px solid rgba(255, 244, 248, 0.88);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .home-shell.is-city-map :is(
    .map-control-button,
    .map-reset-button,
    .type-filter:not(.is-active):not(.is-empty),
    .poi-row:not(.is-selected),
    .poi-navigation-button,
    .poi-secondary-button:not(:disabled)
  ):hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 767px) {
  .home-shell.is-city-map .site-header {
    background: rgba(7, 7, 10, 0.82);
  }

  .home-shell.is-city-map :is(.back-home-button, .type-filter) {
    border-radius: 11px;
  }

  .home-shell.is-city-map .local-map-card {
    border-radius: 14px;
  }

  .home-shell.is-city-map :is(.local-map-canvas, .leaflet-map-host) {
    border-radius: 12px;
  }

  .home-shell.is-city-map .poi-strip {
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.28);
  }

  .home-shell.is-city-map .poi-detail-card {
    border-radius: 18px 18px 12px 12px;
    box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.32), var(--city-highlight);
  }

  .home-shell.is-city-map .poi-detail-card::before {
    left: 50%;
    width: 38px;
    height: 4px;
    background: rgba(255, 244, 248, 0.42);
    box-shadow: none;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shell.is-city-map :is(
    .poi-navigation-button,
    .poi-secondary-button,
    .poi-photo-upload-button,
    .city-map-retry-button,
    .map-tile-status button
  ) {
    transition-duration: 1ms !important;
  }

  .home-shell.is-city-map :is(
    .poi-navigation-button,
    .poi-secondary-button,
    .poi-photo-upload-button,
    .city-map-retry-button,
    .map-tile-status button
  ):hover {
    transform: none !important;
  }
}

/* Pass 2 late-precedence guard. Option A's canonical blocks above intentionally
   remain authoritative; these rules only resolve compact-header and empty-map
   details that need to win at the final cascade boundary. */
.home-shell.is-city-map .site-header {
  border-bottom-color: rgba(255, 95, 168, 0.22);
  background: rgba(7, 7, 10, 0.88);
  box-shadow: 0 12px 34px rgba(14, 0, 7, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(28px) saturate(1.28);
  backdrop-filter: blur(28px) saturate(1.28);
}

.home-shell.is-city-map .city-map-layout:has(.poi-detail-card.is-empty) {
  grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 359px) {
  .home-shell.is-city-map {
    --city-header-height: calc(104px + env(safe-area-inset-top));
  }

  .home-shell.is-city-map .site-header {
    height: var(--city-header-height);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 44px;
    grid-template-areas:
      "brand language"
      "search search";
    gap: 4px 8px;
    padding:
      calc(6px + env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      6px
      max(10px, env(safe-area-inset-left));
  }

  .home-shell.is-city-map .brand-wordmark {
    grid-area: brand;
    max-width: 168px;
  }

  .home-shell.is-city-map .header-actions {
    display: contents;
  }

  .home-shell.is-city-map .search-form {
    grid-area: search;
    overflow: visible;
    border-radius: 13px;
  }

  .home-shell.is-city-map .language-select {
    grid-area: language;
    width: clamp(82px, 24vw, 104px);
    justify-self: end;
  }

  .home-shell.is-city-map .search-results {
    right: 0;
    left: 0;
    width: 100%;
    max-height: min(336px, 44dvh);
    border-radius: 16px;
  }

  .home-shell.is-city-map .poi-strip {
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 44px rgba(0, 0, 0, 0.34), var(--city-highlight);
  }

  .home-shell.is-city-map .poi-detail-card {
    border-radius: 20px 20px 13px 13px;
    background: rgba(7, 7, 10, 0.94);
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.38), var(--city-highlight);
    -webkit-backdrop-filter: blur(28px) saturate(1.18);
    backdrop-filter: blur(28px) saturate(1.18);
  }
}

@media (min-width: 360px) and (max-width: 480px) {
  .home-shell.is-city-map .brand-wordmark {
    max-width: 106px;
    font-size: 0;
  }

  .home-shell.is-city-map .brand-wordmark::before {
    font-size: 15.5px;
  }

  .home-shell.is-city-map .site-header {
    gap: 6px;
  }

  .home-shell.is-city-map .header-actions {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 5px;
  }

  .home-shell.is-city-map .language-select {
    width: 62px;
  }

  .home-shell.is-city-map .language-select select {
    padding-inline: 5px;
    font-size: 10px;
  }
}

/* System spacing audit: keep page gutters, overlay insets and safe areas as
   separate concepts across desktop, tablet and compact layouts. */
.home-shell.is-city-map {
  --city-page-gutter: 18px;
  --city-overlay-inset: 12px;
}

@media (min-width: 768px) {
  .home-shell.is-city-map .site-header {
    padding-inline: var(--city-page-gutter);
  }

  .home-shell.is-city-map .city-map-view {
    padding-inline: var(--city-page-gutter);
    grid-template-rows: 62px 44px minmax(0, 1fr) 96px;
  }

  .home-shell.is-city-map :is(
    .search-form,
    .language-select,
    .search-form input,
    .search-form > button,
    .back-home-button,
    .type-filter,
    .map-control-button,
    .map-reset-button,
    .map-tile-status button,
    .city-map-retry-button,
    .poi-list-toggle,
    .poi-detail-back,
    .poi-navigation-button,
    .poi-secondary-button,
    .poi-photo-upload-button
  ) {
    min-height: 44px;
  }

  .home-shell.is-city-map :is(
    .search-form > button,
    .map-control-button,
    .poi-list-toggle,
    .poi-detail-back
  ) {
    min-width: 44px;
  }

  .home-shell.is-city-map .map-control-button {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .home-shell.is-city-map .site-header {
    grid-template-columns: auto minmax(0, 1fr) minmax(270px, 42vw);
  }

  .home-shell.is-city-map .city-map-meta span:nth-child(2) {
    display: none;
  }

  .home-shell.is-city-map .city-map-layout {
    grid-template-columns: minmax(0, 1fr) minmax(288px, 38vw);
  }
}

@media (min-width: 768px) and (max-height: 639px) {
  .home-shell.is-city-map {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .home-shell.is-city-map {
    --city-page-gutter: 8px;
    --city-overlay-inset: 8px;
  }

  .home-shell.is-city-map .poi-strip,
  .home-shell.is-city-map .poi-detail-card {
    right: var(--city-overlay-inset);
    bottom: var(--city-overlay-inset);
    left: var(--city-overlay-inset);
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .home-shell.is-city-map .poi-strip,
  .home-shell.is-city-map .poi-detail-card {
    right: var(--city-overlay-inset);
    bottom: 6px;
    left: auto;
  }
}

/* Pre-launch touch-target closure: keep the inline phone value visually
   compact while giving it a reliable mobile hit area. */
.home-shell.is-city-map .poi-detail-facts dd a[href^="tel:"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.home-shell.is-city-map .brand-wordmark,
.home-shell.is-city-map .language-select,
.home-shell.is-city-map .language-select select {
  min-height: 44px;
}

.home-shell.is-city-map .brand-wordmark {
  display: inline-flex;
  align-items: center;
}
