/* ── SECTION ── */
.wd-section {
  padding: 1.5rem 0 4rem;
}

/* ── CARD ── */
.wd-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
}

/* ── HEADER ── */
.wd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.wd-header-left { min-width: 0; }

.wd-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.wd-city {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.wd-city-icon {
  display: inline-flex;
  align-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.wd-city-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--primary-color);
}

/* SEARCH */
.wd-header-right { flex-shrink: 0; }

.wd-search-wrap { width: 240px; }

.wd-search-control {
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.wd-search-input {
  border: 1px solid #eee !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  background: #f8f9fb !important;
  height: 36px !important;
  padding-left: 32px !important;
  width: 100% !important;
  transition: border-color 0.15s !important;
}

.wd-search-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: none !important;
  background: #fff !important;
}

.wd-search-icon {
  top: unset !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.wd-search-icon svg {
  width: 13px;
  height: 13px;
  fill: #aaa;
}

/* ── ERROR STATE ── */
.wd-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1.5rem 2rem;
  color: #B45309;
}

.wd-error-icon {
  display: inline-flex;
  align-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.wd-error-icon svg {
  width: 20px;
  height: 20px;
  fill: #B45309;
}

.wd-error-msg {
  font-size: 14px;
  color: #444;
}

/* ── DAY TABS ── */
.wd-day-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.wd-day-tabs::-webkit-scrollbar { display: none; }

.wd-day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: background 0.12s;
  flex-shrink: 0;
  gap: 2px;
}

.wd-day-tab:hover { background: #f8f9fb; }

.wd-day-tab.active {
  border-bottom-color: var(--primary-color);
}

.wd-tab-day {
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wd-day-tab.active .wd-tab-day {
  color: var(--primary-color);
}

.wd-tab-date {
  font-size: 11px;
  color: #bbb;
}

.wd-day-tab.active .wd-tab-date {
  color: var(--primary-color);
}

/* ── PANELS ── */
.wd-panels { background: #f8f9fb; }

.wd-panel { display: block; }
.wd-hidden { display: none; }

/* ── TABLE ── */
.wd-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.wd-table-wrap::-webkit-scrollbar       { height: 4px; }
.wd-table-wrap::-webkit-scrollbar-track { background: transparent; }
.wd-table-wrap::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.wd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}

/* TABLE HEADER */
.wd-table thead th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #eee;
  background: #fff;
  white-space: nowrap;
  text-align: left;
}

/* TABLE ROWS */
.wd-table tbody tr {
  border-bottom: 1px solid #f4f4f4;
  transition: background 0.1s;
}

.wd-table tbody tr:last-child { border-bottom: none; }
.wd-table tbody tr:hover { background: #fff; }

.wd-table tbody td {
  padding: 10px 16px;
  vertical-align: middle;
  color: #333;
}

/* TIME BADGE */
.wd-time-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--background-color);
  color: var(--primary-color);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* CONDITION CELL */
.wd-condition-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-condition-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.wd-condition-label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

/* PARAM CELL */
.wd-param-cell { white-space: nowrap; }

.wd-param-val {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .wd-section     { padding: 1rem 0 3rem; }
  .wd-header      { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .wd-search-wrap { width: 100%; }
  .wd-city        { font-size: 16px; }
  .wd-day-tab     { padding: 8px 14px; }
}

@media (max-width: 480px) {
  .wd-city        { font-size: 14px; }
  .wd-tab-day     { font-size: 11px; }
}