/* Trenčiansky kraj — Tesla-style, svetlé (bledé) prevedenie */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --surface-3: #eceef1;
  --text: #171a20;
  --muted: #5c636e;
  --faint: #8a919c;
  --border: #e4e7ec;
  --ink: #171a20;          /* Tesla tmavé tlačidlo */
  --brand: #2f7d78;        /* jemný regionálny akcent */
  --accent: #c8892b;
  --shadow: 0 6px 24px rgba(23,26,32,.07);
  --shadow-lg: 0 20px 60px rgba(23,26,32,.14);
  --radius: 14px;
  --maxw: 1180px;
  --nav-h: 62px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
}
a { color: var(--text); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* buttons — Tesla pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: 12px 26px; font-size: 14px;
  font-weight: 500; background: var(--ink); color: #fff; transition: .16s; letter-spacing: .01em;
}
.btn:hover { opacity: .88; }
.btn.ghost { background: rgba(255,255,255,.72); color: var(--ink); border-color: rgba(23,26,32,.18); backdrop-filter: blur(4px); }
.btn.ghost:hover { background: #fff; opacity: 1; }
.btn.light { background: rgba(255,255,255,.92); color: var(--ink); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 16px; font-size: 13px; }
.pill { display: inline-block; background: var(--surface-2); color: var(--muted);
  border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 500; }

/* header — transparent over hero, solid on scroll */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; transition: background .25s, box-shadow .25s, color .25s;
  color: #fff;
}
header.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; color: inherit; letter-spacing: -.02em; }
.nav .brand .logo { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.16);
  display: grid; place-items: center; font-size: 16px; }
.nav nav { display: flex; gap: 20px; align-items: center; }
.nav nav a { color: inherit; font-weight: 500; font-size: 14px; opacity: .92; }
.nav nav a:hover { opacity: 1; }
header.nav.solid { background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(14px);
  color: var(--text); box-shadow: 0 1px 0 var(--border); }
header.nav.solid .brand .logo { background: linear-gradient(135deg, var(--brand), #3a9d97); color: #fff; }
.langtoggle { background: transparent; border: 1px solid currentColor; color: inherit; opacity: .8;
  border-radius: 999px; padding: 5px 11px; font-weight: 600; font-size: 12px; cursor: pointer; }
.langtoggle:hover { opacity: 1; }
@media (max-width: 760px) { .nav nav a.hide-sm { display: none; } .nav nav { gap: 14px; } }

main { min-height: 60vh; }
.page-pad { padding-top: var(--nav-h); }

/* ===== TESLA fullscreen home ===== */
.tesla { scroll-snap-type: y proximity; }
.fs { position: relative; height: 100svh; min-height: 560px; display: flex; flex-direction: column;
  align-items: center; scroll-snap-align: start; overflow: hidden; text-align: center; color: #fff; }
.fs-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fs-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,22,.34) 0%, rgba(10,15,22,.12) 34%, rgba(10,15,22,.5) 100%); }
.fs.light { color: var(--text); }
.fs.light .fs-bg::after { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.55) 60%, rgba(255,255,255,.85)); }
.fs-top { position: relative; z-index: 2; margin-top: clamp(90px, 15vh, 170px); padding: 0 20px; }
.fs-bottom { position: relative; z-index: 2; margin-top: auto; margin-bottom: clamp(34px, 7vh, 70px); padding: 0 20px; width: 100%; }
.fs h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 500; margin: 0 0 10px; line-height: 1.05; }
.fs .sub { font-size: clamp(15px, 2vw, 19px); font-weight: 400; opacity: .95; margin: 0; }
.fs .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; max-width: 420px; margin: 0 auto; }
.fs .cta-row .btn { min-width: 210px; }
@media (max-width: 520px) { .fs .cta-row .btn { min-width: 78vw; } }
.scroll-cue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: #fff; font-size: 22px; opacity: .8; animation: bob 1.8s infinite; }
.fs.light .scroll-cue { color: var(--text); }
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,7px);} }

/* hero AI assistant box */
.hero-ai { position: relative; z-index: 2; margin: 26px auto 0; width: min(680px, 92vw); }
.hero-ai .personas { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.persona-btn { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  font-size: 13.5px; font-weight: 500; backdrop-filter: blur(6px); transition: .15s; }
.persona-btn:hover { background: rgba(255,255,255,.24); }
.persona-btn.on { background: #fff; color: var(--ink); border-color: #fff; }
.ai-input { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.96);
  border-radius: 999px; padding: 7px 7px 7px 20px; box-shadow: var(--shadow-lg); }
.ai-input input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15.5px;
  color: var(--text); font-family: inherit; }
.ai-input .btn { padding: 12px 20px; }
.ai-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.ai-chip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; backdrop-filter: blur(6px); }
.ai-chip:hover { background: rgba(255,255,255,.28); }

/* ===== sections (light content) ===== */
section.block { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; gap: 16px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.section-head p { color: var(--muted); margin: 7px 0 0; }
.center-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.center-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 8px; }
.center-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .thumb { aspect-ratio: 16/10; background: var(--surface-2) center/cover; position: relative; }
.card .thumb .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--ink);
  font-weight: 600; font-size: 11.5px; padding: 5px 11px; border-radius: 999px; }
.card .body { padding: 15px 17px 19px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.card .body h3 { margin: 0; font-size: 17.5px; }
.card .meta { color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; gap: 5px 13px; }
.card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.card .desc { color: var(--muted); font-size: 13.5px; flex: 1; }
.card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-size: 21px; font-weight: 600; }
.price small { font-size: 12.5px; color: var(--faint); font-weight: 500; }

/* district tiles */
.dist-tile { display: flex; gap: 14px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: .2s; }
.dist-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dist-tile .dist-ic { font-size: 26px; width: 50px; height: 50px; flex: none; border-radius: 12px;
  background: var(--surface-2); display: grid; place-items: center; }
.dist-tile h3 { margin: 0 0 4px; font-size: 17px; }
.dist-tile p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }

/* filter chips */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chipf { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 8px 15px; font-weight: 500; font-size: 13px; }
.chipf:hover { color: var(--text); }
.chipf.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* search bar (inner) */
.searchbar { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 7px 7px 20px; max-width: 560px; }
.searchbar input { flex: 1; border: 0; background: transparent; color: var(--text); font-size: 15px; outline: none; font-family: inherit; }

/* map */
.map { width: 100%; height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); z-index: 0; }
.leaflet-container { font: inherit; background: var(--surface-2); }

/* detail */
.detail-hero { aspect-ratio: 21/9; border-radius: var(--radius); background: var(--surface-2) center/cover;
  position: relative; overflow: hidden; }
.detail-hero .overlay { position: absolute; inset: 0; padding: 26px; color: #fff;
  background: linear-gradient(180deg, transparent 45%, rgba(10,15,22,.72)); display: flex; flex-direction: column; justify-content: end; }
.detail-hero .overlay h1 { margin: 0; font-size: clamp(24px, 4vw, 40px); }
.detail-hero .overlay p { margin: 4px 0 0; color: #e8eef6; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; margin-top: 26px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.fact { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.fact .k { color: var(--faint); font-size: 12.5px; } .fact .v { font-weight: 600; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 80px; }
.sfact { padding: 10px 0; border-bottom: 1px solid var(--border); } .sfact:first-child { padding-top: 0; }
.sfact .k { color: var(--faint); font-size: 12.5px; } .sfact .v { font-weight: 600; font-size: 15px; }
.list-check { list-style: none; padding: 0; margin: 8px 0; }
.list-check li { padding: 5px 0 5px 26px; position: relative; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.list-x li::before { content: "✕"; color: #e0524a; }

/* article */
.article { max-width: 760px; }
.article h1 { font-size: clamp(27px, 4vw, 42px); line-height: 1.1; margin: 0; font-weight: 500; }
.article .perex { font-size: 19px; color: var(--text); margin: 0 0 22px; }
.prose { font-size: 16.5px; line-height: 1.75; color: #2a2f38; }
.prose h2 { font-size: 23px; margin: 32px 0 10px; } .prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; } .prose ul { margin: 0 0 16px; padding-left: 22px; } .prose li { margin: 4px 0; }
.hl-box { background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; margin: 26px 0; }
.hl-box h3 { margin: 0 0 10px; font-size: 16px; }
.breadcrumb { color: var(--faint); font-size: 13.5px; margin: 8px 0 18px; } .breadcrumb a { color: var(--faint); }
.credit { font-size: 12px; color: var(--faint); margin: 8px 0 0; text-align: right; }
.credit a { color: var(--faint); } .credit a:hover { color: var(--brand); }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); color: var(--text); font-size: 15px; font-family: inherit; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { font-size: 13px; padding: 12px 14px; border-radius: 11px; margin: 10px 0; }
.note.ok { background: #eaf5f2; color: var(--brand); } .note.err { background: #fdeeec; color: #c0392b; }

/* ===== assistant / itinerary timeline ===== */
.asist-panel { max-width: 1080px; margin: 0 auto; }
.asist-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 22px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; }
.seg button.on { background: var(--ink); color: #fff; }
.timeline-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .timeline-wrap { grid-template-columns: 1fr; } }
.day-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.day-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; font-weight: 500; font-size: 13.5px; }
.day-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tl { position: relative; padding-left: 6px; }
.tl-item { position: relative; padding: 0 0 8px 30px; }
.tl-item::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: -6px; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); z-index: 1; }
.tl-item.lunch .tl-dot { border-color: var(--accent); }
.tl-time { font-weight: 600; font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.tl-card { display: flex; gap: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 13px; overflow: hidden; margin-bottom: 12px; transition: .15s; }
.tl-card:hover { box-shadow: var(--shadow); }
.tl-card .tc-img { width: 108px; flex: none; background: var(--surface-2) center/cover; }
.tl-card .tc-body { padding: 12px 14px; flex: 1; min-width: 0; }
.tl-card .tc-body h4 { margin: 0 0 3px; font-size: 15.5px; font-weight: 600; }
.tl-card .tc-meta { color: var(--faint); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.tl-card .tc-desc { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.tc-actions { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-left: 1px solid var(--border); }
.tc-actions button { border: 0; background: var(--surface-2); border-radius: 8px; width: 32px; height: 32px;
  cursor: pointer; font-size: 14px; color: var(--muted); }
.tc-actions button:hover { background: var(--surface-3); color: var(--text); }
.tl-travel { color: var(--faint); font-size: 12px; margin: 0 0 6px 30px; display: flex; align-items: center; gap: 6px; }
.tl-lunch-card { background: var(--surface-2); border-radius: 13px; padding: 11px 15px; margin-bottom: 12px;
  color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.itin-intro { background: linear-gradient(120deg, #eef5f4, #f6f2ea); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.itin-intro h3 { margin: 0 0 4px; font-size: 18px; }
.itin-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.asist-side { position: sticky; top: 80px; }
.asist-side .map { height: 320px; margin-bottom: 14px; }

/* swap dialog */
dialog.swap { border: 0; border-radius: var(--radius); padding: 0; max-width: 560px; width: 94%;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.swap::backdrop { background: rgba(10,15,22,.5); }
.swap-h { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; justify-content: space-between; }
.swap-b { padding: 16px 20px; max-height: 66vh; overflow: auto; }
.swap-list { display: grid; gap: 10px; }
.swap-opt { display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px; cursor: pointer; background: var(--surface); }
.swap-opt:hover { border-color: var(--ink); }
.swap-opt img, .swap-opt .noimg { width: 70px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-2); }
.iconbtn { border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--border); padding: 44px 0; color: var(--muted); font-size: 14px; margin-top: 60px; }
footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--text); }
footer .brand .logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg,var(--brand),#3a9d97); color:#fff; display: grid; place-items: center; }

.empty { text-align: center; color: var(--faint); padding: 60px 0; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--radius); aspect-ratio: 16/12; }
@keyframes sh { to { background-position: -200% 0; } }
.chip-int { display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px;
  border:1px solid var(--border); background:var(--surface); cursor:pointer; font-size:13px; }
.chip-int.on { background: var(--ink); color:#fff; border-color:var(--ink); }
