/* =====================================================================
   WTT TRAVEL UPDATES / TRANSPORT PICKER
   File: assets/css/transport-updates.css
   Powers [wtt_transport_updates] -- both the compact version embedded
   in the dashboard and the full version on its own page. Uses the
   existing WTT design tokens from main.css.
===================================================================== */

.wtt-transport-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.wtt-transport-tab {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--wtt-sand);
  border: 1px solid var(--wtt-border);
  color: var(--wtt-text-mid);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.wtt-transport-tab-icon { font-size: 13px; }
.wtt-transport-tab:hover { background: var(--wtt-sand-dark); }
.wtt-transport-tab.is-active {
  background: var(--wtt-green);
  border-color: var(--wtt-green);
  color: #fff;
}

.wtt-transport-panel { display: none; }
.wtt-transport-panel.is-active { display: block; }

.wtt-transport-empty {
  font-size: 13.5px; color: var(--wtt-text-light);
  padding: 10px 2px;
}

.wtt-transport-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.wtt-transport-list li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--wtt-sand);
  border: 1px solid var(--wtt-border);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  transition: background .2s;
}
.wtt-transport-list li a:hover { background: var(--wtt-sand-dark); }
.wtt-transport-item-title {
  font-size: 13.5px; font-weight: 600; color: var(--wtt-green);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wtt-transport-item-date {
  font-size: 11.5px; color: var(--wtt-text-light); flex-shrink: 0;
}

/* Compact version (inside the dashboard card) -- tighter spacing,
   smaller tabs, so it doesn't dominate the grid. */
.wtt-transport-compact .wtt-transport-tabs { gap: 6px; margin-bottom: 14px; }
.wtt-transport-compact .wtt-transport-tab { padding: 6px 12px; font-size: 12.5px; }
.wtt-transport-compact .wtt-transport-list { gap: 6px; }
.wtt-transport-compact .wtt-transport-list li a { padding: 10px 12px; }

/* Full standalone-page version -- a bit more breathing room and a
   two-column list on wider screens. */
.wtt-transport-updates:not(.wtt-transport-compact) {
  max-width: 720px;
}
@media (min-width: 640px) {
  .wtt-transport-updates:not(.wtt-transport-compact) .wtt-transport-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
}
