/* =========================================================
   PO STOPÁCH RV RODINY – přehled zemí (/po-stopach)
   Podle návrhu zadani/zadani-po-stopach-redesign/navrh (schválen 17. 10. 2026).
   Načítá se jen na stránce Po stopách (a na stránkách zemí).
   ========================================================= */

:root {
  --ps-text-2: #6A5F5A;   /* doplňkový text (kvůli kontrastu ne šedá --gray) */
  --ps-text-3: #4A403C;   /* text karet */
  --ps-light: #F3ECE6;    /* text na hnědém úvodu */
  --ps-stin: 0 1px 2px rgba(44, 35, 32, .08);
  --ps-linka: 0 0 0 1px rgba(44, 35, 32, .14);
}

/* ---------- úvod ---------- */
.ps-hero { background: var(--brown); color: var(--white); }
.ps-hero :focus-visible { outline-color: var(--mustard); }
.ps-hero__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 52px 0 48px; }
.ps-hero__text { flex: 1 1 520px; max-width: 640px; }
.ps-hero h1 { margin: 0 0 14px; font-size: 52px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: var(--white); }
.ps-hero p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ps-light); }
.ps-stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ps-light); }
.ps-stats strong { display: block; margin-bottom: 6px; font-size: 44px; font-weight: 800; line-height: 1; color: var(--mustard); }

/* ---------- společné ---------- */
.ps-sec h2 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.ps-sub { margin: 0 0 22px; font-size: 16px; color: var(--ps-text-2); }
.ps-meta { font-size: 14px; color: var(--ps-text-2); }
.ps-flag { flex: none; width: 28px; height: 21px; }
.ps-sec--featured { padding: 48px 0 8px; }
.ps-sec--all { padding: 48px 0 64px; }

/* ---------- Odkud toho máme nejvíc ---------- */
.ps-featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ps-fcard { height: 100%; display: flex; flex-direction: column; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--ps-stin); color: var(--brown-dark); text-decoration: none; }
.ps-fcard__img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--brown); }
.ps-fcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-badge { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: var(--mustard); color: var(--brown-dark); font-size: 13px; font-weight: 700; line-height: 1.2; }
.ps-fcard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.ps-fcard__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.ps-fcard__text { font-size: 15px; line-height: 1.45; color: var(--ps-text-3); }
.ps-fcard:hover .ps-fcard__title { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- Všechny země (změnový požadavek 17. 10. 2026: rozbalovací kontinenty, velká mapa) ---------- */
.ps-sec--all { padding: 56px 0 64px; }
.ps-sec--all .ps-sub { margin-bottom: 24px; }
.ps-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 540px); gap: 32px; align-items: start; }
.ps-list { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ps-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.ps-search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: var(--white); border-radius: 10px; box-shadow: var(--ps-linka); color: var(--ps-text-2); }
.ps-search:focus-within { box-shadow: 0 0 0 2px var(--brown-dark); }
.ps-search input { width: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--brown-dark); }
.ps-search input::-webkit-search-cancel-button { cursor: pointer; }
.ps-only { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--white); box-shadow: var(--ps-linka); font: inherit; font-size: 15px; font-weight: 600; color: var(--brown-dark); cursor: pointer; white-space: nowrap; }
.ps-check { flex: none; width: 18px; height: 18px; border: 2px solid var(--brown); border-radius: 5px; background: var(--white); }
.ps-only[aria-pressed="true"] .ps-check { background: var(--brown) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5 6 10.5 11 4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ps-maptoggle { display: none; }

/* karta kontinentu: záhlaví je tlačítko, které ji otevře a zavře */
.ps-cont { overflow: hidden; border-radius: 14px; background: var(--white); box-shadow: var(--ps-stin); }
.ps-cont__head { margin: 0; font-size: inherit; letter-spacing: 0; }
.ps-cont__btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 16px 18px; border: 0; background: transparent; font: inherit; color: var(--brown-dark); text-align: left; cursor: pointer; }
.ps-cont__btn:focus-visible { outline-offset: -3px; }
.ps-cont__title { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ps-cont__name { font-size: 20px; font-weight: 800; line-height: 1.25; }
.ps-cont__count { font-size: 15px; font-weight: 400; color: var(--ps-text-2); }
.ps-cont__preview { overflow: hidden; font-size: 14px; font-weight: 400; color: var(--ps-text-2); white-space: nowrap; text-overflow: ellipsis; }
.ps-cont__toggle, .ps-cont__arrow { display: none; }
/* ovládání se ukáže, až když běží skript; bez něj jsou kontinenty otevřené a bez tlačítek */
.is-js .ps-cont__toggle { display: block; flex: none; font-size: 14px; font-weight: 700; color: var(--brown); }
.is-js .ps-cont__arrow { display: flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ps-light); color: var(--brown-dark); }
.ps-cont__arrow svg { transition: transform .2s; }
.ps-cont__hide, .ps-cont.is-open .ps-cont__show { display: none; }
.ps-cont.is-open .ps-cont__hide { display: inline; }
.ps-cont.is-open .ps-cont__arrow svg { transform: rotate(180deg); }
.ps-cont__preview, .is-js .ps-cont:not(.is-open) .ps-grid { display: none; }
.is-js .ps-cont:not(.is-open) .ps-cont__preview { display: block; }
.ps-cont .ps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0 12px 12px; list-style: none; }
.ps-card { height: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; background: #F7F2EE; border-radius: 10px; color: var(--brown-dark); text-decoration: none; }
.ps-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ps-card__name { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.ps-card .ps-meta { font-size: 13px; }
.ps-card:hover .ps-card__nazev { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ps-tag { flex: none; padding: 2px 7px; border-radius: 999px; background: var(--mustard); color: var(--brown-dark); font-size: 11px; font-weight: 700; line-height: 1.3; }
.ps-empty { margin: 0; max-width: none; padding: 18px; border-radius: 14px; background: var(--white); box-shadow: var(--ps-stin); color: var(--ps-text-3); }
.ps-also { margin: 0; max-width: none; padding: 16px 18px; border: 1.5px dashed rgba(88, 62, 44, .35); border-radius: 12px; font-size: 15px; line-height: 1.55; color: var(--ps-text-3); }
.ps-also strong { color: var(--brown-dark); }

/* velká mapa: výška podle okna (520–760 px), při posouvání seznamu zůstává na místě */
.ps-mapcol { position: sticky; top: 24px; }
.ps-map { height: clamp(520px, calc(100vh - 48px), 760px); margin: 0; border-radius: 14px; background: #F4EEE8; box-shadow: var(--ps-stin), 0 0 0 1px rgba(44, 35, 32, .06); }

/* ---------- tablet a mobil (do 1000 px): jeden sloupec, mapa jen přes tlačítko ---------- */
@media (max-width: 1000px) {
  .ps-layout { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .ps-mapcol { display: none; position: static; } /* mapa je jen přes tlačítko Zobrazit mapu (celá obrazovka) */
  .ps-mapcol:has(.is-fs) { display: block; }
  .ps-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
  .ps-maptoggle { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 2px var(--brown-dark); font: inherit; font-size: 15px; font-weight: 700; color: var(--brown-dark); cursor: pointer; }
}

/* ---------- mobil ---------- */
@media (max-width: 760px) {
  .ps-hero__in { gap: 20px; padding: 28px 0 26px; }
  .ps-hero h1 { margin-bottom: 10px; font-size: 32px; line-height: 1.1; letter-spacing: -.01em; }
  .ps-hero p { font-size: 16px; line-height: 1.5; }
  .ps-stats { gap: 24px; font-size: 13px; }
  .ps-stats strong { margin-bottom: 4px; font-size: 30px; }

  .ps-sec h2 { margin-bottom: 12px; font-size: 22px; }
  .ps-sub { margin: -6px 0 14px; font-size: 15px; }
  .ps-sec--featured { padding: 26px 0 6px; }
  .ps-sec--all { padding: 22px 0 36px; }
  /* doporučené země: vodorovný pás s posouváním do strany, až k okrajům displeje */
  .ps-featured { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 8px; scroll-snap-type: x proximity; scroll-padding: 0 20px; }
  .ps-featured > li { flex: 0 0 250px; scroll-snap-align: start; }
  .ps-fcard { border-radius: 12px; }
  .ps-fcard__body { gap: 6px; padding: 12px 14px 14px; }
  .ps-fcard__title { font-size: 18px; }
  .ps-fcard__text { font-size: 14px; line-height: 1.4; }
  .ps-badge { left: 10px; top: 10px; padding: 4px 9px; font-size: 12px; }
  .ps-fcard .ps-meta { font-size: 13px; }

  .ps-sec--all .ps-sub { margin: -6px 0 14px; }
  .ps-search input { font-size: 16px; } /* menší písmo by telefon při psaní přiblížil */
  .ps-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ps-search { grid-column: 1 / -1; }
  .ps-only { justify-content: center; padding: 0 10px; }
  .ps-maptoggle { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 2px var(--brown-dark); font: inherit; font-size: 15px; font-weight: 700; color: var(--brown-dark); cursor: pointer; }
  .ps-list { gap: 12px; }
  .ps-cont__btn { min-height: 60px; padding: 14px; }
  .ps-cont__name { font-size: 18px; }
  .ps-cont__count { font-size: 14px; }
  .ps-cont__preview { font-size: 13px; }
  .is-js .ps-cont__toggle { display: none; } /* na mobilu jen šipka, jako v návrhu */
  .ps-cont .ps-grid { padding: 0 10px 10px; }
  .ps-card { gap: 10px; min-height: 56px; padding: 10px; }
  .ps-card__name { font-size: 15px; }
  .ps-card__nazev { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .ps-card .ps-meta { font-size: 12px; }
  .ps-card .ps-tag { display: none; } /* na úzké dlaždici by štítek zkrátil název; itinerář má i doporučená karta */
}

/* =========================================================
   STRÁNKA ZEMĚ (/po-stopach/<země>)
   ========================================================= */

/* ---------- záhlaví ---------- */
.pd-head { padding: 28px 0 36px; }
.pd-back { margin: 0; }
.pd-back a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--brown); text-decoration: none; }
.pd-back a:hover { text-decoration: underline; }
.pd-title { display: flex; align-items: center; gap: 18px; margin: 14px 0; }
.pd-title h1 { margin: 0; font-size: 52px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.pd-flag { flex: none; width: 60px; height: 45px; border-radius: 5px; }
.pd-vzkaz { margin: -4px 0 14px; font-size: 18px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; max-width: none; }
.pd-chip { padding: 7px 14px; border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 600; line-height: 1.3; }
.pd-intro { max-width: 760px; margin: 0 0 12px; font-size: 18px; line-height: 1.6; }
.pd-more-text { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--brown); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pd-tip { margin: 0 0 12px; max-width: none; font-size: 16px; }
.pd-tip a { font-weight: 600; text-underline-offset: 3px; }

.pd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--brown-dark); text-decoration: none; }
.pd-btn svg { flex: none; }
.pd-btn--main { background: var(--mustard); }
.pd-btn--main:hover { background: var(--brown-dark); color: var(--white); }
.pd-btn--ghost { box-shadow: inset 0 0 0 1.5px var(--brown-dark); }
.pd-btn--ghost:hover { background: var(--brown-dark); color: var(--white); }
.pd-btn--video { color: var(--brown); }
.pd-btn--video:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-btn--big { min-height: 48px; padding: 14px 22px; border-radius: 10px; font-size: 16px; gap: 10px; }
.pd-btn--big.pd-btn--ghost { box-shadow: inset 0 0 0 2px var(--brown-dark); }
.pd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; max-width: none; }

/* hlavní akce u země s itinerářem */
.pd-itin { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-top: 12px; padding: 20px; border-radius: 12px; background: var(--brown); color: var(--white); }
.pd-itin :focus-visible { outline-color: var(--mustard); }
.pd-itin p { margin: 0; max-width: none; }
.pd-itin__badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--mustard); color: var(--brown-dark); font-size: 12px; font-weight: 700; }
.pd-itin__title { font-size: 22px; font-weight: 800; line-height: 1.2; }
.pd-itin__text { font-size: 15px; line-height: 1.5; color: var(--ps-light); }
.pd-itin__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px !important; }
.pd-itin .pd-btn--big { min-height: 46px; padding: 12px 18px; font-size: 15px; }
.pd-itin .pd-btn--main:hover { background: var(--white); color: var(--brown-dark); }
.pd-itin__video { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 12px 6px; font-size: 15px; font-weight: 700; color: var(--white); text-decoration: none; }
.pd-itin__video:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hlavní část: místa vlevo, mapa a videa vpravo ---------- */
.pd-main { padding: 0 0 56px; }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 540px); grid-template-areas: "mista mapa" "videa mapa"; grid-template-rows: auto 1fr; column-gap: 32px; row-gap: 24px; align-items: start; }
.pd-places-col { grid-area: mista; min-width: 0; }
.pd-layout > .pd-videos { grid-area: videa; }
.pd-layout--single { grid-template-areas: "mista"; }
.pd-layout--single { grid-template-columns: minmax(0, 1fr); }
.pd-places-col h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.pd-places-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.pd-places-note { font-size: 14px; color: var(--ps-text-2); }
.pd-switch { display: none; }
.pd-places { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }

.pd-place { display: grid; grid-template-columns: 168px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 14px; row-gap: 6px; padding: 12px; border-radius: 14px; background: var(--white); box-shadow: var(--ps-stin); scroll-margin-top: 16px; transition: box-shadow .2s; }
.pd-place.is-highlight { box-shadow: 0 0 0 3px var(--mustard), var(--ps-stin); }
.pd-place__img { position: relative; grid-row: 1 / span 4; align-self: start; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--brown); }
.pd-place__img img { width: 100%; height: 100%; object-fit: cover; }
.pd-num { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mustard); color: var(--brown-dark); font-size: 13px; font-weight: 800; }
.pd-place__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.pd-place__meta { display: none; }
.pd-place__text { margin: 0; max-width: none; font-size: 15px; line-height: 1.45; color: var(--ps-text-3); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; max-width: none; }
.pd-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: var(--ps-light); font-size: 12px; font-weight: 600; line-height: 1.3; }
.pd-tag--warn { background: #F6E7B4; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 6px 8px; align-self: end; margin: 0; padding-top: 4px; max-width: none; }
.pd-actions .pd-btn { min-height: 40px; padding: 8px 12px; font-size: 13px; }
.pd-note { margin: 16px 0 0; max-width: none; font-size: 14px; color: var(--ps-text-2); }

.pd-side { grid-area: mapa; align-self: stretch; }
.pd-mapcard { position: sticky; top: 24px; }
/* mapa jako na přehledu: bez bílého rámu, výška podle okna (520–760 px) */
.pd-map { height: clamp(520px, calc(100vh - 48px), 760px); margin: 0; border-radius: 14px; background: #F4EEE8; box-shadow: var(--ps-stin), 0 0 0 1px rgba(44, 35, 32, .06); }
.pd-card { padding: 18px; border-radius: 14px; background: var(--white); box-shadow: var(--ps-stin); }
.pd-videos h2 { margin: 0 0 14px; font-size: 18px; font-weight: 800; letter-spacing: 0; }
.pd-videos__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; padding: 0; list-style: none; }
.pd-video { display: flex; align-items: flex-start; gap: 12px; color: var(--brown-dark); text-decoration: none; }
.pd-video__img { flex: 0 0 104px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--brown); }
.pd-video__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-video__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; }
.pd-video:hover .pd-video__title { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pd-videos__more { margin-top: 2px; }
.pd-videos__more summary { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--brown); cursor: pointer; list-style: none; }
.pd-videos__more summary::-webkit-details-marker { display: none; }
.pd-videos__more summary::after { content: " →"; white-space: pre; }
.pd-videos__more[open] summary { display: none; }
.pd-videos__more .pd-videos__list { margin-top: 12px; }
.pd-videos-grid { margin-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pd-foot { padding: 0 0 48px; }
.pd-foot p { max-width: none; margin: 0; padding-top: 20px; border-top: 1px solid rgba(44, 35, 32, .15); font-size: 15px; color: var(--ps-text-3); }
.pd-foot a { margin-left: 4px; font-weight: 700; color: var(--brown-dark); text-underline-offset: 3px; }

/* ---------- stránka země na tabletu: mapa a videa pod místy, vedle sebe ---------- */
@media (min-width: 761px) and (max-width: 1000px) {
  .pd-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "mista" "mapa" "videa"; grid-template-rows: auto; }
  .pd-mapcard { position: static; }
  .pd-map { height: 460px; }
}

/* ---------- stránka země na mobilu ---------- */
@media (max-width: 760px) {
  .pd-head { padding: 6px 0 26px; }
  .pd-back a { min-height: 44px; }
  .pd-title { gap: 12px; margin: 4px 0 12px; }
  .pd-title h1 { font-size: 36px; letter-spacing: -.01em; }
  .pd-flag { width: 42px; height: 31.5px; border-radius: 4px; }
  .pd-chips { gap: 6px; margin-bottom: 14px; }
  .pd-chip { padding: 6px 12px; font-size: 13px; }
  .pd-intro { margin-bottom: 4px; font-size: 16px; line-height: 1.55; }
  .pd-intro.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .pd-tip { margin: 8px 0 0; font-size: 15px; }
  .pd-cta { flex-direction: column; gap: 10px; margin-top: 14px; }
  .pd-cta .pd-btn--main { width: 100%; min-height: 50px; padding: 14px; }
  .pd-cta__all { display: none; } /* na mobilu je odkaz na všechna videa pod pásem videí */
  .pd-itin { padding: 18px; }
  .pd-itin__title { font-size: 20px; }

  .pd-main { padding-bottom: 26px; }
  .pd-layout { display: flex; flex-direction: column; align-items: stretch; gap: 26px; }
  .pd-map { height: 420px; }
  .pd-places-col h2 { font-size: 22px; }
  .pd-places-head { align-items: center; margin-bottom: 12px; }
  .pd-places-note { display: none; }
  .pd-switch:not([hidden]) { display: flex; padding: 3px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px rgba(44, 35, 32, .12); }
  .pd-switch button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--brown-dark); cursor: pointer; }
  .pd-switch button[aria-pressed="true"] { background: var(--brown-dark); color: var(--white); }
  .pd-places { gap: 10px; }
  .pd-place { grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: auto; column-gap: 12px; row-gap: 4px; padding: 12px; border-radius: 12px; }
  .pd-place__img { grid-row: auto; border-radius: 8px; }
  .pd-place__head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .pd-place__pin { width: 30px; height: 36px; }
  .pd-num { left: 6px; top: 6px; width: 22px; height: 22px; font-size: 12px; }
  .pd-place__title { font-size: 16px; line-height: 1.3; }
  .pd-place__meta { display: block; margin: 0; max-width: none; font-size: 13px; color: var(--ps-text-2); }
  .pd-place__text--odvozeny { display: none; }
  .pd-place__text { grid-column: 1 / -1; margin-top: 6px; font-size: 15px; line-height: 1.45; }
  .pd-tags { display: none; }
  .pd-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 6px; }
  .pd-actions .pd-btn { padding: 10px 8px; }
  .pd-actions .pd-btn--ghost svg { display: none; } /* na mobilu bez ikony, jako v návrhu */
  .pd-actions .pd-btn--video { background: var(--ps-light); border-radius: 8px; color: var(--brown-dark); }
  .pd-actions .pd-btn:only-child { grid-column: 1 / -1; }

  /* přepínač Seznam | Mapa: na mobilu je mapa skrytá, dokud ji návštěvník nezapne */
  .pd-side { min-width: 0; }
  .pd-mapcard { display: none; position: static; }
  .pd-side:not(:has(.pd-mapcard--always)) { display: none; }
  .pd--mapa .pd-side { display: block; margin-top: -14px; }
  .pd-mapcard--always, .pd--mapa .pd-mapcard { display: block; }
  .pd--mapa .pd-places, .pd--mapa .pd-note { display: none; }

  /* videa z cesty: vodorovný pás */
  .pd-videos { padding: 0; background: none; box-shadow: none; }
  .pd-videos h2 { margin-bottom: 12px; font-size: 22px; }
  .pd-videos > .pd-videos__list { display: flex; flex-direction: row; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 6px; }
  .pd-videos__more .pd-videos__list { grid-template-columns: minmax(0, 1fr); }
  .pd-videos > .pd-videos__list > li { flex: 0 0 210px; }
  .pd-videos > .pd-videos__list .pd-video { flex-direction: column; gap: 8px; }
  .pd-videos > .pd-videos__list .pd-video__img { flex: none; width: 100%; border-radius: 8px; }
  .pd-videos__more .pd-video__img { flex-basis: 116px; }
  .pd-videos-grid { grid-template-columns: minmax(0, 1fr); }

  .pd-foot { padding-bottom: 28px; }
  .pd-foot p { padding-top: 16px; font-size: 14px; line-height: 1.5; }
}

/* ---------- mapa ---------- */
/* nápověda "Ctrl/⌘ + kolečko", na telefonu "Mapu posunete dvěma prsty" (Pavel 17. 10. 2026) */
.ps-map .maplibregl-cooperative-gesture-screen, .pd-map .maplibregl-cooperative-gesture-screen { background: rgba(44, 35, 32, .55); font-size: 1.05rem; }
/* ovládací prvky v mapě: bílé, zaoblení 10 px, jemný stín, tlačítka 44 × 44 px */
.ps-map .maplibregl-ctrl-top-right .maplibregl-ctrl, .pd-map .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 12px 12px 0 0; }
.ps-map .maplibregl-ctrl-group, .pd-map .maplibregl-ctrl-group { overflow: hidden; border-radius: 10px; box-shadow: 0 1px 4px rgba(44, 35, 32, .18); }
.ps-map .maplibregl-ctrl-group button, .pd-map .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.ps-map .maplibregl-ctrl-group button + button, .pd-map .maplibregl-ctrl-group button + button { border-top-color: var(--sand); }
.map .map-legend { gap: 6px; margin: 0 0 12px 12px; padding: 10px 12px; border-radius: 10px; box-shadow: 0 1px 4px rgba(44, 35, 32, .18); font-size: 13px; color: var(--ps-text-3); }
.map-legend__row { gap: 8px; }
/* kartička země po kliknutí na mapu přehledu */
.map .map-zeme-okno .maplibregl-popup-content { padding: 16px; border-radius: 14px; box-shadow: 0 6px 24px rgba(44, 35, 32, .22); }
.map .map-zeme-okno .maplibregl-popup-close-button { top: 14px; right: 14px; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--ps-light); font-size: 18px; line-height: 1; color: var(--brown-dark); }
.map-zeme { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }
.map-zeme__nazev { display: flex; align-items: center; gap: 10px; padding-right: 40px; font-size: 18px; font-weight: 800; line-height: 1.25; }
.map-zeme__nazev .flag { flex: none; width: 28px; height: 21px; }
.map-zeme p { margin: 0; font-size: 14px; color: var(--ps-text-2); }
.map-zeme__btn { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; background: var(--mustard); color: var(--brown-dark); font-size: 15px; font-weight: 700; text-decoration: none; }
.map-zeme__btn:hover { background: var(--brown-dark); color: var(--white); }

/* ---------- mapa na celou obrazovku ---------- */
.map-fs { position: relative; }
.map-fs__bar, .map-fs__hint, .map-fs__sheet { display: none; }
.map-fs-open { overflow: hidden; }
.map-fs.is-fs { position: fixed; inset: 0; z-index: 2000; background: #F4EEE8; }
.map-fs.is-fs .map { position: absolute; left: 0; right: 0; top: 68px; bottom: 0; height: auto; aspect-ratio: auto; margin: 0; border-radius: 0; box-shadow: none; }
.map-fs.is-fs .map-fs__bar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 24px; height: 68px; padding: 0 24px; background: var(--white); box-shadow: 0 1px 4px rgba(44, 35, 32, .12); }
.map-fs__bar p { margin: 0; max-width: none; }
.map-fs__title { font-size: 18px; font-weight: 800; }
.map-fs__legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ps-text-3); }
.map-fs__legend span { display: flex; align-items: center; gap: 6px; }
.map-fs__close { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-left: auto; padding: 0 16px; border: 0; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 2px var(--brown-dark); font: inherit; font-size: 15px; font-weight: 700; color: var(--brown-dark); cursor: pointer; }
.map-fs__close:hover { background: var(--brown-dark); color: var(--white); }
.map-fs.is-fs .map-fs__hint { position: absolute; left: 24px; bottom: 24px; z-index: 2; display: block; max-width: calc(100% - 120px); margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--white); box-shadow: 0 1px 4px rgba(44, 35, 32, .18); font-size: 13px; color: var(--ps-text-3); }
.map-fs.is-fs .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 20px 24px 0 0; }
.map-fs.is-fs .map-fs-btn, .map-fs.is-fs .map-legend, .map-fs.is-fs .maplibregl-cooperative-gesture-screen { display: none; }

/* tlačítko na celou obrazovku v mapě */
.map .map-fs-btn { margin: 12px 0 0 12px; }
.map .maplibregl-ctrl-top-right .map-fs-btn { margin: 12px 12px 0 0; }
.map-fs-btn button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: var(--white); box-shadow: 0 1px 4px rgba(44, 35, 32, .22); font: inherit; font-size: 14px; font-weight: 700; color: var(--brown-dark); cursor: pointer; }
.map-fs-btn--text button { width: auto; padding: 0 14px; }
.map-fs-btn button:hover { background: var(--ps-light); }

/* mobil: lišta 60 px, vybraná země jako karta zespodu */
@media (max-width: 760px) {
  .map-fs.is-fs .map { top: 60px; }
  .map-fs.is-fs .map-fs__bar { gap: 12px; height: 60px; padding: 0 12px 0 16px; }
  .map-fs__title { font-size: 17px; }
  .map-fs__legend { display: none; }
  .map-fs__close { padding: 0 14px; }
  .map-fs.is-fs .map-fs__hint { display: none; }
  .map-fs.is-fs .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 16px 12px 0 0; }
  .map-fs.is-fs .map-fs__sheet:not([hidden]) { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 12px; padding: 10px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--white); box-shadow: 0 -4px 20px rgba(44, 35, 32, .18); }
  .map-fs__grip { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #D9CFC8; }
  .map-fs__sheet-close { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--ps-light); color: var(--brown-dark); cursor: pointer; }
  .map-fs__sheet .map-zeme { min-width: 0; }
  .map-fs__sheet .map-zeme__nazev { font-size: 20px; }
  .map-fs__sheet .map-zeme__btn { height: 48px; }
}
