/* TASK-014 / Issue #276
   District page: full-map launcher instead of iframe, centered checklist.
   Loaded after service + visual-polish layers for an isolated rollback.
   Final CI marker: human-name UGC deep link verified. */
@import url('/assets/district-report-attention-p3.css?v=296p3');

.district-page .ph-map-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 150px;
  padding: 26px 30px;
  border: 1px solid rgba(33, 9, 0, 0.075);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(33, 9, 0, 0.045);
}

.district-page .ph-map-launch-copy {
  min-width: 0;
  max-width: 720px;
}

.district-page .ph-map-launch-kicker {
  margin: 0 0 7px;
  color: #008f70;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.district-page .ph-map-launch h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.district-page .ph-map-launch p:not(.ph-map-launch-kicker) {
  max-width: 650px;
  margin: 0;
  color: var(--ph-ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.district-page .ph-map-launch-cta {
  flex: 0 0 auto;
  min-width: 220px;
  min-height: 50px;
  border-radius: 14px;
  white-space: nowrap;
}

/* Keep the editorial checklist, but centre its readable column. */
.district-page .ph-nosvet {
  width: min(960px, 100%);
  max-width: 960px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 30px 34px 10px !important;
}

.district-page .ph-nosvet-list {
  max-width: none !important;
}

.district-page .ph-nosvet-list li {
  padding-right: 10px;
}

/* No embedded map remains, so the desktop grid can be balanced around content. */
@media (min-width: 1200px) {
  .district-page .ph-district-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-areas:
      "hero act"
      "up   tel"
      "map  map"
      "svet svet"
      "now  now";
    column-gap: 32px;
    row-gap: 18px;
  }

  .district-page .ph-district-grid.ph-no-upcoming {
    grid-template-areas:
      "hero act"
      "tel  tel"
      "map  map"
      "svet svet"
      "now  now";
  }

  .district-page .ph-area-map {
    height: auto !important;
    align-self: auto !important;
  }
}

@media (max-width: 760px) {
  .district-page .ph-map-launch {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    padding: 22px 20px;
    border-radius: 18px;
  }

  .district-page .ph-map-launch h2 {
    font-size: 24px;
  }

  .district-page .ph-map-launch-cta {
    width: 100%;
    min-width: 0;
  }

  .district-page .ph-nosvet {
    padding: 26px 18px 8px !important;
  }
}


/* TASK-022 / Issue #320: one calm district service path. */
.district-page .ph-map-launch {
  min-height: 0;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.district-page .ph-map-launch-kicker {
  margin-bottom: 5px;
  color: var(--ph-ink-mute);
  font-size: 10px;
  letter-spacing: .1em;
}

.district-page .ph-map-launch h2 {
  margin-bottom: 5px;
  font-size: clamp(20px, 2vw, 24px);
}

.district-page .ph-map-launch p:not(.ph-map-launch-kicker) {
  font-size: 14px;
  line-height: 1.5;
}

.district-page .ph-map-launch-cta {
  min-width: 210px;
  min-height: 48px;
  border: 1px solid #b8cbc3 !important;
  background: #eef4f1 !important;
  color: #0c3a2e !important;
  box-shadow: none !important;
}

.district-page .ph-map-launch-cta:hover {
  border-color: #91ada1 !important;
  background: #e5efea !important;
  transform: none;
}

.district-page .ph-footer .ph-disclaimer {
  max-width: 900px;
  column-count: 1;
  column-gap: 0;
  padding-bottom: 14px;
}

.district-page .ph-footer .ph-footer-meta {
  max-width: 900px;
  justify-content: flex-start;
  padding-top: 14px;
}

@media (min-width: 1200px) {
  .district-page .ph-district-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-areas:
      "hero hero"
      "act  act"
      "up   tel"
      "now  now"
      "map  map"
      "svet svet";
  }

  .district-page .ph-district-grid.ph-no-upcoming {
    grid-template-areas:
      "hero hero"
      "act  act"
      "tel  tel"
      "now  now"
      "map  map"
      "svet svet";
  }

  .district-page .ph-firstscreen {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    grid-template-areas:
      "search actions"
      "status actions";
    column-gap: 24px;
    row-gap: 0;
    align-items: start;
  }

  .district-page .ph-firstscreen .ph-search {
    grid-area: search;
  }

  .district-page .ph-firstscreen .ph-actions {
    grid-area: actions;
    margin-top: 0;
  }

  .district-page .ph-firstscreen .ph-today-status {
    grid-area: status;
  }
}

@media (max-width: 760px) {
  .district-page .ph-map-launch {
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
  }

  .district-page .ph-map-launch h2 {
    font-size: 21px;
  }

  .district-page .ph-map-launch-cta {
    min-width: 0;
  }
}


/* TASK-025 / Issue #326: honest municipality scope and active-now state. */
.district-page .ph-today-status.is-current {
  border-left: 3px solid #e2b83f;
  background: #fffaf0;
}

.district-page .ph-today-status.is-current strong {
  color: #493600;
}

.district-page .ph-up-item.is-current {
  background: #fff9e8;
  box-shadow: inset 3px 0 0 #e2b83f;
}

.district-page .ph-up-now {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 7px;
  border: 1px solid rgba(117, 82, 0, 0.18);
  border-radius: 999px;
  background: #ffd25e;
  color: #493600;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: 1px;
}

.district-page .ph-up-now[hidden] {
  display: none;
}

/* The help block keeps its origin-aware link, but not a second large CTA. */
.district-page .ph-noaddr .ph-report-inline[data-district-report-open][data-report-placement="help"] {
  position: static;
  display: inline-flex !important;
  width: auto !important;
  min-height: 0 !important;
  align-items: center;
  gap: 6px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0c6f58 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.45;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  box-shadow: none !important;
}

.district-page .ph-noaddr .ph-report-inline::before,
.district-page .ph-noaddr .ph-report-inline::after {
  content: none !important;
  display: none !important;
}

.district-page .ph-noaddr .ph-report-inline:hover {
  background: transparent !important;
  color: #084c3d !important;
  box-shadow: none !important;
}

.district-page .ph-noaddr .ph-report-inline:focus-visible {
  outline: 3px solid #0c3a2e;
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(255, 210, 94, 0.42) !important;
}

.district-page .ph-noaddr-actions {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .district-page .ph-up-now {
    margin-left: 5px;
  }
}

/* TASK-026 / Issue #326: explain that the list contains today + nearest dates. */
.district-page .ph-upcoming-scope-note {
  margin: -2px 0 14px;
  color: var(--ph-ink-mute);
  font-size: 13px;
  line-height: 1.5;
}
