/* Barve: modra kot ikona. Tema: auto (po sistemu) / light / dark (data-theme na <html>) */
:root {
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-2: #e2ecf8;
  --ink: #0f2540;
  --ink-2: #4a6282;
  --ink-3: #8196b0;
  --line: #d3e0ef;
  --accent: #0a6fd6;
  --accent-2: #0a4fa6;
  --accent-soft: #d8e9fb;
  --on-accent: #ffffff;
  --ok: #1f8a5b;
  --warn: #c07a12;
  --shadow: 0 1px 2px rgba(10, 40, 90, .06), 0 4px 16px rgba(10, 40, 90, .07);
  --radius: 16px;
  --tabs-h: 64px;
  --top-h: 60px;
  --map-bg: #e6eef7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081424; --surface: #102239; --surface-2: #17304f; --ink: #e7f0fb; --ink-2: #a7bcd6; --ink-3: #6f89aa;
    --line: #1f3857; --accent: #3d9bff; --accent-2: #7cbcff; --accent-soft: #123a66; --on-accent: #ffffff; --ok: #5fd19b; --warn: #f0b04c;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.3); --map-bg: #0d1b2c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081424; --surface: #102239; --surface-2: #17304f; --ink: #e7f0fb; --ink-2: #a7bcd6; --ink-3: #6f89aa;
  --line: #1f3857; --accent: #3d9bff; --accent-2: #7cbcff; --accent-soft: #123a66; --on-accent: #ffffff; --ok: #5fd19b; --warn: #f0b04c;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.3); --map-bg: #0d1b2c;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom));
}
a { color: var(--accent); }
button { font: inherit; color: inherit; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  min-height: var(--top-h);
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-titles { flex: 1; min-width: 0; }
.top h1 { font-size: 18px; margin: 0; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sub { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back[hidden], .brand[hidden] { display: none; }
.back { border: 0; background: var(--surface-2); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-left: -4px; }
.sync-pill {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 5px 10px; font-size: 12px; color: var(--ink-2); max-width: 44vw;
}
.sync-pill span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.sync-pill.ok .dot { background: var(--ok); }
.sync-pill.off .dot { background: var(--warn); }
.sync-pill.busy .dot { background: var(--accent); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }

/* Tabs */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); text-decoration: none; font-size: 11.5px; font-weight: 600; }
.tabs svg { width: 24px; height: 24px; }
.tabs a.active { color: var(--accent); }

main { max-width: 760px; margin: 0 auto; }
.pad { padding: 16px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin: 20px 4px 8px; }

/* Day list */
.days { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.day-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: inherit; border: 1.5px solid transparent;
}
.day-card.today { border-color: var(--accent); }
.day-card.past { opacity: .6; }
.day-date { text-align: center; background: var(--surface-2); border-radius: 12px; padding: 6px 0; }
.day-date .d { font-size: 20px; font-weight: 800; line-height: 1.1; }
.day-date .m { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.day-main { min-width: 0; }
.day-main .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-main .c { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-num { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.badge-today { display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }

/* Day view */
.day-map-wrap { position: relative; height: 44vh; min-height: 240px; max-height: 480px; background: var(--map-bg); }
.day-map { position: absolute; inset: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; text-align: center; padding: 20px; }
.map-btn {
  position: absolute; right: 10px; bottom: 30px; z-index: 5; border: 0; border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow); padding: 8px 12px; font-size: 13px; font-weight: 600;
}
.map-expand .day-map-wrap { height: calc(100dvh - var(--top-h) - var(--tabs-h) - env(safe-area-inset-bottom) - env(safe-area-inset-top)); max-height: none; }
.day-head { padding: 14px 16px 4px; }
.day-head .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.day-head h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.day-head .meta { color: var(--ink-2); font-size: 13.5px; }
.day-nav { display: flex; gap: 6px; }
.day-nav a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 18px; }
.day-nav a[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.notes { white-space: pre-wrap; color: var(--ink-2); font-size: 14px; margin: 8px 16px 0; }

.timeline { list-style: none; margin: 10px 0 0; padding: 0 16px 16px; }
.item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; }
.item + .item::before { content: ""; position: absolute; left: 16px; top: -10px; height: 20px; border-left: 2px dashed var(--line); }
.item .pin {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--accent); color: #fff; border: 0; box-shadow: 0 0 0 3px var(--bg);
}
.item .pin.none { background: var(--surface-2); color: var(--ink-3); }
.item-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; min-width: 0; border: 1.5px solid transparent; }
.item.sel .item-card { border-color: var(--accent); }
.item-top { display: flex; gap: 8px; align-items: baseline; }
.item-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); font-size: 13.5px; flex: none; }
.item-title { font-weight: 700; flex: 1; min-width: 0; }
.chip { font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 1px 7px; flex: none; }
.item-place { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.item-notes { font-size: 13.5px; margin-top: 6px; white-space: pre-wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; padding: 7px 11px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .5; }
.attach { display: flex; align-items: center; gap: 8px; }
.attach img { width: 100%; border-radius: 10px; margin-top: 8px; display: block; }

/* markers */
.mk {
  width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid #fff; background: #0a6fd6; color: #fff;
  font: 800 12.5px/1 system-ui, sans-serif; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: pointer; padding: 0;
}
.mk-hotel { background: #6a4fd6; }
.mk-food { background: #e08600; }
.mk-transport { background: #4b5d73; }
.mk.sel { transform: scale(1.3); z-index: 3; }

/* Info */
.info-sec { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 16px 12px; overflow: hidden; }
.info-sec summary { list-style: none; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; cursor: pointer; }
.info-sec summary::-webkit-details-marker { display: none; }
.info-sec summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
.info-sec[open] summary::after { content: "–"; }
.md { padding: 0 16px 14px; font-size: 14.5px; }
.md p { margin: 0 0 8px; }
.md ul { margin: 0 0 8px; padding-left: 20px; }
.md li { margin: 3px 0; }
.md h3 { font-size: 15px; margin: 12px 0 6px; }

/* Sync */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 0 16px 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.hint { font-size: 13px; color: var(--ink-2); }
.warn { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin: 0 16px 12px; }
.empty { text-align: center; color: var(--ink-2); padding: 40px 20px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: 12px; font-size: 13.5px; opacity: 0;
  transition: opacity .2s, transform .2s; pointer-events: none; z-index: 100; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.maplibregl-ctrl-attrib { font-size: 10px; }

/* theme switch */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.brand { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.maplibregl-ctrl-group { background: var(--surface) !important; }
:root[data-theme="dark"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); } }
.maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--ink-2); }
.maplibregl-ctrl-attrib a { color: var(--ink-2) !important; }

/* ---- Dnevi: panels, search ---- */
.now { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); }
.now.soft { border-color: var(--line); }
.now .k { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.now .v { font-size: 17px; font-weight: 800; }
.now .t { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.flagtxt { color: var(--warn) !important; font-weight: 600; }
.search { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
#dayList { display: flex; flex-direction: column; gap: 10px; }
.hit { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--surface); border-radius: 12px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.hit small { display: block; color: var(--ink-2); font-size: 12.5px; }
.cdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; margin-top: 5px; }
.cdots { display: flex; gap: 4px; margin-top: 5px; }
.cdots .cdot { margin: 0; width: 7px; height: 7px; }

/* ---- Dan ---- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-2); padding: 6px 16px 0; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 0; }
.daytools { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.slot { list-style: none; display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; }
.slot b { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.slot .ln { flex: 1; height: 1px; background: var(--line); }
.item .pin { background: var(--c, var(--accent)); }
.item.done .pin { background: var(--ok); }
.item.done .item-title { color: var(--ink-3); text-decoration: line-through; }
.item-top { cursor: pointer; align-items: flex-start; }
.item-title small.local { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-2); text-decoration: none; }
.check { flex: none; width: 30px; height: 30px; margin: -3px -4px 0 0; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; color: transparent; cursor: pointer; }
.check svg { width: 18px; height: 18px; }
.check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.item-body { display: none; }
.item.open .item-body { display: block; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chip.cat { color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.flag { display: inline-block; margin: 6px 6px 0 0; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); font-size: 12px; font-weight: 700; }
.chips .flag { margin: 0; }
.flag.soft { background: var(--accent-soft); color: var(--accent); }
.tip { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); padding-left: 10px; border-left: 2px solid var(--accent); }
.transport { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.opt { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; background: var(--bg); }
.opt.on { border-color: var(--accent); }
.opt .lbl { font-size: 11.5px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.opt .nm { font-weight: 700; }
.opt .lc { font-size: 12.5px; color: var(--ink-2); }
.opt p { margin: 4px 0 0; font-size: 13.5px; }
.opt .pl { color: var(--ok); } .opt .mn { color: #c0392b; }
.diff { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.diff th, .diff td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.diff th { color: var(--ink-2); font-weight: 600; width: 24%; }
.linkbtn { border: 0; background: none; color: var(--accent); font-size: 13px; cursor: pointer; padding: 4px; }
.own { display: block; margin-top: 10px; }
.own span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 3px; }
.own textarea, .addrow input, .addrow select, .expform input, .conv input { width: 100%; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.photos { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; }
.photos .ph { height: 110px; width: auto; border-radius: 10px; display: block; margin: 0; }
.okbtn { color: var(--ok); border-color: var(--ok); }
.mk-done { opacity: .45; }

/* ---- Pakiranje / Denar ---- */
.pack { list-style: none; margin: 0; padding: 0; }
.pack li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.pack li:last-child { border-bottom: 0; }
.pack label { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.pack input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.pack li.on span { color: var(--ink-3); text-decoration: line-through; }
.addrow { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.addrow input[type=number] { flex: 1.2; } .addrow select { flex: .6; } .addrow input[type=date] { flex: 1.4; }
.okline { flex: 1; font-size: 14px; color: var(--ok); font-weight: 600; }
.conv { display: flex; gap: 8px; align-items: flex-end; margin: 10px 0 6px; }
.conv label { flex: 1; } .conv label span { display: block; font-size: 12px; color: var(--ink-2); font-weight: 700; margin-bottom: 3px; }
.conv .eq { padding-bottom: 9px; color: var(--ink-3); font-weight: 700; }
.expform { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.expform > .btn { margin-top: 10px; align-self: flex-start; }
.total { display: flex; justify-content: space-between; font-weight: 800; padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.total small { color: var(--ink-2); font-weight: 600; }
.exp { list-style: none; padding: 0; margin: 0; }
.exp li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.exp li > div:first-child { flex: 1; min-width: 0; }
.exp small { display: block; color: var(--ink-2); font-size: 12px; font-weight: 500; }
.exp .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---- day strip ---- */
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; background: var(--bg); }
.strip::-webkit-scrollbar { display: none; }
.chip-day { flex: none; min-width: 54px; text-align: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; line-height: 1.15; font: inherit; cursor: pointer; }
.chip-day b { display: block; font-size: 14px; }
.chip-day span { font-size: 11px; color: var(--ink-2); }
.chip-day.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip-day.on span { color: var(--on-accent); opacity: .85; }
.chip-day.today { box-shadow: inset 0 -3px 0 var(--warn); }
.chip-day.add { color: var(--accent); border-style: dashed; font-size: 22px; font-weight: 600; }
/* ---- thumbnails, drag ---- */
.item-top .th { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; margin: -4px 0; }
.hnd { flex: none; color: var(--ink-3); font-size: 20px; line-height: 1; padding: 0 4px 0 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.item.drag { opacity: .35; }
.item.ins-before .item-card { box-shadow: 0 -3px 0 var(--accent), var(--shadow); }
.item.ins-after .item-card { box-shadow: 0 3px 0 var(--accent), var(--shadow); }
.slot.empty { display: none; }
body.dragging .slot.empty { display: flex; }
.slot.over b { color: var(--accent); } .slot.over .ln { background: var(--accent); height: 3px; }
body.dragging { user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
.ghost { position: fixed; z-index: 60; pointer-events: none; background: var(--surface); border: 1.5px solid var(--accent); border-radius: 10px; padding: 8px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 700; max-width: 70vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ---- FAB + sheet ---- */
.fab { position: fixed; right: 16px; bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 16px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 30px; font-weight: 500; box-shadow: 0 6px 18px rgba(10,60,140,.35); z-index: 35; cursor: pointer; }
.fab[hidden] { display: none; }
.veil { position: fixed; inset: 0; background: rgba(5,15,30,.45); z-index: 70; display: none; }
.veil.open { display: block; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); z-index: 71; transform: translateY(105%); transition: transform .22s ease; }
.sheet.open { transform: none; }
.sheet h3 { margin: 0 0 10px; }
.sheet .f { margin-bottom: 10px; }
.sheet .f label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 3px; }
.sheet .f small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.sheet input, .sheet textarea, .sheet select { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.sheet .row { display: flex; gap: 8px; margin-top: 14px; }
.sheet .row .btn { flex: 1; justify-content: center; padding: 11px; }
.sheet .row .del { flex: 0 0 auto; color: #c0392b; }
.item .item-card { border-left: 4px solid var(--c, var(--accent)); }
.item.sel .item-card { border-color: var(--accent); border-left-color: var(--c, var(--accent)); }

/* ---- lightbox, photos ---- */
.phb { border: 0; padding: 0; background: none; cursor: zoom-in; flex: none; }
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; }
.lb-credit { color: #cfd8e3; font-size: 12px; margin-top: 8px; text-align: center; }
.lb-credit a { color: #cfd8e3; }
.lb-row { display: flex; gap: 10px; margin-top: 14px; }
.byline { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.topcard .big { display: flex; justify-content: center; padding: 12px; font-size: 15px; }
.loginform { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.loginform input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.loginform .btn { justify-content: center; padding: 10px; }
.hist { list-style: none; padding: 0; margin: 12px 0 0; max-height: 50vh; overflow: auto; }
.hist li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hist small { display: block; color: var(--ink-3); font-size: 12px; }
.chip-day.list b { font-size: 15px; }
#phCount { flex: none; width: auto; }

/* ---- računalnik / tablica ležeče: dnevi v vrstici zgoraj, itinerar spodaj, zemljevid desno ---- */
@media (min-width: 900px) {
  main { max-width: 1280px; }
  .strip { position: sticky; top: var(--top-h); z-index: 15; padding: 10px 24px; border-bottom: 1px solid var(--line); }
  .day-layout.has-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 44%); gap: 0 24px; padding: 0 24px; }
  .day-layout.has-map .day-map-wrap { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--top-h) + 70px); height: calc(100dvh - var(--top-h) - 70px - var(--tabs-h) - 24px); max-height: none; margin-top: 16px; border-radius: 16px; overflow: hidden; }
  .day-layout.has-map #dayRest { grid-column: 1; grid-row: 1; }
  .day-layout.has-map #mapExpand { display: none; }
  #dayList { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .days { padding: 16px 24px; }
  .tabs { max-width: 760px; margin: 0 auto; border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; }
}

.sheet .err { color: #c0392b; font-size: 13.5px; font-weight: 600; margin-top: 10px; }

/* ---- nove funkcije ---- */
.walk { list-style: none; margin: -2px 0 -2px 44px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.wxline { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.wx { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.hdr-btn { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.hdr-btn svg { width: 20px; height: 20px; }
.say { border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 1px 7px; margin-left: 6px; font-size: 13px; cursor: pointer; vertical-align: 1px; }
.lb.white { background: #fff; color: #111; }
.lb.white .lb-credit { color: #444; }
.taxi { text-align: center; max-width: 560px; width: 100%; }
.taxi-ask { font-size: 30px; font-weight: 800; color: #111; }
.taxi-sl { font-size: 13px; color: #666; margin-bottom: 22px; }
.taxi-jp { font-size: 46px; font-weight: 800; line-height: 1.2; color: #111; word-break: break-all; }
.taxi-name { font-size: 20px; color: #333; margin-top: 12px; font-weight: 700; }
.taxi-addr { font-size: 17px; color: #444; margin-top: 8px; }
.taxi .lb-row { justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.poi-btn { right: auto; left: 10px; }
.poi-btn.on { background: var(--accent); color: var(--on-accent); }
.poi-legend { position: absolute; left: 10px; bottom: 74px; z-index: 5; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; max-width: 70%; }
.poi-legend[hidden] { display: none; }
.poi-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 4px; }
.docgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.doc { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 8px; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.doc-th { height: 120px; border-radius: 10px; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; margin-bottom: 6px; }
.doc-th .pdf { font-weight: 800; color: #c0392b; }
.doc b { display: block; font-size: 13.5px; } .doc small { color: var(--ink-3); font-size: 12px; }
.gosh { list-style: none; padding: 0; margin: 8px 0 0; }
.gosh li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.gosh label { flex: 1; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.gosh input { width: 20px; height: 20px; accent-color: var(--ok); flex: none; }
.gosh small { display: block; color: var(--ink-2); font-size: 12px; }
.gosh li.on b { color: var(--ok); }
.gph { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.gosh-card .v { color: var(--ok); }
.journal { padding: 0 16px 16px; }
.jr { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; margin: 8px 0; }
.jr-h { display: flex; gap: 8px; align-items: baseline; } .jr-h small { color: var(--ink-3); flex: 1; }
.jr .md { padding: 0; margin-top: 4px; }
.bars { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bar { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.bar div { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.sub-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 16px; }
.exp li .cdot { margin-top: 0; }
.print-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.book { background: #fff; color: #111; padding: 24px; margin: 0 16px 16px; border-radius: 12px; }
.book h1 { margin: 0; } .book .sub { color: #555; margin-top: 2px; }
.book h2 { margin: 26px 0 0; font-size: 18px; border-bottom: 2px solid #0a6fd6; padding-bottom: 4px; }
.book h3 { margin: 6px 0; font-size: 15px; color: #444; }
.book .jp { color: #666; }
.bentry { margin: 10px 0; padding-left: 10px; border-left: 3px solid #d6e4f5; }
.bph { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bph img { max-width: 48%; max-height: 260px; border-radius: 6px; object-fit: cover; }
.bph figure { margin: 0; max-width: 48%; } .bph figure img { max-width: 100%; } .bph figcaption { font-size: 12px; color: #555; }
@media print {
  .top, .tabs, .fab, .print-bar, .toast { display: none !important; }
  body { background: #fff; padding: 0; }
  .book { margin: 0; padding: 0; border-radius: 0; }
  .bday { break-inside: avoid-page; }
}
