#sunMapPage .main-content {
  grid-template-columns: 1fr !important;
}

#sunMapPage .card {
  width: 100%;
}

#sunMapRoot {
  color: #111318;
}

.sunmap-shell {
  display: grid;
  gap: 14px;
}

.sunmap-controls {
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98));
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.sunmap-location-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sunmap-kicker {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sunmap-address {
  margin-top: 3px;
  color: #111318;
  font-weight: 900;
  line-height: 1.25;
}

.sunmap-location-actions {
  flex: 0 0 auto;
}

.sunmap-location-actions .fy-btn {
  min-height: 38px;
  white-space: nowrap;
}

.sunmap-control-grid {
  display: grid;
  grid-template-columns: minmax(132px, 0.76fr) minmax(118px, 0.7fr) minmax(118px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.sunmap-control-grid .fy-field {
  min-width: 0;
  margin: 0;
}

.sunmap-control-grid input,
.sunmap-control-grid select {
  min-height: 40px;
}

.sunmap-button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sunmap-button-row .fy-btn {
  min-height: 40px;
  white-space: nowrap;
}

.sunmap-month-field {
  width: min(100%, 760px);
  margin: 0 auto;
}

.sunmap-month-range {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sunmap-month-label {
  margin: 0 0 6px;
  color: #111318;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.sunmap-month-dial {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 8px;
}

.sunmap-month-dial::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.82);
  pointer-events: none;
}

.sunmap-month-nav {
  width: 40px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #111318;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

.sunmap-month-window {
  position: relative;
  height: 64px;
  overflow: hidden;
  scrollbar-width: none;
  perspective: 420px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.sunmap-month-window.is-dragging {
  cursor: grabbing;
}

.sunmap-month-window::-webkit-scrollbar {
  display: none;
}

.sunmap-month-track {
  position: relative;
  height: 64px;
}

.sunmap-month-option {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.sunmap-month-option.is-visible {
  display: block;
}

.sunmap-month-option.pos-n2 {
  opacity: 0.36;
  transform: translate(calc(-50% - 136px), -50%) rotateY(36deg) scale(0.72);
}

.sunmap-month-option.pos-n1 {
  opacity: 0.68;
  transform: translate(calc(-50% - 72px), -50%) rotateY(22deg) scale(0.88);
}

.sunmap-month-option.pos-p1 {
  opacity: 0.68;
  transform: translate(calc(-50% + 72px), -50%) rotateY(-22deg) scale(0.88);
}

.sunmap-month-option.pos-p2 {
  opacity: 0.36;
  transform: translate(calc(-50% + 136px), -50%) rotateY(-36deg) scale(0.72);
}

.sunmap-month-option.is-selected {
  background: #111318;
  border-color: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  opacity: 1;
  transform: translate(-50%, -50%) translateY(-2px) scale(1.12);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.sunmap-status {
  min-height: 18px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.sunmap-privacy-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.sunmap-status-ok {
  color: #166534;
}

.sunmap-status-warn {
  color: #b45309;
}

.sunmap-status-info {
  color: #1d4ed8;
}

.sunmap-map-panel {
  min-width: 0;
}

.sunmap-stage {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  touch-action: none;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(226, 232, 240, 0.50), rgba(248, 250, 252, 0.92)),
    #f8fafc;
  cursor: grab;
}

.sunmap-stage.is-dragging {
  cursor: grabbing;
}

.sunmap-google-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: auto;
  touch-action: none;
  transition: opacity 160ms ease;
}

.sunmap-stage-has-map .sunmap-google-map {
  opacity: 0;
  pointer-events: none;
}

.sunmap-stage-has-map.sunmap-stage-has-google-map .sunmap-google-map {
  opacity: 1;
  pointer-events: auto;
}

.sunmap-esri-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 160ms ease;
  will-change: transform;
}

.sunmap-stage-has-map .sunmap-esri-map {
  opacity: 1;
}

.sunmap-stage-has-map.sunmap-stage-has-google-map .sunmap-esri-map {
  opacity: 0;
  pointer-events: none;
}

.sunmap-esri-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.sunmap-esri-tile-layer {
  position: absolute;
  width: 768px;
  height: 768px;
  z-index: 2;
  filter: saturate(0.92) contrast(0.96) brightness(1.04);
}

.sunmap-esri-tile-layer img {
  position: absolute;
  width: 256px;
  height: 256px;
  border: 0;
  display: block;
}

.sunmap-esri-attribution {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  z-index: 5;
  width: fit-content;
  max-width: calc(100% - 16px);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #323232;
  font: 700 11px/1.2 Arial, sans-serif;
  padding: 3px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sunmap-map-texture {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(35deg, transparent 47%, rgba(96, 165, 250, 0.13) 48%, rgba(96, 165, 250, 0.13) 52%, transparent 53%),
    linear-gradient(130deg, transparent 49%, rgba(34, 197, 94, 0.12) 50%, rgba(34, 197, 94, 0.12) 53%, transparent 54%);
  background-size: 42px 42px, 42px 42px, 240px 240px, 280px 280px;
}

.sunmap-stage-has-map .sunmap-map-texture {
  opacity: 0;
}

#sunMapSvgSlot,
.sunmap-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#sunMapSvgSlot {
  z-index: 2;
  pointer-events: none;
}

.sunmap-svg {
  overflow: visible;
}

.sunmap-ring {
  fill: none;
  stroke: rgba(15, 23, 42, 0.12);
  stroke-width: 2;
}

.sunmap-ring-outer {
  stroke: rgba(15, 23, 42, 0.18);
  stroke-width: 2.5;
}

.sunmap-axis {
  stroke: rgba(15, 23, 42, 0.10);
  stroke-width: 2;
}

.sunmap-cardinal {
  fill: #0f172a;
  font-size: 20px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
}

.sunmap-hour-ray-shadow {
  stroke: rgba(0, 0, 0, 0.92);
  stroke-linecap: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.36));
}

.sunmap-hour-ray {
  stroke: #fff200;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
}

.sunmap-facing-ray {
  stroke: #f97316;
  stroke-width: 4;
  stroke-dasharray: 8 8;
  filter: drop-shadow(0 1px 2px rgba(154, 52, 18, 0.34));
}

.sunmap-arrow-head {
  fill: #fff200;
}

.sunmap-arrow-head-shadow {
  fill: rgba(0, 0, 0, 0.92);
}

.sunmap-facing-head {
  fill: #f97316;
}

.sunmap-ray-label {
  fill: #ffffff;
  font-size: 14px;
  font-weight: 900;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.92);
  stroke-linejoin: round;
  stroke-width: 5.5;
}

.sunmap-center-dot {
  fill: #dc2626;
  stroke: #ffffff;
  stroke-width: 4;
}

.sunmap-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -100%) rotate(180deg);
  transform-origin: 50% 50%;
  background: url("pfs-mark-gold.svg") center / contain no-repeat;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.86))
    drop-shadow(0 8px 12px rgba(15, 23, 42, 0.38));
  pointer-events: none;
  z-index: 4;
}

.sunmap-map-status {
  min-height: 18px;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.sunmap-map-status-ok {
  color: #166534;
}

.sunmap-map-status-warn {
  color: #b45309;
}

.sunmap-map-status-info {
  color: #1d4ed8;
}

.sunmap-readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sunmap-readout {
  position: relative;
  min-height: 84px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  overflow: visible;
}

.sunmap-readout-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.sunmap-readout-label > span:first-child {
  display: block;
  min-width: 0;
}

.sunmap-readout-help {
  display: inline-flex;
  align-items: center;
  position: static;
}

.sunmap-info-btn {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, 0.36);
  background: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.sunmap-info-btn:hover,
.sunmap-info-btn:focus-visible,
.sunmap-readout-help.is-open .sunmap-info-btn {
  border-color: rgba(249, 115, 22, 0.65);
  background: rgba(249, 115, 22, 0.10);
  color: #9a3412;
}

.sunmap-info-btn:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.38);
  outline-offset: 2px;
}

.sunmap-tooltip {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 34px;
  z-index: 12;
  display: block;
  padding: 10px 11px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.20);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.sunmap-readout-help:hover .sunmap-tooltip,
.sunmap-readout-help:focus-within .sunmap-tooltip,
.sunmap-readout-help.is-open .sunmap-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sunmap-readout strong {
  display: block;
  color: #111318;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.sunmap-readout-small {
  min-height: 70px;
}

.sunmap-readout-small strong {
  font-size: 16px;
}

@media (max-width: 980px) {
  .sunmap-control-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sunmap-month-field,
  .sunmap-button-row {
    grid-column: 1 / -1;
  }

  .sunmap-readouts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .sunmap-location-line {
    flex-direction: column;
    align-items: stretch;
  }

  .sunmap-location-actions .fy-btn {
    width: 100%;
  }

  .sunmap-control-grid,
  .sunmap-readouts {
    grid-template-columns: 1fr;
  }

  .sunmap-button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sunmap-button-row .fy-btn {
    width: 100%;
  }

  .sunmap-pin {
    width: 36px;
    height: 36px;
  }
}
