/* ========== Algemene container ========== */
#route-weather {
  position: relative;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.45;
  color: #1d1d1f;
}

/* ========== Hoofdblok met rand + afgeronde hoeken (hersteld) ========== */
.weather-tabs {
  border: 1px solid #e5e7eb;   /* randkleur teruggezet */
  border-radius: 10px;          /* border radius teruggezet */
  overflow: hidden;             /* zorgt dat de header netjes afgerond blijft */
  background: #fff;
}

/* ========== Titelbalk ========== */
.weather-tab-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;     /* titel links, knop rechts */
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #0f2235;   /* subtiele scheiding onder header */
  background: #182c42;                /* jouw gewenste kleur */
  color: #e5edf5;                     /* lichte tekst */
}

.weather-tab-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}

.weather-tab-title i {
  font-size: 18px;
  line-height: 1;
}

/* knop rechts in de header */
.weather-tab-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #e5edf5;
  cursor: pointer;
}

.weather-tab-btn:hover {
  background: rgba(255,255,255,0.08);
}

.weather-tab-content {
  padding: 16px;
  background: #fff;
}

/* ========== Hero lay-out: icoon + temp links, tekst rechts (klein icoon) ========== */
.weather-hero {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
}

.weather-hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

.weather-hero-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  image-rendering: auto;
}

.weather-hero-temp {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.weather-hero-right {
  font-size: 15px;
}

.weather-summary-text {
  line-height: 1.55;
}

/* ========== Weertabel ========== */
.weather-table {
  margin-top: 14px; /* wordt binnen modal body gebruikt */
  overflow-x: auto;
}

.weather-table-inner {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.weather-table-inner thead th {
  text-align: left;
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.weather-table-inner tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}

.weather-table-inner tbody tr:hover {
  background: #fafafa;
}

/* ========== Modal (popup) voor detailtabel ========== */
.weather-modal {
  position: fixed;
  inset: 0;
  display: none;         /* standaard verborgen */
  z-index: 9999;
}

.weather-modal.open {
  display: block;
}

.weather-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 53, 0.55);
}

.weather-modal-content {
  position: relative;
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 120px);
  margin: 60px auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.weather-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #182c42;   /* consistent met titelbalk */
  color: #e5edf5;
  padding: 12px 14px;
}

.weather-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color:#ffffff;
}

.weather-modal-close {
  background: transparent;
  border: none;
  color: #e5edf5;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.weather-modal-body {
  padding: 16px;
  overflow: auto;
  background: #fff;
}

.weather-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid #eef2f7;
  background: #fafbfc;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.weather-modal-close-btn {
  appearance: none;
  background: #182c42;
  color: #e5edf5;
  border: 1px solid #182c42;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.weather-modal-close-btn:hover {
  filter: brightness(1.05);
}

/* body lock wanneer modal open is (voorkomt scroll achterliggend) */
.weather-modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .weather-hero {
    grid-template-columns: 70px 1fr;
    gap: 12px;
  }
  .weather-hero-icon {
    width: 56px;
    height: 56px;
  }
  .weather-hero-temp {
    font-size: 20px;
  }
}
