/* OTTE Reality, Úspěšné realizace a Google hodnocení */

/* Karty realizací */
.rz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.rz-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 48px; }
.rz-card { min-width: 0; display: flex; flex-direction: column; }
.rz-card[hidden] { display: none; }
.rz-img { position: relative; display: block; overflow: hidden; background: var(--stone); }
.rz-img img, .rz-img .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .8s ease; }
.rz-card:hover .rz-img img { transform: scale(1.04); }
.rz-badge {
  position: absolute; top: 16px; left: 16px; background: var(--ink); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px;
}
.rz-body { padding-top: 20px; }
.rz-meta { font-size: .88rem; color: var(--bronze); font-weight: 500; margin-bottom: .4em; }
.rz-card h3 { font-size: 1.35rem; margin-bottom: .35em; }
.rz-grid-home .rz-card h3 { font-size: 1.55rem; }
.rz-card h3 a { text-decoration: none; transition: color .2s; }
.rz-card h3 a:hover { color: var(--bronze); }
.rz-loc { color: var(--muted); font-size: .95rem; margin-bottom: .6em; }
.rz-text { color: #3a3631; font-size: .98rem; margin-bottom: .9em; }
.rz-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.rz-tags li { font-size: .8rem; padding: 4px 11px; border: 1px solid var(--line); border-radius: 40px; color: var(--muted); background: #fff; }
.rz-empty { color: var(--muted); font-size: 1.05rem; }

/* Filtr */
.rz-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(40px, 6vw, 64px); }
.rz-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.rz-filter button {
  font: 500 .95rem var(--sans); padding: 9px 20px; border: 1px solid var(--line); background: #fff;
  border-radius: 40px; cursor: pointer; color: var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.rz-filter button:hover { border-color: var(--ink); }
.rz-filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Detail */
.rz-hero-badge {
  display: inline-block; background: var(--bronze); color: #fff; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; margin-bottom: 1.2em;
}
.rz-detail { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
.rz-gallery-main { display: block; width: 100%; border: 0; padding: 0; background: var(--stone); cursor: zoom-in; }
.rz-gallery-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.rz-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; }
.rz-thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; transition: border-color .2s; }
.rz-thumbs button.is-active, .rz-thumbs button:hover { border-color: var(--bronze); }
.rz-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.rz-story { margin-top: clamp(48px, 6vw, 80px); }
.rz-story h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.rz-aside { position: sticky; top: 110px; background: var(--stone); padding: clamp(24px, 3vw, 36px); }
.rz-aside-title { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin-bottom: 1em; }
.rz-params { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0 0 1.4em; }
.rz-params dt { color: var(--muted); font-size: .9rem; }
.rz-params dd { margin: 0; font-weight: 500; }
.rz-aside-btn { display: block; text-align: center; margin-top: 1.6em; }

/* Lightbox */
.rz-lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.rz-lightbox::backdrop { background: rgba(15, 14, 12, .94); }
.rz-lightbox[open] { display: grid; place-items: center; }
.rz-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.rz-lb-btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.rz-lb-btn:hover { background: #fff; color: var(--ink); }
.rz-lb-close { top: 20px; right: 20px; }
.rz-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.rz-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Hvězdičky (přesný podíl podle --r) */
.stars {
  --r: 5; display: inline-block; line-height: 1; letter-spacing: 2px; font-size: 1rem;
  background: linear-gradient(90deg, #e3a83b calc(var(--r) / 5 * 100%), rgba(28, 26, 23, .18) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stars::before { content: "★★★★★"; }

/* Google: hlavička a skóre */
.g-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 40px; }
.g-head h2 { margin: 0; }
.g-kicker { color: var(--bronze); font-weight: 500; font-size: .92rem; margin-bottom: .6em; }
.g-score { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.g-score b { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; }
.g-score .stars { font-size: 1.35rem; }
.g-score small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.g-score:hover small { color: var(--ink); }

/* Google: jedoucí pás */
.g-strip { padding: clamp(72px, 9vw, 120px) 0; background: var(--stone); overflow: hidden; }
.g-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.g-track { display: flex; gap: 20px; width: max-content; animation: gMarquee 90s linear infinite; }
.g-marquee:hover .g-track, .g-marquee:focus-within .g-track { animation-play-state: paused; }
@keyframes gMarquee { to { transform: translateX(calc(-50% - 10px)); } }
.g-more { margin-top: 36px; }

/* Google: karta */
.g-card {
  width: 340px; flex-shrink: 0; margin: 0; background: #fff; padding: 26px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.g-card blockquote { margin: 0; }
.g-card p { margin: 0; color: #3a3631; font-size: .98rem; line-height: 1.6; }
.g-author { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; font-size: .92rem; }

/* Google: mřížka na stránce Reference */
.g-grid { columns: 3 300px; column-gap: 20px; }
.g-grid .g-card { width: auto; break-inside: avoid; margin-bottom: 20px; display: inline-flex; }
.g-cta { margin: 24px 0 0; }

/* Tablet */
@media (max-width: 1000px) {
  .rz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rz-detail { grid-template-columns: minmax(0, 1fr); }
  .rz-aside { position: static; }
}

/* Mobil */
@media (max-width: 760px) {
  .rz-grid, .rz-grid-home { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .rz-filter {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad) 4px;
  }
  .rz-filter::-webkit-scrollbar { display: none; }
  .rz-filter button { flex-shrink: 0; }
  .g-card { width: 280px; padding: 22px; }
  .g-head { align-items: flex-start; }
  .rz-lb-prev, .rz-lb-next { top: auto; bottom: 20px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .g-track { animation: none; }
  .g-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}