/* Font. inPage Standard nemá globální pole pro vlastní <head>, takže @import
   zůstává tady. Oproti původnímu stavu jen 4 řezy místo 18. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ============================================================
   INSIGHT TRAVEL – vlastní CSS (override vrstva nad ONE + fitnessblog)
   Design → Vlastní CSS styly · /styl/3/ · poslední v kaskádě
   ------------------------------------------------------------
   Pravidla:
   - Přebíjíme jen to, co fitnessblog nastavil „modře/korálově“ (#2aafb8, #F16252)
     nebo co je rozbité. Zbytek necháváme ze základu (rozhodnutí: dfc zůstává).
   - !important jen tam, kde ho používá fitnessblog (dropdown menu). Je to
     označené komentářem.
   - Font: @import nahoře (globální <head> inPage Standard nenabízí), 4 řezy.
   - Vše je v rem; html = 16 px (fitnessblog nastavuje 1.05rem = 16,8 px,
     to vracíme na 16 px, aby šly velikosti počítat).
   ============================================================ */

/* ---------- 0. TOKENY ---------- */
:root {
  --it-blue: #345996;        /* primární modrá – nadpisy, odkazy, tlačítka */
  --it-navy: #26416e;        /* tmavá modrá – hover, overlay hero */
  --it-sky: #8dabd8;         /* světlá modrá – focus, podtržení menu */
  --it-brick: #c84630;       /* cihlová – tlačítko v postranním boxu, hvězdička ve formuláři */
  --it-brick-dark: #a43a27;
  --it-text: #444444;        /* text odstavců */
  --it-muted: #65605e;       /* šedohnědá – podnadpisy, data, popisky (kontrast 5,1:1 na béžové) */
  --it-sand: #f2f1ef;        /* béžová – panely, meta box, patička */
  --it-line: #e3e0dc;        /* linky a rámečky */
  --it-white: #ffffff;
  --it-radius: 6px;
  --it-shadow: 0 2px 10px rgba(38, 65, 110, 0.08);
  --it-font: 'Noto Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 1. ZÁKLAD ---------- */
html {
  font-size: 100%;                 /* 16 px; fitnessblog má 1.05rem */
  scroll-padding-top: 80px;        /* sticky menu nepřekryje kotvu (#kontaktni-formular) */
}

body,
html {
  font-family: var(--it-font);
  font-weight: 400;                /* fitnessblog má 300, ty už nenačítáme */
  color: var(--it-text);
  background-color: var(--it-white);
}

body {
  font-size: 1.0625rem;            /* 17 px */
  line-height: 1.65;
}

::selection {
  background: var(--it-sky);
  color: var(--it-white);
}

strong,
b {
  font-weight: 700;                /* fitnessblog: strong = 400 (protože body bylo 300) */
}

hr {
  border: 0;
  border-top: 1px solid var(--it-line);
  margin: 1.75rem 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* prázdné <p> (oddělovače sekcí <!-- sectionbreak --> a zbytkové <p></p>) nedělají mezery */
main p:empty,
#box-custom-footer p:empty,
#panel-custom-1 p:empty {
  display: none;
  margin: 0;
}

/* kontejner: na ≥1500 px nechává fitnessblog 1420 px, řádky textu jsou pak moc dlouhé */
@media (min-width: 1500px) {
  .container {
    width: 1170px;
  }
}

/* ---------- 2. TYPOGRAFIE ---------- */
h1, h2, h3, h4, h5, h6,
.panel-title,
h1.title {
  font-family: var(--it-font);
  line-height: 1.25;
}

h1,
h1.title,
h2 {
  color: var(--it-blue);
  font-weight: 700;
}

h3 {
  color: var(--it-muted);
  font-weight: 600;
}

h4, h5, h6 {
  color: var(--it-text);
  font-weight: 600;
}

h1,
h1.title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);   /* 30–46 px místo pevných 60 px */
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0.35em 0 0.5em;
}

h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.9rem);
  margin: 1.4em 0 0.5em;
}

h2.media-heading,
.thumbnail .caption h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5em;
}

h3 {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.4rem);
  margin: 1.3em 0 0.5em;
}

h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }

p {
  margin: 0 0 1em;
}

/* delší text nemá běžet přes celou šířku sloupce */
section.section-header .section-content > p,
section.section-blank .section-content > p,
section.section-header .col-sm-12 > p,
.rubric-main-perex p {
  max-width: 75ch;
}

/* ---------- 3. ODKAZY, FOCUS ---------- */
a,
.btn-link {
  color: var(--it-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus,
.btn-link:hover,
.btn-link:focus {
  color: var(--it-navy);
  text-decoration: none;
}

/* odkazy v běžném textu jsou podtržené (přístupnost); v menu, kartách a tlačítkách ne */
main p a:not(.btn),
main li a:not(.btn):not(.section-cell-item),
main td a:not(.btn),
.rubric-main-perex a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:focus-visible,
.btn:focus-visible,
button:focus-visible,
.form-control:focus-visible {
  outline: 3px solid var(--it-sky);
  outline-offset: 2px;
}

/* ---------- 4. TLAČÍTKA ---------- */
.btn {
  font-family: var(--it-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: var(--it-radius);
  padding: 0.65em 1.4em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-color: var(--it-blue);
  border-color: var(--it-blue);
  color: var(--it-white);
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:active:hover,
.btn-primary:focus:hover {
  background-color: var(--it-navy);
  border-color: var(--it-navy);
  color: var(--it-white);
}

.btn-default,
.btn-default:focus {
  background-color: var(--it-sand);
  color: var(--it-blue);
  border: 1px solid var(--it-line);
  border-radius: var(--it-radius);
}

.btn-default:hover {
  background-color: var(--it-blue);
  border-color: var(--it-blue);
  color: var(--it-white);
}

/* ---------- 5. HLAVIČKA A MENU ---------- */
header {
  background-color: var(--it-white);
  padding: 0;
  color: var(--it-muted);
}

#logo {
  margin: 14px 0;
}

#logo img {
  max-height: 56px;
  width: auto;
}

.navbar-default {
  background-color: var(--it-white);
  border: 0;
  border-bottom: 1px solid var(--it-line);
  box-shadow: 0 2px 12px rgba(38, 65, 110, 0.06);
}

.navbar-default .navbar-nav > li > a {
  color: var(--it-text);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 18px 0 15px;
  margin: 0 16px;
  text-transform: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--it-blue);
  background-color: transparent;
  border-bottom-color: var(--it-sky);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: var(--it-blue);
  font-weight: 600;
  background-color: transparent;
  border-bottom-color: var(--it-blue);
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  color: var(--it-blue);
  background-color: transparent;
}

.navbar-default .navbar-toggle {
  background-color: var(--it-blue);
  border-color: var(--it-blue);
  color: var(--it-white);
  border-radius: var(--it-radius);
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: var(--it-navy);
  border-color: var(--it-navy);
  color: var(--it-white);
}

.navbar-default .navbar-toggle .icon-bar,
.navbar-default .navbar-toggle:hover .icon-bar,
.navbar-default .navbar-toggle:focus .icon-bar {
  background-color: var(--it-white);
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: var(--it-line);
}

@media (max-width: 768px) {
  .navbar-default .navbar-nav > li > a {
    padding: 12px 10px;
    margin: 0 6px;
    border-bottom: 0;
  }

  .navbar-default .navbar-nav > .active > a {
    border-left: 3px solid var(--it-blue);
    padding-left: 12px;
  }
}

/* rozbalovací menu (CESTY, ZAŽILI JSME, AKTUALITY) */
.dropdown-menu {
  background-color: var(--it-white);
  border: 1px solid var(--it-line);
  border-radius: var(--it-radius);
  box-shadow: 0 12px 32px rgba(38, 65, 110, 0.14);
  padding: 0.4rem 0;
}

.dropdown-menu > li > a {
  color: var(--it-text);
  font-weight: 400;
  padding: 0.5rem 1.25rem;
}

/* !important: fitnessblog má na těchto stavech !important, jinak se nepřebijí */
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
  color: var(--it-blue) !important;
  background-color: var(--it-sand) !important;
}

/* ---------- 6. HERO (#motive / #motto) ---------- */
/* Fitnessblog dává hero 40–60 vh se stock fotkou z /styl/1/. Tady: vlastní fotka
   ze zájezdu (Efez – Celsova knihovna), tmavý overlay, rozumná výška. Fotku
   vyměníš změnou URL níže (libovolný /obrazek/3/<slug>/ z knihovny obrázků). */
#motive {
  position: relative;
  height: auto;
  min-height: 200px;
  background-color: var(--it-navy);
  background-image: url(/obrazek/3/08-efez-jpeg/);
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  border-bottom: 0;
}

#motive::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(38, 65, 110, 0.86) 0%, rgba(38, 65, 110, 0.6) 55%, rgba(38, 65, 110, 0.3) 100%);
}

#motive .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: auto;
  min-height: inherit;
}

body.frontpage #motive {
  min-height: 320px;
}

@media (min-width: 992px) {
  #motive {
    min-height: 240px;
  }

  body.frontpage #motive {
    min-height: 420px;
  }
}

/* text motivu (Nastavení → Text motivu). Když zůstane vypnutý, hero je jen fotka s overlayem. */
#motto {
  max-width: 44rem;
  padding: 2.25rem 0;
  background-color: transparent;   /* fitnessblog dává na mobilu bílé pozadí */
}

@media (max-width: 992px) {
  #motto {
    background-color: transparent;
    padding: 2rem 0;
  }
}

#motto #motto-title,
#motto #motto-title a {
  color: var(--it-white);
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-transform: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

#motto #motto-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

#motto .btn {
  margin-top: 1.25rem;
}

/* ---------- 7. DROBEČKY A OBSAHOVÁ ČÁST ---------- */
.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 0 0.25rem;
  margin-bottom: 0;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--it-muted);
}

.breadcrumb a:hover {
  color: var(--it-blue);
}

.breadcrumb > .active {
  color: var(--it-muted);
}

.breadcrumb > li + li:before {
  color: #c9c5c0;
}

#content {
  padding-bottom: 2rem;
}

.rubric-main-perex {
  font-size: 1.1rem;
  color: var(--it-muted);
  margin-bottom: 1.5rem;
}

/* ---------- 8. SEKCE (katalog komponent editoru) ---------- */
section.section-container {
  padding: 0;
  margin: 2rem 0;
}

section.section-bg,
section.section-bg-light {
  padding: 1.5rem;
  background-color: var(--it-sand);
  border-radius: var(--it-radius);
}

section.section-bg {
  background-color: var(--it-navy);
  color: var(--it-white);
}

section.section-bg h1,
section.section-bg h2,
section.section-bg h3,
section.section-bg h4,
section.section-bg h5,
section.section-bg a {
  color: var(--it-white);
}

/* obrázky v sekcích */
.section-content img,
.section-cell-img img,
.section-map img {
  border-radius: var(--it-radius);
}

/* obrázek ve dvousloupci na mobilu dostane vzduch od textu */
@media (max-width: 767px) {
  section.section-2-col-left-text .section-content + .section-content,
  section.section-2-col-right-text .section-content + .section-content {
    margin-top: 1rem;
  }
}

/* mapa / úvodní obrázek zájezdu */
section.section-map iframe,
section.section-map img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--it-radius);
}

section.section-map img {
  height: auto;
}

/* ceník */
.section-pricelist .table {
  margin-bottom: 1.25rem;
  border: 1px solid var(--it-line);
  border-radius: var(--it-radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.section-pricelist .table > thead > tr > th {
  background-color: var(--it-blue);
  color: var(--it-white);
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  padding: 0.7rem 1rem;
}

.section-pricelist .table > tbody > tr > td {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--it-line);
  vertical-align: top;
}

.section-pricelist .table > tbody > tr:first-child > td {
  border-top: 0;
}

.section-pricelist .table-striped > tbody > tr:nth-child(odd) > td {
  background-color: var(--it-sand);
}

.section-pricelist .table td.text-right {
  white-space: nowrap;
  font-weight: 700;
  color: var(--it-blue);
}

.section-pricelist .table td p:last-child {
  margin-bottom: 0;
}

/* CTA sekce (Máte o cestu zájem? / Ozvěte se) */
.section-cta.section-bg-light {
  background-color: var(--it-blue);
  color: var(--it-white);
  text-align: center;
  padding: 2rem 1.5rem;
}

.section-cta.section-bg-light h1,
.section-cta.section-bg-light h2,
.section-cta.section-bg-light h3,
.section-cta.section-bg-light h4,
.section-cta.section-bg-light h5 {
  color: var(--it-white);
  margin-top: 0;
}

.section-cta.section-bg-light p:last-child {
  margin-bottom: 0;
}

.section-cta.section-bg-light a {
  color: var(--it-white);
}

.section-cta.section-bg-light .btn-primary {
  background-color: var(--it-white);
  color: var(--it-blue);
}

.section-cta.section-bg-light .btn-primary:hover,
.section-cta.section-bg-light .btn-primary:focus {
  background-color: var(--it-navy);
  color: var(--it-white);
}

/* seznam kontaktů s ikonami (stránka Kontakt, patička) */
.it-contact-list li {
  margin-bottom: 0.4rem;
}

.it-contact-list .fa,
section.section-contact .section-cell-item .fa {
  color: var(--it-blue);
  width: 1.4em;
  text-align: center;
  margin-right: 0.2em;
}

/* úvodní stránka: nadpis nad výpisem nabídky se lepí k výpisu */
body.frontpage section.section-container.hp-offer-title {
  margin-bottom: 0.25rem;
}

body.frontpage .hp-offer-title h2 {
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--it-blue);
}

/* služby, kontakty, sociální ikony – jen barvy */
section.section-services li {
  border-left-color: var(--it-blue);
  background-color: var(--it-sand);
  border-radius: var(--it-radius);
}

section.section-contact .fa {
  color: var(--it-blue);
  letter-spacing: 0;
}

a[class*="social"] {
  background-color: var(--it-blue);
  border-radius: var(--it-radius);
}

/* záložky, accordion, stránkování – jen barvy */
.nav-tabs > li > a {
  color: var(--it-text);
}

.nav-tabs > li > a:hover {
  color: var(--it-blue);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--it-blue);
  border-color: var(--it-line);
  border-bottom-color: var(--it-white);
}

.panel-group .panel-default {
  border: 1px solid var(--it-line);
  border-radius: var(--it-radius);
  margin-bottom: 0.5rem;
}

.panel-group .panel-default > .panel-heading {
  background-color: var(--it-sand);
  padding: 0.6rem 1rem;
}

.panel-group .panel-title {
  font-size: 1.05rem;
  color: var(--it-blue);
}

.pagination > li > a,
.pagination > li > span {
  color: var(--it-blue);
  border-color: var(--it-line);
}

.pagination > li > a:hover,
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
  color: var(--it-white);
  background-color: var(--it-blue);
  border-color: var(--it-blue);
}

.alert-success { background-color: #2f7d5b; border-color: #2f7d5b; }
.alert-info    { background-color: var(--it-blue); border-color: var(--it-blue); }
.alert-danger  { background-color: var(--it-brick); border-color: var(--it-brick); }

/* ---------- 9. STRÁNKA ZÁJEZDU (šablona „Cesta“) ---------- */
/* úvod: H1 + .trip-tagline + .trip-meta + text + tlačítko */
.trip-intro h1 {
  margin-bottom: 0.15em;
}

.trip-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--it-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.15rem;
  background-color: var(--it-sand);
  border-radius: var(--it-radius);
  font-size: 0.95rem;
  list-style: none;
}

.trip-meta li {
  margin: 0;
}

.trip-meta .fa {
  color: var(--it-blue);
  width: 1.25em;
  text-align: center;
  margin-right: 0.3em;
}

.trip-meta strong {
  font-weight: 600;
}

.trip-intro .btn {
  margin-top: 0.25rem;
}

/* nadpis programu */
.trip-program h2 {
  margin-bottom: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--it-blue);
}

/* jeden den = jedna sekce .trip-day (2-col-left-text nebo blank) */
section.section-container.trip-day {
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--it-line);
}

/* první den hned pod nadpisem programu (mezi nimi je skrytý <p> oddělovače) nemá linku */
.trip-program + p + section.trip-day {
  border-top: 0;
}

.trip-day h3 {
  color: var(--it-blue);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.trip-day-no {
  display: inline-block;
  vertical-align: middle;
  background-color: var(--it-blue);
  color: var(--it-white);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  margin-right: 0.5em;
  position: relative;
  top: -0.1em;
}

.trip-day p:last-child {
  margin-bottom: 0;
}

.trip-distance {
  font-size: 0.875rem;
  color: var(--it-muted);
  margin: 0.25rem 0 0;
}

.trip-distance::before {
  content: "\f018";                 /* fa-road, Font Awesome 4.7 */
  font-family: FontAwesome;
  margin-right: 0.45em;
  color: var(--it-sky);
}

/* časová osa jednodenního zájezdu (Berlín): <ul class="trip-timeline"><li><strong>04:45</strong> …</li> */
.trip-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-timeline li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--it-line);
}

.trip-timeline li:last-child {
  border-bottom: 0;
}

.trip-timeline strong {
  display: inline-block;
  min-width: 4em;
  color: var(--it-blue);
}

/* cena */
.trip-price h3 {
  font-size: 1.05rem;
  color: var(--it-text);
  margin: 1rem 0 0.5rem;
}

.trip-price-note {
  display: block;
  font-size: 0.9em;
  font-weight: 400;
  color: var(--it-muted);
  margin-top: 0.2rem;
}

/* ---------- 10. ZÁŽITKY Z CEST (retrospektiva + galerie) ---------- */
/* datum pod H1: nová šablona používá <p class="trip-date">, staré stránky <h2> hned za <h1> */
.trip-date,
body.rubric-61530 main h1 + h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--it-muted);
  letter-spacing: 0.04em;
  margin: -0.25rem 0 1rem;
  text-transform: none;
}

/* stránky bez sekce (h1 + h2 + p přímo v #mainContent) dostanou stejný odstup jako sekce */
body.rubric-61530 #mainContent > div > h1 {
  margin-top: 1rem;
}

.gallery-content {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--it-line);
}

/* ---------- 11. VÝPISY (úvodní stránka, rubriky) ---------- */
ul#listdata > li,
#list-pages > li {
  padding: 15px;
}

ul#listdata > li .media-body,
#list-pages > li .media-body {
  display: block;
  width: auto;
  height: 100%;
  background-color: var(--it-white);
  border: 1px solid var(--it-line);
  border-radius: var(--it-radius);
  padding: 1.25rem;
  box-shadow: var(--it-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

ul#listdata > li .media-body:hover,
#list-pages > li .media-body:hover {
  box-shadow: 0 8px 24px rgba(38, 65, 110, 0.14);
  transform: translateY(-2px);
}

.media:first-child,
ul#listdata > li.media,
#list-pages > li.media {
  margin-top: 0;
}

h2.media-heading a {
  color: var(--it-blue);
}

h2.media-heading a:hover {
  color: var(--it-navy);
}

.perex .perex-image-link {
  display: block;
  margin: 0.25rem 0 0.75rem;
}

.perex .perex-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  padding: 0;
  border-radius: var(--it-radius);
}

#listdata .perex-text p,
#list-pages .perex-text p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

#list-rubrics li .details,
#list-pages li .details,
#listdata li .details {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--it-muted);
  margin: 0.75rem 0 0;
}

/* ---------- 12. POSTRANNÍ PANELY ---------- */
aside .panel {
  margin-bottom: 1.75rem;
}

aside .panel-primary > .panel-heading {
  padding: 0 0 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--it-blue);
  border-bottom: 2px solid var(--it-blue);
}

aside .panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--it-blue);
}

aside .panel .panel-body {
  background-color: var(--it-sand);
  border: 0;
  border-radius: var(--it-radius);
  padding: 1.25rem;
}

#list-panel-news {
  list-style: none;
  padding: 0;
  margin: 0;
}

#panel-news ul#list-panel-news li {
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--it-line);
}

#panel-news ul#list-panel-news li:last-child {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

#panel-news ul#list-panel-news li div h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

ul#list-panel-news li div h4 a {
  color: var(--it-blue);            /* dřív #A0A0A0 – kontrast 2,4:1, neprošlo by WCAG */
}

ul#list-panel-news li div p.date {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--it-muted);
  margin: 0 0 0.3rem;
}

#panel-news ul#list-panel-news li div p.description {
  color: var(--it-text);
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
  border: 0;
}

#panel-news .panel-body p.more {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

/* Vlastní box 1 – „Chcete nás kontaktovat?“ */
#panel-custom-1 section.section-container,
#panel-custom-1 section.section-container.section-bg-light {
  background-color: var(--it-sand);
  color: var(--it-text);
  padding: 1.25rem;
  margin: 0;
  border-radius: var(--it-radius);
  text-align: left;
}

#panel-custom-1 section.section-container.section-bg-light h3 {
  color: var(--it-blue);            /* dřív #A0A0A0 */
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

#panel-custom-1 section.section-container.section-bg-light p:last-child {
  margin-bottom: 0;
}

#panel-custom-1 section.section-container.section-bg-light .btn-primary {
  background-color: var(--it-brick);
  color: var(--it-white);
}

#panel-custom-1 section.section-container.section-bg-light .btn-primary:hover,
#panel-custom-1 section.section-container.section-bg-light .btn-primary:focus {
  background-color: var(--it-brick-dark);
  color: var(--it-white);
}

/* ---------- 13. FOTOGALERIE ---------- */
/* výpis galerií: flex místo floatů, aby se karty různé výšky nezalamovaly nerovně */
#photogalleries.row {
  display: flex;
  flex-wrap: wrap;
}

#photogalleries .item-photogallery {
  display: flex;
  margin-bottom: 30px;
}

#photogalleries .thumbnail {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

#photogalleries .thumbnail .caption {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

#photogalleries .thumbnail .caption .more {
  margin-top: auto;
}

#photogalleries .thumbnail {
  background-color: var(--it-white);
  border: 1px solid var(--it-line);
  border-radius: var(--it-radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--it-shadow);
}

#photogalleries .thumbnail .link-thumbnail .img-thumbnail {
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

#photogalleries .thumbnail .caption {
  padding: 1rem 1.25rem 1.25rem;
}

#photogalleries dl.count {
  display: inline-block;
  margin: 0 1rem 0.5rem 0;
  font-style: normal;
  font-size: 0.85rem;
}

#photogalleries dl.count dt,
#photogalleries dl.count dd {
  display: inline;
}

.badge {
  background-color: var(--it-sand);
  color: var(--it-muted);
  font-weight: 600;
}

#galleriesphoto img,
.photos img,
#tab-images img {
  border: 0;
  border-radius: var(--it-radius);
}

/* ---------- 14. FORMULÁŘE (kontaktní formulář) ---------- */
main .panel-body {
  background-color: var(--it-sand);
  border-radius: var(--it-radius);
}

.form-control {
  border: 1px solid #cfcac4;
  border-radius: var(--it-radius);
  box-shadow: none;
  font-size: 1rem;
  height: auto;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--it-blue);
  box-shadow: 0 0 0 3px rgba(52, 89, 150, 0.15);
}

form label,
form .required label,
.control-label {
  font-weight: 600;
  color: var(--it-text);
}

form .asterisk {
  color: var(--it-brick);
}

/* ---------- 15. VLASTNÍ PATIČKA (#box-custom-footer) ---------- */
#box-custom-footer {
  background-color: var(--it-sand);
  border-top: 1px solid var(--it-line);
  margin-top: 2rem;
  padding: 2rem 0 0;
}

#box-custom-footer section.section-container {
  margin: 0 auto 1.5rem;
  padding: 0 15px;
}

#box-custom-footer section.section-container.section-bg-light {
  background-color: transparent;
  border-radius: 0;
}

#box-custom-footer h4 {
  color: var(--it-blue);
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

#box-custom-footer p {
  margin: 0 0 0.35rem;
}

#box-custom-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#box-custom-footer li {
  margin: 0 0 0.35rem;
}

#box-custom-footer .fa {
  color: var(--it-blue);
  width: 1.4em;
  text-align: center;
}

#logo-footer {
  max-height: 96px;
  width: auto;
}

@media (max-width: 767px) {
  #logo-footer {
    max-height: 64px;
    margin-bottom: 1rem;
  }
}

/* řádek s © – selektor má stejnou specificitu jako fitnessblog (#id section.class), vyhrává pořadím */
#box-custom-footer section.section-container.it-footer-bar {
  border-top: 1px solid var(--it-line);
  margin: 0 auto;
  padding: 1rem 15px;
  font-size: 0.85rem;
  color: var(--it-muted);
}

#box-custom-footer section.it-footer-bar a {
  color: var(--it-blue);
}

/* ---------- 16. COOKIES A DROBNOSTI ---------- */
.cookies-settings-btn {
  font-family: var(--it-font);
}

.modal-cookies .btn-primary {
  background-color: var(--it-blue);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;    /* přístupnost: vypnout všechny přechody */
    animation: none !important;
  }
}