/* ============================================================
   TÚRA – node--tura.html.twig styles
   Barrio subtheme – kakac.sk
   ============================================================ */

/* ---- SKRYŤ DUPLIKÁTNY PAGE TITLE -------------------------- */
body.page-node-type-tura .page-header,
body.page-node-type-tura h1.page-title,
body.page-node-type-tura .block-page-title-block,
body.page-node-type-tura .block-page-title-block h1,
body.page-node-type-tura #page-title {
  display: none !important;
}

body.page-node-type-tura main {
  padding-top: 0 !important;
}

/* ---- ŠÍRKA – div#main na 100% ----------------------------- */
/* KRITICKÉ: nikdy neodstraňovať! */
#navbar-main,
div#main {
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  --bs-gutter-x: 0;
}

.row {
  --bs-gutter-x: 0;
}



/* ============================================================
   ŠÍRKA – Bootstrap .container-xxl max-width: 1320px override
   Nutné aj v @media (min-width: 1400px) s !important
   ============================================================ */
body.page-node-type-tura #main,
body.page-node-type-tura .container,
body.page-node-type-tura .container-sm,
body.page-node-type-tura .container-md,
body.page-node-type-tura .container-lg,
body.page-node-type-tura .container-xl,
body.page-node-type-tura .container-xxl {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 1400px) {
  body.page-node-type-tura .container,
  body.page-node-type-tura .container-sm,
  body.page-node-type-tura .container-md,
  body.page-node-type-tura .container-lg,
  body.page-node-type-tura .container-xl,
  body.page-node-type-tura .container-xxl {
    max-width: 100% !important;
  }
}

body.page-node-type-tura .main-content {
  margin-left: 0 !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-node-type-tura #block-kakac-breadcrumbs {
  padding: 0 16px;
}

/* ---- HERO – background-image namiesto <img>  --------------- */
.tura-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #2a3420;
}

.tura-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.tura-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
}

.tura-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.tura-title {
  font-family: 'Lora', serif !important;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  letter-spacing: -0.3px !important;
  line-height: 1.25 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
}

.tura-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tura-hero__stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tura-stars {
  color: #e8c060;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}

.tura-hero__votes {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.tura-date {
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

/* ---- STATS BAR --------------------------------------------- */
.tura-stats {
  display: flex !important;
  background: #fff;
  border-bottom: 0.5px solid #e8e4dc;
  margin: 0;
  padding: 0;
  width: 100%;
}

.tura-stat {
  flex: 1 1 0 !important;
  padding: 14px 0;
  text-align: center;
  border-right: 0.5px solid #e8e4dc;
  margin: 0;
}

.tura-stat:last-child {
  border-right: none;
}

.tura-stat__val {
  display: block;
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 500;
  color: #1a1a18;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.tura-stat__lbl {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: #a09c96;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---- DIFFICULTY BAR --------------------------------------- */
.diff-bar {
  display: block;
  width: 52px;
  height: 3px;
  background: #e8e4dc;
  border-radius: 2px;
  overflow: hidden;
  margin: 6px auto 0;
}

.diff-bar--inline {
  display: inline-block;
  width: 36px;
  height: 3px;
  margin: 0 0 2px 6px;
  vertical-align: middle;
}

.diff-bar__fill {
  display: block;
  height: 100%;
  background: #4a4844;
  border-radius: 2px;
}

/* ---- LAYOUT ----------------------------------------------- */
.tura-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 260px !important;
  align-items: start;
  background: #faf9f6;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.tura-main {
  padding: 28px 32px;
  border-right: 0.5px solid #e8e4dc;
  min-width: 0;
  background: #faf9f6;
  box-sizing: border-box;
  width: 100%;
}

.tura-side {
  padding: 24px 22px;
  background: #f4f3f0;
  min-height: 100%;
  box-sizing: border-box;
  width: 100%;
}

/* ---- SECTIONS --------------------------------------------- */
.tura-section {
  margin-bottom: 32px;
}

.tura-section:last-child {
  margin-bottom: 0;
}

.tura-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tura-section__head .tura-lbl {
  margin-bottom: 0;
}

.tura-lbl {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a09c96;
  margin-bottom: 12px;
}

.tura-lbl__count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #a09c96;
  letter-spacing: 0;
  text-transform: none;
}

/* ---- TRASA ------------------------------------------------- */
.tura-route {
  font-family: 'Lora', serif;
  font-size: 14.5px;
  color: #3a3a38;
  line-height: 1.9;
  padding: 14px 18px;
  background: #f4f3f0;
  border-radius: 6px;
  border-left: 2px solid #c8c4bc;
}

.tura-route strong,
.tura-route b,
.tura-route a {
  color: #1a1a18;
  font-weight: 500;
}

/* ---- MAPA -------------------------------------------------- */
#tura-map {
  height: 240px;
  border-radius: 7px;
  overflow: hidden;
  border: 0.5px solid #e0dcd4;
  margin-bottom: 8px;
  background: #e8e4dc;
}

.tura-map-note {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #b0aca4;
  margin: 0;
}

/* ---- GALÉRIA – Juicebox ------------------------------------ */
.tura-galeria .py-3 {
  padding: 0 !important;
  margin: 0 !important;
}

.tura-galeria .juicebox-parent {
  display: block;
  /* Juicebox spravuje výšku sám cez galleryHeight parameter */
  border-radius: 8px;
  overflow: hidden;
  border: 0.5px solid #e8e4dc;
}

.tura-galeria .field--name-field-popis-tury {
  margin-top: 20px;
  font-family: 'Lora', serif;
  font-size: 15px;
  color: #3a3a38;
  line-height: 1.85;
}

/* ---- VIDEO ------------------------------------------------- */
.tura-video-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 0.5px solid #e8e4dc;
}

.tura-video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.tura-video__note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 13px;
  color: #6b6860;
  margin-top: 8px;
}

.tura-video__note a {
  color: #1a1a18;
  text-decoration: none;
  border-bottom: 0.5px solid #c8c4bc;
}

.tura-video__note a:hover {
  border-bottom-color: #1a1a18;
}

/* ---- SIDEBAR – METADATA ------------------------------------ */
.tura-side .tura-lbl {
  margin-top: 0;
  margin-bottom: 10px;
}

.tura-meta {
  margin: 0;
  padding: 0;
}

.tura-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 0.5px solid #e8e4dc;
  gap: 8px;
}

.tura-meta__row:last-child {
  border-bottom: none;
}

.tura-meta__row dt {
  font-family: 'Inter', sans-serif;
  color: #a09c96;
  font-size: 12px;
  font-weight: 400;
  flex-shrink: 0;
}

.tura-meta__row dd {
  font-family: 'Inter', sans-serif;
  color: #1a1a18;
  font-weight: 500;
  font-size: 13px;
  text-align: right;
  margin: 0;
}

/* ---- SIDEBAR – SEKCIE ------------------------------------- */
.tura-side__section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 0.5px solid #e8e4dc;
}

/* ---- FIVESTAR --------------------------------------------- */
.tura-hodnotenie .row {
  margin: 0;
}

.tura-hodnotenie [class*="col-"] {
  padding: 0;
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.tura-hodnotenie .social,
.tura-hodnotenie .addtoany_list,
.tura-hodnotenie .col-12.social,
.tura-hodnotenie .a2a_kit {
  display: none !important;
}

.tura-hodnotenie {
  text-align: center;
}

.tura-hodnotenie .fivestar-widget,
.tura-hodnotenie .fivestar-form-item {
  text-align: center;
}

.tura-hodnotenie .fivestar-summary,
.tura-hodnotenie .fivestar-average-stars {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #a09c96;
  text-align: center;
  margin-top: 4px;
}

/* ---- ÚČASTNÍCI -------------------------------------------- */
.tura-ucastnici {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tura-ucastnik {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a1a18;
  padding: 3px 0;
}

.tura-ucastnik:hover .tura-ucastnik__name {
  text-decoration: underline;
}

.tura-ucastnik img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e0dcd4;
  flex-shrink: 0;
}

.tura-ucastnik__initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8e4dc;
  border: 1.5px solid #d8d4cc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 500;
  color: #6b6860;
  flex-shrink: 0;
}

.tura-ucastnik__name {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: #1a1a18;
}

.tura-ucastnik__stopy {
  font-size: 12px;
  margin-left: 3px;
  vertical-align: middle;
  opacity: 0.7;
}

/* ---- PODOBNÉ TÚRY ----------------------------------------- */
.tura-podobne {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: podobne;
}

.tura-podobne__item {
  counter-increment: podobne;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 0.5px solid #e8e4dc;
}

.tura-podobne__item:last-child {
  border-bottom: none;
}

.tura-podobne__item::before {
  content: counter(podobne) ".";
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #a09c96;
  flex-shrink: 0;
  min-width: 16px;
}

.tura-podobne__item a {
  font-family: 'Lora', serif;
  font-size: 13px;
  color: #1a1a18;
  text-decoration: none;
  flex: 1;
  line-height: 1.3;
}

.tura-podobne__item a:hover {
  text-decoration: underline;
}

.tura-podobne__datum {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #a09c96;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- DISQUS ----------------------------------------------- */
.tura-disqus {
  padding: 32px;
  border-top: 0.5px solid #e8e4dc;
  background: #faf9f6;
}

/* ============================================================
   TABLET/MOBILE (≤768px) – single column, sidebar hore
   Nad 768px ostáva dvojstĺpcový grid
   ============================================================ */
@media (max-width: 768px) {
  .tura-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .tura-main {
    border-right: none;
    border-bottom: 0.5px solid #e8e4dc;
    order: 1;
    width: 100% !important;
    box-sizing: border-box;
  }
  .tura-side {
    order: 0;
    width: 100% !important;
    box-sizing: border-box;
  }
}

/* ============================================================
   MOBILE (≤768px) – úpravy pre úzke obrazovky
   - Stats bar skrytý
   - Trasa a účastníci zobrazené (na rozdiel od predchádzajúcej verzie)
   - Väčší font v sidebar
   - Plná šírka pre galería/youtube
   ============================================================ */
@media (max-width: 768px) {
  .tura-hero {
    height: 260px;
  }
  .tura-title {
    font-size: 20px !important;
  }
  .tura-hero__content {
    padding: 16px 20px;
  }

  /* Stats bar – skrytý, info sú v sidebari */
  .tura-stats {
    display: none !important;
  }

  .tura-side {
    padding: 16px;
    font-size: 14px;
  }

  .tura-main {
    padding: 16px;
    border-bottom: none;
  }

  /* Väčší font pre sidebar metadata */
  .tura-meta__row dt,
  .tura-meta__row dd {
    font-size: 14px;
  }

  .tura-lbl {
    font-size: 10px;
  }

  /* Trasa – väčší font na mobile */
  .tura-route {
    font-size: 14px;
  }

  /* Galéria – Juicebox spravuje výšku sám */

  /* Mapa */
  #tura-map {
    height: 200px;
  }

  /* Sidebar sekcie – menší gap */
  .tura-side__section {
    margin-top: 14px;
    padding-top: 14px;
  }
}

@media (max-width: 480px) {
  .tura-hero {
    height: 220px;
  }
}

/* ---- TRASA MAP LEGENDA ------------------------------------ */
.tura-trasa-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 0 4px;
}

.tura-trasa-legenda__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6b6860;
}

.tura-trasa-legenda__dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
