/* Shared visual system and footer used across vestope.cz pages. */
:root {
  --blue: #3565f4;
  --deep: #2446b8;
  --ink: #24334c;
  --muted: #617189;
  --line: #d8e5f7;
  --pale: #edf4ff;
  --paper: #fff;
  --radius: 18px;
  --focus-ring: #e3981a;
}

*,
*::before,
*::after { box-sizing: border-box; }

body { color: var(--ink); font-family: Montserrat, Arial, sans-serif; }

/* Keep native select chevrons away from the right edge on all portal pages. */
select:not([multiple]):not([size]) {
  appearance: none;
  padding-right: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 3 5 5 5-5' fill='none' stroke='%23506a88' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px 10px;
}

.national-header,
.top,
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.national-header > .wrap,
.top > .header,
.site-header {
  min-height: 84px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  letter-spacing: -.025em;
  text-wrap: pretty;
}

p, li, dd { text-wrap: pretty; }

a,
button,
input,
select,
textarea { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.btn,
.button-link,
.article-back {
  min-height: 44px;
  border-radius: 12px;
}

.btn.small { min-height: 40px; }
.btn {
  border-radius: 12px;
  font-weight: 750;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:not(.outline):not(.light):not(.soft) { background-color: var(--blue); border-color: var(--blue); }
.btn:not(.outline):not(.light):not(.soft):hover { background-color: var(--deep); border-color: var(--deep); }
.btn.outline { border-color: #cbdcf2; background-color: #fff; color: var(--blue); }
.btn.outline:hover { border-color: var(--blue); background-color: var(--pale); }
.btn.soft { border-color: transparent; background-color: var(--pale); color: var(--blue); }
.btn.soft:hover { background-color: #e1ebff; }

.region-card,
.article-card,
.report,
.route-card,
.race-card,
.alps-card,
.foreign-category-card,
.service-card,
.trip-card,
.resource-card,
.rule-card,
.update-card,
.event-group,
.weather,
.area-panel,
.article-shell,
.stay,
.story,
.shortcut,
.lodging-card,
.accommodation-card {
  border-radius: 18px;
}

.country-flag,
.country-flag--inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  font-size: 1.1em;
}

.signal {
  display: inline-block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.signal.green { background: #168b5b; box-shadow: 0 0 0 3px #168b5b18; }
.signal.red { background: #dc4d58; box-shadow: 0 0 0 3px #dc4d5818; }
.signal.unknown { background: #97a6b8; box-shadow: 0 0 0 3px #97a6b818; }

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-color: #cbdcf2;
  border-radius: 11px;
  color: var(--ink);
  font-family: inherit;
}

/* Article text should read like editorial content, not like a landing-page hero. */
.article-body {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}
.article-body [data-ricos-paragraph] { font-size: 1em !important; line-height: 1.68 !important; margin-bottom: .8em !important; }
.article-body h2,
.article-body h3,
.article-body h4 { line-height: 1.28; }
.article-body h2 { margin-top: 1.4em; }
.article-body [data-hook="gap-spacer"],
.article-body [type="empty-line"],
.article-body [data-hook^="rcv-block"]:empty,
.article-body [data-hook^="rcv-block"]:not(:has(*)) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.article-body [data-breakout]:has(> p > span:only-child > br:only-child),
.article-body [data-breakout]:has(> div > span > br:only-child) { display: none !important; }

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  accent-color: var(--blue);
}

.site-footer-unified {
  margin-top: 48px;
  padding: 42px 0 18px;
  border-top: 1px solid var(--line);
  background: #eaf2ff;
  color: var(--ink);
}

.site-footer-unified .wrap { max-width: 1280px; margin-inline: auto; padding-inline: 28px; }
.site-footer-unified .footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
}
.site-footer-unified .footer-brand { min-width: 0; }
.site-footer-unified .footer-home { display: inline-flex; width: fit-content; margin: 0 0 10px; }
.site-footer-unified .footer-logo { width: 112px; height: 72px; object-fit: contain; }
.site-footer-unified .footer-tagline { max-width: 220px; color: var(--muted); font-size: 13px; }
.site-footer-unified h2 {
  margin: 5px 0 15px;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer-unified .footer-links { display: grid; gap: 9px; }
.site-footer-unified .footer-links a,
.site-footer-unified .footer-contact a {
  width: fit-content;
  color: #526986;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  text-underline-offset: 3px;
}
.site-footer-unified .footer-links a:hover,
.site-footer-unified .footer-contact a:hover { color: var(--blue); text-decoration: underline; }
.site-footer-unified .footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.site-footer-unified .footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cbdcf2;
  border-radius: 11px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.site-footer-unified .footer-social a:hover { border-color: var(--blue); background: var(--pale); }
.site-footer-unified .footer-partners {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding: 18px 0;
  border-top: 1px solid #cdddf1;
  border-bottom: 1px solid #cdddf1;
}
.site-footer-unified .footer-partners a { display: inline-flex; align-items: center; }
.site-footer-unified .footer-partners img { display: block; width: auto; max-width: 94px; height: 42px; object-fit: contain; }
.site-footer-unified .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}
.site-footer-unified .footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .site-footer-unified { margin-top: 34px; padding: 30px 0 16px; }
  .site-footer-unified .wrap { padding-inline: 20px; }
  .site-footer-unified .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .site-footer-unified .footer-brand { grid-column: 1 / -1; }
  .site-footer-unified .footer-partners { flex-wrap: wrap; gap: 14px 20px; }
  .site-footer-unified .footer-partners img { max-width: 76px; height: 34px; }
  .site-footer-unified .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

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

/* Compact shared footer; avoid stacked legacy margins on links. */
.site-footer-unified {
  margin-top: 34px;
  padding: 27px 0 14px;
}
.site-footer-unified .footer-grid {
  gap: 20px clamp(20px, 3vw, 38px);
}
.site-footer-unified .footer-logo { width: 94px; height: 62px; }
.site-footer-unified .footer-home { margin-bottom: 5px; }
.site-footer-unified .footer-tagline { font-size: 12px; line-height: 1.4; }
.site-footer-unified h2 {
  margin: 2px 0 8px;
  font-size: 11px;
  letter-spacing: .07em;
}
.site-footer-unified .footer-links { gap: 5px; }
.site-footer-unified .footer-links a,
.site-footer-unified .footer-contact a {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}
.site-footer-unified .footer-contact h2 { margin-bottom: 8px; }
.site-footer-unified .footer-social { gap: 8px; margin-top: 11px; }
.site-footer-unified .footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.site-footer-unified .footer-social svg { width: 29px; height: 29px; }
.site-footer-unified .footer-partners {
  margin-top: 17px;
  padding: 12px 0;
  border-bottom: 0;
}
.site-footer-unified .footer-partners img { max-width: 88px; height: 36px; }
.site-footer-unified .footer-bottom {
  margin-top: 7px;
  gap: 10px;
  font-size: 10px;
}
.site-footer-unified .footer-bottom > small { font-size: 10px; }
.site-footer-unified .creator-credit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  font-size: 10px;
}
.site-footer-unified .creator-credit img {
  width: 46px;
  height: 31px;
  object-fit: contain;
}
@media (max-width: 760px) {
  .site-footer-unified { margin-top: 26px; padding: 21px 0 12px; }
  .site-footer-unified .wrap { padding-inline: 18px; }
  .site-footer-unified .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 16px; }
  .site-footer-unified .footer-brand { grid-column: 1 / -1; }
  .site-footer-unified .footer-logo { width: 82px; height: 56px; }
  .site-footer-unified .footer-tagline { max-width: none; font-size: 12px; }
  .site-footer-unified .footer-social { margin-top: 10px; gap: 7px; }
  .site-footer-unified .footer-social a { width: 42px; height: 42px; }
  .site-footer-unified .footer-social svg { width: 27px; height: 27px; }
  .site-footer-unified .footer-links { gap: 5px; }
  .site-footer-unified .footer-links a,
  .site-footer-unified .footer-contact a { font-size: 11px; }
  .site-footer-unified .footer-partners { gap: 12px 17px; margin-top: 14px; padding: 10px 0; }
  .site-footer-unified .footer-partners img { max-width: 68px; height: 30px; }
  .site-footer-unified .footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 7px 12px;
    margin-top: 5px;
    padding-top: 8px;
  }
  .site-footer-unified .footer-bottom > small { grid-column: 1 / -1; font-size: 9px; }
  .site-footer-unified .footer-bottom a { font-size: 10px; }
  .site-footer-unified .creator-credit { justify-self: start; }
  .site-footer-unified .creator-credit img { width: 39px; height: 27px; }
}
.site-footer-unified .footer-social svg { stroke-width: 2.4; }

/* Social links use each network's brand color on hover and keyboard focus. */
.site-footer-unified .footer-social a[href*="instagram.com"]:hover,
.site-footer-unified .footer-social a[href*="instagram.com"]:focus-visible {
  color: #fff;
  border-color: #d62976;
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 28%, #d62976 62%, #962fbf 82%, #4f5bd5 100%);
}
.site-footer-unified .footer-social a[href*="facebook.com"]:hover,
.site-footer-unified .footer-social a[href*="facebook.com"]:focus-visible {
  color: #fff;
  border-color: #1877f2;
  background: #1877f2;
}
.site-footer-unified .footer-social a[href*="youtube.com"]:hover,
.site-footer-unified .footer-social a[href*="youtube.com"]:focus-visible {
  color: #fff;
  border-color: #ff0033;
  background: #ff0033;
}
.site-footer-unified .footer-social a[href*="chat.whatsapp.com"]:hover,
.site-footer-unified .footer-social a[href*="chat.whatsapp.com"]:focus-visible {
  color: #fff;
  border-color: #25d366;
  background: #25d366;
}

/* Tablet and large-phone header: keep the primary links and controls on one line. */
@media (min-width: 651px) and (max-width: 900px) {
  .national-header > .wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(8px, 1.5vw, 14px);
    width: 100%;
    max-width: none;
    padding-inline: 16px;
  }
  .national-header .national-logo { flex: 0 0 auto; }
  .national-header nav[aria-label="Hlavní navigace"] {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: clamp(5px, 1vw, 10px);
    overflow: hidden;
    white-space: nowrap;
    font-size: clamp(10px, 1.35vw, 12px);
  }
  .national-header nav[aria-label="Hlavní navigace"] > a,
  .national-header nav[aria-label="Hlavní navigace"] > details,
  .national-header nav[aria-label="Hlavní navigace"] > details > summary {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }
  .national-header nav[aria-label="Hlavní navigace"] > a:nth-of-type(n + 3) { display: none; }
  .national-header nav[aria-label="Hlavní navigace"] > .foreign-top-link { display: none; }
  .national-header .add-report { display: none; }
  .national-header .site-search-trigger {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }
  .national-header .site-search-trigger > span { display: none; }
  .national-header .national-toggle {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  .national-header > .wrap:has(> .site-hamburger) > .national-toggle { display: none; }
  .national-header > .wrap > .site-hamburger { flex: 0 0 auto; margin: 0 0 0 auto !important; }
}

/* Mobile national header: keep the menu button pinned to the viewport's right edge. */
@media (max-width: 650px) {
  .national-header { position: relative; }
  .national-header > .wrap { display:flex; flex-flow:row nowrap; align-items:center; width: 100%; max-width: none; padding-inline: 16px; }
  .national-header > .wrap > .site-hamburger { position: absolute !important; top: 50% !important; right: 16px !important; left: auto !important; margin: 0 !important; transform: translateY(-50%); }
  .national-header > .wrap > .site-hamburger nav { right: 0; left: auto; }
}

/* Quiet maker credit: a typographic signature, not a button. */
.site-footer-unified .footer-bottom .creator-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #294263;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: color .2s ease;
}
.site-footer-unified .footer-bottom .creator-credit::before {
  position: absolute;
  top: -27px;
  left: 5%;
  width: 88%;
  height: 28px;
  content: "";
  pointer-events: none;
  opacity: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath fill='%2344bab3' d='M8 0 1 9h4L0 15h6v5h4v-5h6l-5-6h4z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath fill='%2344bab3' d='M8 0 1 9h4L0 15h6v5h4v-5h6l-5-6h4z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath fill='%2344bab3' d='M8 0 1 9h4L0 15h6v5h4v-5h6l-5-6h4z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath fill='%2344bab3' d='M8 0 1 9h4L0 15h6v5h4v-5h6l-5-6h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 10px 13px, 13px 16px, 9px 12px, 11px 14px;
  background-position: 8% -18px, 36% -24px, 68% -16px, 91% -22px;
}
.site-footer-unified .footer-bottom .creator-credit > span:first-child {
  color: #7588a2;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.site-footer-unified .footer-bottom .creator-credit img {
  width: 34px;
  height: 25px;
  object-fit: contain;
  transition: transform .3s ease;
}
.site-footer-unified .footer-bottom .creator-credit > span:last-child {
  color: #2b4262;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: color .2s ease;
}
.site-footer-unified .footer-bottom .creator-credit:hover,
.site-footer-unified .footer-bottom .creator-credit:focus-visible {
  color: #44bab3;
  outline: 2px solid transparent;
  text-decoration: underline;
  text-decoration-color: #44bab3;
  text-underline-offset: 3px;
}
.site-footer-unified .footer-bottom .creator-credit:hover::before,
.site-footer-unified .footer-bottom .creator-credit:focus-visible::before {
  animation: creator-tree-rain 1.15s ease-in infinite;
}
.site-footer-unified .footer-bottom .creator-credit:hover img,
.site-footer-unified .footer-bottom .creator-credit:focus-visible img {
  transform: rotate(-5deg) scale(1.08);
}
.site-footer-unified .footer-bottom .creator-credit:hover > span:last-child,
.site-footer-unified .footer-bottom .creator-credit:focus-visible > span:last-child {
  color: #44bab3;
}
@keyframes creator-tree-rain {
  0% { opacity: 0; background-position: 8% -18px, 36% -24px, 68% -16px, 91% -22px; }
  16% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; background-position: 2% 15px, 31% 19px, 73% 13px, 97% 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer-unified .footer-bottom .creator-credit,
  .site-footer-unified .footer-bottom .creator-credit::before,
  .site-footer-unified .footer-bottom .creator-credit img,
  .site-footer-unified .footer-bottom .creator-credit::after,
  .site-footer-unified .footer-bottom .creator-credit > span:last-child {
    transition: none;
  }
  .site-footer-unified .footer-bottom .creator-credit:hover::before,
  .site-footer-unified .footer-bottom .creator-credit:focus-visible::before { animation: none; opacity: 0; }
}

/* Keep the shared desktop navigation aligned with the homepage and on one line. */
@media (min-width: 901px) {
  .national-header > .wrap { flex-wrap: nowrap; gap: clamp(14px, 1.8vw, 32px); }
  .national-header .national-logo { flex: 0 0 auto; }
  .national-header nav[aria-label="Hlavní navigace"] {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-width: 0;
    gap: clamp(12px, 1.4vw, 24px);
    white-space: nowrap;
  }
  .national-header nav[aria-label="Hlavní navigace"] > a,
  .national-header nav[aria-label="Hlavní navigace"] > details,
  .national-header nav[aria-label="Hlavní navigace"] > details > summary {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .national-header .add-report,
  .national-header .site-search-trigger {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}


/* Shared VeStopě design system for mountain overviews and locality detail pages. */
:root {
  --portal-blue: #3565f4;
  --portal-ink: #24334c;
  --portal-muted: #617189;
  --portal-line: #d8e5f7;
  --portal-icon-filter: brightness(0) saturate(100%) invert(39%) sepia(97%) saturate(2250%) hue-rotate(217deg) brightness(101%) contrast(96%);
}

body {
  font-family: Montserrat, Arial, sans-serif;
}

body.sumava-page {
  --blue: var(--portal-blue);
  --ink: var(--portal-ink);
  --muted: var(--portal-muted);
  --line: var(--portal-line);
  font-family: Montserrat, Arial, sans-serif;
}

body.sumava-page :is(h1, h2, h3, h4, h5, h6) {
  color: var(--portal-ink);
  font-family: Montserrat, Arial, sans-serif;
}

body.sumava-page :is(.hero-title h1, .country-title h1, .hero-inner h1) {
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.08;
}

body.sumava-page :is(.eyebrow, .country-title .eyebrow) {
  color: var(--portal-blue);
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.sumava-page :is(.region-card, .shortcut, .locality-reference-panel, .locality-status) {
  border-color: var(--portal-line);
  border-radius: var(--radius);
}

body.sumava-page :is(.sumava-sticky-links, .section-nav-heading, .shortcut-icon, .service-icon, .icon-action, .icon-metrics, .track-icon) svg {
  color: var(--portal-blue);
}

body.sumava-page :is(img.original-action-icon, .nav-icon img, .service-icon img, .icon-metrics img, .track-icon img) {
  filter: var(--portal-icon-filter) !important;
}


/* Keep the snow-condition action consistent and legible on every mountain page. */
.hero-actions > a.btn[href*="#stav"],
.hero-actions > a.btn[href*="#rolbari"] {
  border: 1px solid var(--portal-line);
  background: #fff;
  color: var(--portal-blue);
}
.hero-actions > a.btn[href*="#stav"]:hover,
.hero-actions > a.btn[href*="#stav"]:focus-visible,
.hero-actions > a.btn[href*="#rolbari"]:hover,
.hero-actions > a.btn[href*="#rolbari"]:focus-visible {
  border-color: var(--portal-blue);
  background: var(--pale);
  color: var(--portal-blue);
}
.hero-actions > a.btn[href*="#stav"] .nav-icon img,
.hero-actions > a.btn[href*="#rolbari"] .nav-icon img {
  filter: var(--portal-icon-filter);
}
