/* ─── RESET & TOKENS ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a3d62;
  --navy-2:     #1e3799;
  --teal:       #0c7a8a;
  --green:      #27ae60;
  --orange:     #e67e22;
  --red:        #e74c3c;
  --bg:         #f0f4f8;
  --card:       #ffffff;
  --text:       #1a1a2e;
  --muted:      #6b7280;
  --border:     #e2e8f0;
  --header-h:   52px;
  --tab-h:      48px;
  --safe-b:     env(safe-area-inset-bottom, 0px);
}

html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }

/* ─── HEADER ────────────────────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-back { color: white; text-decoration: none; font-size: 24px; line-height: 1; padding: 6px; }
.header-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; flex: 1; padding: 0 10px; }
.header-title small { display: block; font-size: 11px; opacity: .7; font-weight: 400; }
.header-action { background: rgba(255,255,255,.15); border: none; color: white; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.header-action:hover { background: rgba(255,255,255,.25); }

/* ─── ALERT BAR ─────────────────────────────────────────────────────────────── */
.alert-bar { position: fixed; top: var(--header-h); left: 0; right: 0; background: #c0392b; color: white; padding: 10px 16px; font-size: 13px; font-weight: 500; z-index: 999; line-height: 1.5; }

/* ─── TABS ──────────────────────────────────────────────────────────────────── */
.tab-nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tab-h) + var(--safe-b)); background: var(--card); border-top: 1px solid var(--border); display: flex; z-index: 1000; padding-bottom: var(--safe-b); }
.tab-btn { flex: 1; border: none; background: none; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; padding: 6px 0; transition: color .2s; }
.tab-btn.active { color: var(--navy); }

.tab-main { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); overflow: hidden; }
.tab-content { display: none; width: 100%; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tab-content.active { display: block; }

/* ─── KARTA ─────────────────────────────────────────────────────────────────── */
.card { background: var(--card); border-radius: 14px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 12px; }
.card-title { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }

/* ─── FORMULÁŘ ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.form-group input, .form-group select { width: 100%; padding: 9px 11px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; color: var(--text); background: white; -webkit-appearance: none; }
.form-group input:focus { outline: none; border-color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

.slider-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--navy); }
.slider-val { font-size: 15px; font-weight: 700; color: var(--navy); min-width: 28px; text-align: right; }
.slider-unit { font-size: 13px; color: var(--muted); }

.threshold-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.threshold-item label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.threshold-inputs { display: flex; align-items: center; gap: 6px; }
.threshold-inputs input { width: 70px; padding: 7px 9px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; }
.threshold-inputs span { font-size: 13px; color: var(--muted); }

/* ─── TLAČÍTKA ──────────────────────────────────────────────────────────────── */
.btn-primary { display: block; width: 100%; padding: 13px; background: var(--navy); color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { display: block; width: 100%; padding: 11px; background: white; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }

/* ─── WAYPOINTS LIST ────────────────────────────────────────────────────────── */
.wp-list { display: flex; flex-direction: column; gap: 6px; }
.wp-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }
.wp-item { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.wp-num { width: 22px; height: 22px; background: var(--navy); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.wp-name { flex: 1; font-size: 14px; }
.wp-coord { font-size: 11px; color: var(--muted); }
.wp-del { background: none; border: none; color: var(--red); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }

/* ─── EMAIL TAGS ────────────────────────────────────────────────────────────── */
.email-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; font-size: 13px; margin: 3px; }
.email-tag button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }

/* ─── MAPA ──────────────────────────────────────────────────────────────────── */
#plan-map, #briefing-map { width: 100%; height: 100%; }
.map-layers { position: absolute; top: 10px; right: 10px; z-index: 500; display: flex; flex-direction: column; gap: 4px; }
.layer-btn { background: white; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12); white-space: nowrap; }
.layer-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ─── PLAN LAYOUT ───────────────────────────────────────────────────────────── */
.plan-layout { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; display: flex; }
.plan-sidebar { width: 340px; flex-shrink: 0; overflow: hidden; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--bg); }
.scroll-area { overflow-y: auto; flex: 1; padding: 14px; }
.plan-map-wrap { flex: 1; position: relative; }

/* ─── MODALY ────────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--card); border-radius: 16px; width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto; padding: 20px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-header h2 { font-size: 18px; }
.modal-close { background: var(--bg); border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 14px; }

.route-step { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; }
.step-num { width: 22px; height: 22px; background: var(--navy); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.route-arrow { color: var(--muted); font-size: 18px; padding-left: 8px; }

.stat-row { display: flex; gap: 12px; }
.stat-item { flex: 1; text-align: center; background: var(--bg); border-radius: 8px; padding: 10px; }
.stat-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.stat-value { font-size: 18px; font-weight: 700; color: var(--navy); }
.day-summary { font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.day-summary:last-child { border-bottom: none; }

/* ─── LOADING ───────────────────────────────────────────────────────────────── */
.loading-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 3000; display: flex; align-items: center; justify-content: center; }
.loading-box { background: white; border-radius: 16px; padding: 30px 40px; text-align: center; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── DENNÍ KARTY ───────────────────────────────────────────────────────────── */
#days-content { padding: 12px 14px; }

.day-card { background: var(--card); border-radius: 14px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); border-left: 5px solid var(--green); transition: box-shadow .2s; }
.day-card--orange { border-left-color: var(--orange); }
.day-card--red    { border-left-color: var(--red); }
.day-card--gray   { border-left-color: #94a3b8; }
.day-card.open    { box-shadow: 0 4px 16px rgba(0,0,0,.12); }

.day-card__top { padding: 14px 16px; cursor: pointer; user-select: none; }
.day-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.day-card__emoji { font-size: 28px; flex-shrink: 0; }
.day-card__title { flex: 1; }
.day-card__date  { font-size: 15px; font-weight: 600; }
.day-card__label { font-size: 12px; color: var(--muted); margin-top: 1px; }
.day-card__chevron { font-size: 22px; color: var(--muted); transition: transform .25s; flex-shrink: 0; }

.day-card__stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; margin-bottom: 10px; }
.day-stat { background: var(--bg); border-radius: 7px; padding: 6px 4px; text-align: center; }
.ds-label { display: block; font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px; }
.ds-val { font-size: 15px; font-weight: 700; display: block; line-height: 1.1; }
.ds-val small { font-size: 9px; font-weight: 400; color: var(--muted); display: block; }
.ds-val--green  { color: var(--green); }
.ds-val--orange { color: var(--orange); }
.ds-val--red    { color: var(--red); }

.day-card__segs { margin-bottom: 8px; }
.seg-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.seg-item:last-child { border-bottom: none; }
.seg-route { color: var(--text); }
.seg-stats { color: var(--muted); font-size: 12px; }

.day-card__summary { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.day-card__rec { background: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.day-card__hint { text-align: center; font-size: 11px; color: var(--muted); opacity: .7; }
.day-card.open .day-card__hint { display: none; }

/* Detail */
.day-card__detail { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.day-card.open .day-card__detail { border-top: 1px solid var(--border); }
.day-card__detail-text { padding: 14px 16px 8px; background: #fafbfc; font-size: 14px; line-height: 1.7; }
.day-card__detail-text h4 { font-size: 12px; font-weight: 700; color: var(--teal); margin: 10px 0 5px; text-transform: uppercase; letter-spacing: .4px; }
.day-card__detail-text ul { padding-left: 16px; margin: 4px 0; }
.day-card__detail-text li { margin-bottom: 3px; }
.alert-inline { background: #fef3f2; border-left: 3px solid var(--red); border-radius: 0 6px 6px 0; padding: 7px 10px; margin: 6px 0; font-size: 13px; }

/* Kotviště */
.day-card__anchors { padding: 12px 16px 14px; background: #f0f7ff; border-top: 1px solid #d0e8ff; }
.anchors-title { font-size: 11px; font-weight: 700; color: #1a5276; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.anchor-item { font-size: 13px; padding: 5px 0; border-bottom: 1px solid #d0e8ff; line-height: 1.5; }
.anchor-item:last-child { border-bottom: none; }
.anchor-dist { font-size: 11px; color: var(--muted); margin-left: 4px; }
.anchor-safe { font-size: 11px; color: var(--green); font-weight: 700; margin-left: 4px; }

/* ─── DETAIL SEKCE ──────────────────────────────────────────────────────────── */
.detail-scroll { padding: 14px; }
.detail-section { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 10px; }
.detail-section h2 { font-size: 15px; font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--bg); padding-bottom: 8px; margin-bottom: 10px; }
.detail-section--alert { border-left: 3px solid var(--red); }
.generated-at { text-align: center; font-size: 11px; color: var(--muted); padding: 10px 0; }

/* ─── DASHBOARD ─────────────────────────────────────────────────────────────── */
.dashboard { padding: calc(var(--header-h) + 14px) 14px 14px; max-width: 600px; margin: 0 auto; }
.no-trip-card { text-align: center; padding: 32px 20px; }
.no-trip-icon { font-size: 48px; margin-bottom: 12px; }
.no-trip-card h2 { font-size: 20px; margin-bottom: 8px; }
.no-trip-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.trip-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.trip-title { font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.trip-meta  { font-size: 13px; color: var(--muted); }
.trip-badge { background: var(--green); color: white; border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.trip-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 4px; }
.trip-stat  { background: var(--bg); border-radius: 8px; padding: 8px; text-align: center; }
.trip-stat span { display: block; font-size: 18px; font-weight: 700; color: var(--navy); }
.trip-stat small { font-size: 10px; color: var(--muted); }

/* ─── NASTAVENÍ ─────────────────────────────────────────────────────────────── */
.settings-body { padding: calc(var(--header-h) + 14px) 14px 14px; max-width: 600px; margin: 0 auto; }
.env-badge { background: #d4edda; border: 1px solid #c3e6cb; border-radius: 8px; padding: 9px 12px; font-size: 13px; color: #155724; }
.anchor-status { font-size: 14px; padding: 8px 0; }

/* ─── TOAST ─────────────────────────────────────────────────────────────────── */
.toast { position: fixed; bottom: calc(20px + var(--safe-b)); left: 50%; transform: translateX(-50%); background: var(--green); color: white; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; z-index: 4000; opacity: 0; transition: opacity .3s; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.toast.show { opacity: 1; }

/* ─── EMPTY STATE ───────────────────────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60vh; text-align: center; color: var(--muted); padding: 20px; gap: 12px; }

/* ─── DESKTOP ───────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .tab-nav { top: var(--header-h); bottom: auto; border-top: none; border-bottom: 1px solid var(--border); height: auto; background: white; }
  .tab-btn { padding: 12px 20px; flex: none; font-size: 13px; }
  .tab-main { top: calc(var(--header-h) + 44px); bottom: 0; }
  .map-layers { flex-direction: row; flex-wrap: wrap; max-width: 350px; }
  #days-content { max-width: 800px; margin: 0 auto; padding: 16px 20px; }
  .day-card__stats { grid-template-columns: repeat(5,1fr); }
}

@media (max-width: 480px) {
  .plan-layout { flex-direction: column; }
  .plan-sidebar { width: 100%; height: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .plan-map-wrap { height: 50%; }
  .day-card__stats { grid-template-columns: repeat(4,1fr); }
  .day-card__stats .day-stat:last-child { display: none; }
}

/* ─── MINI MAPA V KARTĚ ──────────────────────────────────────────────────────── */
.day-card__detail { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.day-card.open .day-card__detail { border-top: 1px solid var(--border); }

.day-card__rec {
  padding: 12px 16px;
  background: var(--bg);
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.day-card__minimap {
  height: 260px;
  width: 100%;
  background: #e8f4f8;
}

/* ─── STATS — 6 sloupců ──────────────────────────────────────────────────────── */
.day-card__stats { grid-template-columns: repeat(6,1fr); }
@media (max-width: 400px) {
  .day-card__stats { grid-template-columns: repeat(3,1fr); }
}

/* ─── OVERNIGHT TOGGLE ───────────────────────────────────────────────────────── */
.wp-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wp-overnight {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 7px; font-size: 14px;
  cursor: pointer; flex-shrink: 0;
}
.wp-overnight.active { background: #e8f0fe; border-color: var(--navy); }

/* ─── LAND CROSSING WARNING ──────────────────────────────────────────────────── */
.crossing-alert {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: 8px; padding: 10px 12px;
  font-size: 13px; color: #856404;
  margin-top: 10px; line-height: 1.5;
}
.seg-warn .seg-route { color: var(--orange); }
.cross-warn { margin-left: 4px; }

/* ─── KOTVIŠTĚ ───────────────────────────────────────────────────────────────── */
.day-card__anchors {
  padding: 12px 16px 16px;
  background: #f0f7ff;
  border-top: 1px solid #d0e8ff;
}
.anchors-loading { font-size: 13px; color: var(--muted); padding: 8px 0; }
.anchor-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; padding: 7px 0;
  border-bottom: 1px solid #d0e8ff; line-height: 1.5;
}
.anchor-item:last-child { border-bottom: none; }
.anchor-rank { width: 18px; height: 18px; background: var(--navy); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.anchor-dist { font-size: 11px; color: var(--muted); margin-left: 3px; }
.anchor-safe { font-size: 11px; color: var(--green); font-weight: 600; margin-left: 4px; }
.anchor-note { font-size: 11px; color: var(--muted); }

/* ─── PLANNER — wp badges ────────────────────────────────────────────────────── */
.wp-badge { font-size: 13px; margin-left: 4px; }
/* ─── DRAG & DROP HANDLE ─────────────────────────────────────────────────── */
.wp-drag-handle {
  cursor: grab;
  color: var(--muted, #94a3b8);
  font-size: 16px;
  padding: 0 4px;
  user-select: none;
  flex-shrink: 0;
}
.wp-drag-handle:active { cursor: grabbing; }
.wp-drag-handle--disabled {
  cursor: default;
  opacity: 0;
  pointer-events: none;
}

/* Ghost při přetahování */
.wp-item--ghost {
  opacity: 0.4;
  background: var(--accent, #0a3d62) !important;
  border-radius: 8px;
}

/* ─── UPOZORNĚNÍ NA DLOUHÝ DEN ───────────────────────────────────────────── */
.long-day-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0;
  font-size: 13px;
  color: #856404;
}

.day-summary--warn {
  background: #fff8e1;
  border-left: 3px solid #ffc107;
  padding-left: 8px;
  border-radius: 0 4px 4px 0;
}

/* ─── RESULT MODAL — WAYPOINT LIST ──────────────────────────────────────── */
.modal-wp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
}

.modal-wp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  margin-bottom: 2px;
}

.modal-wp-item .wp-overnight {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  padding: 3px 7px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s;
}
.modal-wp-item .wp-overnight.active {
  background: #e8f4fd;
  border-color: #3498db;
}

.route-arrow {
  text-align: center;
  color: var(--muted, #94a3b8);
  font-size: 14px;
  line-height: 1.2;
  margin: 1px 0;
}

/* ─── TÝDENNÍ PŘEHLED (index) ──────────────────────────────────────────────── */
.today-summary { display:flex; gap:12px; margin-bottom:4px; }
.today-stat { flex:1; background:var(--bg,#f8fafc); border-radius:10px; padding:10px; text-align:center; }
.today-stat span { display:block; font-size:12px; color:var(--muted,#94a3b8); margin-bottom:4px; }
.today-stat strong { font-size:18px; font-weight:700; }
.week-tiles { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; }
.week-day-tile { flex:0 0 auto; min-width:80px; background:var(--card-bg,#fff); border:1px solid var(--border,#e2e8f0); border-radius:10px; padding:8px 10px; text-align:center; }
.week-day-label { font-size:11px; font-weight:600; color:var(--muted,#94a3b8); margin-bottom:4px; }
.week-day-wind { font-size:13px; font-weight:700; margin:2px 0; }
.week-day-rain { font-size:12px; color:var(--muted,#64748b); }
.week-day-temp { font-size:12px; color:var(--muted,#64748b); }

/* ─── DnD + warnings ────────────────────────────────────────────────────────── */
.wp-drag-handle { cursor:grab; color:#94a3b8; font-size:16px; padding:0 4px; user-select:none; flex-shrink:0; }
.wp-drag-handle:active { cursor:grabbing; }
.wp-drag-handle--disabled { cursor:default; opacity:0; pointer-events:none; }
.wp-item--ghost { opacity:0.4; background:#0a3d62 !important; border-radius:8px; }
.long-day-warning { background:#fff3cd; border:1px solid #ffc107; border-radius:8px; padding:8px 12px; margin:6px 0; font-size:13px; color:#856404; }
.day-summary--warn { background:#fff8e1; border-left:3px solid #ffc107; padding-left:8px; border-radius:0 4px 4px 0; }
.modal-wp-list { display:flex; flex-direction:column; gap:0; margin-bottom:12px; }
.modal-wp-item { display:flex; align-items:center; gap:8px; padding:8px 10px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; margin-bottom:2px; }
.modal-wp-item .wp-overnight { margin-left:auto; background:none; border:1px solid #e2e8f0; border-radius:6px; padding:3px 7px; cursor:pointer; font-size:15px; transition:background 0.15s; }
.modal-wp-item .wp-overnight.active { background:#e8f4fd; border-color:#3498db; }
.route-arrow { text-align:center; color:#94a3b8; font-size:14px; line-height:1.2; margin:1px 0; }

/* ─── POČASÍ GRAFY (briefing) ───────────────────────────────────────────────── */
.weather-chart-wrap { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:14px; margin-bottom:14px; }
.weather-chart-wrap h3 { font-size:14px; font-weight:600; margin-bottom:10px; color:#0a3d62; }
.weather-chart-wrap canvas { max-height:180px; }

/* ─── HISTORIE CEST ─────────────────────────────────────────────────────────── */
.history-card { cursor:pointer; transition:box-shadow 0.15s; }
.history-card:hover { box-shadow:0 4px 16px rgba(10,61,98,.12); }
.history-item { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--border,#e2e8f0); }
.history-item:last-child { border-bottom:none; }
.history-meta { font-size:12px; color:var(--muted,#94a3b8); }
.history-actions { display:flex; gap:6px; }
.history-actions button { font-size:12px; padding:4px 8px; border-radius:6px; border:1px solid var(--border,#e2e8f0); background:none; cursor:pointer; }
.history-actions button:hover { background:var(--bg,#f8fafc); }

/* ─── WEATHER DASHBOARD KARTY ──────────────────────────────────────────────── */
.wx-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:16px; }
.wx-card { background:var(--bg,#f8fafc); border:1px solid var(--border,#e2e8f0); border-radius:12px; padding:12px 10px; text-align:center; }
.wx-icon { font-size:20px; margin-bottom:4px; }
.wx-label { font-size:11px; color:var(--muted,#94a3b8); text-transform:uppercase; letter-spacing:.4px; margin-bottom:4px; }
.wx-val { font-size:18px; font-weight:700; color:var(--text,#1a1a2e); }

/* ─── HISTORIE ──────────────────────────────────────────────────────────────── */
.history-item { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--border,#e2e8f0); }
.history-item:last-child { border-bottom:none; }
.history-meta { font-size:12px; color:var(--muted,#94a3b8); margin-top:2px; }
.history-actions { display:flex; gap:6px; flex-shrink:0; }
.history-actions button { font-size:14px; padding:4px 8px; border-radius:6px; border:1px solid var(--border,#e2e8f0); background:none; cursor:pointer; }
.history-actions button:hover { background:var(--bg,#f8fafc); }

/* ─── WEATHER DASHBOARD ─────────────────────────────────────────────────────── */
.wx-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.wx-location { font-size:13px; color:var(--muted,#94a3b8); }
.wx-refresh-btn { background:none; border:1px solid var(--border,#e2e8f0); border-radius:8px; padding:5px 12px; cursor:pointer; font-size:13px; color:var(--text,#1a1a2e); }
.wx-refresh-btn:hover { background:var(--bg,#f8fafc); }

.wx-main-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.wx-big-card { background:var(--card-bg,#fff); border:1px solid var(--border,#e2e8f0); border-radius:14px; padding:14px 12px; }
.wx-big-icon { font-size:22px; margin-bottom:6px; }
.wx-big-val { font-size:24px; font-weight:800; line-height:1.1; margin-bottom:4px; }
.wx-big-label { font-size:12px; color:var(--muted,#94a3b8); font-weight:500; margin-bottom:2px; }
.wx-big-sub { font-size:11px; color:var(--muted,#94a3b8); }

.wx-chart-card { background:var(--card-bg,#fff); border:1px solid var(--border,#e2e8f0); border-radius:14px; padding:14px; margin-bottom:12px; }
.wx-chart-title { font-size:13px; font-weight:600; color:var(--text,#1a1a2e); margin-bottom:10px; }
.wx-charts-row { display:flex; gap:12px; margin-bottom:12px; }
.wx-charts-row .wx-chart-card { margin-bottom:0; }

.wx-forecast-row { display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; }
.wx-forecast-day { flex:0 0 auto; min-width:78px; background:var(--bg,#f8fafc); border:1px solid var(--border,#e2e8f0); border-radius:10px; padding:8px 6px; text-align:center; }
.wx-fc-label { font-size:11px; font-weight:600; color:var(--muted,#94a3b8); margin-bottom:5px; }
.wx-fc-wind { font-size:14px; font-weight:700; margin:2px 0; }
.wx-fc-gust { font-size:11px; margin:1px 0; }
.wx-fc-rain { font-size:12px; margin:2px 0; color:var(--muted,#64748b); }
.wx-fc-temp { font-size:12px; font-weight:600; margin-top:3px; }
/* ─── PACKING LIST ──────────────────────────────────────────────────────────── */
.packing-item { display:flex; align-items:flex-start; gap:10px; padding:10px 12px; background:var(--card-bg,#fff); border:1px solid var(--border,#e2e8f0); border-radius:10px; margin-bottom:6px; cursor:pointer; transition:background 0.15s; }
.packing-item:hover { background:var(--bg,#f8fafc); }
.packing-item--checked { opacity:0.6; }
.packing-check { font-size:18px; flex-shrink:0; margin-top:1px; }
.packing-info { flex:1; }
.packing-name { font-size:14px; font-weight:500; }
.packing-item--checked .packing-name { text-decoration:line-through; color:var(--muted,#94a3b8); }
.packing-note { font-size:12px; color:var(--muted,#94a3b8); margin-top:2px; }
.packing-del { background:none; border:none; color:var(--muted,#94a3b8); cursor:pointer; font-size:18px; padding:0 4px; flex-shrink:0; }
.packing-del:hover { color:#e74c3c; }
