/* Scoped Twin² city data drawer. Keeps the basemap visible behind it. */
.fatih-map-page .map-command-bar { z-index: 20; }
.map-quick-actions button.city-open { min-height: 0; }
.city-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 38px;
  padding: .55rem .78rem;
  border: 1px solid rgba(112, 224, 195, .38);
  color: #e9fff6;
  background: rgba(5, 50, 44, .92);
  font: 700 .62rem/1.2 var(--mono, monospace);
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(1, 17, 15, .18);
  backdrop-filter: blur(12px);
}
.city-open:hover,
.city-open[aria-expanded="true"] {
  border-color: rgba(123, 244, 210, .72);
  color: #06231f;
  background: #79e9cd;
}
.city-open:focus-visible,
.city-panel button:focus-visible,
.city-panel a:focus-visible {
  outline: 2px solid #f1d87b;
  outline-offset: 3px;
}

.city-panel {
  position: fixed;
  z-index: 35;
  top: 84px;
  right: clamp(1rem, 2.2vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: .72rem;
  width: min(460px, calc(100vw - 2rem));
  max-height: calc(100dvh - 100px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  border: 1px solid rgba(163, 231, 204, .25);
  color: #e8f6ef;
  background: rgba(4, 31, 29, .97);
  box-shadow: 0 28px 86px rgba(0, 12, 10, .42);
  backdrop-filter: blur(20px) saturate(125%);
  scrollbar-color: rgba(100, 186, 157, .52) rgba(2, 22, 20, .5);
  scrollbar-width: thin;
}
.city-panel[hidden],
.city-panel.is-closed {
  display: none;
}
.city-panel.is-open {
  animation: city-panel-in .22s ease-out both;
}
@keyframes city-panel-in {
  from { opacity: 0; transform: translate3d(12px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.city-panel-head {
  position: sticky;
  z-index: 2;
  top: -1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  margin: -1rem -1rem 0;
  padding: 1rem 1rem .8rem;
  border-bottom: 1px solid rgba(193, 231, 214, .15);
  background: rgba(4, 31, 29, .97);
  backdrop-filter: blur(18px);
}
.city-panel-head p,
.city-panel-kicker {
  margin: 0;
  color: #73dfbf;
  font: 500 .54rem/1.4 var(--mono, monospace);
  letter-spacing: .12em;
}
.city-panel-head h2 {
  margin: .33rem 0 0;
  color: #effbf5;
  font: 750 1.18rem/1.15 var(--sans, system-ui, sans-serif);
  letter-spacing: -.045em;
}
.city-panel-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(223, 249, 237, .18);
  color: #dff7eb;
  background: rgba(9, 53, 47, .8);
  font-size: 1.35rem;
  cursor: pointer;
}
.city-panel-close:hover {
  color: #06231f;
  background: #78e5c5;
}
.city-panel-intro,
.city-note,
.city-panel > p[data-city-summary] {
  margin: 0;
  color: rgba(228, 245, 236, .68);
  font-size: .68rem;
  line-height: 1.55;
}
.city-note a { color:#9de4c4; text-underline-offset:3px; }
.city-panel > p[data-city-summary] {
  padding: .68rem .75rem;
  border-left: 2px solid #59c7a4;
  color: #d9f1e5;
  background: rgba(22, 91, 72, .24);
}
.city-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
}
.city-panel button[data-city-refresh] {
  min-height: 36px;
  padding: .5rem .68rem;
  border: 1px solid rgba(112, 224, 195, .34);
  color: #dff9ed;
  background: #0b5145;
  font: 600 .58rem/1.25 var(--mono, monospace);
  cursor: pointer;
}
.city-panel button[data-city-refresh]:hover:not(:disabled) {
  border-color: #8df0d2;
  color: #05231e;
  background: #79e9cd;
}
.city-panel button[data-city-refresh]:disabled {
  color: rgba(226, 243, 234, .53);
  background: rgba(15, 54, 48, .72);
  cursor: not-allowed;
}
.city-refresh-caption {
  margin: 0;
  color: rgba(221, 241, 231, .49);
  font: .51rem/1.4 var(--mono, monospace);
}
.city-sources-heading,
.city-filters-heading,
.city-list-heading,
.city-forecast-title {
  margin: 0 0 .4rem;
  color: #9de4c4;
  font: 650 .72rem/1.35 var(--sans, system-ui, sans-serif);
  letter-spacing: -.01em;
}
.city-source-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .45rem;
}
.city-source-row {
  min-width: 0;
  padding: .65rem .72rem;
  border: 1px solid rgba(197, 233, 215, .13);
  background: rgba(9, 46, 41, .68);
}
.city-source-row.is-stale {
  border-color: rgba(241, 199, 106, .55);
  background: rgba(80, 59, 23, .23);
}
.city-source-row.is-error,
.city-source-row.is-unavailable,
.city-source-row.is-disabled {
  border-color: rgba(235, 134, 118, .34);
}
.city-source-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
}
.city-source-name {
  color: #effbf5;
  font-size: .68rem;
  font-weight: 750;
}
.city-source-status {
  flex: 0 0 auto;
  color: #9ee7c9;
  font: 500 .48rem/1.4 var(--mono, monospace);
  text-align: right;
}
.city-source-row.is-stale .city-source-status,
.city-stale-warning {
  color: #f1cf78;
}
.city-source-row.is-error .city-source-status,
.city-source-row.is-unavailable .city-source-status,
.city-source-row.is-disabled .city-source-status {
  color: #f19a8b;
}
.city-source-mode,
.city-source-provider,
.city-source-time,
.city-source-fetch-time,
.city-record-fetch-time,
.city-forecast-fetch-time,
.city-source-note,
.city-source-scope,
.city-source-attribution,
.city-model-disclaimer,
.city-source-credit {
  margin: .3rem 0 0;
  color: rgba(225, 241, 231, .61);
  font-size: .56rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.city-source-mode {
  color: #9de0c2;
  font: 500 .51rem/1.4 var(--mono, monospace);
  letter-spacing: .04em;
}
.city-source-note {
  color: rgba(227, 243, 233, .78);
}
.city-stale-warning {
  margin: .38rem 0 0;
  font: 650 .52rem/1.45 var(--mono, monospace);
}
.city-panel a.city-attribution-link,
.city-panel .city-source-credit a,
.city-panel .city-forecast-credit a {
  font-size: .56rem;
  color: #9be7c5;
  text-decoration: underline;
  text-decoration-color: rgba(155, 231, 197, .48);
  text-underline-offset: 2px;
}
.city-panel a.city-attribution-link:hover,
.city-panel .city-source-credit a:hover,
.city-panel .city-forecast-credit a:hover {
  color: #e8fbd5;
}
.city-source-credit,
.city-forecast-credit {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  align-items: center;
  color: rgba(225, 241, 231, .58);
}
.city-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin-top: .45rem;
}
.city-category-filters {
  padding-top: .48rem;
  border-top: 1px solid rgba(193, 231, 214, .13);
}
.city-filter-button {
  min-height: 30px;
  padding: .38rem .55rem;
  border: 1px solid rgba(192, 227, 210, .2);
  border-radius: 999px;
  color: rgba(230, 245, 237, .74);
  background: rgba(8, 48, 43, .67);
  font: 500 .52rem/1.3 var(--mono, monospace);
  cursor: pointer;
}
.city-filter-button:hover:not(:disabled) {
  border-color: rgba(143, 231, 198, .62);
  color: #edfff5;
}
.city-filter-button[aria-pressed="true"] {
  border-color: rgba(114, 228, 191, .72);
  color: #06221e;
  background: #7bdcba;
}
.city-filter-button:disabled {
  opacity: .44;
  cursor: not-allowed;
}
.city-feature-list {
  display: grid;
  gap: .48rem;
}
.city-feature-card,
.city-detail-card {
  min-width: 0;
  padding: .68rem .75rem;
  border: 1px solid rgba(197, 233, 215, .16);
  background: rgba(8, 43, 39, .75);
}
.city-feature-afad { border-left: 2px solid #ec7069; }
.city-feature-ispark { border-left: 2px solid #e8be55; }
.city-feature-osm { border-left: 2px solid #57d49a; }
.city-record-select {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: #effbf5;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.city-record-select:hover .city-record-title {
  color: #96ebc7;
}
.city-record-title {
  display: block;
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.city-record-mode,
.city-record-provider,
.city-record-time,
.city-record-fetch-time,
.city-record-magnitude,
.city-record-capacity,
.city-record-park-id,
.city-record-description,
.city-record-attribution,
.city-list-empty,
.city-list-limit,
.city-detail-note,
.city-detail-capacity,
.city-detail-provider-time,
.city-detail-description {
  margin: .34rem 0 0;
  color: rgba(222, 240, 230, .68);
  font-size: .57rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.city-record-mode {
  color: #a5e5c6;
  font: 500 .5rem/1.4 var(--mono, monospace);
}
.city-record-provider {
  color: #e1f0e8;
}
.city-record-capacity { color: #f2d484; }
.city-record-description { color: rgba(220, 240, 228, .75); }
.city-list-empty,
.city-list-limit,
.city-forecast-empty {
  padding: .8rem;
  border: 1px dashed rgba(193, 231, 214, .18);
  color: rgba(226, 242, 233, .68);
  background: rgba(8, 41, 37, .45);
}
.city-detail-card {
  border-color: rgba(232, 190, 85, .42);
  background: rgba(65, 51, 23, .25);
}
.city-detail-card.is-error { border-color: rgba(236, 128, 111, .42); }
.city-detail-kicker {
  margin: 0;
  color: #f0cf7c;
  font: 500 .49rem/1.35 var(--mono, monospace);
  letter-spacing: .09em;
}
.city-detail-title {
  margin: .3rem 0 0;
  color: #fff8e8;
  font-size: .82rem;
}
.city-detail-capacity { color: #f4d783; }
.city-detail-provider-time { color: rgba(255, 239, 200, .76); }
.city-forecast-disclaimer,
.city-forecast-source-time,
.city-forecast-fetch-time,
.city-forecast-attribution {
  margin: .25rem 0 0;
  color: rgba(225, 241, 231, .61);
  font-size: .56rem;
  line-height: 1.45;
}
.city-forecast-disclaimer { color: #c5e3d4; }
.city-forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  margin-top: .5rem;
}
.city-forecast-day {
  min-width: 0;
  padding: .58rem .62rem;
  border: 1px solid rgba(193, 231, 214, .14);
  background: rgba(9, 49, 43, .72);
}
.city-forecast-date {
  margin: 0;
  color: #9fe6c5;
  font: 600 .53rem/1.35 var(--mono, monospace);
}
.city-forecast-temperature {
  margin: .32rem 0 0;
  color: #effbf5;
  font: 750 .86rem/1.2 var(--sans, system-ui, sans-serif);
}
.city-forecast-rain,
.city-forecast-uv {
  margin: .25rem 0 0;
  color: rgba(225, 241, 231, .66);
  font-size: .53rem;
}
.city-forecast-credit {
  margin: .48rem 0 0;
  font-size: .55rem;
}

@media (max-width: 640px) {
  .city-panel {
    top: auto;
    right: .5rem;
    bottom: .5rem;
    left: .5rem;
    width: auto;
    max-height: min(76svh, 720px);
    padding: .82rem;
  }
  .city-panel-head {
    top: -.82rem;
    margin: -.82rem -.82rem 0;
    padding: .82rem .82rem .68rem;
  }
  .city-forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-open { min-height: 36px; padding: .48rem .58rem; }
}
@media (max-width: 360px) {
  .city-panel { max-height: 79svh; gap: .55rem; }
  .city-forecast-grid { grid-template-columns: 1fr 1fr; gap: .3rem; }
  .city-forecast-day { padding: .48rem; }
  .city-filter-button { padding-inline: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .city-panel.is-open { animation: none; }
  .city-open,
  .city-panel button,
  .city-panel a { scroll-behavior: auto; transition: none; }
}
