/* ==========================================================================
   NWP Product Selection Page Styles (Reference: 02_product_page.jpg)
   ========================================================================== */

.nwp-product-layout {
  display: grid;
  grid-template-columns: 310px 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

/* Left & Right Panels */
.nwp-side-panel {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Center Plot & Viewer */
.nwp-center-viewer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.forecast-date-display {
  width: 100%;
  box-sizing: border-box;
  background: var(--color-mint-light);
  border: 1px solid var(--color-pale-green);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  display: block;
}

.nwp-plot-container {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: auto;
}

.nwp-plot-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xs);
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.plot-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 20;
}

.plot-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #DDE5E0;
  border-top-color: var(--color-primary-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Thumbnail Carousel / Slide Bar (Reference 02_product_page.jpg) */
.thumbnail-carousel-wrap {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-nav-btn {
  width: 32px;
  height: 60px;
  background: #EBF0ED;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary-dark);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.carousel-nav-btn:hover {
  background: var(--color-mint-bg);
  border-color: var(--color-pale-green);
  color: var(--color-primary-green);
}

.thumbnails-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex: 1;
  overflow: hidden;
  padding: 0.25rem 0;
}

.thumb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  width: 68px;
}

.thumb-img {
  width: 64px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  border: 1.5px solid var(--color-border);
  filter: grayscale(100%) opacity(0.65);
  transition: all var(--transition-fast);
}

.thumb-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.thumb-item:hover .thumb-img {
  filter: grayscale(30%) opacity(0.9);
  border-color: var(--color-pale-green);
}

/* Active Thumbnail (Full color, green border, centered) */
.thumb-item.active .thumb-img {
  filter: none;
  border-color: var(--color-primary-green);
  border-width: 2px;
  box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
  transform: scale(1.05);
}

.thumb-item.active .thumb-label {
  color: var(--color-primary-green);
  font-weight: 700;
}

.thumb-item.dots {
  width: 24px;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Start/End Hours Group */
.forecast-range-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forecast-range-group span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
