/* 行政區選擇沿用既有松山地圖的淡綠與暖白配色。 */
.district-controls {
  display: flex;
  align-items: end;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin: 20px 0 8px;
  padding: 16px 18px;
  border: 1px solid #dce5d9;
  border-radius: 16px;
  background: #f6f8f2;
}
.district-controls label { display: grid; gap: 7px; color: #294f44; font-size: 14px; font-weight: 700; }
.district-control-row { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 16px; width: 100%; }
#district-select {
  min-width: 200px;
  min-height: 46px;
  padding: 10px 38px 10px 13px;
  border: 1px solid #b6c8bb;
  border-radius: 10px;
  background-color: #fffef9;
  color: #294f44;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
#back-songshan, .district-retry {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #9bb4a4;
  border-radius: 10px;
  background: #fffef9;
  color: #294f44;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
#back-songshan:hover:not(:disabled), .district-retry:hover { background: #eaf1e7; }
#back-songshan:disabled { opacity: .56; cursor: default; }
#district-select:focus-visible, #back-songshan:focus-visible, .district-retry:focus-visible { outline: 3px solid #b58849; outline-offset: 3px; }
#district-status { min-height: 24px; margin: 8px 2px 14px; color: #53675a; font-size: 14px; line-height: 1.65; }
.district-controls #district-status { flex-basis: 100%; width: 100%; margin: 0; }
#district-status[data-state="loading"] { color: #365e50; }
#district-status[data-state="error"] { color: #82531f; }
#district-status .district-retry { margin-left: 5px; }
#coverage-note { color: #53675a; line-height: 1.8; overflow-wrap: anywhere; }
#map-area-title { margin: 20px 0 8px; color: #294f44; }
.district-source-status { margin: 7px 0; color: #53675a; overflow-wrap: anywhere; }
.district-pending { color: #795f34; }
.district-conditional { border-color: #c6b18c; background: #f7efdc; color: #795f34; }
.district-official-link { display: inline-block; margin-top: 6px; color: #365e50; text-underline-offset: 3px; }
.selection .hint { overflow-wrap: anywhere; }
#selection .row > .hint,
#selection .row > .admission-result-links,
#selection .row > .district-official-link { grid-column: 1 / -1; min-width: 0; max-width: 100%; }
#selection .row > .value { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .district-controls { align-items: end; gap: 10px; padding: 14px; border-radius: 13px; }
  .district-controls label { flex: 1 1 150px; }
  .district-control-row { gap: 10px; }
  #district-select { min-width: 0; width: 100%; }
  #back-songshan { flex: 0 0 auto; padding-inline: 12px; }
  #district-status .district-retry { margin: 8px 0 0; display: block; }
}
