/* Úvodní stránka – tabule Navrh-Home-Mapa (desktop 1440), Navrh-Home-Mapa-Siroky (1920, obsah do 1280 px),
   Navrh-Home-Mapa-Mobil (390). Hodnoty přepsané z inline stylů tabulí; odkazy v barvě webu (--c-link). */

.hp-wrap { width: 100%; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }

/* ---------- úvodní fotografie ---------- */
.hp-hero { background: url("/img/hero-kanoe.jpg") center 45% / cover no-repeat; } /* fotka z návrhu (starý web TopPhoto4.jpg) */
.hp-hero-shade { background: linear-gradient(90deg, rgba(10, 40, 34, .82) 0, rgba(10, 40, 34, .55) 35%, rgba(10, 40, 34, 0) 55%); padding: 60px 24px 170px; }
.hp-hero-inner { display: flex; flex-direction: column; gap: 14px; color: #fff; }
.hp-hero h1 { margin: 0; max-width: 760px; font-size: 60px; font-weight: 700; line-height: 1.05; color: #fff; }
.hp-hero-sub { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 22px; color: #e0f2f1; }
.hp-hero-bar { width: 36px; height: 3px; flex-shrink: 0; background: #ffb74d; }
.hp-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.hp-partners-title { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #e0f2f1; }
.hp-partners img { display: block; height: 44px; width: auto; }

/* ---------- mapa řek a výběr řeky ---------- */
.hp-rivers { position: relative; margin-top: -120px; padding: 0 24px; scroll-margin-top: var(--header-h); }
.hp-card {
  max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(10, 40, 34, .22);
}
.hp-map { padding: 26px 26px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hp-map-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hp-kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #35514c; }
.hp-where { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.hp-where-bottom { display: none; }

.hp-pick { padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid #e3e9e7; }
.hp-pick-head { display: flex; flex-direction: column; gap: 2px; }
.hp-pick-head h2 { margin: 0; font-size: 32px; font-weight: 700; color: #16302c; }
.hp-pick-head span { font-size: 14px; color: #5d6f6c; }
.hp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; }
.hp-item {
  min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 8px; box-sizing: border-box;
  border-radius: 12px; background: #f3f6f5; box-shadow: inset 0 0 0 1px #e3ebe8;
  color: #16302c; font-size: 15px; font-weight: 600; line-height: 1.2;
}
.hp-item-ico {
  width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fff; color: #3d8fd6; box-shadow: 0 0 0 1px #d5e3ee;
}
.hp-item-name { flex-grow: 1; min-width: 0; }
.hp-item:hover, .hp-item.is-hl { background: #ffd9a6; box-shadow: inset 0 0 0 2px #ef6c00; color: #16302c; text-decoration: none; }
.hp-item:hover .hp-item-ico, .hp-item.is-hl .hp-item-ico { background: #ef6c00; color: #fff; box-shadow: none; }
.hp-country { font-size: 11px; font-weight: 700; color: #5d6f6c; background: #fff; padding: 1px 6px; border-radius: 4px; }
.hp-hint { margin: 0; font-size: 13px; color: #5d6f6c; }
.hp-wild { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #e8ecf3; font-size: 15px; font-weight: 700; }
.hp-wild:hover { text-decoration: none; background: #dde3ee; }
.hp-wild-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff; color: #34507a; }
.hp-wild-text { flex-grow: 1; }

/* SVG mapa (Infrastructure/HomeMapSvg.cs); velikosti v jednotkách viewBox 836 px */
.hm-svg { display: block; width: 100%; height: auto; margin: auto 0; font-family: var(--font); } /* svisle na střed, když je seznam vyšší */
.hm-cz, .hm-sk { stroke: #fff; stroke-width: 3; stroke-linejoin: round; }
.hm-cz { fill: #e3f1ee; }
.hm-sk { fill: #ecf3ef; }
.hm-country { font-size: 13px; font-weight: 700; letter-spacing: 3px; fill: #a3bfb5; text-anchor: middle; }
.hm-context { fill: none; stroke: #b7d3ee; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hm-river path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hm-halo { stroke: #ffd9a6; stroke-width: 14; opacity: 0; }
.hm-line { stroke: #3d8fd6; stroke-width: 3; }
.hm-hit { stroke: transparent; stroke-width: 16; pointer-events: stroke; }
.hm-river:hover .hm-halo, .hm-river.is-hl .hm-halo { opacity: 1; }
.hm-river:hover .hm-line, .hm-river.is-hl .hm-line { stroke: #ef6c00; stroke-width: 5; }
.hm-city { fill: #7a8a87; }
.hm-city-name { font-size: 12px; fill: #7a8a87; }
.hm-label text { font-size: 15px; font-weight: 700; fill: #00695c; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.hm-pill { fill: #ffd9a6; stroke: #ef6c00; stroke-width: 2; opacity: 0; }
.hm-label:hover { text-decoration: none; }
.hm-label:hover .hm-pill, .hm-label.is-hl .hm-pill { opacity: 1; }
.hm-label:hover text, .hm-label.is-hl text { fill: #16302c; stroke: none; }

/* ---------- aplikace ---------- */
.hp-app { margin-top: 64px; padding: 56px 24px; background: #00695c; }
.hp-app-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.hp-app-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.hp-app h2 { margin: 0; font-size: 36px; font-weight: 700; color: #fff; }
.hp-app p { margin: 0; font-size: 18px; line-height: 1.6; color: #e0f2f1; }
.hp-app strong { color: #fff; }
.hp-badge { align-self: flex-start; }
.hp-badge img { display: block; height: 56px; width: auto; }
.hp-shots { display: flex; gap: 14px; }
.hp-shots img { width: 130px; height: 219px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }

/* ---------- Hledáte, novinky, data ---------- */
.hp-section { padding: 64px 24px; }
.hp-section > .hp-wrap { display: flex; flex-direction: column; gap: 28px; }
.hp-section h2 { margin: 0; font-size: 36px; font-weight: 700; color: #16302c; }
.hp-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.hp-cat {
  flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px;
  background: #fff; box-shadow: 0 0 0 1px #dfe6e4, 0 2px 8px rgba(0, 0, 0, .04); color: #16302c;
}
.hp-cat:hover { text-decoration: none; color: #16302c; box-shadow: 0 0 0 1px #c9d6d3, 0 6px 18px rgba(0, 0, 0, .08); }
.hp-cat strong { font-size: 20px; font-weight: 700; }
.hp-cat-text { font-size: 15px; line-height: 1.55; color: #4a5c59; }
.hp-more { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--c-link); }
.hp-cat:hover .hp-more { text-decoration: underline; }

.hp-tinted { background: #e8efed; }
.hp-section > .hp-two { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.hp-col { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hp-col time { font-size: 13px; font-weight: 700; color: #5d6f6c; }
.hp-news-top { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #dfe6e4; }
.hp-news-top .hp-news-text { font-size: 17px; font-weight: 500; color: #16302c; }
.hp-news-list { display: flex; flex-direction: column; }
.hp-news { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid #dfe6e4; }
.hp-news-text { font-size: 16px; line-height: 1.5; color: #2b3a38; }
.hp-news-text p { margin: 0; }
.hp-news-text img { max-width: 100%; height: auto; border-radius: 12px; }
.hp-col > .hp-more { margin-top: 0; font-size: 16px; }
.hp-data-lead { margin: 0; font-size: 16px; line-height: 1.6; color: #2b3a38; }
.hp-data-kinds { margin: 0; font-size: 15px; line-height: 1.55; color: #4a5c59; }
.hp-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.hp-stats li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #dfe6e4; }
.hp-stats strong { font-size: 30px; font-weight: 700; color: #00695c; }
.hp-stats span { font-size: 14px; color: #4a5c59; }
.hp-mapy { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-style: italic; color: #4a5c59; }
.hp-mapy img { height: 18px; width: auto; }

/* ---------- tablet: mapa nad výběrem (tabule pro tablet není) ---------- */
@media (max-width: 1199.98px) {
  .hp-card { grid-template-columns: minmax(0, 1fr); }
  .hp-pick { border-left: 0; border-top: 1px solid #e3e9e7; }
  .hp-hero h1 { font-size: 46px; }
}

/* ---------- mobil (Navrh-Home-Mapa-Mobil) ---------- */
@media (max-width: 767.98px) {
  .hp-hero-shade { background: linear-gradient(180deg, rgba(10, 40, 34, 0) 0, rgba(10, 40, 34, 0) 30%, rgba(10, 40, 34, .8) 70%); padding: 110px 16px 84px; }
  .hp-hero-inner { gap: 10px; }
  .hp-hero h1 { font-size: 34px; line-height: 1.08; }
  .hp-hero-sub { font-size: 18px; }
  .hp-hero-bar { display: none; }
  .hp-partners { margin-top: 16px; }
  .hp-partners img { height: 34px; }

  .hp-rivers { margin-top: -60px; padding: 0 12px; }
  .hp-card { border-radius: 18px; box-shadow: 0 12px 32px rgba(10, 40, 34, .2); }
  .hp-map { padding: 12px 10px 6px; }
  .hp-map-head, .hp-hint { display: none; }
  .hp-pick { padding: 16px 12px 14px; gap: 10px; border-top: 0; }
  .hp-pick-head h2 { margin: 0 4px; font-size: 26px; }
  .hp-pick-head span { display: none; }
  .hp-list { gap: 6px; }
  .hp-wild { margin-top: 0; }
  .hp-where-bottom { display: flex; padding: 6px 4px 0; }
  /* mapa se zmenšuje s šířkou – názvy řek by byly nečitelné a překrývaly se (seznam je hned pod mapou); města a státy větší */
  .hm-label { display: none; }
  .hm-city-name { font-size: 19px; }
  .hm-country { font-size: 20px; }

  .hp-app { margin-top: 28px; padding: 32px 16px; }
  .hp-app h2 { font-size: 26px; }
  .hp-app p { font-size: 16px; }
  .hp-shots img { width: 108px; height: 182px; }
  .hp-shots img:nth-child(n + 3) { display: none; }

  .hp-section { padding: 32px 16px; }
  .hp-section > .hp-wrap { gap: 18px; }
  .hp-section h2 { font-size: 26px; }
  .hp-section > .hp-two { gap: 32px; }
  .hp-stats strong { font-size: 26px; }
}
