/* Stránky stanů (detail + archiv) — sdílí design tokeny z roofnest.css */

.rn-tent-page {
  background: var(--rn-bg);
  color: var(--rn-text);
  font-family: var(--rn-font);
  padding: 34px 26px 60px;
}

.rn-tent-page *,
.rn-tent-page *:before,
.rn-tent-page *:after {
  box-sizing: border-box;
}

.rn-tent-page-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.rn-tent-page a.rn-button,
.rn-tent-page a.rn-ghost-button {
  text-decoration: none;
}

/* Breadcrumb */
.rn-tent-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--rn-muted);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.rn-tent-breadcrumb a {
  color: var(--rn-gold-light);
  text-decoration: none;
}

.rn-tent-breadcrumb a:hover {
  color: var(--rn-hover);
}

.rn-tent-breadcrumb strong {
  color: var(--rn-text);
}

/* Hlavička */
.rn-tent-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 26px;
}

.rn-tent-head h1 {
  margin: 0;
  color: var(--rn-text);
  font-family: var(--rn-font);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.08;
  text-transform: uppercase;
}

.rn-tent-head-copy .rn-eyebrow {
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: .16em;
}

.rn-tent-lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(247, 241, 232, .58);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
}

.rn-tent-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.rn-tent-badges span {
  border: 1px solid var(--rn-line-strong);
  border-radius: var(--rn-radius);
  padding: 9px 13px;
  background: rgba(5, 5, 5, .7);
  color: var(--rn-gold-light);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.rn-tent-head-cta {
  flex: 0 0 auto;
  display: grid;
  gap: 14px;
  justify-items: end;
  text-align: right;
}

.rn-tent-head-cta .rn-price {
  font-size: 34px;
}

/* Galerie
   Selektory přes `button.` schválně: reset.css motivu Hello Elementor
   stylizuje [type=button] (růžový rámeček/hover, padding) se stejnou
   specificitou jako samotná třída — tady ho musíme přebít. */
.rn-tent-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 8px;
  margin-bottom: 30px;
}

.rn-tent-page button.rn-tent-photo {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--rn-radius);
  background-color: #111;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  white-space: normal;
  transition: none;
}

.rn-tent-page button.rn-tent-photo:hover,
.rn-tent-page button.rn-tent-photo:focus {
  background-color: #111;
  border: 0;
  color: inherit;
}

.rn-tent-page .rn-tent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.rn-tent-page button.rn-tent-photo:hover img {
  transform: scale(1.045);
}

.rn-tent-photo.is-main {
  grid-column: span 2;
  grid-row: span 2;
}

/* Obsah */
.rn-tent-article {
  max-width: 840px;
  margin-bottom: 40px;
  color: rgba(247, 241, 232, .62);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
}

.rn-tent-article p {
  margin: 0 0 18px;
}

.rn-tent-article h2,
.rn-tent-article h3 {
  margin: 30px 0 14px;
  color: var(--rn-text);
  font-family: var(--rn-font);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.rn-tent-article ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.rn-tent-article ul li:before {
  content: "✓";
  color: var(--rn-gold-light);
  margin-right: 10px;
}

.rn-tent-article strong {
  color: var(--rn-text);
}

/* Hlavní výhody — tabulka s jemnými linkami (+ místo fajfky).
   Hairlines vznikají 1px mezerou mezi buňkami nad podkladem v barvě linky;
   poslední buňka se roztáhne přes zbytek řádku, aby v mřížce nezůstala díra. */
.rn-tent-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
  background: rgba(222, 183, 118, .16);
  border-top: 1px solid rgba(222, 183, 118, .16);
  border-bottom: 1px solid rgba(222, 183, 118, .16);
}

.rn-tent-benefits-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 26px;
  background: var(--rn-bg);
  color: rgba(247, 241, 232, .82);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.rn-tent-benefits-grid li:last-child:nth-child(3n - 1) {
  grid-column: span 2;
}

.rn-tent-benefits-grid li:last-child:nth-child(3n + 1):not(:first-child) {
  grid-column: span 3;
}

.rn-benefit-plus {
  flex: 0 0 auto;
  color: var(--rn-gold-light);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

/* „Sedne stan na moje auto?" — interaktivní ověření nosnosti */
.rn-tent-fit {
  border: 1px solid var(--rn-line);
  border-radius: var(--rn-radius);
  background: var(--rn-panel);
  padding: 30px 28px;
  margin-bottom: 44px;
}

.rn-tent-fit h2 {
  margin: 0 0 12px;
  color: var(--rn-text);
  font-family: var(--rn-font);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

/* Tlačítka uvnitř stránek stanů jako <button> — reset.css motivu Hello
   Elementor je přes [type=submit]/[type=button] barví do růžova se stejnou
   specificitou jako samotná třída, proto vyšší specificita s kompletním
   přepisem všech vlastností, které reset nastavuje. */
.rn-tent-page button.rn-button,
.rn-tent-page button.rn-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--rn-line-strong);
  border-radius: var(--rn-radius);
  background-color: #050505;
  background-image: none;
  color: var(--rn-text);
  padding: 0 20px;
  font-family: var(--rn-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: normal;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.rn-tent-page button.rn-button:hover,
.rn-tent-page button.rn-button:focus,
.rn-tent-page button.rn-ghost-button:hover,
.rn-tent-page button.rn-ghost-button:focus {
  border-color: var(--rn-hover);
  background-color: #080806;
  color: var(--rn-hover);
}

.rn-tent-fit-intro {
  max-width: 720px;
  margin: 0 0 20px;
  color: rgba(247, 241, 232, .6);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.rn-tent-fit-intro strong {
  color: var(--rn-gold-light);
}

.rn-tent-fit-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.rn-tent-fit-field {
  display: grid;
  gap: 8px;
  color: var(--rn-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.rn-tent-fit-input {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 240px;
  min-height: 66px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--rn-radius);
  background: #060605;
}

.rn-tent-fit-form .rn-button,
.rn-tent-fit-form button.rn-button {
  width: 240px;
}

.rn-tent-fit-input:focus-within {
  border-color: var(--rn-hover);
}

.rn-tent-fit .rn-tent-fit-input input {
  width: 110px;
  border: 0;
  background: transparent;
  color: var(--rn-text);
  padding: 0;
  font-family: var(--rn-font);
  font-size: 23px;
  font-weight: 800;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.rn-tent-fit-input input::-webkit-outer-spin-button,
.rn-tent-fit-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rn-tent-fit-input b {
  color: var(--rn-muted);
  font-size: 17px;
  font-weight: 700;
}

/* Vyhodnocení v neutrálním vzhledu ostatních panelů webu; barvu nese jen
   text zprávy, nadpis zůstává bílý. Třídy is-yes/is-no/is-warn nechávám
   v markup pro případné pozdější rozlišení. */
.rn-tent-fit-result {
  display: block;
  margin-top: 18px;
  border: 1px solid var(--rn-line);
  border-radius: var(--rn-radius);
  background: var(--rn-panel);
  padding: 18px 20px;
  color: rgba(247, 241, 232, .62);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.rn-tent-fit-result strong {
  display: block;
  margin-bottom: 4px;
  color: var(--rn-text);
  font-size: 21px;
  font-weight: 800;
  text-transform: uppercase;
}

.rn-tent-fit-result .rn-button,
.rn-tent-fit-result .rn-ghost-button {
  display: flex;
  width: max-content;
  margin-top: 16px;
  text-decoration: none;
}

.rn-tent-fit-note {
  margin: 16px 0 0;
  color: rgba(247, 241, 232, .45);
  font-size: 15px;
  font-weight: 500;
}

.rn-tent-fit-note a {
  color: var(--rn-gold-light);
  text-decoration: underline;
}

.rn-tent-fit-note a:hover {
  color: var(--rn-hover);
}

/* Klíčové informace + FAQ vedle sebe (mobil: informace nad FAQ).
   Bez align-items:start se panel natáhne na výšku FAQ a tlačítko
   ukotvené přes margin-top:auto zarovná jeho spodek přesně s FAQ. */
.rn-tent-info-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "faq info";
  gap: 24px;
  margin-bottom: 44px;
}

.rn-tent-info-faq .rn-tent-specs {
  grid-area: info;
}

.rn-tent-info-faq .rn-tent-faq {
  grid-area: faq;
}

.rn-tent-info-faq.is-info-only {
  grid-template-columns: minmax(0, 520px);
  grid-template-areas: "info";
}

.rn-tent-specs {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.rn-tent-specs .rn-button {
  width: 100%;
  margin-top: auto;
}

.rn-tent-specs .rn-summary-row:last-of-type {
  margin-bottom: 16px;
}

/* FAQ */
.rn-tent-faq {
  margin-bottom: 0;
}

.rn-tent-faq h2,
.rn-tent-outro h2 {
  margin: 0 0 20px;
  color: var(--rn-text);
  font-family: var(--rn-font);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
}

.rn-faq-item {
  border: 1px solid var(--rn-line);
  border-radius: var(--rn-radius);
  background: var(--rn-panel);
  margin-bottom: 10px;
}

.rn-faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 14px 18px;
  color: var(--rn-text);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.rn-faq-item summary::-webkit-details-marker {
  display: none;
}

.rn-faq-item summary:after {
  content: "+";
  flex: 0 0 auto;
  color: var(--rn-gold-light);
  font-size: 26px;
  line-height: 1;
  transition: transform .18s ease;
}

.rn-faq-item[open] summary:after {
  transform: rotate(45deg);
}

.rn-faq-item summary:hover {
  color: var(--rn-hover);
}

.rn-faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: rgba(247, 241, 232, .6);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

/* Závěrečné CTA */
.rn-tent-outro {
  border: 1px solid var(--rn-line);
  border-radius: var(--rn-radius);
  background: var(--rn-panel);
  padding: 34px 28px;
  text-align: center;
}

.rn-tent-outro p {
  margin: 0 auto 22px;
  max-width: 560px;
  color: rgba(247, 241, 232, .6);
  font-size: 18px;
  font-weight: 400;
}

.rn-tent-outro-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Archiv */
.rn-tent-archive-head {
  margin-bottom: 34px;
}

/* Filtr podle nosnosti střechy (?nosnost=X z kalkulačky) */
.rn-tent-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -10px 0 24px;
  border: 1px solid var(--rn-line);
  border-radius: var(--rn-radius);
  background: var(--rn-panel);
  padding: 14px 18px;
}

.rn-tent-filter-bar p {
  margin: 0;
  color: rgba(247, 241, 232, .62);
  font-size: 17px;
  font-weight: 500;
}

.rn-tent-filter-bar strong {
  color: var(--rn-gold-light);
}

.rn-tent-filter-bar a {
  color: var(--rn-gold-light);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-transform: uppercase;
  white-space: nowrap;
}

.rn-tent-filter-bar a:hover {
  color: var(--rn-hover);
}

.rn-tent-filter-empty {
  margin-bottom: 24px;
  border: 1px solid var(--rn-line);
  border-radius: var(--rn-radius);
  background: var(--rn-panel);
  padding: 26px 22px;
  text-align: center;
}

.rn-tent-filter-empty p {
  margin: 0 auto 18px;
  max-width: 560px;
  color: rgba(247, 241, 232, .62);
  font-size: 18px;
  font-weight: 500;
}

.rn-tent-filter-empty .rn-button {
  text-decoration: none;
}

.rn-tent-archive-grid .rn-card-title a {
  color: inherit;
  text-decoration: none;
}

.rn-tent-archive-grid .rn-card-title a:hover {
  color: var(--rn-hover);
}

.rn-tent-archive-grid .rn-tent-image {
  display: block;
  height: 234px;
}

.rn-tent-archive-grid .rn-benefits {
  min-height: 104px;
}

/* Responzivita */
@media (max-width: 1180px) {
  .rn-tent-info-faq {
    grid-template-columns: 1fr;
    grid-template-areas: "info" "faq";
  }

  .rn-tent-specs .rn-button {
    margin-top: 16px;
  }

  .rn-tent-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rn-tent-benefits-grid li:last-child:nth-child(3n - 1),
  .rn-tent-benefits-grid li:last-child:nth-child(3n + 1):not(:first-child) {
    grid-column: auto;
  }

  .rn-tent-benefits-grid li:last-child:nth-child(odd):not(:first-child) {
    grid-column: span 2;
  }

  .rn-tent-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }
}

@media (max-width: 760px) {
  .rn-tent-page {
    padding: 24px 14px 44px;
  }

  .rn-tent-breadcrumb {
    margin-bottom: 20px;
  }

  .rn-tent-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 28px;
  }

  .rn-tent-head h1 {
    line-height: 1.14;
  }

  .rn-tent-head-copy .rn-eyebrow {
    margin-bottom: 12px;
  }

  .rn-tent-lead {
    margin-top: 16px;
    font-size: 17px;
  }

  .rn-tent-badges {
    margin-top: 18px;
  }

  .rn-tent-head-cta {
    width: 100%;
    gap: 12px;
    justify-items: start;
    text-align: left;
  }

  .rn-tent-head-cta .rn-button {
    width: 100%;
    justify-content: center;
  }

  .rn-tent-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 130px;
    gap: 6px;
    margin-bottom: 28px;
  }

  .rn-tent-photo.is-main {
    grid-column: span 2;
  }

  .rn-tent-info-faq {
    gap: 26px;
    margin-bottom: 36px;
  }

  .rn-tent-benefits-grid {
    margin-bottom: 32px;
  }

  .rn-tent-benefits-grid li {
    padding: 18px 16px;
    font-size: 17px;
    gap: 12px;
  }

  .rn-benefit-plus {
    font-size: 22px;
  }

  .rn-tent-article {
    margin-bottom: 32px;
    font-size: 18px;
  }

  .rn-tent-article h2,
  .rn-tent-article h3 {
    margin: 26px 0 14px;
    font-size: 24px;
  }

  .rn-faq-item summary {
    font-size: 16px;
    line-height: 1.3;
  }

  .rn-tent-outro {
    padding: 26px 16px;
  }

  /* Víceřádkové nadpisy byly na mobilu namačkané na sobě */
  .rn-tent-faq h2,
  .rn-tent-outro h2,
  .rn-tent-fit h2 {
    line-height: 1.24;
  }

  .rn-tent-outro-actions .rn-button,
  .rn-tent-outro-actions .rn-ghost-button {
    width: 100%;
    justify-content: center;
  }

  .rn-tent-fit {
    padding: 22px 16px;
    margin-bottom: 32px;
  }

  .rn-tent-fit-form .rn-button,
  .rn-tent-fit-form button.rn-button {
    width: 100%;
    justify-content: center;
  }

  .rn-tent-fit-field {
    width: 100%;
  }

  .rn-tent-fit-input {
    width: 100%;
  }

  .rn-tent-fit-input input {
    flex: 1 1 auto;
    width: 0;
  }

  .rn-tent-fit-result .rn-button,
  .rn-tent-fit-result .rn-ghost-button {
    width: 100%;
    justify-content: center;
  }

  .rn-tent-archive-head {
    margin-bottom: 26px;
  }
}
