/* ==========================================================================
   The Dog Society — sekce workshopů (#dogsociety) + položka menu
   Samostatný soubor: NEZASAHUJE do spa-dog.webflow.css ani webflow.css.
   Při re-exportu z Webflow stačí znovu vložit 2 bloky do index.html.
   ========================================================================== */

/* --- Položka menu ---------------------------------------------------------- */

.ds-nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.ds-nav-badge {
  background-color: #f10023;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 9px 0;
  flex: none;
}

/* Hlavička byla doladěná na šest položek: .header-navigation měla margin-left 8vw,
   což je pevné odsazení nezávislé na šířce menu. S osmou položkou seznam přerostl
   volné místo, lezl na logo a texty se lámaly do dvou řádků.
   Řešení: menu se zarovná doprava a drží si vlevo místo na logo; když se ani tak
   nevejde, zalomí se po celých položkách místo přetečení přes logo.
   Platí jen nad 991 px — pod tím je hamburger a tahle pravidla se neuplatní. */
@media screen and (min-width: 992px) {
  .header-navigation {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 6px;
    margin-left: 0;
    padding-left: 130px;   /* místo pro logo */
  }

  .nav-item-wrapper {
    white-space: nowrap;
    margin-right: 12px;
  }

  .header-navigation .nav-item-wrapper:last-child {
    margin-right: 0;
  }

  .nav-link.odkazshop {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-link.odkazshop.enverze {
    margin-left: 8px;
  }
}

/* Rozbalené mobilní menu:

   1) Pozadí bylo rgba(255,255,255,.95), takže přes ně slabě prosvítal nadpis.

   2) Nadpis hero sekce se přes menu vykresloval celý. Web nastavuje
      .heading{z-index:999999999} v @media (max-width:991px), ale odpovídající
      .nav{z-index:2147483647} jen v @media (max-width:479px). Mezi 480 a 991 px
      tak navigaci žádný z-index nezvedal (zůstalo základních 999) a nadpis ji
      překryl. Rozšiřujeme původní hodnotu webu na celý mobilní rozsah. */
@media screen and (max-width: 991px) {
  .nav-menu {
    background-color: #fff;
  }

  .nav {
    z-index: 2147483647;
  }
}

/* --- Sekce ----------------------------------------------------------------- */

.ds-section {
  background-color: #fff;
  padding: 100px 30px;
}

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

.ds-head {
  text-align: center;
  margin-bottom: 50px;
}

.ds-overline {
  color: #f10023;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  margin: 10px 0;
}

.ds-title {
  color: #333;
  font-family: Montserrat, sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
  margin: 20px 0 10px;
}

.ds-lead {
  max-width: 640px;
  margin: 0 auto;
  color: #333;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.ds-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Kalendář -------------------------------------------------------------- */

.ds-cal {
  background-color: #fff;
  border-radius: 60px 0;
  box-shadow: 0 20px 52px 20px rgba(0, 0, 0, .08);
  padding: 36px 32px;
  position: sticky;
  top: 90px;
}

.ds-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.ds-cal-month {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #333;
}

.ds-cal-nav {
  display: flex;
  gap: 8px;
}

.ds-cal-arrow {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background-color: #f1f1f1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}

.ds-cal-arrow:hover {
  background-color: #e4e4e4;
}

.ds-cal-arrow img {
  width: 16px;
  filter: grayscale(1);
}

.ds-cal-prev {
  border-radius: 10px 0;
}

.ds-cal-next {
  border-radius: 0 0 10px;
}

.ds-cal-dow,
.ds-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.ds-cal-dow {
  margin-bottom: 6px;
}

.ds-cal-dow div {
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
}

.ds-day {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  border-radius: 12px 0;
  padding: 0;
  border: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

.ds-day--empty {
  height: 38px;
}

.ds-day--today {
  box-shadow: inset 0 0 0 1px #f10023;
  color: #f10023;
  font-weight: 700;
}

/* stav akce má přednost před dneškem */
.ds-day--event {
  background-color: #f10023;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(241, 0, 35, .35);
  cursor: pointer;
}

.ds-day--past {
  background-color: #ececec;
  color: #888;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}

.ds-legend {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.ds-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-legend-row + .ds-legend-row {
  margin-top: 10px;
}

.ds-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px 0;
  flex: none;
  background-color: #f10023;
}

.ds-legend-swatch--past {
  background-color: #ececec;
}

.ds-legend-row span,
.ds-cal-note {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  line-height: 1.6;
}

.ds-cal-note {
  margin: 14px 0 0;
}

.ds-section a {
  color: #f10023;
  text-decoration: none;
}

.ds-section a:hover {
  color: #b2061f;
}

/* --- Karty akcí ------------------------------------------------------------ */

.ds-events {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ds-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ds-ev {
  background-color: #f1f1f1;
  border: 1px solid #eee;
  border-radius: 30px 0;
  overflow: hidden;
}

.ds-ev-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
  text-align: left;
  border: 0;
  background: none;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.ds-badge {
  width: 64px;
  height: 64px;
  flex: none;
  background-color: #f10023;
  border-radius: 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.ds-badge-day {
  font-family: Montserrat, sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.ds-badge-mon {
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.ds-ev-titles {
  flex: 1;
  min-width: 0;
}

.ds-ev-title {
  margin: 0 0 4px;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.ds-ev-meta {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.ds-chev {
  flex: none;
  transition: transform .35s cubic-bezier(.19, 1, .22, 1);
}

.ds-ev.is-open .ds-chev,
.ds-past.is-open .ds-chev {
  transform: rotate(180deg);
}

/* rozbalování: grid-template-rows 0fr <-> 1fr */
.ds-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.19, 1, .22, 1);
}

.ds-ev.is-open > .ds-collapse,
.ds-past.is-open > .ds-collapse {
  grid-template-rows: 1fr;
}

.ds-collapse-inner {
  min-height: 0;
  overflow: hidden;
}

.ds-ev-body {
  padding: 4px 28px 28px 112px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 8px 36px;
}

.ds-label {
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
}

.ds-program {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-program-item {
  display: flex;
  gap: 10px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

.ds-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f10023;
  flex: none;
  margin-top: 7px;
}

.ds-note {
  margin: 14px 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  line-height: 1.6;
}

.ds-lector {
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.ds-role {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 14px;
}

.ds-fact {
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.6;
}

.ds-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Registrační tlačítko — vzor tlačítka z webu, šipka vyjede až na hover */
.ds-btn {
  display: flex;
  align-items: center;
  background-color: #f10023;
  border-radius: 30px;
  min-height: 50px;
  padding: 6px 20px 5px;
  position: relative;
  transition: padding .4s cubic-bezier(.19, 1, .22, 1);
}

.ds-btn:hover {
  padding-right: 45px;
}

.ds-btn-text {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.ds-btn-arrow {
  width: 25px;
  position: absolute;
  top: 50%;
  right: 5px;
  opacity: 0;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity .25s, transform .4s cubic-bezier(.19, 1, .22, 1);
}

.ds-btn:hover .ds-btn-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.ds-pdf-link {
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

/* --- Prázdný stav (žádná budoucí akce) ------------------------------------- */

.ds-empty {
  background-color: #f1f1f1;
  border: 1px dashed #ddd;
  border-radius: 30px 0;
  padding: 32px 28px;
  text-align: center;
}

.ds-empty-title {
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.ds-empty-text {
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  line-height: 1.6;
}

/* --- Archiv uplynulých workshopů ------------------------------------------- */

.ds-past-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 6px;
  border: 0;
  border-top: 1px solid #eee;
  background: none;
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #999;
  transition: color .2s;
  -webkit-appearance: none;
  appearance: none;
}

.ds-past-toggle:hover {
  color: #f10023;
}

.ds-past-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
}

.ds-past-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 20px 0;
}

.ds-past-badge {
  width: 48px;
  height: 48px;
  flex: none;
  background-color: #ececec;
  border-radius: 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #888;
}

.ds-past-badge .ds-badge-day {
  font-size: 18px;
}

.ds-past-badge .ds-badge-mon {
  font-size: 9px;
}

.ds-past-title {
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #555;
  line-height: 1.3;
}

.ds-past-meta {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #999;
}

.ds-past-pdf {
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}

.ds-section .ds-past-pdf {
  color: #999;
}

.ds-section .ds-past-pdf:hover {
  color: #f10023;
}

.ds-tag {
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  background-color: #ececec;
  border-radius: 10px 0;
  padding: 6px 10px;
  flex: none;
}

.ds-past-empty {
  text-align: center;
  padding: 18px;
  border: 1px dashed #ddd;
  border-radius: 20px 0;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #999;
}

/* --- Responzivita (breakpointy webu: 991 / 767 / 479) ---------------------- */

@media screen and (max-width: 991px) {
  .ds-grid {
    grid-template-columns: 1fr;
  }

  .ds-cal {
    position: static;
    top: auto;
  }

  .ds-ev-body {
    padding-left: 28px;
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .ds-section {
    padding: 70px 20px;
  }

  .ds-title {
    font-size: 34px;
  }

  .ds-ev-meta,
  .ds-past-meta {
    line-height: 1.5;
  }
}

@media screen and (max-width: 479px) {
  /* web pod 479px přidává strong postranní margin — v této sekci ho nechceme */
  .ds-section strong {
    margin-left: 0;
    margin-right: 0;
  }

  .ds-title {
    font-size: 28px;
  }

  .ds-cal {
    padding: 28px 20px;
    border-radius: 40px 0;
  }

  .ds-ev-head {
    padding: 20px;
    gap: 14px;
  }

  .ds-badge {
    width: 48px;
    height: 48px;
  }

  .ds-badge .ds-badge-day {
    font-size: 20px;
  }

  .ds-badge .ds-badge-mon {
    font-size: 9px;
  }

  .ds-ev-body {
    padding: 4px 20px 24px;
  }

  .ds-past-item {
    flex-wrap: wrap;
    gap: 12px;
  }
}
