:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #f1f5f2;
  --text: #172118;
  --muted: #5f6f64;
  --border: #d9e0da;
  --accent: #2f6f46;
  --accent-dark: #245739;
  --warning-bg: #fff6db;
  --warning-text: #725300;
  --published-bg: #e6f5eb;
  --published-text: #245739;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo-wordmark {
  display: block;
  width: auto;
  height: 32px;
  max-width: min(44vw, 180px);
}

.site-nav {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
}

.site-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.05;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.button-secondary {
  color: var(--accent);
  background: white;
}

.button-secondary:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.page-meta p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.place-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.place-card-content {
  padding: 16px;
}

.place-card-title {
  margin: 10px 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.place-card p {
  margin: 8px 0;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--muted);
}

.badge-published {
  background: var(--published-bg);
  color: var(--published-text);
}

.badge-review {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.place-address {
  color: var(--muted);
  font-size: 0.95rem;
}

.place-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.place-detail h1 {
  margin-top: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
}

.detail-section {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 18px;
}

.detail-section h2 {
  margin-top: 0;
}

.parent-place-note {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.related-place-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.related-place-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  text-decoration: none;
}

.related-place-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 760px) {
  .related-place-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 24px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 18px;
  color: var(--muted);
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 36px;
  }
}

@media (min-width: 1040px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-logo-wordmark {
    height: 29px;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.filter-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.filter-chip:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.filter-chip-active:hover {
  color: white;
  background: var(--accent-dark);
}

.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-weight: 700;
}

.place-card-photo-link {
  display: block;
  margin: 0;
  overflow: hidden;
  background: var(--surface-soft);
}

.place-card-photo {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.no-photo-placeholder {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
}

.no-photo-placeholder-large {
  min-height: 320px;
  border-radius: 16px;
  border: 1px dashed var(--border);
}

.no-photo-placeholder-contribution {
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.no-photo-placeholder-title {
  color: var(--text);
}

.no-photo-placeholder-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.no-photo-placeholder-action:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.place-hero-photo {
  margin-top: 18px;
}

.place-hero-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.photo-caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.photo-tile {
  margin: 0;
  background: var(--surface-soft);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-tile img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.photo-tile figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 760px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   Place detail v1
   ========================================================= */

.place-detail {
  padding: clamp(20px, 4vw, 40px);
}

.place-detail-header {
  display: grid;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.place-detail-header h1 {
  margin: 10px 0 0;
}

.place-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.listing-review-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.place-heading-location {
  margin: 10px 0 0;
  color: var(--muted);
}

.place-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.place-hero-photo {
  margin-top: 0;
}

.place-hero-image {
  max-height: 620px;
}

.photo-credit {
  margin-left: 8px;
}

.place-detail-layout {
  display: grid;
  gap: 26px;
  margin-top: 26px;
}

.place-detail-main,
.place-detail-sidebar {
  min-width: 0;
}

.detail-section {
  scroll-margin-top: 18px;
}

.detail-section-prominent {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface-soft);
}

.section-eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.section-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.fact-check {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--published-bg);
  color: var(--published-text);
  font-size: 0.85rem;
  font-weight: 900;
}

.fact-item span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-item small {
  color: var(--muted);
}

.detail-empty,
.detail-supporting-text {
  color: var(--muted);
}

.detail-supporting-text {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.place-description p:first-child {
  margin-top: 0;
}

.place-description p:last-child {
  margin-bottom: 0;
}

.visit-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.visit-card + .visit-card {
  margin-top: 14px;
}

.visit-card h2 {
  margin: 0 0 12px;
}

.visit-address {
  color: var(--text);
  font-style: normal;
}

.visit-actions {
  margin-top: 16px;
}

.visit-actions .button {
  width: 100%;
  text-align: center;
}

.visit-related {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.visit-related span {
  color: var(--muted);
  font-size: 0.85rem;
}

.listing-meta p {
  color: var(--muted);
  font-size: 0.9rem;
}

.listing-meta p:last-child {
  margin-bottom: 0;
}

.listing-updated {
  font-weight: 700;
}

.related-place-card {
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}

.related-place-card:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.related-place-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-place-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.related-place-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px;
}

.related-place-body span {
  color: var(--muted);
  font-size: 0.9rem;
}

.amenity-list-large {
  gap: 8px;
}

.amenity-list-large .amenity-chip {
  padding: 7px 11px;
}

.photo-tile-link {
  display: block;
}

.photo-tile-link:hover {
  opacity: 0.96;
}

.photo-tile figcaption strong {
  color: var(--text);
}

.photo-tile figcaption small {
  color: var(--muted);
}

@media (min-width: 680px) {
  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .place-detail-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .place-header-actions {
    justify-content: flex-end;
  }

  .place-detail-layout {
    grid-template-columns: minmax(0, 2.15fr) minmax(250px, 0.85fr);
    align-items: start;
  }

  .place-detail-sidebar {
    position: sticky;
    top: 18px;
  }
}

@media (min-width: 1040px) {
  .place-detail .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .place-detail .photo-tile img {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .place-header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .place-header-actions .button {
    text-align: center;
  }

  .detail-section-prominent {
    padding: 16px;
  }

  .photo-credit {
    display: block;
    margin: 4px 0 0;
  }
}

.child-place-group + .child-place-group {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.child-place-group h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.nearby-place-group {
  margin-top: 16px;
}

.nearby-place-group + .nearby-place-group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.nearby-place-group h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

/* =========================================================
   Playground discovery Guide / List
   ========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.discovery-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.discovery-mode-switch a,
.discovery-mode-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.discovery-mode-switch a:hover {
  color: var(--accent);
  text-decoration: none;
}

.discovery-mode-switch .discovery-mode-active {
  color: #ffffff;
  background: var(--accent);
}

.discovery-mode-switch .discovery-mode-active:hover {
  color: #ffffff;
  background: var(--accent-dark);
}

.discovery-mode-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.browse-chip-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.browse-chip-label {
  flex: 0 0 auto;
  padding-top: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.browse-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-chip {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.browse-chip:hover {
  text-decoration: none;
  background: var(--published-bg);
}

.guide-intro {
  display: grid;
  gap: 12px;
  align-items: end;
  margin: 30px 0 18px;
}

.guide-intro h2 {
  margin: 0;
}

.guide-intro > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
}

.guide-section {
  scroll-margin-top: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.guide-section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.guide-section-header h2 {
  margin: 0;
}

.guide-section-header p:not(.section-eyebrow) {
  max-width: 700px;
  margin: 6px 0 0;
  color: var(--muted);
}

.guide-section-link {
  align-self: end;
  font-weight: 750;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.guide-footer-cta {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 24px;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.guide-footer-cta h2 {
  margin: 0;
}

.guide-footer-cta p:not(.section-eyebrow) {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
}

.filter-panel-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.filter-panel-heading .filter-label {
  margin-bottom: 2px;
}

.filter-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.clear-filter-link {
  font-size: 0.9rem;
  font-weight: 750;
}

@media (min-width: 760px) {
  .guide-intro,
  .guide-section-header,
  .guide-footer-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .guide-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .guide-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .browse-chip-panel {
    flex-direction: column;
  }

  .browse-chip-list {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .browse-chip {
    flex: 0 0 auto;
  }

  .discovery-mode-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    border-radius: 16px;
  }

  .discovery-mode-switch a,
  .discovery-mode-switch span {
    padding-inline: 9px;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 700;
}

.breadcrumb span[aria-current="page"] {
  color: var(--muted);
}

/* =========================================================
   Playground List / Filters v1.1
   ========================================================= */

.filter-chip-mark {
  margin-left: 5px;
  font-weight: 900;
}

.active-filter-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  margin: -2px 0 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.active-filter-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.active-filter-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--published-text);
  background: var(--published-bg);
  font-size: 0.78rem;
}

.active-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 750;
}

.active-filter-chip:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.active-filter-chip > span[aria-hidden="true"] {
  font-size: 1rem;
  line-height: 1;
}

/* =========================================================
   Playground List / Filters v1.2
   ========================================================= */

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.list-result-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.list-result-count strong {
  color: var(--text);
  font-size: 1.05rem;
}

.sort-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sort-form label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.sort-form select {
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

.sort-submit {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.sort-submit:hover {
  background: var(--accent-dark);
}

.filter-details {
  padding: 0;
  overflow: hidden;
}

.filter-details-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  color: var(--text);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.filter-details-summary::-webkit-details-marker {
  display: none;
}

.filter-details-summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.filter-details[open] .filter-details-summary::after {
  content: "−";
}

.filter-details-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--published-text);
  background: var(--published-bg);
  font-size: 0.78rem;
}

.filter-details-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.filter-details-body .filter-panel-heading {
  padding-top: 16px;
}

.filter-group-list {
  display: grid;
  gap: 0;
}

.filter-group {
  padding: 17px 0;
  border-top: 1px solid var(--border);
}

.filter-group:first-child {
  border-top: 0;
}

.filter-group-heading {
  margin-bottom: 10px;
}

.filter-group-heading h2 {
  margin: 0;
  font-size: 0.98rem;
}

.filter-group-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (min-width: 760px) {
  .filter-details > .filter-details-summary {
    display: none;
  }

  .filter-details:not([open]) > .filter-details-body {
    display: block;
  }

  .filter-details-body {
    padding: 0 16px 16px;
    border-top: 0;
  }

  .filter-group-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .filter-group:nth-child(2) {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .discovery-mode-switch-sticky {
    position: sticky;
    top: 8px;
    z-index: 20;
    box-shadow: 0 6px 20px rgba(23, 33, 24, 0.09);
  }

  .list-toolbar {
    align-items: stretch;
  }

  .list-result-count {
    width: 100%;
  }

  .sort-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
  }

  .sort-form select {
    width: 100%;
  }

  .filter-details-hint {
    display: none;
  }
}

/* =========================================================
   Playground Map v1
   ========================================================= */

.map-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.map-status-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-status-bar strong {
  color: var(--text);
}

.map-fit-button,
.map-show-button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  background: var(--surface);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}

.map-fit-button {
  margin-left: auto;
}

.map-fit-button:hover,
.map-show-button:hover {
  color: #ffffff;
  background: var(--accent);
}

.playground-map-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}

.playground-map-panel,
.map-results-panel {
  min-width: 0;
}

.playground-map {
  width: 100%;
  height: min(68vh, 720px);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  z-index: 1;
}

.map-accessibility-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.map-results-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.map-results-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.map-results-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.map-results-heading > a {
  font-size: 0.88rem;
  font-weight: 750;
}

.map-result-list {
  display: grid;
  gap: 12px;
}

.map-result-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.map-result-card-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--published-bg);
}

.map-result-image {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.map-result-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.map-result-body {
  padding: 13px;
}

.map-result-body h3 {
  margin: 9px 0 5px;
  font-size: 1rem;
  line-height: 1.3;
}

.map-result-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.map-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 750;
}

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

.map-popup-image {
  display: block;
  width: calc(100% + 40px);
  height: 120px;
  margin: -14px -20px 10px;
  object-fit: cover;
}

.map-popup-title {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.map-popup p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.map-popup-amenities {
  line-height: 1.4;
}

.map-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 750;
}

.leaflet-popup-content-wrapper {
  overflow: hidden;
  border-radius: 13px;
}

.leaflet-popup-content {
  margin: 14px 20px;
}

.leaflet-control-attribution {
  font-size: 10px;
}

@media (min-width: 860px) {
  .playground-map-layout {
    grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.75fr);
  }

  .playground-map-panel {
    position: sticky;
    top: 18px;
  }

  .map-results-panel {
    max-height: min(68vh, 720px);
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .playground-map {
    height: 60vh;
    min-height: 420px;
    border-radius: 14px;
  }

  .map-fit-button {
    width: 100%;
    margin-left: 0;
  }

  .map-results-panel {
    padding: 14px;
  }

  .map-result-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .map-result-image,
  .map-result-placeholder {
    width: 104px;
    height: 100%;
    min-height: 150px;
  }

  .map-result-body {
    padding: 11px;
  }

  .map-result-body .amenity-list {
    display: none;
  }
}

/* =========================================================
   Playground Map v1.4 — compact filters
   ========================================================= */

.filter-details-compact {
  margin-bottom: 14px;
}

.filter-details-compact .filter-details-summary {
  min-height: 50px;
}

@media (min-width: 760px) {
  .filter-details-compact > .filter-details-summary {
    display: flex;
  }

  .filter-details-compact:not([open]) > .filter-details-body {
    display: none;
  }

  .filter-details-compact .filter-details-body {
    border-top: 1px solid var(--border);
  }
}

/* =========================================================
   Mobile contribution layer v1
   ========================================================= */

.place-contribution-card {
  border-color: color-mix(
    in srgb,
    var(--accent) 35%,
    var(--border)
  );
}

.place-contribution-card > p:not(.section-eyebrow) {
  color: var(--muted);
}

.place-contribution-actions {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.place-contribution-action {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: var(--surface);
}

.place-contribution-action:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.place-contribution-action strong {
  color: var(--accent);
  font-size: 0.92rem;
}

.place-contribution-action span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.place-contribution-note {
  margin-bottom: 0;
  font-size: 0.8rem;
}

.mobile-contribution-dock {
  display: none;
}

@media (max-width: 640px) {
  .place-detail-contribution-enabled {
    margin-bottom: 78px;
  }

  .mobile-contribution-dock {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(
      in srgb,
      var(--surface) 94%,
      transparent
    );
    box-shadow: 0 10px 34px rgba(23, 33, 24, 0.18);
    backdrop-filter: blur(12px);
  }

  .mobile-contribution-dock a {
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 8px 5px;
    color: var(--accent);
    text-align: center;
  }

  .mobile-contribution-dock a + a {
    border-left: 1px solid var(--border);
  }

  .mobile-contribution-dock a:hover {
    text-decoration: none;
    background: var(--surface-soft);
  }

  .mobile-contribution-label {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-contribution-dock small {
    color: var(--muted);
    font-size: 0.7rem;
  }
}

/* =========================================================
   Place Detail map v1
   ========================================================= */

.place-map-section {
  scroll-margin-top: 18px;
}

.place-map-description {
  max-width: 650px;
  margin: 5px 0 0;
  color: var(--muted);
}

.place-map-fit-button {
  align-self: end;
}

.place-detail-map-layout {
  display: grid;
  gap: 14px;
  align-items: start;
}

.place-detail-map-panel,
.place-map-location-list {
  min-width: 0;
}

.place-detail-map {
  width: 100%;
  height: 430px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
  z-index: 1;
}

.place-map-missing-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.place-map-location-list {
  display: grid;
  gap: 10px;
}

.place-map-location-card {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.place-map-location-card-current {
  border-color: color-mix(
    in srgb,
    var(--accent) 55%,
    var(--border)
  );
}

.place-map-location-card-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--published-bg);
}

.place-map-location-heading > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.place-map-location-heading h3 {
  margin: 9px 0 4px;
  font-size: 0.98rem;
  line-height: 1.3;
}

.place-map-location-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.place-map-amenities {
  margin: 10px 0 0;
}

.place-map-location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 13px;
  margin-top: 11px;
  font-size: 0.84rem;
  font-weight: 750;
}

@media (min-width: 980px) {
  .place-detail-map-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.72fr);
  }

  .place-map-location-list {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 2px;
  }
}

@media (max-width: 640px) {
  .place-detail-map {
    height: 58vh;
    min-height: 360px;
  }

  .place-map-fit-button {
    width: 100%;
  }

  .place-map-location-list {
    grid-template-columns: 1fr;
  }

  .place-map-amenities {
    display: none;
  }
}

/* Effective amenity provenance */
.amenity-chip--community {
  gap: 5px;
  border: 1px dashed currentColor;
}

.amenity-chip-provenance {
  font-size: 0.72em;
  font-weight: 600;
  opacity: 0.8;
}

