/* =========================================================
   Utazás
   ========================================================= */

.travel-section-title {
  margin: var(--space-6) 0 var(--space-3);
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted);
}
.travel-empty { min-height: 220px; }
.travel-empty p { margin-bottom: var(--space-3); }

/* ---------- Kiemelt út (hero) ---------- */
.trip-hero {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.trip-hero:hover { border-color: var(--accent); text-decoration: none; }
.trip-hero__count, .trip-head__count {
  display: grid; justify-items: center; align-content: center;
  min-width: 120px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.trip-hero__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.trip-hero__big { font-size: 3rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.trip-hero__small { font-size: .85rem; opacity: .9; }
.trip-hero__info { display: grid; gap: 6px; min-width: 0; flex: 1; }
.trip-hero__info h2 { font-size: 1.6rem; }
.trip-hero__seg { font-size: .92rem; }
.mini-progress { display: flex; align-items: center; gap: var(--space-2); max-width: 360px; }
.mini-progress .progress { flex: 1; }

/* ---------- Út-kártyák ---------- */
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); }
.trip-card {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.trip-card:hover { border-color: var(--accent); text-decoration: none; }
.trip-card__count {
  display: grid; justify-items: center;
  min-width: 56px; padding: 6px;
  border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent);
}
.trip-card__count strong { font-size: 1.3rem; line-height: 1.1; }
.trip-card__count span { font-size: .7rem; }
.trip-card__body { min-width: 0; }
.trip-card__body h3 { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.past-trips { margin-top: var(--space-6); }
.past-trips summary { cursor: pointer; margin-bottom: var(--space-3); color: var(--text-muted); font-weight: 500; }
.past-trips .trip-card { opacity: .75; }
.past-trips .trip-card__count { background: var(--surface-2); color: var(--success); }

/* ---------- Részletes oldal ---------- */
.back-link { display: inline-block; margin-bottom: var(--space-3); color: var(--text-muted); font-size: .9rem; }
.trip-head {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.trip-head__count { min-width: 96px; padding: var(--space-2) var(--space-3); }
.trip-head__big { font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.trip-head__info { flex: 1; min-width: 0; }
.trip-head__info h1 { font-size: 1.7rem; overflow-wrap: anywhere; }

.notice {
  display: grid; gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: .92rem;
}
.notice--ok { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.notice--warn {
  border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent);
  background: color-mix(in srgb, var(--warning) 10%, transparent);
}
.notice--warn > strong { color: var(--warning); }
.notice__list { display: flex; flex-wrap: wrap; gap: 6px; }
.notice__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text); font-size: .85rem;
}
.notice__item:hover { text-decoration: none; box-shadow: 0 0 0 1px var(--warning); }

.trip-grid-detail .card { min-height: 0; }
.trip-grid-detail .card__header .btn { flex-shrink: 0; }

/* Közlekedés idővonal */
.segments { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.segment {
  display: flex; gap: var(--space-3); align-items: flex-start;
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: left;
}
.segment:hover { border-color: var(--accent); }
.segment__icon { font-size: 1.4rem; line-height: 1; }
.segment__main { display: grid; gap: 3px; min-width: 0; }
.segment__route { overflow-wrap: anywhere; }
.segment__time { font-size: .88rem; color: var(--text-muted); }
.segment__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
a.tag { color: var(--text-muted); text-decoration: none; }

/* Szállás */
.stay { display: grid; gap: 3px; padding-bottom: var(--space-3); margin-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.stay:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.stay__name { padding: 0; border: 0; background: none; text-align: left; font-weight: 600; font-size: 1rem; }
.stay__name:hover { color: var(--accent); }

/* Ellenőrzőlisták */
.checklist { list-style: none; margin: var(--space-3) 0; padding: 0; display: grid; }
.checklist__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.checklist__item label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; padding: 3px 0; }
.checklist__item input { width: 18px; height: 18px; accent-color: var(--success); flex-shrink: 0; }
.checklist__item.is-done span { color: var(--text-muted); text-decoration: line-through; }
.checklist__item .icon-btn { opacity: 0; }
.checklist__item:hover .icon-btn, .checklist__item .icon-btn:focus-visible { opacity: 1; }
@media (hover: none) { .checklist__item .icon-btn { opacity: .5; } }
.checklist__add { margin-top: var(--space-2); }
.checklist + .btn { margin-bottom: var(--space-2); }

.trip-notes { width: 100%; }

/* ---------- Űrlap-rács a modálokban ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-3); }
.form-grid .field { grid-column: span 2; }
.form-grid .field--half { grid-column: span 1; }
@media (max-width: 420px) { .form-grid .field--half { grid-column: span 2; } }

/* ---------- Főoldali widget ---------- */
.travel-widget {
  display: flex; align-items: center; gap: var(--space-3);
  color: inherit; text-decoration: none;
}
.travel-widget:hover { text-decoration: none; }
.travel-widget:hover .travel-widget__dest { color: var(--accent); }
.travel-widget__count {
  display: grid; justify-items: center;
  min-width: 76px; padding: var(--space-2);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.travel-widget__big { font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.travel-widget__info { display: grid; min-width: 0; }
.travel-widget__dest { font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.travel-widget__seg { margin: var(--space-3) 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: var(--surface-2); }
.travel-widget__bars { display: grid; gap: 6px; margin-bottom: var(--space-2); }
.travel-widget__bars .mini-progress span:first-child { min-width: 82px; }

/* ---------- Naptárban ---------- */
.trip-bar {
  display: block; width: 100%;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .72rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.week-day__trip { font-size: .8rem; line-height: 1; }

@media (max-width: 720px) {
  .trip-hero { flex-direction: column; align-items: stretch; gap: var(--space-4); padding: var(--space-4); }
  .trip-hero__count { flex-direction: row; }
  .trip-hero__big { font-size: 2.6rem; }
  .trip-hero__info h2 { font-size: 1.35rem; }
  .trip-head { flex-wrap: wrap; }
  .trip-head__info h1 { font-size: 1.35rem; }
  .trip-head .btn { width: 100%; justify-content: center; }
  .trip-grid-detail > .card { grid-column: span 12 !important; }
  .cal-day .trip-bar { padding: 0 2px; font-size: .6rem; }
}
@media (max-width: 1100px) and (min-width: 721px) {
  .trip-grid-detail > .span-4, .trip-grid-detail > .span-8 { grid-column: span 12; }
}
