/* Mobil na výšku (SPEC 9, SPEC_M2 6): fotka nahoře, bílý spodní list se zaoblenými horními rohy. Karta,
   seznam a podlaží jsou tytéž panely jako na desktopu, jen jako list (karta 72 %, podlaží 64 %, seznam celý). */
.msheet { display: none; }

@media (max-width: 760px), (max-width: 1023px) and (orientation: portrait) {
  :root { --hdr: 56px; }
  body { font-size: 14px; }
  .hdr { padding: 0 12px 0 16px; padding-top: env(safe-area-inset-top); height: calc(var(--hdr) + env(safe-area-inset-top)); }
  .hdr__name { font-size: 19px; }
  .hdr__sub { font-size: 13px; padding-left: 10px; }
  .hdr__tab, .hdr__phone { display: none; }
  .hdr__m { position: relative; display: flex; gap: 8px; }
  .hdr__m .icon-btn { width: 44px; height: 44px; box-shadow: var(--sh-1); }
  .hdr__menu {
    position: absolute; right: 0; top: 52px; min-width: 220px; padding: 8px; display: grid; background: #fff;
    border-radius: var(--r-lg); box-shadow: var(--sh-2);
  }
  .hdr__menu a { padding: 12px 14px; border-radius: 10px; font-size: 15px; text-decoration: none; }
  .hdr__menu a[aria-current] { font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
  .shade--top { height: 110px; }

  .intro, .rail { display: none; }
  /* zdroje dat (© ČÚZK) i na mobilu: drobně na fotce nad listem, poznámka k ceníku je v kartě a seznamu */
  .credits {
    right: 10px; bottom: calc(var(--sheet-h, 330px) + 8px); max-width: 74%; padding: 3px 8px; font-size: 10px;
    border-radius: 8px;
  }
  .credits .cr-note { display: none; }
  .credits:not(:has(.cr-src)) { display: none; }
  .app:not([data-view="overview"]) .credits { opacity: 0; pointer-events: none; }

  /* dok se zmenší na plovoucí ovladač otáčení vlevo nahoře na fotce */
  .dock {
    left: 12px; top: calc(var(--hdr) + env(safe-area-inset-top) + 8px); bottom: auto; min-height: 0; height: 52px; padding: 0 4px;
    gap: 2px; border-radius: 99px; box-shadow: var(--sh-1);
  }
  .dock .dock__sep, .dock .chips, .dock .switch, .dock .spinctl__txt { display: none; }
  .dock .spinctl { gap: 2px; }
  .dock .spin-btn { box-shadow: none; }
  .dock .spinctl__compass { width: 34px; height: 34px; }
  .app:not([data-view="overview"]) .dock { transform: none; opacity: 1; pointer-events: auto; }
  .app[data-view="list"] .dock { opacity: 0; pointer-events: none; }

  .spin-loader { top: auto; bottom: calc(var(--sheet-h, 330px) + 16px); }

  /* spodní listy */
  .msheet, .panel {
    position: absolute; left: 0; right: 0; top: auto; bottom: 0; width: auto; z-index: 30; background: #fff;
    border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: 0 -10px 40px -12px rgba(7, 25, 58, .35);
    overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom);
  }
  .msheet { display: block; max-height: 62dvh; transition: transform .6s var(--ease); }
  .app:not([data-view="overview"]) .msheet { transform: translateY(105%); }
  .panel { transform: translateY(105%); right: 0; left: 0; }
  .panel--card { height: 72dvh; }
  .panel--floor { height: 64dvh; }
  .panel--list { top: calc(var(--hdr) + env(safe-area-inset-top)); height: auto; border-radius: 0; box-shadow: none; }
  html[data-view="list"] .hdr { background: #fff; box-shadow: 0 1px 0 var(--line); }
  html[data-view="list"] .hdr__brand { color: var(--navy); text-shadow: none; }
  html[data-view="list"] .shade--top { opacity: 0; }
  .pin__in { height: 24px; padding: 0 8px 0 7px; gap: 5px; }
  .pin__in b { font-size: 12.5px; }
  .pin__dot { width: 7px; height: 7px; }
  .pin--sel .pin__in { height: 28px; padding: 0 11px; }
  .app[data-view="card"] .panel--card, .app[data-view="list"] .panel--list, .app[data-view="floor"] .panel--floor { transform: none; }

  .sh-handle { width: 44px; height: 5px; margin: 10px auto 2px; border-radius: 99px; background: var(--line-2); }
  .sh-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 6px 20px 0; }
  .sh-title { margin: 4px 0 0; font: 400 30px/1 var(--f-display); }
  .sh-free { margin: 0; text-align: right; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ink-3); }
  .sh-free b { display: block; font-size: 30px; line-height: 1; color: var(--free); }
  .sh-label { padding: 12px 20px 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--ink-3); }
  .sh-scroll { flex-wrap: nowrap; overflow-x: auto; padding: 0 20px 2px 24px; scrollbar-width: none; }
  .sh-scroll::-webkit-scrollbar { display: none; }
  .sh-scroll .chip { flex: none; min-height: 40px; }
  .sh-row { padding: 4px 20px 0; }
  .sh-cta { margin: 6px 20px 0; width: calc(100% - 40px); }
  .sh-lists { padding: 4px 20px 12px; text-align: center; }

  /* obsah panelů v listu */
  .p-top { padding: 8px 10px 4px 18px; }
  .panel--card .p-top::before, .panel--floor .p-top::before {
    content: ''; position: absolute; left: 50%; top: 6px; width: 44px; height: 5px; margin-left: -22px; border-radius: 99px; background: var(--line-2);
  }
  .p-body { padding: 0 20px 24px; }
  .c-title h2 { font-size: 44px; }
  .facts { gap: 6px; padding: 14px 0 12px; }
  .facts dd { font-size: 19px; }
  .facts dt { font-size: 12px; }
  .c-price .num { font-size: 30px; }
  .c-media { height: 168px; }
  .c-row .btn { font-size: 13.5px; }
  .l-head { padding: 0 20px; }
  .l-head h2 { font-size: 32px; }
  .l-filters { padding: 12px 0 10px; gap: 8px; }
  .grp { grid-template-columns: 1fr; gap: 4px; }
  .grp > span { padding: 0 20px; }
  .l-filters .chips { flex-wrap: nowrap; overflow-x: auto; padding: 0 20px 2px 24px; scrollbar-width: none; }
  .l-filters .chip { flex: none; }
  .row2 { padding: 0 20px; }
  .l-table { padding: 0 8px 16px; }
  .l-cols { display: none; }
  .l-row { grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; row-gap: 6px; column-gap: 12px; padding: 12px; min-height: 0; }
  .l-id { grid-column: 1 / 3; grid-row: 1; flex-direction: row; align-items: baseline; gap: 10px; }
  .l-price { grid-column: 3; grid-row: 1; font-size: 16px; }
  .l-disp { grid-column: 1; grid-row: 2; font-size: 13.5px; }
  .l-area { grid-column: 2; grid-row: 2; font-size: 15px; }
  .l-row .status { grid-column: 3; grid-row: 2; justify-self: end; font-size: 12.5px; }
  .l-foot { padding: 0 20px 24px; }
  .f-title h2 { font-size: 46px; }
  .f-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 12px; padding: 0 20px 2px 24px; scrollbar-width: none; }
  .f-tabs .chip { flex: none; }
  .callout { display: none; }
  .beacon__tag { height: 34px; font-size: 12px; }
  .beacon__tag b { font-size: 16px; }
  .toast { bottom: calc(env(safe-area-inset-bottom) + 16px); }
}
