/* HadajDovolenku.sk */
:root {
  --bg: #fbf7f0;
  --card: #ffffff;
  --ink: #10233a;
  --muted: #5f6c7b;
  --line: #ebe3d6;
  --sea: #0e6ba8;
  --sea-deep: #0b3c5d;
  --coral: #ff6b4a;
  --coral-dark: #e8522f;
  --sun: #ffc857;
  --good: #16a06f;
  --mid: #e0a100;
  --bad: #e2483d;
  --soft: #f3eee5;
  --shadow: 0 1px 2px rgba(16,35,58,.06), 0 8px 24px rgba(16,35,58,.08);
  --radius: 18px;
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1622; --card: #13212f; --ink: #eef3f8; --muted: #9aa9b8; --line: #22344a;
    --soft: #1a2a3b; --sea: #4aa8e8; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--sea); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
body.wide .wrap { max-width: 1240px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }

/* ─── Topbar ─── */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.logo b { color: var(--coral); font-weight: 800; }
.logo small { color: var(--muted); font-size: 14px; font-weight: 600; }
.logo-mark { font-size: 24px; }
.nav { display: flex; gap: 4px; }
.nav button { border: 0; background: transparent; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.nav button:hover { background: var(--soft); }
.nav em { font-style: normal; background: var(--coral); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
@media (max-width: 480px) { .nav button span { display: none; } .logo { font-size: 17px; } }

main { padding: 24px 0 48px; min-height: 70vh; }

/* ─── Buttons ─── */
.btn { border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 4px 0 var(--coral-dark); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-sea { background: var(--sea); color: #fff; }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-block { width: 100%; }
.link { border: 0; background: none; color: var(--sea); font-weight: 600; padding: 0; }

/* ─── Home ─── */
.hero { padding: 16px 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--sea); margin: 0 0 8px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 800; }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%); padding: 0 4px; }
@media (prefers-color-scheme: dark) { .hl { background: linear-gradient(transparent 62%, rgba(255,200,87,.35) 62%); } }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0; }

.modes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin: 8px 0 24px; }
@media (max-width: 680px) { .modes { grid-template-columns: 1fr; } }
.mode-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.mode-card h2 { font-size: 22px; margin: 8px 0 0; }
.mode-card p { color: var(--muted); margin: 0 0 14px; flex: 1; }
.mode-daily { background: linear-gradient(135deg, var(--sea-deep), var(--sea)); color: #fff; border: 0; }
.mode-daily p { color: rgba(255,255,255,.8); }
.mode-top { display: flex; justify-content: space-between; align-items: center; }
.mode-date { font-size: 13px; opacity: .8; }
.badge { background: var(--sun); color: var(--sea-deep); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.badge-soft { background: var(--soft); color: var(--ink); }
.daily-done { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.daily-done b { font-size: 26px; font-family: var(--font-head); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
@media (max-width: 680px) { .how { grid-template-columns: 1fr; } }
.how div { display: flex; gap: 12px; align-items: flex-start; }
.how b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-family: var(--font-head); }
.how p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel-head h3 { margin: 0; font-size: 18px; }
.mini-board { margin: 0; padding: 0; list-style: none; }
.mini-board li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.mini-board li:last-child { border: 0; }

/* ─── Game ─── */
.game-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 28px; height: 8px; border-radius: 99px; background: var(--line); }
.dots i.done { background: var(--sea); }
.dots i.now { background: var(--coral); }
.dots i.g { background: var(--good); } .dots i.y { background: var(--mid); } .dots i.r { background: var(--bad); }
.game-score { font-size: 14px; color: var(--muted); }
.game-score b { color: var(--ink); font-size: 18px; font-family: var(--font-head); }

.timer { position: relative; height: 26px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.timer-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--good), var(--sun)); transform-origin: left; transition: transform 1s linear, background .3s; }
.timer.warn .timer-fill { background: var(--bad); }
.timer span { position: relative; display: block; text-align: center; font-size: 13px; font-weight: 700; line-height: 26px; }

.trip { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px 24px 24px; }

/* hlavička karty: vlajka, krajina, lokalita */
.trip-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.trip-flag { font-size: 46px; line-height: 1; flex: none; }
.trip-place { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.trip-country { font-family: var(--font-head); font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.05; margin: 0; }
.trip-locality { font-size: 17px; font-weight: 600; color: var(--sea); }
.trip-tag { flex: none; background: var(--sun); color: var(--sea-deep); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.heart { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); color: var(--coral); font-size: 22px; line-height: 1; transition: transform .15s; }
.heart:hover { transform: scale(1.08); }
.heart.on { background: var(--coral); border-color: var(--coral); color: #fff; }

/* rozloženie: fotky vľavo, tip vpravo */
.trip-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.trip-main { min-width: 0; }
.trip-side { position: sticky; top: 76px; }
.side-box { background: var(--soft); border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
.side-box .guess label { font-size: 17px; }
.side-box .btn-block { margin-top: 14px; }

/* veľká fotka */
.ph-main { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center;
  cursor: zoom-in; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
/* mriežka náhľadov ako na stránke cestovky */
.ph-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; margin-top: 10px; }
.ph-grid.big { grid-template-columns: 2fr 1fr 1fr 1fr; }
.ph-grid.big .pt:first-child { grid-row: span 2; }
.pt { position: relative; aspect-ratio: 3 / 2; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--soft) center / cover; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .15s, filter .15s; }
.ph-grid.big .pt:first-child { aspect-ratio: auto; }
.pt:hover { filter: brightness(1.08); }
.pt.on { outline-color: var(--coral); }
.pt .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-weight: 800; font-size: 20px; }

.trip-main .facts { margin-top: 18px; }

@media (max-width: 900px) {
  .trip-layout { grid-template-columns: 1fr; }
  .trip-side { position: static; }
}
@media (max-width: 640px) {
  .trip { padding: 14px; border-radius: 18px; }
  .trip-flag { font-size: 36px; }
  .ph-main { border-radius: 12px; margin: 0 -4px; }
  .ph-grid, .ph-grid.big { display: flex; overflow-x: auto; gap: 8px; }
  .ph-grid .pt, .ph-grid.big .pt:first-child { flex: 0 0 96px; aspect-ratio: 3 / 2; }
}
.facts { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--soft); border-radius: 10px; padding: 7px 12px; font-size: 14px; font-weight: 600; }
.facts li .stars { color: #f0a500; letter-spacing: 1px; }
.hotel-hidden { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

.guess label { display: block; font-weight: 600; margin-bottom: 8px; }
.money { flex: 1; position: relative; }
.money input { width: 100%; padding: 14px 44px 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 22px; font-weight: 700; font-family: var(--font-head); outline: none; }
.money input:focus { border-color: var(--sea); }
.money span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: var(--muted); }
input[type=range] { width: 100%; margin: 16px 0 2px; accent-color: var(--coral); }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ─── Reveal ─── */
.reveal { animation: pop .35s ease; scroll-margin-top: 76px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rv-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 0 10px; border-top: 1px solid var(--line); }
.rv-price small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.rv-price > b { font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1.1; }
.rv-guess { font-size: 14px; color: var(--muted); }
.rv-guess .up { color: var(--bad); font-weight: 700; } .rv-guess .down { color: var(--sea); font-weight: 700; }
.rv-points { text-align: center; background: var(--soft); border-radius: 16px; padding: 10px 16px; min-width: 120px; }
.rv-points .ic { font-size: 26px; display: block; }
.rv-points b { font-family: var(--font-head); font-size: 28px; display: block; line-height: 1.1; }
.rv-points span { font-size: 12px; color: var(--muted); font-weight: 600; }
.rv-verdict { font-weight: 700; margin: 0 0 12px; }

.hist { margin: 6px 0 4px; }
.hist svg { width: 100%; height: auto; display: block; overflow: visible; }
.hist .bar { fill: color-mix(in srgb, var(--sea) 28%, transparent); }
.hist .axis { font-size: 11px; fill: var(--muted); }
.hist-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hist-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.compare { background: color-mix(in srgb, var(--sea) 10%, var(--card)); border-radius: 14px; padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.compare b { color: var(--sea); }
.surprise { display: inline-block; background: var(--sun); color: var(--sea-deep); font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 99px; margin-bottom: 10px; }

.hotel-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 12px 0 16px; }
.hotel-card h4 { margin: 0 0 4px; font-size: 17px; }
.hotel-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.rv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rv-actions .btn { flex: 1; min-width: 150px; }
.rv-actions .btn-sea { flex-basis: 100%; }

/* ─── Result ─── */
.result-hero { text-align: center; background: linear-gradient(135deg, var(--sea-deep), var(--sea)); color: #fff; border-radius: 22px; padding: 30px 20px; margin-bottom: 16px; }
.result-hero .big { font-family: var(--font-head); font-size: clamp(48px, 12vw, 72px); font-weight: 800; line-height: 1; }
.result-hero .of { opacity: .75; }
.squares { font-size: 28px; letter-spacing: 4px; margin: 10px 0; }
.result-hero .pct { font-size: 18px; margin: 8px 0 0; }
.result-hero .pct b { color: var(--sun); }
.result-grid { display: grid; gap: 16px; }
.nick-form { display: flex; gap: 10px; }
.nick-form input { flex: 1; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); font-weight: 600; min-width: 0; }
.recap { width: 100%; border-collapse: collapse; font-size: 15px; }
.recap td:first-child { width: 34px; font-size: 20px; }
.recap td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.recap tr:last-child td { border: 0; }
.recap .pts { font-weight: 800; text-align: right; font-family: var(--font-head); }
.recap .price { white-space: nowrap; }
.recap small { color: var(--muted); display: block; }
.share-box { white-space: pre-wrap; background: var(--soft); border-radius: 12px; padding: 12px; font-size: 14px; margin: 0 0 12px; }

/* ─── Leaderboard ─── */
.page-title { font-size: 34px; }
.tabs { display: inline-flex; background: var(--soft); border-radius: 12px; padding: 4px; margin: 12px 0 16px; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font-weight: 600; }
.tabs button.active { background: var(--card); box-shadow: var(--shadow); }
.board { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.board li:last-child { border: 0; }
.board .pos { font-family: var(--font-head); font-weight: 800; color: var(--muted); }
.board li:nth-child(1) .pos::before { content: '🥇'; } .board li:nth-child(2) .pos::before { content: '🥈'; } .board li:nth-child(3) .pos::before { content: '🥉'; }
.board li:nth-child(-n+3) .pos span { display: none; }
.board .sc { font-weight: 800; font-family: var(--font-head); }
.board li.me { background: color-mix(in srgb, var(--sun) 25%, var(--card)); }
.me-rank { background: var(--card); border: 2px solid var(--sun); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }

/* ─── Saved ─── */
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 16px; }
.saved-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.saved-card .sv { height: 100px; padding: 14px; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.saved-card .sv span { font-size: 36px; }
.saved-card .sb { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.saved-card .sb p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.saved-card .sp { font-weight: 800; font-family: var(--font-head); font-size: 20px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); grid-column: 1 / -1; }

/* ─── Footer, toast ─── */
.footer { border-top: 1px solid var(--line); padding: 24px 0 90px; font-size: 14px; }
.footer p { margin: 0 0 6px; }
.demo-note { color: var(--coral-dark); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ─── Debug ─── */
.dbg-fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; border: 0; background: #1d1d1f; color: #7CFC9A; font: 700 13px ui-monospace, monospace; padding: 10px 14px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.dbg { position: fixed; right: 16px; bottom: 64px; z-index: 91; width: 320px; max-width: calc(100% - 32px); max-height: calc(100vh - 100px); overflow: auto; background: #1d1d1f; color: #e8e8e8; border-radius: 14px; padding: 14px; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.dbg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: #7CFC9A; }
.dbg-head button { background: none; border: 0; color: #aaa; font-size: 16px; }
.dbg-group { border-top: 1px solid #333; padding: 10px 0 4px; }
.dbg-group h4 { margin: 0 0 8px; color: #888; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.dbg button:not(.dbg-head button) { background: #2c2c2e; border: 1px solid #3a3a3c; color: #e8e8e8; padding: 7px 10px; border-radius: 8px; font: inherit; width: 100%; margin-bottom: 6px; text-align: left; }
.dbg button:hover { background: #3a3a3c; }
.dbg button.danger { color: #ff7b72; }
.dbg-row { display: flex; gap: 6px; }
.dbg-row > * { flex: 1; }
.dbg-row input { background: #2c2c2e; border: 1px solid #3a3a3c; color: #e8e8e8; border-radius: 8px; padding: 6px 8px; font: inherit; margin-bottom: 6px; min-width: 0; color-scheme: dark; }
.dbg-check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.dbg-price { background: #7CFC9A; color: #111; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dbg .dbg-price button { width: auto; margin: 0 0 0 auto; background: #111; color: #7CFC9A; border: 0; }
.dbg-info { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 12px; }
.dbg-info dt { color: #888; } .dbg-info dd { margin: 0; color: #e8e8e8; word-break: break-word; }

/* ─── Galéria fotiek ─── */
.ph-nav { position: absolute; top: 50%; transform: translateY(-60%); width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.88); color: #0f172a; font-size: 26px; line-height: 1; padding: 0 0 3px; cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.2); opacity: .9; transition: opacity .15s, transform .15s; }
.ph-nav:hover { opacity: 1; transform: translateY(-60%) scale(1.06); }
.ph-prev { left: 12px; } .ph-next { right: 12px; }
.ph-count { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); border: 0; cursor: pointer;
  background: rgba(15,23,42,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; backdrop-filter: blur(4px); }
.thumb { flex: 0 0 64px; height: 44px; border-radius: 8px; border: 2px solid transparent; background: var(--soft) center/cover;
  cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; padding: 0; }
.thumb:hover { opacity: 1; }
.thumb.on { border-color: var(--coral); opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,22,.94); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 56px 64px 16px; }
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb-fig { margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.lb-fig img { max-width: min(100%, 1100px); max-height: calc(100% - 34px); width: auto; min-width: min(100%, 640px); object-fit: contain;
  border-radius: 12px; background: #1e293b; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-fig figcaption { color: #cbd5e1; font-size: 14px; margin-top: 10px; text-align: center; }
.lb-close { position: absolute; top: 12px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 32px; line-height: 1; padding: 0 0 4px; cursor: pointer; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding-top: 12px; }
.lb-thumbs .thumb { flex-basis: 72px; height: 50px; }
@media (max-width: 640px) {
  .lightbox { padding: 56px 8px 12px; }
  .lb-nav { top: auto; bottom: 78px; transform: none; width: 44px; height: 44px; }
  .lb-fig img { min-width: 100%; }
}
.dest-info { background: var(--soft); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.dest-info h5 { margin: 0 0 4px; font-size: 14px; }
.dest-info p { margin: 0; font-size: 14px; line-height: 1.5; }

/* vlajky na Windows (font sa načíta len tam, kde chýbajú) */
:root.flag-fix {
  --font-head: 'Twemoji Country Flags', 'Bricolage Grotesque', system-ui, sans-serif;
  --font: 'Twemoji Country Flags', 'Inter', system-ui, -apple-system, sans-serif;
}

/* info pred tipom */
.trip-desc { margin: 2px 0 12px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.info-grid[hidden] { display: none; }
.info-grid.single { grid-template-columns: 1fr; }
.info-grid .dest-info { margin: 0; }
.trip-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; min-height: 170px; background: var(--soft); }
.trip-map iframe { display: block; width: 100%; height: 100%; min-height: 170px; border: 0; }
.trip-map a { position: absolute; right: 8px; bottom: 8px; background: rgba(255,255,255,.92); color: #0f172a; font-size: 12px; font-weight: 700;
  padding: 4px 9px; border-radius: 99px; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.hotel-card h4 { margin-bottom: 12px; }

.ph-count { top: auto; bottom: 12px; left: auto; right: 12px; transform: none; font-size: 13px; padding: 6px 12px; }
.reveal .rv-top, .reveal .rv-actions { flex-wrap: wrap; }
.side-box .btn-ghost { background: var(--card); border: 1px solid var(--line); }
.side-box .hotel-card { background: var(--card); }

/* ═══ Úvod v2 ═══ */
.hero { text-align: center; padding: 28px 0 8px; }
.hero .lead { margin: 0 auto; font-size: 19px; }
.btn-xl { padding: 18px 34px; font-size: 19px; border-radius: 14px; }
.teaser { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 26px 0 22px; }
.tz { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--sea), var(--sun));
  box-shadow: var(--shadow); animation: tzIn .5s ease both; animation-delay: var(--d); transform: rotate(var(--r, 0deg)); }
.tz:nth-child(odd) { --r: -2deg; } .tz:nth-child(even) { --r: 2deg; } .tz:nth-child(3) { --r: 0deg; }
.tz i { position: absolute; inset: -12px; background: center / cover; filter: blur(7px) saturate(1.2); }
.tz::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%); }
.tz-flag { position: absolute; left: 10px; bottom: 8px; z-index: 1; font-size: 30px; line-height: 1; }
.tz-q { position: absolute; right: 10px; bottom: 6px; z-index: 1; color: #fff; font: 800 28px/1 var(--font-head); opacity: .9; }
.tz-tag { position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--sun); border-radius: 99px; padding: 2px 7px; font-size: 13px; }
@keyframes tzIn { from { opacity: 0; transform: translateY(12px) rotate(var(--r, 0deg)); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-sub { margin: 0; font-size: 14px; color: var(--muted); }
.hero-sub .link { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.live { margin: 2px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.live b { color: var(--ink); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(22,160,111,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(22,160,111,0); } 100% { box-shadow: 0 0 0 0 rgba(22,160,111,0); } }
.daily-done { justify-content: center; }
.how { margin: 30px 0 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) {
  .teaser { grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 20px -4px 18px; }
  .tz { border-radius: 10px; }
  .tz-flag { font-size: 20px; left: 6px; bottom: 5px; } .tz-q { font-size: 18px; right: 6px; } .tz-tag { display: none; }
  .btn-xl { width: 100%; }
  .hero h1 { font-size: 36px; }
}

/* ═══ Hra v2 ═══ */
.trip-stars { font-size: .5em; vertical-align: middle; color: #f0a500; letter-spacing: 2px; white-space: nowrap; }
.trip-stars .stars { color: inherit; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }
.badges:empty { display: none; }
.bdg { font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 99px; letter-spacing: .01em; }
.bdg-sale { background: var(--bad); color: #fff; }
.bdg-lm { background: var(--sun); color: #3a2a00; }
.bdg-fm { background: var(--sea); color: #fff; }
.badges:not(:empty) + .facts { margin-top: 10px; }

/* časovač ako krúžok v boxe s tipom */
.guess-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.guess-head label { margin: 0; }
.ring { position: relative; width: 50px; height: 50px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--good); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 16px/1 var(--font-head); }
.ring.warn .ring-fg { stroke: var(--bad); }
.ring.warn span { color: var(--bad); animation: tick 1s infinite; }
@keyframes tick { 50% { transform: scale(1.12); } }
.side-box .hotel-hidden { margin: 12px 0 0; text-align: center; font-size: 13px; }

/* destinácia + mapa: na počítači vždy otvorené, na mobile zbalené */
.more-dest { margin-top: 12px; }
.more-dest > summary { list-style: none; cursor: pointer; font-weight: 700; padding: 12px 14px; background: var(--soft); border-radius: 12px; display: flex; justify-content: space-between; }
.more-dest > summary::-webkit-details-marker { display: none; }
.more-dest > summary::after { content: '▾'; transition: transform .2s; }
.more-dest[open] > summary::after { transform: rotate(180deg); }
.more-dest[open] > summary { margin-bottom: 12px; }
@media (min-width: 901px) {
  .more-dest > summary { display: none; }
}

/* mobilná lišta */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); animation: up .25s ease; }
.mbar[hidden] { display: none; }
.mbar .btn { flex: 1; padding: 13px; font-size: 16px; }
.mbar-time { font: 800 16px/1 var(--font-head); min-width: 64px; }
.mbar-time.warn { color: var(--bad); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
body.has-mbar { padding-bottom: 76px; }
body.has-mbar .dbg-fab { bottom: 86px; }

/* ═══ Vyhodnotenie v2 ═══ */
.rv-score { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 16px; border-radius: 16px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--rv) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--rv) 35%, transparent); }
.rv-g { --rv: var(--good); } .rv-y { --rv: var(--mid); } .rv-r { --rv: var(--bad); }
.rv-ic { font-size: 40px; line-height: 1; grid-row: span 2; }
.rv-pts { font: 800 44px/1 var(--font-head); color: var(--rv); letter-spacing: -.02em; }
.rv-label { margin-left: 6px; font-weight: 700; color: var(--muted); }
.rv-score .rv-verdict { margin: 0; font-weight: 700; }
.rv-score.done .rv-pts { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.12); } }
.rv-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.rv-prices > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rv-prices small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rv-prices b { display: block; font: 800 26px/1.15 var(--font-head); }
.rv-prices span { font-size: 13px; color: var(--muted); }
.rv-prices .up { color: var(--bad); font-weight: 700; } .rv-prices .down { color: var(--sea); font-weight: 700; }
.rv-mine { color: var(--muted); }
.hotel-card .btn-sea { margin-top: 4px; }
.rv-icons { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.rv-icons a, .rv-icons button { border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 8px; text-decoration: none; }
.rv-icons a:hover, .rv-icons button:hover { background: var(--soft); }
