/* Vyhledávač výletů (kb/18): navazuje na web/style.css (papír, pastelka, výstřižky). Mobil první, bez inline stylů
   (CSP style-src 'self'). Praktické údaje (třídy pk-*) kreslí herní PraktikaView.js, vzhled převzatý z hra/style.css. */

.vy-main { padding: 18px 0 60px; }
:where(.vy) section { padding: 0; margin: 34px 0 0; scroll-margin-top: 70px; }
:where(.vy) h2 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 12px; }
:where(.vy) h3 { font-size: 24px; }
:where(.vy) .intro { font-size: 18px; max-width: 46em; }

.vy-nav a[aria-current="page"] { color: var(--red); }

/* drobečky */
.vy-crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.vy-crumbs li { min-width: 0; overflow-wrap: anywhere; }
.vy-crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--ink-soft); }
.vy-crumbs a { color: var(--ink-soft); }
.vy-crumbs [aria-current] { color: var(--ink); }

.vy-intro h1 { font-size: clamp(44px, 8vw, 76px); margin: 6px 0 12px; overflow-wrap: anywhere; }
.vy-intro-icon { display: flex; gap: 16px; align-items: center; }
.vy-intro-icon img { width: 76px; height: 76px; flex: none; }
.vy-jump { margin-top: 6px; }

/* tlačítka a štítky */
.vy-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 18px 4px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--paper-2); color: var(--ink); font-family: var(--round); font-weight: 800; font-size: 16px; line-height: 1.1; text-decoration: none;
  box-shadow: 2px 3px 0 rgba(59, 47, 37, .2); cursor: pointer;
}
.vy-btn:hover { color: var(--ink); transform: translateY(-1px); }
.vy-btn.primary { background: var(--yellow); }
.vy-btn svg, .vy-chip svg { width: 22px; height: 22px; flex: none; }
.vy-btn[hidden] { display: none; }
.vy-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 14px 2px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper-2); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; line-height: 1.1; cursor: pointer; white-space: nowrap;
}
.vy-chip[aria-pressed="true"], .vy-chip[aria-checked="true"] { background: var(--yellow); box-shadow: inset 0 0 0 1px var(--ink); }
.vy-chip[disabled] { opacity: .55; cursor: default; }
.vy-chip[data-zero] { opacity: .55; }
.vy-chip small { font-size: 13px; color: var(--ink-soft); }
.vy-chip[hidden] { display: none; }
.vy-link-btn { border: 0; background: none; padding: 4px 2px; font: inherit; font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vy-link-btn[hidden] { display: none; }

/* formulář hledání */
.vy-search { margin: 18px 0 0; padding: 16px; background: var(--paper-2); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 4px 6px 0 rgba(59, 47, 37, .18); display: grid; gap: 14px; min-width: 0; }
.vy-search[hidden] { display: none; }
.vy-q { display: flex; align-items: center; gap: 8px; border: 2.5px solid var(--ink); border-radius: 16px; background: #fffdf6; padding: 0 12px; }
.vy-q svg { width: 26px; height: 26px; flex: none; }
.vy-q input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink); padding: 12px 0; outline: none; }
.vy-q:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.vy-label { font-weight: 800; font-size: 15px; color: var(--ink-soft); margin-right: 4px; }
.vy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.vy-row:empty { display: none; }
.vy-from { display: grid; gap: 8px; }
.vy-from-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vy-combo { position: relative; flex: 1 1 220px; min-width: 0; }
.vy-combo input { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fffdf6; border: 2px solid var(--ink); border-radius: 14px; padding: 9px 12px; }
.vy-suggest { position: absolute; z-index: 4; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fffdf6; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 3px 5px 0 rgba(59, 47, 37, .2); max-height: 320px; overflow-y: auto; }
.vy-suggest[hidden] { display: none; }
.vy-suggest li { padding: 9px 10px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.vy-suggest li small { font-weight: 600; color: var(--ink-soft); }
.vy-suggest li[aria-selected="true"], .vy-suggest li:hover { background: var(--yellow); }
.vy-suggest li.none { cursor: default; color: var(--ink-soft); }
.vy-from-now { margin: 0; font-size: 16px; }
.vy-from-now[hidden], .vy-hint[hidden] { display: none; }
.vy-hint { margin: 0; font-size: 15px; color: var(--ink-soft); }

.vy-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vy-theme {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 92px; padding: 8px 4px 6px;
  border: 2px solid var(--ink); border-radius: 16px; background: #fffdf6; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; line-height: 1.1; text-align: center; cursor: pointer;
}
.vy-theme img { width: 44px; height: 44px; }
.vy-theme b { position: absolute; top: 4px; right: 6px; font-size: 12px; color: var(--ink-soft); }
.vy-theme[aria-pressed="true"] { background: var(--yellow); box-shadow: 2px 3px 0 rgba(59, 47, 37, .25); }
.vy-theme.zero { opacity: .5; }
.vy-subs { display: grid; gap: 8px; }
.vy-subs:empty { display: none; }
.vy-more-f summary { cursor: pointer; font-weight: 800; color: var(--red); padding: 4px 0; }
.vy-more-body { display: grid; gap: 12px; margin-top: 8px; }
.vy-more-body fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vy-more-body fieldset[hidden] { display: none; }
.vy-more-body legend { font-weight: 800; font-size: 16px; padding: 0; margin-bottom: 6px; }
.vy-more-body select { font: inherit; font-size: 17px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fffdf6; color: var(--ink); max-width: 100%; }

/* výsledky a mapa */
.vy-layout { display: grid; gap: 18px; margin-top: 18px; min-width: 0; }
.vy-results { min-width: 0; }
.vy-res-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.vy-res-head h2 { font-size: clamp(28px, 4.5vw, 38px); margin: 0; }
.vy-map { min-height: 60vh; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--paper-3); }
.vy-map[hidden] { display: none; }
.vy-more-btn { text-align: center; margin: 18px 0 0; }

/* karty míst */
.vy-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.vy-card a {
  display: flex; gap: 12px; align-items: center; height: 100%; padding: 10px 12px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 18px;
  color: var(--ink); text-decoration: none; box-shadow: 2px 3px 0 rgba(59, 47, 37, .15); min-width: 0;
}
.vy-card a:hover { color: var(--ink); background: #fffdf6; }
.vy-card img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.vy-card.main img { filter: drop-shadow(0 0 0 #fff) drop-shadow(2px 3px 0 rgba(59, 47, 37, .18)); }
.vy-card-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.vy .vy-card-name { font-family: var(--round); font-weight: 800; font-size: 17px; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.vy-card-where { font-size: 14px; line-height: 1.25; color: var(--ink-soft); overflow-wrap: anywhere; }
.vy-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.vy-tag { font-size: 12.5px; font-weight: 700; line-height: 1.2; padding: 2px 8px 1px; border: 1.5px solid rgba(59, 47, 37, .45); border-radius: 999px; background: #fffdf6; }
.vy-tag.star { background: var(--yellow); border-color: var(--ink); }
.vy-tag.warn { border-color: var(--red); color: var(--red); }
.vy-card.closed a { opacity: .8; }
.vy-card-dist { flex: none; align-self: flex-start; font-weight: 800; font-size: 15px; white-space: nowrap; }

.vy-empty { text-align: center; padding: 20px 0; display: grid; gap: 10px; justify-items: center; }
.vy-empty img { width: 110px; }

/* seznamy krajů, okresů a témat */
.vy-areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vy-areas li a { display: inline-block; padding: 6px 12px 4px; font-weight: 700; color: var(--ink); text-decoration: none; }
.vy-areas li { display: inline-flex; align-items: center; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 999px; padding-right: 10px; box-shadow: 2px 3px 0 rgba(59, 47, 37, .12); }
.vy-areas li span { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.vy-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vy-topics a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 18px; color: var(--ink); text-decoration: none; font-weight: 800; line-height: 1.15; min-height: 76px; }
.vy-topics img { width: 48px; height: 48px; flex: none; }
.vy-topics span { flex: 1; min-width: 0; }
.vy-topics small { font-size: 14px; color: var(--ink-soft); }
.vy .vy-sub { font-family: var(--round); font-weight: 800; font-size: 19px; margin: 22px 0 6px; }
.vy-sub a { color: var(--ink); }
.vy-sub span { font-size: 14px; color: var(--ink-soft); }
.vy-links { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 28px; }
.vy-links li { break-inside: avoid; padding: 5px 0; border-bottom: 1px dashed rgba(59, 47, 37, .2); font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.vy-links li a { font-weight: 700; }
.vy-links li span { font-size: 14px; color: var(--ink-soft); }

/* stránka místa */
.vy-place-head { display: grid; gap: 10px 22px; align-items: center; }
.vy-hero { width: min(100%, 300px); height: auto; justify-self: center; }
.vy-hero.cutout-img { filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 5px 0 rgba(59, 47, 37, .18)); }
.vy-hero.icon-img { width: 120px; }
.vy-kicker { display: inline-block; margin: 0; background: var(--mint); border: 2px solid var(--ink); border-radius: 10px; padding: 2px 10px 0; font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.vy-place h1 { font-size: clamp(40px, 7vw, 64px); margin: 8px 0 6px; overflow-wrap: anywhere; }
.vy-where { margin: 0 0 8px; font-weight: 700; color: var(--ink-soft); }
.vy-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vy-chips li { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px 0; font-weight: 700; font-size: 15px; }
.vy-hazard { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; border: 2.5px solid #c8472b; background: #fde6d8; font-weight: 700; font-size: 17px; line-height: 1.35; }
.vy-place-grid { display: grid; gap: 0 32px; min-width: 0; }
.vy-texts { min-width: 0; }
.vy-texts section h2, .vy-parents > h2 { font-size: clamp(30px, 4.6vw, 40px); }
.vy-kid { font-family: var(--hand); font-size: 22px; line-height: 1.35; }
.vy-task { background: var(--paper-2); border: 2px dashed var(--ink); border-radius: 18px; padding: 14px 16px 4px; }
.vy .vy-task { margin-top: 26px; }
.vy-task h2 { font-size: 30px; }
.vy-theme-line { font-size: 16px; margin-top: 18px; }
.vy-parents { min-width: 0; background: var(--paper-2); border: 3px solid var(--ink); border-radius: 22px; padding: 16px 16px 14px; box-shadow: 4px 6px 0 rgba(59, 47, 37, .16); align-self: start; }
.vy-parents dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 16px; line-height: 1.3; }
.vy-parents dt { color: var(--ink-soft); font-weight: 700; }
.vy-parents dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.vy-before { margin: 6px 0 4px; padding: 9px 12px; border: 2px solid #d9a326; border-radius: 14px; background: #fbe9c4; }
.vy-before b { display: block; font-size: 15px; }
.vy-before p { margin: 3px 0 0; font-size: 16px; line-height: 1.3; }
.vy-verify { font-size: 15px; color: var(--ink-soft); margin: 4px 0 0; }
.vy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vy-cta { display: flex; gap: 16px; align-items: center; background: #fff3c4; border: 3px solid var(--ink); border-radius: 22px; padding: 16px 18px; box-shadow: 4px 6px 0 rgba(59, 47, 37, .16); }
.vy-cta img { width: 96px; height: auto; flex: none; }
.vy-cta h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 6px; }
.vy-cta p { font-size: 16px; margin-bottom: 6px; }
.vy-cta.solemn { background: var(--paper-2); }
.vy-data-note { margin-top: 30px; font-size: 14px; color: var(--ink-soft); }

/* praktické údaje (hra/style.css, karta místa varianta C) */
.vy-parents .pk-sec { margin-top: 16px; }
.vy-parents .pk-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--round); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.pk-ic { display: inline-block; flex: none; width: 22px; height: 22px; vertical-align: middle; }
.pk-ic svg, .pk-st-icon svg, .pk-fi svg { width: 100%; height: 100%; display: block; }
.pk-status { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; }
.pk-st-icon { flex: none; width: 30px; height: 30px; }
.pk-st-body { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; }
.pk-st-label { font-weight: 800; font-size: 18px; line-height: 1.15; }
.pk-ok .pk-st-label { color: #3f6f25; }
.pk-bad .pk-st-label { color: var(--red); }
.pk-st-text { font-size: 16px; }
.pk-st-detail { flex-basis: 100%; font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }
.pk-warn, .pk-note { font-size: 15px; line-height: 1.3; margin: 3px 0 6px; }
.pk-warn { color: var(--red); font-weight: 700; }
.pk-note { color: var(--ink-soft); }
.pk-week { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.25; }
.pk-row th, .pk-row td { padding: 6px 4px; border-bottom: 1.5px dotted rgba(59, 47, 37, .25); vertical-align: top; }
.pk-row th { text-align: left; font-weight: 600; white-space: nowrap; }
.pk-row td { text-align: right; }
.pk-row td small { display: block; font-size: 13px; color: var(--ink-soft); }
.pk-row.pk-today { background: #fff0b8; }
.pk-row.pk-today th, .pk-row.pk-today td { font-weight: 800; }
.pk-row.pk-closed th, .pk-row.pk-closed td { color: var(--ink-soft); }
.pk-row.pk-closed td { font-style: italic; }
.pk-dnes { display: inline-block; margin-left: 4px; padding: 0 6px; border: 2px solid var(--ink); border-radius: 9px; font-size: 12px; font-weight: 800; background: var(--paper-2); }
.pk-common { font-size: 14px; }
.pk-months { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.pk-m { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; font-size: 12px; color: var(--ink-soft); }
.pk-m b { display: grid; place-items: center; width: 100%; height: 18px; border-radius: 5px; font-size: 11px; line-height: 1; color: rgba(59, 47, 37, .55); background: #e6dece; }
.pk-m-open b { background: #a9cf86; color: #2f5a1a; }
.pk-m-part b { background: repeating-linear-gradient(135deg, #a9cf86 0 4px, #e6dece 4px 8px); color: #2f5a1a; }
.pk-m-unknown b { background: transparent; border: 1.5px dotted rgba(59, 47, 37, .35); }
.pk-m-cur b { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.pk-m-cur span { color: var(--ink); font-weight: 800; }
.pk-legend { font-size: 13px; margin: 4px 0 0; color: var(--ink-soft); }
.pk-prices { list-style: none; margin: 0; padding: 0; }
.pk-price { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1.5px dotted rgba(59, 47, 37, .25); font-size: 16px; line-height: 1.25; }
.pk-price b { flex: none; font-weight: 800; white-space: nowrap; }
.pk-price small { display: block; font-size: 13px; color: var(--ink-soft); }
.pk-grp { list-style: none; margin: 10px 0 0; padding: 0 4px 2px; font-weight: 800; font-size: 14px; color: var(--ink-soft); border-bottom: 2px solid rgba(59, 47, 37, .35); }
.pk-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pk-hl b { color: #3f6f25; }
.pk-allfree { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-weight: 800; font-size: 19px; }
.pk-facts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pk-fact { display: flex; align-items: center; gap: 6px; min-height: 40px; max-width: 100%; padding: 3px 12px 3px 6px; border: 2px solid var(--ink-soft); border-radius: 20px; background: #fffdf6; font-size: 15px; line-height: 1.2; }
.pk-f-yes { border-color: var(--green); }
.pk-f-no { border-color: var(--red); border-style: dashed; }
.pk-fi { position: relative; flex: none; width: 26px; height: 26px; }
.pk-fi-no::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; border-top: 3px solid var(--red); transform: rotate(-40deg); }
.pk-f-yes b { color: #2f5a1a; }
.pk-f-no b { color: var(--red); }
.pk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pk-updated { font-size: 15px; margin: 12px 0 0; color: var(--ink-soft); }
.pk-foot { margin-top: 10px; }

/* širší displeje */
@media (min-width: 640px) {
  .vy-themes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vy-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vy-links { columns: 2; }
  .vy-place-head { grid-template-columns: minmax(200px, 300px) 1fr; }
  .vy-hero { justify-self: start; }
  .vy-hero.icon-img { justify-self: center; }
}
@media (min-width: 760px) {
  .vy-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vy-search { padding: 20px 22px; }
}
@media (min-width: 1000px) {
  .vy-themes { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .vy-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vy-links { columns: 3; }
  .vy-place-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .vy-layout.has-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .vy-layout.has-map .vy-cards { grid-template-columns: minmax(0, 1fr); }
  .vy-layout.has-map .vy-map { position: sticky; top: 80px; height: calc(100vh - 100px); min-height: 420px; order: 2; }
  .vy-topics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1000px) and (max-width: 1180px) { .vy-layout.has-map .vy-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 999px) { .vy-layout.has-map .vy-map { order: -1; } }
@media (max-width: 420px) {
  .vy-card img { width: 60px; height: 60px; }
  .vy-cta { flex-direction: column; text-align: center; }
  .vy-cta img { width: 84px; }
}
@media (prefers-reduced-motion: reduce) { .vy-btn:hover { transform: none; } }
