/* pcs-scale-controller.css — Monitoring Scale Phase 2 UI */

/* ── Geographic context display (SCALE / REGION summary) ─────────────────── */
.pcs-geo-context-display {
  margin: 4px 0 6px;
  padding: 5px 8px;
  background: rgba(0, 200, 255, 0.06);
  border-left: 2px solid rgba(0, 200, 255, 0.35);
  border-radius: 2px;
}

.pcs-geo-context-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  margin: 0;
}

.pcs-geo-context-fields dt {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(0, 200, 255, 0.65);
  text-transform: uppercase;
  white-space: nowrap;
}

.pcs-geo-context-fields dd {
  font-size: 0.72rem;
  font-family: monospace;
  color: rgba(0, 230, 255, 0.9);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.geo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  color: rgba(180, 220, 255, 0.6);
  margin: 2px 0 4px;
  padding: 0;
}

.geo-breadcrumb-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: rgba(0, 200, 255, 0.7);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
  line-height: 1.4;
}

.geo-breadcrumb-btn:hover,
.geo-breadcrumb-btn:focus-visible {
  color: rgba(0, 230, 255, 1);
  outline: 1px solid rgba(0, 200, 255, 0.5);
  outline-offset: 1px;
}

.geo-breadcrumb-current {
  color: rgba(200, 240, 255, 0.9);
  font-weight: 600;
}

/* ── Region selector container ──────────────────────────────────────────── */
.geo-region-selector {
  margin: 4px 0 6px;
}

/* ── Continent picker ────────────────────────────────────────────────────── */
.continent-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.geo-continent-btn {
  padding: 3px 8px;
  font-size: 0.68rem;
  font-family: monospace;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(0, 180, 220, 0.08);
  border: 1px solid rgba(0, 180, 220, 0.3);
  color: rgba(0, 220, 255, 0.85);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.geo-continent-btn:hover,
.geo-continent-btn:focus-visible {
  background: rgba(0, 180, 220, 0.18);
  border-color: rgba(0, 220, 255, 0.6);
  color: rgba(0, 240, 255, 1);
  outline: none;
}

.geo-continent-btn:focus-visible {
  outline: 1px solid rgba(0, 200, 255, 0.7);
  outline-offset: 1px;
}

/* ── Search inputs (country + city) ─────────────────────────────────────── */
.geo-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 180, 220, 0.35);
  border-radius: 2px;
  color: rgba(200, 240, 255, 0.9);
  outline: none;
}

.geo-search-input::placeholder {
  color: rgba(150, 200, 230, 0.4);
}

.geo-search-input:focus {
  border-color: rgba(0, 220, 255, 0.6);
  background: rgba(0, 20, 40, 0.5);
}

/* ── Results list (shared by country + city) ────────────────────────────── */
.geo-results-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  max-height: 140px;
  overflow-y: auto;
  background: rgba(0, 10, 25, 0.92);
  border: 1px solid rgba(0, 180, 220, 0.3);
  border-radius: 2px;
}

.country-result-item,
.city-result-item {
  padding: 4px 8px;
  font-size: 0.7rem;
  font-family: monospace;
  color: rgba(180, 230, 255, 0.85);
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 180, 220, 0.1);
  line-height: 1.4;
}

.country-result-item:last-child,
.city-result-item:last-child {
  border-bottom: none;
}

.country-result-item:hover,
.city-result-item:hover,
.country-result-item:focus,
.city-result-item:focus {
  background: rgba(0, 180, 220, 0.15);
  color: rgba(0, 230, 255, 1);
  outline: none;
}

.country-result-item small,
.city-result-item small {
  display: block;
  font-size: 0.6rem;
  color: rgba(150, 200, 230, 0.5);
  margin-top: 1px;
}

.city-result-loading,
.city-result-empty {
  padding: 6px 8px;
  font-size: 0.68rem;
  font-family: monospace;
  color: rgba(150, 200, 230, 0.5);
  font-style: italic;
}

/* ── Geolocation button ─────────────────────────────────────────────────── */
.geo-locate-btn {
  margin-top: 4px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-family: monospace;
  background: rgba(0, 180, 220, 0.06);
  border: 1px solid rgba(0, 180, 220, 0.25);
  color: rgba(0, 200, 255, 0.7);
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.geo-locate-btn:hover {
  background: rgba(0, 180, 220, 0.14);
  color: rgba(0, 220, 255, 0.9);
}

/* ── Satellite picker ────────────────────────────────────────────────────── */
.satellite-picker-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(0, 200, 255, 0.7);
  text-transform: uppercase;
  margin: 0 0 3px;
}

.satellite-picker-note {
  font-size: 0.62rem;
  color: rgba(150, 200, 230, 0.55);
  margin: 0 0 6px;
}

.satellite-source-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 4px 0;
  border-top: 1px solid rgba(0, 180, 220, 0.12);
}

.satellite-source-label {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: monospace;
  color: rgba(0, 220, 255, 0.85);
}

.satellite-source-product {
  font-size: 0.62rem;
  color: rgba(180, 220, 240, 0.6);
}

.satellite-source-status {
  font-size: 0.6rem;
  font-family: monospace;
  color: rgba(255, 180, 60, 0.75);
  letter-spacing: 0.03em;
}

.satellite-picker-disclaimer {
  font-size: 0.58rem;
  color: rgba(150, 180, 200, 0.4);
  margin: 8px 0 0;
  line-height: 1.4;
  border-top: 1px solid rgba(0, 180, 220, 0.1);
  padding-top: 5px;
}

/* ── Back to Planet button ───────────────────────────────────────────────── */
.geo-back-btn {
  margin-top: 5px;
  padding: 3px 8px;
  font-size: 0.62rem;
  font-family: monospace;
  background: none;
  border: 1px solid rgba(0, 180, 220, 0.2);
  color: rgba(0, 180, 220, 0.55);
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.geo-back-btn:hover {
  background: rgba(0, 180, 220, 0.08);
  color: rgba(0, 200, 255, 0.8);
}

/* ── No-regional-data message ────────────────────────────────────────────── */
.geo-no-data-msg {
  font-size: 0.65rem;
  font-family: monospace;
  color: rgba(255, 160, 60, 0.7);
  margin: 4px 0 0;
  padding: 4px 6px;
  background: rgba(255, 160, 60, 0.06);
  border-left: 2px solid rgba(255, 160, 60, 0.3);
}

/* ── Responsive — mobile horizontal scroll for scale buttons ────────────── */
@media (max-width: 600px) {
  .pcs-scale-strip .framework-control-grid.compact {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .pcs-scale-strip .framework-control-grid.compact::-webkit-scrollbar {
    display: none;
  }

  .continent-picker {
    gap: 3px;
  }

  .geo-continent-btn {
    font-size: 0.64rem;
    padding: 3px 6px;
  }
}
