/* cs-chalupy.cz new property detail (template detail-new): changes to the
   site's own styles. Goes to the live site as is. Every rule needs
   html.cc-dt-on, which the new template (start.js in the mockup) sets.
   One white background from the title down to the photo gallery: the
   coloured section bands of the old detail are gone; the sections sit in
   the left column of .cc-dt-layout, so their .in loses its own width. */
html.cc-dt-on #content,
html.cc-dt-on .cc-dt #cenik,
html.cc-dt-on .cc-dt #obsazenost,
html.cc-dt-on .cc-dt #popis,
html.cc-dt-on .cc-dt #fotogalerie,
html.cc-dt-on .cc-dt .thumbsC {
  background: #fff;
}
html.cc-dt-on .cc-dt .cc-dt-main > section > .in,
html.cc-dt-on .cc-dt .cc-dt-main > .in {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
html.cc-dt-on .cc-dt .cc-dt-main > section > .content {
  padding-left: 0;
  padding-right: 0;
}
/* Sections from the price list down: a thin line on top instead of the
   site's shadow (the shadow also drew faint vertical lines at the sides). */
html.cc-dt-on .cc-dt .cc-dt-main > section:not(#thumbs) {
  box-shadow: none;
  border-top: 1px solid #e1e1e1;
}
/* Equipment table: every other row very light grey (the old detail had
   white rows on the green band). */
html.cc-dt-on .cc-dt #popis table.popis-tabulka tr:nth-child(even) td {
  background: #f6f6f6;
}
/* Units of the property: the same line on top as the sections, unit
   names centred above their rooms. */
html.cc-dt-on .cc-dt #popis h2#cleneni {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e1e1e1;
}
html.cc-dt-on .cc-dt #popis ul.cleneni > li > h3 {
  text-align: center;
}

/* Galleries: the big first photo and the thumbnails under the description
   (.thumbsC, #thumbs) with 3px corners, the photo gallery (#fotogalerie)
   with corners like a form field. The link is a fixed frame that clips;
   on hover only the photo inside zooms. The site sizes the images (fixed
   heights, below 791px widths in % of the content); the frame takes that
   size over so the % stays relative to the content. The gallery section
   ends right under the photos, so the sticky booking box stops there.
   Links: on the web the gallery triggers a[data-cc-gallery] (photo
   gallery component), older markup a.thickbox; both match. The main photo
   (.cc-dt-photo a.foto) and a[data-cc-gallery-all] are outside these. */
html.cc-dt-on .cc-dt .thumbsC a.thickbox:has(> img.fotoO),
html.cc-dt-on .cc-dt .thumbsC a[data-cc-gallery]:has(> img.fotoO),
html.cc-dt-on .cc-dt #thumbs a.thickbox,
html.cc-dt-on .cc-dt #thumbs a[data-cc-gallery],
html.cc-dt-on .cc-dt #fotogalerie a.thickbox,
html.cc-dt-on .cc-dt #fotogalerie a[data-cc-gallery] {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  isolation: isolate;
  border-radius: 3px;
}
html.cc-dt-on .cc-dt #fotogalerie a.thickbox,
html.cc-dt-on .cc-dt #fotogalerie a[data-cc-gallery] {
  margin: 5px;
  border-radius: 8px;
}
html.cc-dt-on .cc-dt #thumbs a.thickbox,
html.cc-dt-on .cc-dt #thumbs a[data-cc-gallery] {
  margin: 3px;
}
html.cc-dt-on .cc-dt .thumbsC a.thickbox:has(> img.fotoO),
html.cc-dt-on .cc-dt .thumbsC a[data-cc-gallery]:has(> img.fotoO) {
  float: left;
  margin: 23px 3px 0 0;
}
html.cc-dt-on .cc-dt .thumbsC a.thickbox img.fotoO,
html.cc-dt-on .cc-dt .thumbsC a[data-cc-gallery] img.fotoO,
html.cc-dt-on .cc-dt #thumbs a.thickbox img,
html.cc-dt-on .cc-dt #thumbs a[data-cc-gallery] img,
html.cc-dt-on .cc-dt #fotogalerie a.thickbox img,
html.cc-dt-on .cc-dt #fotogalerie a[data-cc-gallery] img {
  display: block;
  float: none;
  margin: 0;
  object-fit: cover;
  transition: transform 0.4s ease;
}
html.cc-dt-on .cc-dt .thumbsC a.thickbox:hover img.fotoO,
html.cc-dt-on .cc-dt .thumbsC a[data-cc-gallery]:hover img.fotoO,
html.cc-dt-on .cc-dt .thumbsC a.thickbox:focus-visible img.fotoO,
html.cc-dt-on .cc-dt .thumbsC a[data-cc-gallery]:focus-visible img.fotoO,
html.cc-dt-on .cc-dt #thumbs a.thickbox:hover img,
html.cc-dt-on .cc-dt #thumbs a[data-cc-gallery]:hover img,
html.cc-dt-on .cc-dt #thumbs a.thickbox:focus-visible img,
html.cc-dt-on .cc-dt #thumbs a[data-cc-gallery]:focus-visible img,
html.cc-dt-on .cc-dt #fotogalerie a.thickbox:hover img,
html.cc-dt-on .cc-dt #fotogalerie a[data-cc-gallery]:hover img,
html.cc-dt-on .cc-dt #fotogalerie a.thickbox:focus-visible img,
html.cc-dt-on .cc-dt #fotogalerie a[data-cc-gallery]:focus-visible img {
  transform: scale(1.06);
}
html.cc-dt-on .cc-dt #fotogalerie {
  padding-bottom: 0;
}
html.cc-dt-on .cc-dt #fotogalerie .content {
  margin-bottom: 0;
}
@media (max-width: 790px) {
  html.cc-dt-on .cc-dt .thumbsC a.thickbox:has(> img.fotoO),
  html.cc-dt-on .cc-dt .thumbsC a[data-cc-gallery]:has(> img.fotoO) {
    display: block;
    float: none;
    margin: 10px 0;
  }
  html.cc-dt-on .cc-dt .thumbsC a.thickbox img.fotoO,
  html.cc-dt-on .cc-dt .thumbsC a[data-cc-gallery] img.fotoO {
    width: 100%;
    height: auto;
  }
  /* The site sets the photo width in % at every breakpoint with the selector
     .chalupa-detail section#fotogalerie div.content a[data-cc-gallery] img
     (a stronger one than ours). The frame is sized now, so the photo must
     fill it: same selector shape plus our classes, no !important. */
  html.cc-dt-on .chalupa-detail .cc-dt section#fotogalerie div.content a.thickbox img,
  html.cc-dt-on .chalupa-detail .cc-dt section#fotogalerie div.content a[data-cc-gallery] img,
  html.cc-dt-on .chalupa-detail .cc-dt section#thumbs a.thickbox img,
  html.cc-dt-on .chalupa-detail .cc-dt section#thumbs a[data-cc-gallery] img {
    width: 100%;
  }
  html.cc-dt-on .chalupa-detail .cc-dt section#fotogalerie div.content a.thickbox img,
  html.cc-dt-on .chalupa-detail .cc-dt section#fotogalerie div.content a[data-cc-gallery] img {
    height: auto;
  }
  html.cc-dt-on .cc-dt #thumbs a.thickbox,
  html.cc-dt-on .cc-dt #thumbs a[data-cc-gallery] {
    width: calc(33.33333% - 7px);
  }
  html.cc-dt-on .cc-dt #thumbs a.thickbox img,
  html.cc-dt-on .cc-dt #thumbs a[data-cc-gallery] img {
    width: 100%;
    height: 75px;
  }
  html.cc-dt-on .cc-dt #fotogalerie a.thickbox,
  html.cc-dt-on .cc-dt #fotogalerie a[data-cc-gallery] {
    width: calc(50% - 10px);
  }
}
@media (min-width: 480px) and (max-width: 640px) {
  html.cc-dt-on .cc-dt #thumbs a.thickbox,
  html.cc-dt-on .cc-dt #thumbs a[data-cc-gallery] {
    width: calc(25% - 7px);
  }
}
@media (min-width: 640px) and (max-width: 790px) {
  html.cc-dt-on .cc-dt #thumbs a.thickbox,
  html.cc-dt-on .cc-dt #thumbs a[data-cc-gallery] {
    width: calc(20% - 7px);
  }
}
@media (min-width: 480px) and (max-width: 790px) {
  html.cc-dt-on .cc-dt #fotogalerie a.thickbox,
  html.cc-dt-on .cc-dt #fotogalerie a[data-cc-gallery] {
    width: calc(33.3333% - 25px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html.cc-dt-on .cc-dt .thumbsC a.thickbox img.fotoO,
  html.cc-dt-on .cc-dt .thumbsC a[data-cc-gallery] img.fotoO,
  html.cc-dt-on .cc-dt #thumbs a.thickbox img,
  html.cc-dt-on .cc-dt #thumbs a[data-cc-gallery] img,
  html.cc-dt-on .cc-dt #fotogalerie a.thickbox img,
  html.cc-dt-on .cc-dt #fotogalerie a[data-cc-gallery] img {
    transition: none;
  }
}

/* Below 992px the box stands in the flow above the price list and the
   booking bar (fixed) shows while it is out of view: the page needs room
   for the bar, the site's fixed #fbFloat would sit under it, the stats
   toast (div.notifikace) moves above it, and the mobile search overlay
   (z-index 40) covers it.
   The booking component has no page overrides (layout is here). */
@media (max-width: 991px) {
  html.cc-dt-on #fbFloat {
    display: none;
  }
  html.cc-dt-on.cc-bk-bar-on body {
    padding-bottom: var(--cc-bk-bar-h, 0px);
  }
  html.cc-dt-on.cc-bk-bar-on div.notifikace {
    margin-bottom: var(--cc-bk-bar-h, 0px);
  }
  html.cc-dt-on body.search-open-true .cc-cmp-bk-bar.is-visible {
    visibility: hidden;
  }
  html.cc-dt-on.cc-bk-bar-on body.search-open-true {
    padding-bottom: 0;
  }
}
