/* RAF REALITY – čistý responzivní styl: bílá, černá, červená (dle loga) */

:root {
  --red: #e10600;        /* červená z loga, mírně ztmavená kvůli čitelnosti */
  --red-d: #b80500;
  --red-l: #fff1f0;
  --black: #111111;
  --text: #1a1a1a;
  --muted: #666666;
  --line: #e6e6e6;
  --soft: #f6f6f6;
  --radius: 6px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-d); }
h1, h2, h3 { line-height: 1.2; color: var(--black); margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
strong { color: var(--black); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .7em 1.3em; border-radius: var(--radius); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-green, .btn-red { background: var(--red); color: #fff; }
.btn-green:hover, .btn-red:hover { background: var(--red-d); color: #fff; }
.btn-outline { border-color: var(--black); color: var(--black); background: #fff; }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-light { background: #fff; color: var(--black); border-color: var(--line); }
.btn-light:hover { border-color: var(--black); color: var(--black); }
.btn-ghost { background: var(--soft); color: var(--black); }
.btn-ghost:hover { background: #ebebeb; color: var(--black); }
.btn-block { display: flex; width: 100%; }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--black); margin-right: auto; min-width: 0; }
.brand img { height: 58px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; padding-left: 14px; border-left: 1px solid var(--line); }
.brand-text strong { font-size: 1.05rem; }
.brand-text span { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-phone {
  display: inline-flex; align-items: center; gap: .45em; padding: .55em 1em; border-radius: var(--radius);
  background: var(--black); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-phone:hover { background: var(--red); color: #fff; }
.header-phone svg { width: 18px; height: 18px; fill: currentColor; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--black); content: ""; transition: transform .2s;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { left: 0; top: -6px; }
.nav-toggle .bars::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav { background: #fff; border-top: 1px solid var(--line); }
.main-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0 auto; }
.main-nav a { display: block; padding: .8em 1.1em; color: var(--black); text-decoration: none; font-weight: 600; font-size: .95rem; box-shadow: inset 0 -3px 0 transparent; }
.main-nav li:first-child a { padding-left: 0; }
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }

/* ---------- Cookie lišta ---------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--black); color: #fff; padding: 12px 0; }
.cookie-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-bar p { margin: 0; font-size: .92rem; }

/* ---------- Hlášky ---------- */
.alert { padding: .8em 1em; border-radius: var(--radius); margin: 0 0 1em; font-weight: 600; }
.alert-ok { background: #edf7ee; color: #1d6b2c; border: 1px solid #c4e3c9; }
.alert-ko { background: var(--red-l); color: var(--red-d); border: 1px solid #f5c2bf; }
.top-flash { padding-top: 16px; }

/* ---------- Úvod ---------- */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); max-width: 20ch; margin-bottom: .4em; letter-spacing: -.01em; }
.hero h1 span { display: block; color: var(--red); }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin-bottom: 2em; }
.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-card {
  display: flex; flex-direction: column; gap: .4em; padding: 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--black); color: var(--text); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.hero-card:hover { border-top-color: var(--red); color: var(--text); transform: translateY(-2px); }
.hero-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.hero-card strong { font-size: 1.15rem; line-height: 1.3; }
.hero-link { margin-top: auto; padding-top: .6em; color: var(--red); font-weight: 700; }

.page-head { padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
.page-head h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-top: .35em; }
.page-head p { font-size: 1.1rem; max-width: 65ch; color: var(--muted); }
.page-head .btn { margin: .3em .4em 0 0; }

/* ---------- Sekce ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: #fff; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1em; }
.section-title::after { content: ""; display: block; width: 44px; height: 4px; background: var(--red); margin-top: .35em; }
.center .section-title::after { margin-left: auto; margin-right: auto; }
.section-title small { font-size: .55em; color: var(--muted); font-weight: 600; margin-left: .3em; }
.lead { font-size: 1.15rem; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.ticks li { position: relative; padding: .5em 0 .5em 1.8em; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 1.05em; height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e10600' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.callout { padding: 1em 1.2em; border-radius: var(--radius); margin-bottom: 1em; font-size: 1.08rem; border-left: 4px solid; }
.callout-blue { background: var(--soft); border-color: var(--black); }
.callout-green { background: var(--red-l); border-color: var(--red); }

.wanted { padding-left: 1.3em; }
.wanted li { margin-bottom: 1em; }
.wanted li::marker { color: var(--red); font-weight: 700; }

/* ---------- Odběr ---------- */
.subscribe { background: var(--soft); padding: 36px 0; }
.subscribe-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.subscribe h2 { font-size: 1.4rem; margin-bottom: .3em; }
.subscribe p { margin: 0; color: var(--muted); }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; }

/* ---------- Formuláře ---------- */
input[type=text], input[type=email], textarea {
  width: 100%; padding: .7em .85em; border: 1px solid #cfcfcf; border-radius: var(--radius);
  font: 1rem/1.4 var(--font); color: var(--text); background: #fff;
}
input:focus, textarea:focus { border-color: var(--black); outline: 2px solid rgba(0,0,0,.08); }
textarea { resize: vertical; }
.form-grid { display: grid; gap: 14px; }
.form-grid label { display: grid; gap: .3em; font-weight: 600; font-size: .95rem; }
.form-note { font-size: .9rem; color: var(--red); }

/* ---------- Nabídky ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.offer-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.offer-card:hover { border-color: #c8c8c8; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.offer-media { position: relative; display: block; text-decoration: none; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.offer-card:hover .offer-media img { transform: scale(1.03); }
.no-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); font-size: .9rem; background: var(--soft); aspect-ratio: 4 / 3; }
.offer-media .badge { position: absolute; top: 12px; left: 12px; }
.offer-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.offer-body h3 { font-size: 1.12rem; margin-bottom: .4em; }
.offer-body h3 a { color: var(--black); text-decoration: none; }
.offer-body h3 a::after { content: ""; position: absolute; inset: 0; }
.offer-card:hover h3 a { color: var(--red); }
.offer-meta { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: .4em; }
.offer-text { color: var(--muted); font-size: .95rem; }
.price { margin: auto 0 0; font-size: 1.3rem; font-weight: 800; color: var(--black); }

/* štítky stavu: SLEVA, REZERVACE, PRODÁNO… */
.badge {
  display: inline-block; padding: .25em .6em; border-radius: 4px; background: var(--red);
  color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; vertical-align: middle; line-height: 1.3;
}

.badge-red { background: var(--red); }
.badge-black { background: var(--black); }
.badge-gray { background: #6b6b6b; }

/* ---------- Detail ---------- */
.detail { padding: 28px 0 48px; border-bottom: 1px solid var(--line); }
.crumbs { margin-bottom: 1em; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.detail-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; margin-bottom: 28px; }
.gallery-main { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.75); color: #fff; padding: .3em .7em; border-radius: 4px; font-size: .85rem; font-weight: 600; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs a { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); outline: 2px solid transparent; outline-offset: -2px; }
.gallery-thumbs a:hover { outline-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-side { position: sticky; top: 140px; display: grid; gap: 16px; }
.price-box { border: 2px solid var(--black); border-radius: var(--radius); padding: 16px 20px; }
.price-box span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.price-box strong { display: block; font-size: 1.8rem; line-height: 1.2; color: var(--black); }
.broker { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.broker-label { font-size: .85rem; color: var(--muted); }
.broker strong { font-size: 1.1rem; }
.broker .btn { font-size: .95rem; overflow-wrap: anywhere; }
.print-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--muted); }
.print-link:hover { color: var(--red); }
.print-link svg { width: 20px; height: 20px; fill: currentColor; }

.prose { max-width: 75ch; font-size: 1.05rem; }
.detail-text { margin-bottom: 36px; }
.reply { background: var(--soft); border-radius: var(--radius); padding: 24px; max-width: 820px; }
.reply h2 { font-size: 1.3rem; }

/* ---------- Reference ---------- */
.ref-list { display: grid; gap: 28px; }
.ref-item h3 { font-size: 1.1rem; }
.ref-year { font-size: .78rem; font-weight: 700; color: #fff; background: var(--black); padding: .15em .5em; border-radius: 4px; margin-left: .3em; vertical-align: middle; }
.ref-photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ref-photos a { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.ref-photos img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.ref-photos a:hover img { opacity: .85; }

/* ---------- Kontakty ---------- */
.section-dark { background: #fff; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-person span { color: var(--muted); }
.contact-big { font-size: 1.4rem; font-weight: 800; line-height: 1.7; overflow-wrap: anywhere; }
.contact-big a { text-decoration: none; color: var(--black); }
.contact-big a:hover { color: var(--red); }
.contact-form { background: var(--soft); border-radius: var(--radius); padding: 24px; }

.fb-wrap { display: flex; justify-content: center; max-width: 500px; margin: 0 auto; }

/* ---------- Patička ---------- */
.site-footer { background: var(--black); color: #b5b5b5; font-size: .92rem; padding: 40px 0 0; border-top: 4px solid var(--red); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ff6b66; }
.site-footer strong { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; padding-bottom: 28px; }
.footer-logo { height: 64px; width: auto; background: #fff; padding: 6px; border-radius: 4px; margin-bottom: 1em; }
.footer-h { color: #fff; font-size: 1rem; margin-bottom: .7em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px; text-align: center; font-size: .85rem; }
body:has(.cookie-bar) .site-footer { padding-bottom: 70px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb img { max-width: 92vw; max-height: 80vh; width: auto; margin: 0 auto; }
.lb figcaption { color: #ddd; margin-top: .6em; font-size: .95rem; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.lb button:hover { background: var(--red); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- Tisk ---------- */
.print-page { background: #eee; }
.print-sheet { max-width: 800px; margin: 24px auto; background: #fff; padding: 32px; }
.print-actions { display: flex; gap: 8px; margin-bottom: 20px; }
.print-head { display: flex; align-items: center; gap: 20px; border-bottom: 3px solid var(--red); padding-bottom: 12px; margin-bottom: 20px; }
.print-head img { height: 80px; width: auto; }
.print-main { width: 100%; margin-bottom: 10px; }
.print-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; }
.print-price { font-size: 2rem; font-weight: 800; text-align: center; margin: 20px 0; }
.print-contact { text-align: center; font-size: 1.1rem; border: 2px solid var(--black); padding: 14px; border-radius: var(--radius); }
.print-foot { text-align: center; margin-top: 24px; font-weight: 700; }

@media print {
  .print-page { background: #fff; }
  .print-sheet { margin: 0; padding: 0; max-width: none; }
  .print-actions { display: none; }
  .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
  .hero-cards { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; grid-template-columns: 1fr 1fr; }
  .print-link { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .header-inner { min-height: 64px; }
  .brand img { height: 46px; }
  .brand-text { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 4px 0 8px; }
  .main-nav a, .main-nav li:first-child a { padding: .8em 16px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); }

  .hero { padding: 32px 0 36px; }
  .section { padding: 40px 0; }
  .subscribe-inner, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 24px; }
  .detail-side { grid-template-columns: 1fr; }
  .ref-photos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .ref-photos a { scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-bar .wrap { flex-direction: column; align-items: stretch; text-align: center; }
  .print-sheet { margin: 0; padding: 16px; }
  .print-thumbs { grid-template-columns: repeat(2, 1fr); }
  .reply, .contact-form { padding: 18px; }
}

@media (max-width: 420px) {
  .header-phone span { display: none; }
  .header-phone { padding: .7em; }
  .inline-field { flex-direction: column; }
  .offer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* =================================================================
   ÚPRAVY v2: výrazné sekce, razítka stavu, reference, tisk detailu
   ================================================================= */

.btn-big { padding: .95em 1.8em; font-size: 1.1rem; }
.print-only { display: none; }

/* ---------- Úvodní dlaždice Prodat / Koupit / Reference ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  display: flex; flex-direction: column; gap: .6em; min-height: 250px; padding: 28px 26px;
  border-radius: 8px; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.tile-kicker { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.tile strong { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; color: inherit; }
.tile-text { font-size: 1rem; opacity: .9; }
.tile-btn {
  margin-top: auto; align-self: flex-start; padding: .65em 1.1em; border-radius: 6px; font-weight: 800;
}
.tile-red { background: var(--red); color: #fff; }
.tile-red:hover { color: #fff; }
.tile-red .tile-btn { background: #fff; color: var(--red); }
.tile-black { background: var(--black); color: #fff; }
.tile-black:hover { color: #fff; }
.tile-black .tile-btn { background: var(--red); color: #fff; }
.tile-outline { background: #fff; color: var(--black); border: 3px solid var(--black); }
.tile-outline:hover { color: var(--black); border-color: var(--red); }
.tile-outline .tile-btn { background: var(--black); color: #fff; }

/* ---------- Barevné hlavičky podstránek ---------- */
.page-head-red, .page-head-black { border-bottom: 0; padding: 64px 0 56px; }
.page-head-red { background: var(--red); }
.page-head-black { background: var(--black); }
.page-head-red h1, .page-head-black h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-head-red p, .page-head-black p { color: rgba(255,255,255,.88); font-size: 1.25rem; }
.page-head-red h1::after { background: #fff; }
.page-head-black h1::after { background: var(--red); }

/* ---------- Číslované kroky (pro prodávající / kupující) ---------- */
.steps { list-style: none; counter-reset: krok; padding: 0; margin: 0 0 32px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.steps li {
  counter-increment: krok; position: relative; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 1.1rem; font-weight: 600; color: var(--black);
}
.steps li::before {
  content: counter(krok); flex: 0 0 auto; display: grid; place-items: center;
  width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800;
}
.promo { display: grid; gap: 14px; margin-bottom: 28px; }
.promo-box { padding: 24px 26px; border-radius: 8px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.3; text-align: center; }
.promo-box strong { color: inherit; }
.promo-red { background: var(--red); color: #fff; }
.promo-black { background: var(--black); color: #fff; }

/* ---------- Reference: jen malé náhledy, bez proklikávání ---------- */
.section-refs { background: var(--soft); }
.ref-list { gap: 0; }
.ref-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.ref-item:first-child { padding-top: 0; }
.ref-item h3 { font-size: 1.2rem; display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.ref-year { margin-left: 0; background: var(--red); font-size: .85rem; padding: .2em .6em; }
.ref-photos { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; }
.ref-photos img {
  width: 160px; height: 120px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line);
  pointer-events: none; transition: none;
}

/* ---------- Razítko stavu přes fotku ---------- */
.stamp {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.stamp > span {
  transform: rotate(-12deg); padding: .35em 1em; border: 4px solid #fff; border-radius: 6px;
  color: #fff; font-weight: 900; letter-spacing: .1em; font-size: clamp(1.3rem, 3.2vw, 2rem);
  box-shadow: 0 6px 24px rgba(0,0,0,.35); white-space: nowrap;
}
.stamp-red > span { background: var(--red); }
.stamp-black > span { background: var(--black); }
.gallery-main .stamp > span { font-size: clamp(1.8rem, 5vw, 3.2rem); }
.is-closed .offer-media img, .is-closed .gallery-main img { filter: grayscale(.85) brightness(.9); }
.offer-media .badge { font-size: .9rem; padding: .35em .8em; }

/* ---------- Detail jako samostatná stránka ---------- */
.detail { border-bottom: 0; padding-top: 20px; }
.detail-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-toolbar .crumbs { margin: 0; text-decoration: none; font-weight: 600; color: var(--muted); }
.detail-toolbar .crumbs:hover { color: var(--red); }
.btn-print svg { width: 20px; height: 20px; fill: currentColor; }
.detail h1 .badge { font-size: .5em; }

/* ---------- Responzivita v2 ---------- */
@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { font-size: 1rem; padding: 14px 16px; }
  .ref-photos { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; overflow: visible; }
  .ref-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .page-head-red, .page-head-black { padding: 40px 0 36px; }
}

/* =================================================================
   ÚPRAVY v3: veselejší zelené odstíny pro Prodej / Koupě / Reference
   ================================================================= */
:root {
  --green: #2f9e5e;
  --green-d: #25804b;
  --teal: #1f8a78;
  --teal-d: #176e60;
  --mint: #e9f7ee;
  --mint-line: #bfe6cc;
  --green-text: #1c5c37;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); color: #fff; }

.tile-green { background: linear-gradient(135deg, #34a865 0%, #6cc58b 100%); color: #fff; }
.tile-green:hover { color: #fff; }
.tile-green .tile-btn { background: #fff; color: var(--green-d); }
.tile-teal { background: linear-gradient(135deg, #1f8a78 0%, #45b3a0 100%); color: #fff; }
.tile-teal:hover { color: #fff; }
.tile-teal .tile-btn { background: #fff; color: var(--teal-d); }
.tile-mint { background: var(--mint); color: var(--green-text); border: 2px solid var(--mint-line); }
.tile-mint:hover { color: var(--green-text); border-color: var(--green); }
.tile-mint .tile-btn { background: var(--green); color: #fff; }

.page-head-green, .page-head-teal, .page-head-mint { border-bottom: 0; padding: 64px 0 56px; }
.page-head-green { background: linear-gradient(135deg, #34a865 0%, #72c991 100%); }
.page-head-teal { background: linear-gradient(135deg, #1f8a78 0%, #4fbaa6 100%); }
.page-head-mint { background: var(--mint); }
.page-head-green h1, .page-head-teal h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-head-green p, .page-head-teal p { color: rgba(255,255,255,.92); font-size: 1.25rem; }
.page-head-green h1::after, .page-head-teal h1::after { background: #fff; }
.page-head-mint h1 { color: var(--green-text); font-size: clamp(2rem, 5vw, 3.2rem); }
.page-head-mint p { color: var(--green-text); font-size: 1.25rem; }
.page-head-mint h1::after { background: var(--green); }

.steps li { border-color: var(--mint-line); background: #fbfefc; }
.steps li::before { background: var(--green); }
.promo-green { background: var(--mint); color: var(--green-text); border: 2px solid var(--mint-line); }
.promo-teal { background: var(--teal); color: #fff; }

.section-refs { background: var(--mint); }
.ref-year { background: var(--green); }
.ref-item { border-bottom-color: var(--mint-line); }

@media (max-width: 760px) {
  .page-head-green, .page-head-teal, .page-head-mint { padding: 40px 0 36px; }
}

/* =================================================================
   TISKOVÁ KARTA – vždy 1× A4, zároveň vizitka makléře a kanceláře
   ================================================================= */
.print-card {
  /* na obrazovce mimo zobrazení, ale vykreslená – kvůli měření textu */
  position: absolute; left: -10000px; top: 0; visibility: hidden;
  width: 190mm; height: 275mm; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 3.2mm;
  font: 9.5pt/1.42 var(--font); color: #111; background: #fff; overflow: hidden;
}
.print-card.is-preview { position: relative; left: auto; visibility: visible; }

.pc-head { display: flex; align-items: center; gap: 5mm; padding-bottom: 3mm; border-bottom: 1.2mm solid var(--red); }
.pc-logo { height: 21mm; width: auto; }
.pc-firm { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.pc-firm strong { font-size: 13pt; }
.pc-firm span { font-size: 8.5pt; color: #555; }
.pc-head-contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.pc-head-contact strong { font-size: 16pt; color: var(--red); letter-spacing: .02em; }
.pc-head-contact span { font-size: 9pt; }

.pc-title .pc-meta { margin: 0 0 .8mm; font-size: 7.5pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #666; }
.pc-title h2 { margin: 0; font-size: 17pt; line-height: 1.15; color: #111; }
.pc-state { display: inline-block; padding: .5mm 2.5mm; border-radius: 1mm; color: #fff; font-size: 11pt; vertical-align: 2px; letter-spacing: .05em; }

.pc-photos {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 1.5mm; height: 78mm; flex: 0 0 auto;
}
.pc-photos img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: .8mm; min-height: 0; }
.pc-photos .pc-main { grid-column: 1 / 3; grid-row: 1 / 3; }
.pc-photos[data-count="0"] .pc-main { grid-column: 1 / -1; }
.pc-photos[data-count="1"] .pc-main { grid-column: 1 / 4; }
.pc-photos[data-count="1"] img:not(.pc-main),
.pc-photos[data-count="2"] img:not(.pc-main) { grid-row: 1 / 3; }
.pc-photos[data-count="3"] img:nth-child(2) { grid-row: 1 / 3; }

.pc-bar { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2mm; flex: 0 0 auto; }
.pc-price, .pc-broker { padding: 2.5mm 4mm; border-radius: 1.2mm; display: flex; flex-direction: column; justify-content: center; }
.pc-price { background: var(--mint, #e9f7ee); border-left: 1.5mm solid var(--green, #2f9e5e); }
.pc-price span, .pc-broker span { font-size: 7.5pt; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .75; }
.pc-price strong { font-size: 19pt; line-height: 1.15; color: #111; }
.pc-broker { background: #111; color: #fff; }
.pc-broker strong { font-size: 13pt; color: #fff; }
.pc-broker em { font-style: normal; font-size: 10pt; }

.pc-desc { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.pc-desc-inner { column-count: 2; column-gap: 6mm; column-fill: balance; text-align: left; hyphens: auto; }
.pc-more { display: none; margin: 0; font-size: 8pt; color: #555; flex: 0 0 auto; }
.print-card.is-clipped .pc-more { display: block; }

.pc-foot {
  flex: 0 0 auto; display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 5mm; align-items: center;
  padding-top: 3mm; border-top: .6mm solid #111; font-size: 8.5pt; line-height: 1.35;
}
.pc-foot-firm, .pc-foot-contact { display: flex; flex-direction: column; }
.pc-foot-firm strong { font-size: 9.5pt; }
.pc-foot-contact strong { font-size: 10.5pt; }
.pc-qr { display: flex; flex-direction: column; align-items: center; gap: .8mm; font-size: 6.5pt; color: #555; text-transform: uppercase; letter-spacing: .08em; }
.pc-qr-code { width: 21mm; height: 21mm; }
.pc-qr-code svg { width: 100%; height: 100%; display: block; }
.pc-qr.is-empty { display: none; }

/* náhled na stránce tisk.php */
.print-preview { background: #e9e9e9; min-height: 100vh; padding: 20px 12px 40px; }
.print-preview .print-actions { max-width: 210mm; margin: 0 auto 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.print-preview .a4 { width: 210mm; min-height: 297mm; margin: 0 auto; padding: 10mm; background: #fff; box-shadow: 0 6px 30px rgba(0,0,0,.15); }
@media (max-width: 820px) {
  .print-preview .a4 { transform-origin: top left; zoom: .45; }
}

@media print {
  @page { size: A4 portrait; margin: 10mm; }
  html, body { background: #fff !important; margin: 0; padding: 0; }
  body > *:not(main) { display: none !important; }
  main > *:not(.detail) { display: none !important; }
  .detail { padding: 0 !important; border: 0 !important; }
  .detail .wrap { max-width: none; padding: 0; }
  .detail .wrap > *:not(.print-card) { display: none !important; }
  .print-preview { background: #fff; padding: 0; min-height: 0; }
  .print-preview .print-actions { display: none !important; }
  .print-preview .a4 { width: auto; min-height: 0; padding: 0; margin: 0; box-shadow: none; zoom: 1; }
  .print-card { position: static; left: auto; visibility: visible; page-break-inside: avoid; break-inside: avoid; }
  .print-card, .print-card * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Tisková karta: fotky vyplní volné místo, když je popis krátký */
.pc-photos { flex: 1 1 auto; height: auto; min-height: 72mm; max-height: 140mm; }
.pc-desc { flex: 0 1 auto; }
.pc-foot { margin-top: auto; }

/* =================================================================
   ÚPRAVY v5: hlavička webu jako na tiskové kartě, jemnější kontakt v tisku
   ================================================================= */
.header-inner { min-height: 88px; }
.brand img { height: 64px; }
.brand-text { gap: 1px; }
.brand-text strong { font-size: 1.2rem; color: var(--black); }
.brand-text span { font-size: .85rem; color: #555; }

.header-phone {
  background: none; color: var(--red); padding: .3em 0; gap: .6em; border-radius: 0; text-align: right;
}
.header-phone:hover { background: none; color: var(--red-d); }
.header-phone svg {
  width: 38px; height: 38px; padding: 9px; border: 2px solid var(--red); border-radius: 50%; fill: var(--red); flex: 0 0 auto;
}
.header-phone:hover svg { background: var(--red); fill: #fff; }
.hp-text { display: flex; flex-direction: column; line-height: 1.2; }
.hp-text strong { font-size: 1.4rem; color: var(--red); letter-spacing: .02em; }
.hp-text small { font-size: .8rem; color: #555; font-weight: 500; }

@media (max-width: 960px) {
  .brand-more { display: none; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 68px; }
  .brand img { height: 48px; }
  .brand-text { display: flex; padding-left: 10px; }
  .brand-text strong { font-size: .95rem; }
  .brand-text span { font-size: .72rem; white-space: normal; }
  .hp-text { display: none; }
  .header-phone svg { width: 42px; height: 42px; }
}
@media (max-width: 420px) {
  .header-phone span { display: none; }
  .header-phone { padding: 0; }
  .brand { gap: 8px; }
  .brand img { height: 42px; }
  .brand-text strong { font-size: .88rem; }
}

/* Tisková karta – kontaktní osoba jemněji */
.pc-broker { background: #f4f4f4; color: #111; border-left: 1.5mm solid var(--red); }
.pc-broker span { color: #555; }
.pc-broker strong { color: #111; }
.pc-broker em { color: #111; }
.pc-broker em b { color: var(--red); }
