/* ── Trek Climate Panel ── */

/* Container — sits inside the info-card */
#trek-climate-panel {
  display: none;
  margin: 0 1rem 0.75rem 1rem;
}

/* Toggle header */
.climate-panel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.climate-panel-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.climate-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.climate-chevron {
  transition: transform 0.25s ease;
  opacity: 0.5;
}

.climate-panel-toggle.climate-panel-open .climate-chevron {
  transform: rotate(180deg);
}

/* Neutral historical-climate label */
.climate-verdict-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(111, 146, 163, 0.16);
  color: #a9c4d0;
  border: 1px solid rgba(111, 146, 163, 0.3);
}

.trek-badge--go {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.trek-badge--decent {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.trek-badge--challenging {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.trek-badge--avoid {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Collapsible body */
.climate-panel-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              margin 0.25s ease;
  margin-top: 0;
}

.climate-panel-body.climate-panel-open {
  max-height: 600px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* Current month row */
.climate-current-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.climate-current-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.climate-current-stats {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}
.climate-current-stats a { color: #d7a083; }

/* Bar chart */
.climate-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 54px;
  padding: 0 2px;
  margin-bottom: 0.5rem;
}

.climate-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: default;
  position: relative;
}

.climate-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 1px 1px;
  transition: height 0.3s ease, opacity 0.2s ease;
  opacity: 0.7;
}

.climate-bar-col:hover .climate-bar {
  opacity: 1;
}

.climate-bar-now .climate-bar {
  opacity: 1;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.climate-bar-label {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 3px;
  font-weight: 500;
}

.climate-bar-now .climate-bar-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

/* Authority planning note row */
.climate-best-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.climate-best-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.climate-best-value {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* Details/breakdown */
.climate-details {
  margin-top: 0.5rem;
}

.climate-details summary {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0.3rem 0;
  transition: color 0.2s;
  user-select: none;
}

.climate-details summary:hover {
  color: rgba(255, 255, 255, 0.6);
}

.climate-details[open] summary {
  margin-bottom: 0.3rem;
}

/* Monthly breakdown table */
.climate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.62rem;
}

.climate-table th {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.2rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.climate-table th:first-child {
  text-align: left;
}

.climate-table td {
  color: rgba(255, 255, 255, 0.6);
  padding: 0.2rem 0.2rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.climate-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.climate-table td:last-child {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.climate-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.climate-verdict-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* ── Season Badge on Location Cards ── */

.trek-season-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: help;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  #trek-climate-panel {
    margin: 0 0 0.5rem 0;
    /* Override text-shadow from parent info-card on mobile */
    text-shadow: none;
  }

  .climate-panel-toggle {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.12);
    pointer-events: auto !important;
  }

  .climate-panel-body.climate-panel-open {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto !important;
  }
}
