/* Cielo local y ubicación. Clases propias para evitar afectar a la escena. */
.solar-location {
  min-width: 0;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101a2a;
  margin: 0 0 20px;
}
.location-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.location-heading > div {
  min-width: 0;
}
.location-heading p {
  color: #becddd;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  margin: 6px 0 0;
}
.location-city {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  max-width: 100%;
}
.solar-location input,
.solar-location select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #354861;
  border-radius: 7px;
  background: #0c1421;
  color: #e5edf8;
  padding: 9px 10px;
  font: inherit;
}
.solar-location input:focus-visible,
.solar-location select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.location-details {
  margin-top: 11px;
}
.location-details summary {
  color: #9bb1cc;
  font-size: 11px;
  cursor: pointer;
  width: fit-content;
}
.location-form {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 1.4fr auto;
  gap: 13px;
  align-items: end;
}
.location-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  min-width: 0;
}
.location-form button {
  padding: 10px 14px;
  background: #1a3443;
  color: #b9e3e3;
  border: 1px solid #376070;
  border-radius: 8px;
  font-size: 12px;
  min-height: 37px;
}
.location-help,
.location-error {
  grid-column: 1 / -1;
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}
.location-help {
  color: #8398af;
}
.location-error {
  color: #ffb3a9;
}
.sky-eclipse {
  color: #f1c6aa;
  font-size: 11px;
  line-height: 1.6;
  margin: 12px 0 0;
  grid-column: 1 / -1;
}
.solar-sky {
  min-width: 0;
}
.sky-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 12px 0 22px;
}
.sky-kicker {
  color: var(--gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.18em;
}
.sky-heading h2 {
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 450;
  letter-spacing: -0.035em;
  margin: 9px 0 6px;
}
.sky-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.sky-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
}
.sky-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.sky-actions input {
  accent-color: var(--blue);
}
.sky-actions button {
  border: 1px solid #344f6c;
  border-radius: 9px;
  background: #142239;
  padding: 11px 16px;
  font-size: 12px;
}
.sky-actions button[aria-pressed='true'] {
  background: #1a303c;
  color: #a1dfd0;
  border-color: #335a59;
}
.sky-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}
.sky-panorama-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1320;
}
.sky-panorama-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  font-size: 11px;
  color: var(--muted);
}
.sky-panorama-meta > :first-child {
  color: #bdd8e5;
}
.sky-panorama {
  display: block;
  width: 100%;
  height: clamp(320px, 44vh, 510px);
  flex: 1;
  min-height: 320px;
  outline-offset: -4px;
  touch-action: pan-y;
  cursor: grab;
}
.sky-panorama:active {
  cursor: grabbing;
}
.sky-panorama:focus-visible {
  outline: 2px solid var(--blue);
}
.sky-panorama-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  color: #7e90a8;
  font-size: 10px;
  line-height: 1.5;
}
.sky-moon-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 23%, #19253b 0%, #0e1623 60%);
}
.sky-visibility {
  font-size: 11px;
  color: #a8b7ca;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sky-visibility::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8899b1;
}
.sky-visibility[data-visible='true'] {
  color: var(--green);
}
.sky-visibility[data-visible='true']::before {
  background: var(--green);
  box-shadow: 0 0 8px #92ddbd33;
}
.sky-moon-picture {
  height: 158px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}
.sky-moon-picture canvas {
  width: 160px !important;
  height: 160px !important;
}
.sky-moon-caption {
  text-align: center;
  font-size: 10px;
  color: #7f90a6;
  margin: -2px 0 21px;
}
.sky-moon-panel h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}
.sky-readings {
  display: grid;
  gap: 12px;
}
.sky-readings > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sky-readings span {
  font-size: 11px;
  color: var(--muted);
}
.sky-readings strong {
  font-size: 17px;
  font-weight: 450;
  color: #edf4ff;
  font-variant-numeric: tabular-nums;
}
.sky-instruction {
  font-size: 12px;
  color: #bac8d9;
  line-height: 1.6;
  margin: 19px 0 8px;
}
.sky-small {
  font-size: 10px;
  color: #8497ae;
  line-height: 1.65;
  margin: 0;
}
.sky-events-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin: 25px 0 12px;
}
.sky-events-heading h3 {
  font-size: 14px;
  font-weight: 450;
  margin: 0;
}
.sky-events-heading > span {
  color: var(--muted);
  font-size: 10px;
}
.sky-events {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sky-event {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 9px;
  padding: 17px 20px;
  background: #101927;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sky-event-icon {
  grid-row: 1 / 4;
  color: var(--gold);
  font-size: 22px;
}
.sky-event > span:nth-child(2) {
  font-size: 11px;
  color: var(--muted);
}
.sky-event strong {
  font-size: 23px;
  letter-spacing: -0.03em;
  font-weight: 450;
  margin: 6px 0 3px;
  font-variant-numeric: tabular-nums;
}
.sky-event small {
  font-size: 11px;
  color: #98a7bb;
}
.sky-note {
  color: #7c8da5;
  font-size: 11px;
  line-height: 1.7;
  margin: 16px 0 0;
  max-width: 1100px;
}
@media (max-width: 1050px) {
  .location-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sky-layout {
    grid-template-columns: minmax(0, 1fr) 238px;
  }
  .sky-moon-panel {
    padding: 18px;
  }
  .sky-panorama-footer {
    flex-direction: column;
    gap: 2px;
  }
}
@media (max-width: 760px) {
  .solar-location {
    padding: 16px;
  }
  .location-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .location-name,
  .location-zone {
    grid-column: 1 / -1;
  }
  .location-form button {
    min-height: 42px;
  }
  .sky-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .sky-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sky-panorama {
    height: 340px;
    min-height: 340px;
  }
  .sky-moon-panel {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 4px 20px;
    align-items: start;
  }
  .sky-visibility {
    grid-column: 1 / -1;
    margin-bottom: 7px;
  }
  .sky-moon-picture {
    grid-column: 1;
    grid-row: 2 / 5;
    height: 138px;
    margin: 0;
  }
  .sky-moon-picture canvas {
    width: 140px !important;
    height: 140px !important;
  }
  .sky-moon-caption {
    grid-column: 1;
    font-size: 9px;
    margin: 0;
  }
  .sky-moon-panel h3 {
    grid-column: 2;
    grid-row: 2;
    margin: 10px 0 7px;
    font-size: 16px;
  }
  .sky-readings {
    grid-column: 2;
    grid-row: 3 / 6;
    gap: 10px;
  }
  .sky-readings strong {
    font-size: 15px;
  }
  .sky-instruction,
  .sky-small {
    grid-column: 1 / -1;
  }
  .sky-instruction {
    margin: 14px 0 4px;
  }
  .sky-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sky-events-heading {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 380px) {
  .location-heading {
    gap: 12px;
  }
  .location-city {
    width: 100%;
  }
  .location-city select {
    width: 100%;
  }
  .sky-panorama-meta,
  .sky-panorama-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sky-panorama-meta {
    font-size: 10px;
  }
  .sky-moon-panel {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px;
  }
  .sky-moon-picture {
    height: 122px;
  }
  .sky-moon-picture canvas {
    width: 116px !important;
    height: 116px !important;
  }
  .sky-moon-panel h3 {
    font-size: 15px;
  }
  .sky-event {
    padding: 14px 11px;
    grid-template-columns: 18px 1fr;
    column-gap: 6px;
  }
  .sky-event > span:nth-child(2) {
    font-size: 10px;
  }
}
