/* =========================================================
   01) ZÁKLADNÍ NASTAVENÍ
   ========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --bg: #eadfc9;
  --card: #fffaf0;
  --text: #111;
  --muted: #9c9c9c;
  --line: #ded1bb;

  --orange: #f76546;
  --red: #ef4056;
  --pink: #ef5aa5;
  --blue: #1d5b75;
  --purple: #805bd8;
  --green: #4f9b73;

  --shadow-card: 0 10px 24px rgba(65, 47, 25, .10);
  --shadow-pill: 0 5px 12px rgba(60, 45, 26, .06);

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
}

body {
  overflow-x: hidden;
  padding-bottom: 112px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#root {
  min-height: 100vh;
  background: var(--bg);
}


/* =========================================================
   02) HLAVNÍ WRAPPER APLIKACE
   ========================================================= */

.program-app {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
}


/* =========================================================
   03) HORNÍ LIŠTA - BURGER + LOGO + MENU
   ========================================================= */

.program-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.program-burger {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #111;
}

.program-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
}

.site-logo,
.program-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: #111;
  text-decoration: none;
}

.site-logo:hover,
.site-logo:focus,
.program-logo:hover,
.program-logo:focus {
  color: #111;
  text-decoration: none;
}

.site-logo__text {
  display: grid;
  flex: 0 0 auto;
  line-height: .82;
  text-transform: uppercase;
}

.site-logo__top,
.site-logo__bottom {
  display: block;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.7px;
}

.site-logo__top {
  color: var(--orange);
}

.site-logo__bottom {
  color: #777;
}

.site-logo__bottom span {
  color: var(--orange);
}

.site-logo__meta {
  display: grid;
  gap: 5px;
  min-width: 118px;
}

.site-logo__date {
  display: block;
  color: #777;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.site-logo__wave {
  position: relative;
  display: block;
  width: 118px;
  height: 14px;
  overflow: hidden;
}

.site-logo__wave span {
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  border-top: 1px solid rgba(120, 120, 120, .24);
  border-radius: 50%;
}

.site-logo__wave span:nth-child(1) {
  top: 0;
  border-color: rgba(247, 101, 70, .34);
}

.site-logo__wave span:nth-child(2) {
  top: 4px;
  border-color: rgba(120, 120, 120, .26);
}

.site-logo__wave span:nth-child(3) {
  top: 8px;
  border-color: rgba(247, 101, 70, .22);
}

.site-logo__wave span:nth-child(4) {
  top: 12px;
  border-color: rgba(120, 120, 120, .18);
}

.program-menu {
  position: relative;
  z-index: 20;
  display: grid;
  gap: 7px;
  margin: -10px 0 20px;
  padding: 10px;
  background: rgba(255, 250, 240, .96);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.program-menu a,
.program-menu__empty {
  display: block;
  padding: 10px 13px;
  color: #111;
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.program-menu a:hover,
.program-menu a:focus {
  color: #fff;
  background: var(--orange);
}


/* =========================================================
   04) HLAVIČKA - VSTUP ZDARMA + PROGRAM + VLNKY
   ========================================================= */

.program-header {
  position: relative;
  overflow: hidden;
  min-height: 155px;
  padding: 30px 16px 16px;
  background: var(--bg);
}

.program-header::before {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  top: -10px;
  height: 115px;
  opacity: .62;
  background:
    radial-gradient(120% 58% at 52% 0%, transparent 57%, rgba(245, 101, 70, .42) 58%, transparent 60%),
    radial-gradient(120% 58% at 46% 14%, transparent 57%, rgba(80, 80, 80, .28) 58%, transparent 60%),
    radial-gradient(120% 58% at 55% 27%, transparent 57%, rgba(29, 91, 117, .26) 58%, transparent 60%),
    radial-gradient(120% 58% at 48% 41%, transparent 57%, rgba(245, 101, 70, .20) 58%, transparent 60%);
  pointer-events: none;
}

.program-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(234, 223, 201, 0), var(--bg));
  pointer-events: none;
}

.program-header__top {
  position: relative;
  z-index: 2;
}

.program-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 14px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.program-header h1 {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  color: var(--text);
  font-size: 39px;
  font-weight: 950;
  line-height: .9;
  letter-spacing: -2px;
}

.program-header__text,
.program-source {
  display: none;
}


/* =========================================================
   05) OBSAH - VNITŘNÍ OKRAJE STRÁNKY
   ========================================================= */

.program-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 38px;
}


/* =========================================================
   06) FILTRY - DATUM / MÍSTO / KATEGORIE
   ========================================================= */

.program-filters {
  display: grid;
  gap: 8px;
  margin-bottom: 42px;
}

.filter-row {
  display: flex;
  gap: 9px;
  margin: 0 -16px;
  padding: 0 16px 1px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
  border: 0px solid transparent;
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.filter-pill--all {
  min-width: 60px;
  color: #fff;
  background: #111;
  border-color: #111;
}

.filter-pill.is-active {
  color: #fff;
  background: #111;
  border-color: #111;
}

.filter-color-1 {
  border-color: var(--pink);
}

.filter-color-2 {
  border-color: var(--purple);
}

.filter-color-3 {
  border-color: var(--blue);
}

.filter-color-4 {
  border-color: var(--orange);
}

.filter-color-5 {
  border-color: var(--green);
}


/* =========================================================
   07) HLEDÁNÍ - FULLTEXT
   ========================================================= */

.program-search {
  margin: 0 0 34px;
}

.program-search label {
  display: block;
  margin: 0 0 10px;
  padding-left: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.program-search__box {
  position: relative;
}

.program-search input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 18px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  box-shadow: var(--shadow-pill);
  font-size: 14px;
}

.program-search input::placeholder {
  color: #8f8f8f;
}

.program-search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(247, 101, 70, .13), var(--shadow-pill);
}

.program-search input[type="search"]::-webkit-search-decoration,
.program-search input[type="search"]::-webkit-search-cancel-button,
.program-search input[type="search"]::-webkit-search-results-button,
.program-search input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

.program-search__box button {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #111;
  font-size: 22px;
  line-height: 1;
}


/* =========================================================
   08) SEZNAM PROGRAMU - NADPIS DNE
   ========================================================= */

.program-list {
  width: 100%;
}

.program-day {
  margin-bottom: 28px;
}

.program-day h2 {
  margin: 0 0 20px;
  color: #777;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  letter-spacing: -.7px;
}


/* =========================================================
   09) KARTA AKCE - CELÝ PROUŽEK
   ========================================================= */

.program-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  min-height: 68px;
  margin-bottom: 12px;
  padding: 10px 10px 10px 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--program-color, var(--orange));
}


/* =========================================================
   10) KARTA AKCE - LEVÝ SLOUPEC DATUM + ČAS
   ========================================================= */

.program-card__time {
  padding-left: 15px;
}

.program-card__time span {
  display: block;
  margin-bottom: 4px;
  color: #aaa;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.program-card__time strong {
  display: block;
  color: var(--program-color, var(--orange));
  font-size: 23px;
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.6px;
  white-space: nowrap;
}


/* =========================================================
   11) KARTA AKCE - NÁZEV + MÍSTO
   ========================================================= */

.program-card__body {
  min-width: 0;
  overflow: hidden;
}

.program-card__body h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.program-card__place {
  margin: 0;
  color: #a6a6a6;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.program-card__place::before {
  content: "⌖ ";
  color: #aaa;
}


/* =========================================================
   12) KARTA AKCE - ŠIPKA DETAILU
   ========================================================= */

.program-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #111;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}


/* =========================================================
   13) PRÁZDNÝ STAV / CHYBA / NAČÍTÁNÍ
   ========================================================= */

.program-state {
  padding: 28px 18px;
  color: #777;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.program-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 21px;
}

.program-state p {
  margin: 0 0 18px;
}

.program-state button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}


/* =========================================================
   14) SPODNÍ LIŠTA - ZATÍM SKRYTÁ
   ========================================================= */

.jump-now {
  display: none;
}

/* =========================================================
   15) DETAIL AKCE - MODAL
   ========================================================= */

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(3px);
}

.detail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: #fff;
  background: var(--orange);
}

.detail-header h2 {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -.4px;
}

.detail-close {
  position: static;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: #111;
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.detail-body {
  min-height: 0;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-meta__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #26221e;
  font-size: 14px;
  line-height: 1.4;
}

.detail-meta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: var(--orange);
  font-size: 17px;
  font-weight: 950;
}

.detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 20px;
  overflow: hidden;
  background: #f1e7d7;
  border-radius: 17px;
}

.detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.detail-text {
  margin: 0;
  color: #3d3832;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-line;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.detail-status--now {
  color: #fff;
  background: var(--orange);
}

.detail-status--soon {
  color: #111;
  background: #ffd65d;
}

.detail-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.detail-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  color: #fff;
  background: #111;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.detail-close:hover,
.detail-close:focus-visible,
.detail-close-button:hover,
.detail-close-button:focus-visible {
  background: #2d2d2d;
}

@media (max-width: 600px) {
  .detail-overlay {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .detail-card {
    width: 100%;
    max-height: calc(100dvh - 32px);
    border-radius: 24px;
  }

  .detail-header {
    padding: 16px 18px;
  }

  .detail-header h2 {
    font-size: 21px;
  }

  .detail-body {
    padding: 18px;
  }

  .detail-image {
    aspect-ratio: 16 / 11;
  }

  .detail-footer {
    padding:
      12px
      18px
      calc(12px + env(safe-area-inset-bottom));
  }
}


/* =========================================================
   16) VĚTŠÍ MOBIL
   ========================================================= */

@media (min-width: 430px) {
  .program-header {
    padding-right: 20px;
    padding-left: 20px;
  }

  .program-header h1 {
    font-size: 42px;
  }

  .program-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .filter-row {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .filter-pill {
    min-height: 40px;
    padding: 0 18px;
    font-size: 17px;
  }

  .program-card {
    grid-template-columns: 84px minmax(0, 1fr) 32px;
    min-height: 72px;
  }

  .program-card__time strong {
    font-size: 25px;
  }

  .program-card__body h3 {
    font-size: 16px;
  }

  .program-card__place {
    font-size: 12px;
  }

  .program-card__arrow {
    width: 32px;
    height: 32px;
    font-size: 19px;
  }
}


/* =========================================================
   17) MALÝ MOBIL
   ========================================================= */

@media (max-width: 360px) {
  .program-header {
    padding-right: 13px;
    padding-left: 13px;
  }

  .program-topbar {
    gap: 8px;
  }

  .program-burger {
    width: 34px;
    height: 34px;
  }

  .site-logo,
  .program-logo {
    gap: 10px;
  }

  .site-logo__top,
  .site-logo__bottom {
    font-size: 16px;
  }

  .site-logo__meta {
    min-width: 100px;
  }

  .site-logo__date {
    font-size: 10px;
  }

  .site-logo__wave {
    width: 100px;
  }

  .program-header h1 {
    font-size: 36px;
  }

  .program-content {
    padding-right: 13px;
    padding-left: 13px;
  }

  .filter-row {
    margin-right: -13px;
    margin-left: -13px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .filter-pill {
    min-height: 36px;
    padding: 0 15px;
    font-size: 15px;
  }

  .program-card {
    grid-template-columns: 72px minmax(0, 1fr) 28px;
    gap: 7px;
    min-height: 66px;
    padding-right: 9px;
  }

  .program-card__time {
    padding-left: 14px;
  }

  .program-card__time strong {
    font-size: 22px;
  }

  .program-card__body h3 {
    font-size: 14px;
  }

  .program-card__place {
    font-size: 10px;
  }

  .program-card__arrow {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }
}


/* =========================================================
   18) DESKTOP / ŠIRŠÍ NÁHLED
   ========================================================= */

@media (min-width: 760px) {
  .program-header {
    padding-left: calc((100vw - 760px) / 2 + 20px);
    padding-right: calc((100vw - 760px) / 2 + 20px);
  }
}


/* =========================================================
   19) AKTUÁLNÍ ČAS / ARCHIVNÍ REŽIM
   ========================================================= */

.program-filters {
  margin-bottom: 18px;
}

.program-current-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin: 0 0 24px;
  padding: 10px 13px;
  color: #6f665b;
  background: rgba(255, 250, 240, .72);
  border: 1px solid rgba(222, 209, 187, .9);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.program-current-time strong {
  color: var(--text);
  font-weight: 950;
}

.program-current-time span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.program-current-time.is-archive {
  justify-content: space-between;
  color: #fff;
  background: #111;
  border-color: #111;
  font-size: 12px;
  font-weight: 950;
}

.program-current-time.is-archive span {
  color: rgba(255, 255, 255, .72);
  background: transparent;
  padding: 0;
  font-size: 9px;
}


/* =========================================================
   20) TLAČÍTKO ARCHIVU PROGRAMU
   ========================================================= */

.program-past-toggle {
  display: flex;
  margin: -16px 0 28px;
}

.program-past-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  color: #fff;
  background: #111;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.program-past-toggle button:hover,
.program-past-toggle button:focus-visible {
  background: var(--orange);
}


/* =========================================================
   21) STAVY AKCÍ - PRÁVĚ PROBÍHÁ / BRZY / PROBĚHLO
   ========================================================= */

.program-card__status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 17px;
  margin: 0 0 4px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .35px;
  text-transform: uppercase;
  white-space: nowrap;
}

.program-card__status--now {
  color: #fff;
  background: var(--orange);
}

.program-card__status--soon {
  color: #111;
  background: #ffd65d;
}

.program-card__status--past {
  color: #fff;
  background: #888;
}

.program-card--now {
  border-color: rgba(247, 101, 70, .78);
  box-shadow: 0 0 0 3px rgba(247, 101, 70, .12), var(--shadow-card);
}

.program-card--soon {
  border-color: rgba(255, 198, 32, .78);
}

.program-card--past {
  opacity: .64;
  filter: grayscale(.28);
}

.program-card--past .program-card__arrow {
  background: #777;
}

/* =========================================================
   23) SPOLEČNÝ OBSAH DALŠÍCH STRÁNEK
   ========================================================= */

.page-main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 42px;
}

.app-page {
  padding: 22px 0;
}

.app-page h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.05;
}

.app-page p {
  color: #6f665b;
  line-height: 1.5;
}

.app-page__route {
  padding: 11px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: monospace;
}


/* =========================================================
   24) NOVINKY - SEZNAM
   ========================================================= */

.news-mobile-page {
  padding: 0 0 36px;
}

.news-mobile-head {
  margin: 0 0 22px;
}

.news-mobile-head h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.05;
}

.news-mobile-head p {
  margin: 0;
  color: #6f665b;
  font-size: 14px;
  line-height: 1.45;
}

.news-mobile-grid {
  display: grid;
  gap: 16px;
}

.news-mobile-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.news-mobile-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.news-mobile-card__image.is-empty {
  min-height: 100px;
  background:
    linear-gradient(135deg, rgba(247, 101, 70, .13), rgba(128, 91, 216, .10)),
    var(--card);
}

.news-mobile-card__content {
  padding: 17px;
}

.news-mobile-card__content > span,
.news-mobile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.news-mobile-card h3 {
  margin: 11px 0 8px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.12;
}

.news-mobile-card p {
  margin: 0;
  color: #6f665b;
  font-size: 13px;
  line-height: 1.45;
}


/* =========================================================
   25) NOVINKY - DETAIL
   ========================================================= */

.news-detail-mobile {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.news-detail-mobile__image {
  width: calc(100% + 36px);
  aspect-ratio: 16 / 10;
  margin: -18px -18px 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.news-detail-mobile h2 {
  margin: 14px 0 10px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.08;
}

.news-detail-mobile__lead {
  color: #5e554c;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.news-detail-mobile__text {
  color: #332f2a;
  font-size: 14px;
  line-height: 1.6;
}

.news-detail-mobile__text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: 14px;
}

.news-detail-mobile__text a {
  color: var(--orange);
  font-weight: 800;
}

.news-back-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 20px;
  padding: 0 17px;
  color: #fff;
  background: #111;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}


/* =========================================================
   26) KONTAKTY
   ========================================================= */

.contacts-mobile-page {
  padding-bottom: 36px;
}

.contacts-mobile-head {
  margin: 0 0 22px;
}

.contacts-mobile-head h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.05;
}

.contacts-mobile-head p {
  margin: 0;
  color: #6f665b;
  font-size: 14px;
  line-height: 1.45;
}

.contacts-mobile-grid {
  display: grid;
  gap: 14px;
}

.contacts-mobile-card {
  position: relative;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.contacts-mobile-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  background: rgba(128, 91, 216, .12);
  border-radius: 50%;
  font-size: 17px;
}

.contacts-mobile-card h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.15;
}

.contacts-mobile-card__position {
  margin: 0 0 14px;
  color: #6f665b;
  font-size: 13px;
}

.contacts-mobile-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts-mobile-card li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
}

.contacts-mobile-card li span {
  color: #94887a;
  font-weight: 800;
}

.contacts-mobile-card a {
  min-width: 0;
  color: var(--text);
  font-weight: 850;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(247, 101, 70, .45);
  text-underline-offset: 3px;
}


/* =========================================================
   27) PARTNEŘI
   ========================================================= */

.partners-mobile-page {
  padding-bottom: 36px;
}

.partners-mobile-head {
  margin: 0 0 24px;
}

.partners-mobile-head p {
  margin: 0;
  color: #6f665b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.partners-mobile-group {
  margin-bottom: 30px;
}

.partners-mobile-group__head h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.1;
}

.partners-mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.partners-mobile-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: var(--shadow-card);
}

.partners-mobile-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.partners-mobile-card__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 18px;
}

.partners-mobile-card img {
  display: block;
  width: min(300px, 100%);
  height: min(300px, 65vw);
  max-height: 300px;
  object-fit: contain;
  object-position: center;
}


/* =========================================================
   28) FOCUS A PŘÍSTUPNOST
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(247, 101, 70, .36);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* =========================================================
   29) RESPONZIVNÍ ÚPRAVY DOPLŇKOVÝCH SEKČÍ
   ========================================================= */

@media (min-width: 430px) {
  .page-main {
    padding-right: 20px;
    padding-left: 20px;
  }

  .news-mobile-grid,
  .contacts-mobile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-mobile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-mobile-card__inner {
    min-height: 230px;
  }

  .partners-mobile-card img {
    height: min(260px, 36vw);
  }
}

@media (max-width: 360px) {
  .program-current-time {
    padding: 9px 11px;
    font-size: 10px;
  }

  .program-past-toggle button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 10px;
  }

  .program-card__status {
    min-height: 15px;
    padding: 0 6px;
    font-size: 7px;
  }

  .page-main {
    padding-right: 13px;
    padding-left: 13px;
  }

  .news-mobile-grid,
  .contacts-mobile-grid,
  .partners-mobile-grid {
    grid-template-columns: 1fr;
  }

  .partners-mobile-card__inner {
    min-height: 190px;
  }
}

@media (min-width: 760px) {
  .page-main {
    padding-right: 20px;
    padding-left: 20px;
  }
}



/* =========================================================
   30) SPODNÍ NAVIGACE - PROGRAM / PRÁVĚ TEĎ / MAPA
   ========================================================= */

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: min(390px, calc(100% - 24px));
  padding: 7px;
  background: rgba(17, 17, 17, .96);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 56px;
  padding: 7px 8px;
  color: rgba(255, 255, 255, .62);
  background: transparent;
  border: 0;
  border-radius: 20px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.bottom-nav button svg {
  display: block;
}

.bottom-nav button span {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav button:hover,
.bottom-nav button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.bottom-nav button.is-active {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 8px 22px rgba(247, 101, 70, .34);
}

.bottom-nav button:active {
  transform: scale(.97);
}

.program-content,
.page-main {
  padding-bottom: calc(128px + env(safe-area-inset-bottom));
}


/* =========================================================
   31) STRÁNKA PRÁVĚ TEĎ
   ========================================================= */

.now-page {
  padding-bottom: 18px;
}

.now-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 15px 17px;
  background: #111;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.now-summary__pulse {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  background: #777;
  border-radius: 50%;
}

.now-summary__pulse.is-active {
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(247, 101, 70, .18);
  animation: now-pulse 1.8s ease-out infinite;
}

.now-summary strong,
.now-summary span {
  display: block;
}

.now-summary strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.now-summary span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 800;
}

.now-section {
  margin-bottom: 28px;
}

.now-section h2 {
  margin: 0 0 13px;
  color: #777;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
}

@keyframes now-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 101, 70, .36);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(247, 101, 70, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(247, 101, 70, 0);
  }
}


/* =========================================================
   32) MAPA MÍST KONÁNÍ
   ========================================================= */

.map-page {
  padding-bottom: 24px;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.map-location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  background: #111;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  font-size: 12px;
  font-weight: 950;
}

.map-location-button:hover,
.map-location-button:focus-visible {
  background: var(--orange);
}

.map-location-button:disabled {
  cursor: wait;
  opacity: .68;
}

.map-location-button.is-loading svg {
  animation: map-spin 1s linear infinite;
}

.map-view-switch {
  display: grid;
  grid-template-columns: repeat(2, 40px);
  gap: 3px;
  padding: 3px;
  background: rgba(255, 250, 240, .85);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.map-view-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  padding: 0;
  color: #777;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.map-view-switch button.is-active {
  color: #fff;
  background: var(--orange);
}

.map-location-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #5d554c;
  background: rgba(255, 250, 240, .75);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.map-location-message--error {
  color: #922f3d;
  background: rgba(239, 64, 86, .08);
  border-color: rgba(239, 64, 86, .28);
}

.map-location-message--success {
  color: #276344;
  background: rgba(79, 155, 115, .10);
  border-color: rgba(79, 155, 115, .28);
}

.map-canvas-wrap {
  position: relative;
  overflow: hidden;
  background: #d8d1c2;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.map-canvas {
  width: 100%;
  height: clamp(310px, 42vh, 420px);
  min-height: 310px;
}

.map-canvas.leaflet-container {
  z-index: 1;
  background: #d8d1c2;
  font-family: var(--font);
}

.map-canvas .leaflet-control-zoom {
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.map-canvas .leaflet-control-zoom a {
  color: #111;
  background: #fffaf0;
  border-bottom-color: var(--line);
}

.map-canvas .leaflet-control-attribution {
  color: #6d655c;
  background: rgba(255, 250, 240, .85);
  font-size: 8px;
}

.map-canvas .leaflet-tooltip {
  padding: 7px 10px;
  color: #111;
  background: #fffaf0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  font-size: 11px;
  font-weight: 900;
}

.map-marker-wrapper {
  background: transparent;
  border: 0;
}

.map-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #111;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .30);
  transform: rotate(-45deg);
}

.map-marker > span {
  width: 9px;
  height: 9px;
  background: #fff;
  border-radius: 50%;
}

.map-marker--now {
  background: var(--orange);
  animation: map-marker-pulse 1.8s ease-out infinite;
}

.map-marker--soon {
  color: #111;
  background: #ffd65d;
}

.map-legend {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  max-width: calc(100% - 20px);
  padding: 7px 9px;
  color: #4d473f;
  background: rgba(255, 250, 240, .92);
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, .12);
  font-size: 8px;
  font-weight: 850;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.map-legend i {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.map-legend i.is-soon {
  background: #ffd65d;
  border: 1px solid rgba(0, 0, 0, .18);
}

.map-selected-place {
  position: relative;
  z-index: 3;
  margin: -14px 10px 0;
  scroll-margin-bottom: 112px;
}

.map-help {
  margin: 12px 6px 0;
  color: #756b60;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
}

.map-place-list {
  display: grid;
  gap: 10px;
}

.map-place-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow-card);
}

.map-place-card--now {
  border-color: rgba(247, 101, 70, .65);
}

.map-place-card--soon {
  border-color: rgba(255, 202, 45, .85);
}

.map-place-card.is-selected {
  box-shadow: 0 0 0 3px rgba(247, 101, 70, .12), var(--shadow-card);
}

.map-place-card__main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 14px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.map-place-card__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #111;
  border-radius: 50%;
}

.map-place-card--now .map-place-card__pin {
  background: var(--orange);
}

.map-place-card--soon .map-place-card__pin {
  color: #111;
  background: #ffd65d;
}

.map-place-card__content {
  display: block;
  min-width: 0;
}

.map-place-card__content strong,
.map-place-card__content small,
.map-place-card__status {
  display: block;
}

.map-place-card__content strong {
  color: #111;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.18;
}

.map-place-card__content small {
  margin-top: 3px;
  color: #8d8377;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.map-place-card__status {
  margin-top: 6px;
  color: #6f665b;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.3;
}

.map-place-card__status.is-now {
  color: var(--orange);
}

.map-place-card__status.is-empty {
  color: #aaa;
}

.map-place-card__distance {
  align-self: start;
  padding: 5px 8px;
  color: #fff;
  background: #1d5b75;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.map-place-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.map-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 11px;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  text-decoration: none;
}

.map-action-button.is-primary {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.map-action-button:hover,
.map-action-button:focus-visible {
  color: #fff;
  background: #111;
  border-color: #111;
}

@keyframes map-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes map-marker-pulse {
  0% {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .30), 0 0 0 0 rgba(247, 101, 70, .45);
  }

  70% {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .30), 0 0 0 12px rgba(247, 101, 70, 0);
  }

  100% {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .30), 0 0 0 0 rgba(247, 101, 70, 0);
  }
}


/* =========================================================
   33) RESPONZIVNÍ ÚPRAVY MAPY A NAVIGACE
   ========================================================= */

@media (max-width: 360px) {
  .bottom-nav {
    width: calc(100% - 18px);
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .bottom-nav button {
    min-height: 52px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .bottom-nav button span {
    font-size: 9px;
  }

  .map-toolbar {
    gap: 7px;
  }

  .map-location-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 10px;
  }

  .map-view-switch {
    grid-template-columns: repeat(2, 36px);
  }

  .map-view-switch button {
    width: 36px;
    height: 34px;
  }

  .map-canvas {
    height: 310px;
  }

  .map-place-card__main {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .map-place-card__distance {
    grid-column: 2;
    width: fit-content;
  }

  .map-place-card__actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) {
  .map-canvas {
    height: 500px;
  }

  .map-place-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   34) STAV PŘIPOJENÍ
   ========================================================= */

.connection-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 14px;
  color: #fff;
  background: #1d5b75;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .16);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.connection-banner svg {
  flex: 0 0 auto;
}


/* =========================================================
   35) OFFLINE REŽIM
   ========================================================= */

.offline-page {
  display: grid;
  gap: 14px;
  padding-bottom: 20px;
}

.offline-status-card,
.offline-card,
.offline-progress-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.offline-status-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
}

.offline-status-card.is-ready {
  border-color: rgba(79, 155, 115, .42);
  background: linear-gradient(135deg, rgba(79, 155, 115, .10), var(--card));
}

.offline-status-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: #111;
  border-radius: 50%;
}

.offline-status-card.is-ready .offline-status-card__icon {
  background: var(--green);
}

.offline-status-card strong,
.offline-status-card span {
  display: block;
}

.offline-status-card strong {
  color: #111;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.offline-status-card > div > span {
  margin-top: 4px;
  color: #746b61;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.offline-card {
  padding: 17px;
}

.offline-card h2 {
  margin: 0 0 13px;
  color: #111;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

.offline-card p {
  margin: 0;
  color: #655d54;
  font-size: 12px;
  line-height: 1.5;
}

.offline-content-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offline-content-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.offline-content-list li > svg {
  margin-top: 1px;
  color: var(--orange);
}

.offline-content-list strong,
.offline-content-list small {
  display: block;
}

.offline-content-list strong {
  color: #111;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.offline-content-list small {
  margin-top: 3px;
  color: #81766a;
  font-size: 10px;
  line-height: 1.35;
}

.offline-privacy {
  margin-top: 15px !important;
  padding: 11px 12px;
  color: #315545 !important;
  background: rgba(79, 155, 115, .10);
  border: 1px solid rgba(79, 155, 115, .28);
  border-radius: 12px;
  font-size: 10px !important;
  font-weight: 750;
}

.offline-progress-card {
  padding: 15px;
}

.offline-progress-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #111;
  font-size: 11px;
}

.offline-progress-card__head strong {
  min-width: 0;
  font-weight: 900;
}

.offline-progress-card__head span {
  flex: 0 0 auto;
  color: var(--orange);
  font-weight: 950;
}

.offline-progress {
  height: 9px;
  overflow: hidden;
  background: #eadfce;
  border-radius: 999px;
}

.offline-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  border-radius: inherit;
  transition: width .2s ease;
}

.offline-message,
.offline-connection-warning {
  margin: 0;
  padding: 11px 13px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.offline-message {
  color: #315545;
  background: rgba(79, 155, 115, .11);
  border: 1px solid rgba(79, 155, 115, .28);
}

.offline-connection-warning {
  color: #7c5420;
  background: rgba(255, 214, 93, .22);
  border: 1px solid rgba(211, 160, 19, .32);
}

.offline-actions {
  display: grid;
  gap: 9px;
}

.offline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 45px;
  padding: 0 16px;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  font-size: 12px;
  font-weight: 950;
}

.offline-action.is-primary {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.offline-action.is-danger {
  color: #fff;
  background: #111;
  border-color: #111;
}

.offline-action:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.offline-install-card .offline-action {
  margin-top: 13px;
}

.offline-remove-card {
  border-style: dashed;
}


/* =========================================================
   36) OFFLINE MAPA
   ========================================================= */

.map-offline-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #31506c;
  background: rgba(29, 91, 117, .10);
  border: 1px solid rgba(29, 91, 117, .25);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.map-canvas.is-offline,
.map-canvas.is-offline.leaflet-container {
  background:
    radial-gradient(circle at 28% 64%, rgba(29, 91, 117, .18) 0 17%, transparent 18%),
    linear-gradient(118deg, transparent 45%, rgba(29, 91, 117, .18) 46% 52%, transparent 53%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .32) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .32) 0 1px, transparent 1px 28px),
    #d8d1c2;
}

.map-canvas.is-offline::before {
  content: "Orientační offline mapa míst";
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 350;
  padding: 7px 10px;
  color: #4c463f;
  background: rgba(255, 250, 240, .90);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .10);
  font-size: 9px;
  font-weight: 900;
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (min-width: 520px) {
  .offline-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
