/* City Problems Page - Dark Forest Green Environmental Theme */

.explore-view {
  min-height: 100dvh;
  color-scheme: dark;
  background: radial-gradient(ellipse at top left, #103817, #03140b 55%), #03140b;
  color: #f1ffe9;
}

.explore-page {
  width: min(calc(100% - clamp(1rem, 3vw, 2.5rem)), 1360px);
  max-width: 1360px;
  margin-inline: auto;
  padding-block: 1rem 2.2rem;
  color: #f1ffe9;
}

.explore-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1rem, 2.5vw, 1.8rem);
  border: 1px solid #366d42;
  border-radius: 1.15rem;
  color: #f5ffef;
  background:
    linear-gradient(90deg, #092819 28%, #092819e6 58%, #09281999),
    #092819 url('../assets/images/account-park.jpg') center 48% / cover no-repeat;
  box-shadow: inset 0 0 1.5rem #56d62812, 0 8px 24px #00120860;
}
.explore-intro h1 {
  margin: 0 0 .3rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-style: normal;
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #f1ffe9;
}
.explore-intro p {
  margin: 0;
  color: #bed2c0;
  font-size: clamp(.92rem, 1.2vw, 1.05rem);
}
.explore-report {
  min-height: 44px;
  padding: .55rem 1.2rem;
  font-size: .94rem;
}

.explore-feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .85rem;
  padding-bottom: .4rem;
}
.explore-feed-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: #c6ff71;
  font-weight: 800;
  letter-spacing: -.02em;
}
.explore-feed-heading span {
  color: #8fa896;
  font-size: .88rem;
  margin-inline-start: .4rem;
}
.explore-location-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  align-items: center;
}

.explore-filter-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .65rem;
  border: 1px solid #49932d;
  border-radius: 999px;
  background: #082619;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.explore-filter-pill:hover {
  border-color: #aef653;
  background: #0c3321;
}
.explore-filter-pill:focus-within,
.explore-filter-pill:has(.ebfk-select-trigger.is-open) {
  border-color: #aef653;
  outline: none;
  background: #0c3321;
  box-shadow: 0 0 0 2px rgba(174, 246, 83, 0.28), 0 4px 14px rgba(0, 0, 0, 0.35);
}
.explore-filter-pill label {
  color: #bed2c0;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.explore-filter-pill select {
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.explore-filter-pill:has(.ebfk-custom-select) {
  padding: 0;
}
.explore-filter-pill:has(.ebfk-custom-select) > label {
  display: none;
}
.explore-filter-pill .ebfk-custom-select {
  min-width: 140px;
}
.explore-filter-pill .ebfk-select-trigger {
  min-height: 38px;
  padding: .35rem .85rem;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: inherit;
  font-size: .88rem;
  font-weight: 600;
}
.explore-filter-pill .ebfk-select-trigger:hover,
.explore-filter-pill .ebfk-select-trigger.is-open {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  outline: none;
}
.explore-filter-pill .ebfk-select-menu {
  left: auto;
  right: 0;
  min-width: 175px;
  max-width: min(320px, 90vw);
  border-radius: .85rem;
  box-shadow: 0 14px 36px rgba(0, 12, 6, 0.95), 0 4px 16px rgba(0, 0, 0, 0.6);
}
.explore-filter-pill option {
  background: #082619;
  color: #f1ffe9;
}

.explore-post[hidden] { display: none; }
.explore-feed {
  display: grid;
  gap: .85rem;
}

.explore-post {
  min-width: 0;
  border: 1px solid #285436;
  border-left: 3px solid #78d519;
  border-radius: .95rem;
  background: radial-gradient(ellipse at top left, #0d2d1d, #061e13 65%, #04170e);
  box-shadow: 0 4px 18px #000c0680, inset 0 0 .8rem #56d6280d;
  transition: border-color .2s, box-shadow .2s;
}
.explore-post:hover {
  border-color: #428253;
  border-left-color: #aef653;
  box-shadow: 0 6px 22px #000c06aa, inset 0 0 1rem #56d62815;
}
.explore-post:target {
  scroll-margin-top: 1rem;
  border-color: #aef653;
  border-left-color: #d1f586;
  box-shadow: 0 0 1.2rem #aef65330, inset 0 0 .8rem #56d62820;
}
.explore-post-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(210px, 26%, 320px);
}
.post-copy { min-width: 0; }
.post-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  padding: .65rem .95rem 0;
}
.post-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #143823;
  color: #aef653;
  border: 1px solid #366d42;
  font-size: .85rem;
}
.post-author { min-width: 0; }
.post-author strong { font-size: .92rem; color: #f1ffe9; }
.post-date { margin-inline-start: .45rem; color: #8fa896; font-size: .8rem; }
.post-labels { display: flex; justify-content: end; align-items: center; gap: .35rem; }
.post-category {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .55rem;
  border-radius: 2rem;
  background: #113824;
  color: #c6ff71;
  border: 1px solid #2d6b43;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.post-category i[data-icon] { width: 1.1em; height: 1.1em; }
.post-severity {
  padding: .22rem .55rem;
  border-radius: 2rem;
  font-size: .82rem;
  font-weight: 750;
  white-space: nowrap;
}
.severity-critical { color: #ff9d99; background: #4a1514; border: 1px solid #8e2b27; }
.severity-high { color: #ffc48c; background: #442006; border: 1px solid #944813; }
.severity-medium { color: #ffe699; background: #3d2f06; border: 1px solid #8c6e14; }

.post-body { padding: .45rem .95rem .55rem; }
.post-body h3 {
  margin: 0 0 .25rem;
  color: #f1ffe9;
  font-size: 1.1rem;
  line-height: 1.25;
}
.post-body p {
  margin: 0;
  color: #bed2c0;
  line-height: 1.42;
  font-size: .95rem;
}
.post-location {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  max-width: 100%;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: #c6ff71;
  font-size: .86rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.post-location:hover { text-decoration: underline; color: #d8ff77; }
.post-location[hidden] { display: none; }
.post-location:focus-visible { outline: 2px solid #bdff42; outline-offset: 2px; border-radius: .2rem; }

.post-gallery {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  min-width: 0;
  margin: .55rem;
  padding: .3rem;
  border: 1px solid #285436;
  border-radius: .75rem;
  background: #061910;
}
.post-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: .55rem;
}
.post-slides::-webkit-scrollbar { display: none; }
.photo-open, .photo-viewer .post-slides img {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.photo-open {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.photo-open:focus-visible { outline-offset: -4px; outline: 2px solid #aef653; }
.photo-open img {
  display: block;
  width: 100%;
  height: clamp(95px, 12vw, 130px);
  object-fit: cover;
  object-position: center 70%;
  border-radius: .55rem;
}
.post-gallery figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .3rem;
  padding: .3rem .2rem 0;
  color: #bed2c0;
  font-size: .78rem;
}
.gallery-controls { display: flex; align-items: center; gap: .35rem; }
.gallery-count { min-width: 3em; text-align: center; font-variant-numeric: tabular-nums; color: #d7e9d9; }
.gallery-controls button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid #366d42;
  border-radius: .4rem;
  background: #0c2b1a;
  color: #aef653;
  cursor: pointer;
  transition: all .2s;
}
.gallery-controls button:hover:not([aria-disabled="true"]) {
  background: #174729;
  border-color: #aef653;
  color: #fff;
}
.gallery-controls button[aria-disabled="true"] { opacity: .35; cursor: default; }

.photo-viewer {
  width: min(calc(100% - 1.25rem), 900px);
  padding: 1.1rem;
  border: 1px solid #49932d;
  border-radius: 1rem;
  background: radial-gradient(ellipse at top, #0d2d1c, #04180e 80%);
  color: #eff9ef;
  color-scheme: dark;
  box-shadow: 0 16px 40px #00120895;
}
.photo-viewer h2 { margin: 0 2.4rem .6rem 0; font-size: 1.1rem; color: #c6ff71; }
.photo-viewer .close { color: #eff9ef; }
.photo-viewer .close:hover { color: #aef653; }
.photo-viewer-gallery { margin: 0; }
.photo-viewer .post-slides { background: #05140b; border-radius: .65rem; border: 1px solid #234832; }
.photo-viewer .post-slides img { display: block; height: min(62dvh, 550px); object-fit: contain; }
.photo-viewer .gallery-controls { justify-content: center; margin-top: .65rem; }
.photo-viewer .gallery-controls button { width: 40px; height: 36px; border-radius: .5rem; }

.post-feedback {
  padding: .5rem .95rem;
  border-top: 1px solid #1a422a;
  background: #06191060;
  border-radius: 0 0 .95rem .95rem;
}
.post-reactions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.post-reactions button {
  min-height: 32px;
  padding: .25rem .68rem;
  border: 1px solid #285436;
  border-radius: .5rem;
  background: #092315;
  color: #bed2c0;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.post-reactions button:hover {
  border-color: #6eab71;
  background: #123820;
  color: #f1ffe9;
}
.post-reactions button[aria-pressed="true"] {
  border-color: #aef653;
  background: #174826;
  color: #c6ff71;
  box-shadow: 0 0 .6rem #aef65330;
}
.share-post { margin-inline-start: auto; }
.share-post-link {
  width: 100%;
  margin-top: .45rem;
  padding: .45rem .65rem;
  border: 1px solid #366d42;
  border-radius: .48rem;
  color: #f1ffe9;
  background: #082619;
  font-size: .85rem;
}
.feedback-status, .feed-note { color: #8fa896; font-size: .83rem; }
.feedback-status { margin: .4rem 0 0; }
.feedback-status:empty { display: none; }
.feed-note { margin-top: .85rem; text-align: center; }
#explore-location-empty { color: #bed2c0; font-size: .95rem; margin-top: 1rem; text-align: center; }

.explore-map {
  width: min(calc(100% - 1.25rem), 720px);
  padding: 0;
  border: 1px solid #49932d;
  border-radius: 1rem;
  background: radial-gradient(ellipse at top, #0b2d1c, #04180e 75%);
  color: #f1ffe9;
  color-scheme: dark;
  box-shadow: 0 16px 40px #00120895;
}
.explore-map-heading { padding: 1.1rem 3rem .85rem 1.2rem; }
.explore-map-heading h2 { margin: 0 0 .25rem; color: #c6ff71; font-size: 1.2rem; }
.explore-map-heading p { margin: 0; color: #bed2c0; font-size: .92rem; }
#explore-map-frame { display: block; width: 100%; height: clamp(220px, 48dvh, 400px); border: 0; border-block: 1px solid #285436; background: #061910; }
.explore-map-actions { display: flex; justify-content: flex-end; padding: .85rem 1.2rem; }
.explore-map-actions .pill { font-size: .9rem; }
.explore-map .close { color: #f1ffe9; }
.explore-map .close:hover { color: #aef653; }

@media (prefers-reduced-motion: no-preference) {
  .post-slides { scroll-behavior: smooth; }
}
@media (max-width: 690px) {
  .explore-post-media { grid-template-columns: minmax(0, 1fr); }
  .post-gallery { grid-column: auto; grid-row: auto; margin-top: 0; }
  .post-reactions button { min-height: 36px; }
  .photo-open img { height: clamp(155px, 44vw, 220px); }
  .share-post { margin-inline-start: 0; }
}
@media (max-width: 480px) {
  .post-header { grid-template-columns: auto minmax(0, 1fr); }
  .post-labels { grid-column: 1 / -1; justify-content: flex-start; margin-top: .2rem; }
  .explore-feed-heading { flex-direction: column; align-items: flex-start; }
  .explore-location-filters { width: 100%; gap: .5rem; }
  .explore-filter-pill { flex: 1 1 calc(50% - .3rem); min-width: 0; }
  .explore-filter-pill .ebfk-custom-select { width: 100%; min-width: 0; }
  .explore-filter-pill .ebfk-select-trigger { padding: .35rem .6rem; }
  .explore-filter-pill select { width: 100%; }
}
.explore-feed[hidden] { display: none; }
.severity-low, .severity-unrated { color: #315544; background: #e2eee4; }
.live-report-card { display: grid; gap: .7rem 1rem; align-items: start; padding: .85rem 1rem; }
.live-report-copy { display: grid; gap: .35rem; min-width: 0; overflow-wrap: anywhere; }
.live-report-header { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; min-width: 0; }
.live-report-menu { position: relative; z-index: 5; flex: none; }
.live-report-menu > summary { display: grid; place-items: center; width: 30px; height: 30px; list-style: none; border: 1px solid #1a4228; border-radius: 50%; background: #082113; color: #8fa896; cursor: pointer; }
.live-report-menu > summary:hover, .live-report-menu[open] > summary { border-color: #aef653; background: #113824; color: #aef653; box-shadow: 0 0 10px #aef65325; }
.live-report-menu > summary::-webkit-details-marker { display: none; }
.live-report-menu > div { position: absolute; z-index: 20; inset: calc(100% + .3rem) 0 auto auto; width: max-content; padding: .3rem; border: 1px solid #428253; border-radius: .5rem; background: #0d2d1d; box-shadow: 0 8px 24px rgba(0,0,0,0.55); }
.live-report-menu button { display: flex; align-items: center; gap: .45rem; width: 100%; border: 0; border-radius: .3rem; padding: .45rem .65rem; background: transparent; color: inherit; text-align: start; cursor: pointer; font-size: .88rem; }
.live-report-menu button i { width: 1.05em; height: 1.05em; }
.live-report-menu button:hover, .live-report-menu button:focus-visible { background: #183d28; }
.live-report-menu button:last-child { color: #ffb7ae; }
.live-card-status { grid-column: 1 / -1; margin: -.25rem 0 0; font-size: .83rem; color: #a3c9a8; }
.live-card-status:empty { display: none; }
.live-report-editor { width: min(92vw,32rem); padding: 1.2rem; color: #f1ffe9; background: #0d2d1d; border: 1px solid #428253; border-radius: .9rem; }
.live-report-editor::backdrop { background: #0009; }
.live-report-editor form, .live-report-editor label { display: grid; gap: .55rem; }
.live-report-editor h2, .live-report-editor p { margin: 0; }
.live-report-editor input, .live-report-editor textarea { width: 100%; padding: .5rem; color: inherit; background: #071a11; border: 1px solid #428253; border-radius: .4rem; }
.live-report-author { display: flex; align-items: center; gap: .6rem; min-width: 0; overflow-wrap: anywhere; color: #f1ffe9; font-size: .95rem; }
.live-report-author .post-avatar { position: relative; flex: none; width: 2.35rem; height: 2.35rem; overflow: hidden; }
.live-report-author .post-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-report-author-info { display: grid; justify-items: start; min-width: 0; }
.live-report-location { max-width: 100%; padding: 0; border: 0; background: transparent; text-align: start; cursor: pointer; }
.live-report-location:hover { color: #c6ff71; text-decoration: underline; }
.live-report-location[hidden] { display: none; }
.live-report-tags, .live-report-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.live-report-actions { grid-column: 1 / -1; border-top: 1px solid #285436; padding-top: .65rem; }
.live-report-media { position: relative; display: grid; align-content: start; gap: .45rem; min-width: 0; }
.live-report-media img, .live-report-media video {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: .55rem;
  background: #071a11;
}
.live-like { display: inline-flex; width: fit-content; color: var(--text-dark-surface); font-size: .85rem; }
.live-like[hidden] { display: none; }
.live-like-heart {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 36px;
  padding: .35rem .85rem;
  border: 1px solid #194227;
  background: #071c10;
  color: #bed2c0;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.live-like-heart:hover {
  border-color: #357248;
  background: #0e2a1b;
  color: #f1ffe9;
}
.live-like-heart[aria-pressed="true"] {
  border-color: #7ee843;
  background: #11361e;
  color: #aef653;
  box-shadow: 0 0 .65rem #aef65325;
}
.live-like-heart i {
  width: 1.15em;
  height: 1.15em;
}
.live-like-heart[aria-pressed="true"] svg {
  fill: currentColor;
}
.live-like-heart .engage-count {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.live-report-media .photo-open img { height: clamp(8rem, 22vw, 11.25rem); object-position: center; }
.live-photo-slider { min-width: 0; }
.live-photo-slider .gallery-controls { justify-content: center; padding-top: .35rem; }
.live-photo-slider .gallery-controls button { width: 2.5rem; height: 2.5rem; }
@media (min-width: 760px) {
  .live-report-card:has(.live-report-media) { grid-template-columns: minmax(0,1fr) clamp(220px,29%,340px); }
}
#explore-report-status:empty { display: none; }
#explore-report-status { margin: .35rem 0 0; color: #c6ff71; }
