/* =========================================================
   Realitní tržiště – vzhled nad Bootstrap 5.3.8
   ========================================================= */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../vendor/manrope/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../vendor/manrope/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rt-primary: #1f49e0;
  --rt-primary-rgb: 31, 73, 224;
  --rt-primary-hover: #1a3dbd;
  --rt-navy: #12266b;
  --rt-navy-line: #2e4290;
  --rt-navy-text: #c9d3f5;
  --rt-tint: #eef2ff;
  --rt-ground: #f7f8fb;
  --rt-line: #e3e7ef;
  --rt-line-strong: #d5dbe6;
  --rt-ink: #121a2e;
  --rt-text: #3a4458;
  --rt-muted: #5a6478;
  --rt-photo: #e1e5ee;
  --rt-radius: 14px;
  --rt-radius-sm: 10px;
  --rt-shadow: 0 1px 2px rgba(18, 26, 46, .04);
  --rt-shadow-lg: 0 24px 48px -24px rgba(18, 38, 107, .35);

  --bs-primary: var(--rt-primary);
  --bs-primary-rgb: var(--rt-primary-rgb);
  --bs-primary-text-emphasis: var(--rt-navy);
  --bs-primary-bg-subtle: var(--rt-tint);
  --bs-primary-border-subtle: #c7d3fb;
  --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-color: var(--rt-text);
  --bs-body-color-rgb: 58, 68, 88;
  --bs-body-bg: #fff;
  --bs-emphasis-color: var(--rt-ink);
  --bs-secondary-color: var(--rt-muted);
  --bs-border-color: var(--rt-line);
  --bs-border-radius: var(--rt-radius-sm);
  --bs-border-radius-lg: var(--rt-radius);
  --bs-link-color: var(--rt-primary);
  --bs-link-color-rgb: var(--rt-primary-rgb);
  --bs-link-hover-color: var(--rt-navy);
  --bs-link-hover-color-rgb: 18, 38, 107;
  --bs-heading-color: var(--rt-ink);
  --bs-focus-ring-color: rgba(var(--rt-primary-rgb), .25);
}

body { background: var(--rt-ground); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 800; letter-spacing: -.025em; color: var(--rt-ink); }
.num { font-variant-numeric: tabular-nums; }
.text-ink { color: var(--rt-ink) !important; }
.text-muted, .text-secondary { color: var(--rt-muted) !important; }
.text-primary { color: var(--rt-primary) !important; }
.bg-ground { background: var(--rt-ground) !important; }
.bg-navy { background: var(--rt-navy) !important; color: var(--rt-navy-text); }
.bg-tint { background: var(--rt-tint) !important; }
.fw-800 { font-weight: 800 !important; }
.eyebrow { font-size: .875rem; font-weight: 700; color: var(--rt-primary); letter-spacing: .02em; }
.small-label { font-size: .8125rem; color: var(--rt-muted); }
a { text-underline-offset: 3px; }

/* ---------- Tlačítka ---------- */
.btn { --bs-btn-font-weight: 700; --bs-btn-border-radius: 12px; --bs-btn-padding-y: .625rem; --bs-btn-padding-x: 1.125rem; }
.btn-lg { --bs-btn-padding-y: .875rem; --bs-btn-padding-x: 1.5rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 12px; }
.btn-sm { --bs-btn-padding-y: .375rem; --bs-btn-padding-x: .75rem; --bs-btn-border-radius: 9px; --bs-btn-font-size: .875rem; }
.btn-primary {
  --bs-btn-bg: var(--rt-primary); --bs-btn-border-color: var(--rt-primary);
  --bs-btn-hover-bg: var(--rt-primary-hover); --bs-btn-hover-border-color: var(--rt-primary-hover);
  --bs-btn-active-bg: var(--rt-navy); --bs-btn-active-border-color: var(--rt-navy);
  --bs-btn-disabled-bg: var(--rt-primary); --bs-btn-disabled-border-color: var(--rt-primary);
  --bs-btn-focus-shadow-rgb: var(--rt-primary-rgb);
}
.btn-outline-primary {
  --bs-btn-color: var(--rt-primary); --bs-btn-border-color: var(--rt-primary);
  --bs-btn-hover-bg: var(--rt-primary); --bs-btn-hover-border-color: var(--rt-primary);
  --bs-btn-active-bg: var(--rt-navy); --bs-btn-active-border-color: var(--rt-navy);
}
.btn-light, .btn-outline-secondary {
  --bs-btn-color: var(--rt-ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--rt-line-strong);
  --bs-btn-hover-color: var(--rt-ink); --bs-btn-hover-bg: var(--rt-ground); --bs-btn-hover-border-color: #c3cbd9;
  --bs-btn-active-color: var(--rt-ink); --bs-btn-active-bg: var(--rt-tint); --bs-btn-active-border-color: #c3cbd9;
}
.btn-ink { --bs-btn-color: #fff; --bs-btn-bg: var(--rt-ink); --bs-btn-border-color: var(--rt-ink); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--rt-navy); --bs-btn-hover-border-color: var(--rt-navy); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--rt-navy); }
.btn-white { --bs-btn-color: var(--rt-navy); --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-hover-color: var(--rt-navy); --bs-btn-hover-bg: var(--rt-tint); --bs-btn-hover-border-color: var(--rt-tint); }
.btn-icon { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Formuláře ---------- */
.form-control, .form-select { border-color: var(--rt-line-strong); border-radius: var(--rt-radius-sm); min-height: 44px; color: var(--rt-ink); }
.form-control:focus, .form-select:focus { border-color: #8aa2f2; box-shadow: 0 0 0 .2rem rgba(var(--rt-primary-rgb), .15); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--rt-ink); margin-bottom: .375rem; }
.form-text { color: var(--rt-muted); }
.form-check-input:checked { background-color: var(--rt-primary); border-color: var(--rt-primary); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(var(--rt-primary-rgb), .15); border-color: #8aa2f2; }
textarea.form-control { min-height: auto; }
.form-section-title { font-size: 1rem; font-weight: 800; color: var(--rt-ink); margin: 1.5rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--rt-line); }
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Karty, panely ---------- */
.card { --bs-card-border-color: var(--rt-line); --bs-card-border-radius: var(--rt-radius); --bs-card-inner-border-radius: calc(var(--rt-radius) - 1px); --bs-card-cap-bg: #fff; box-shadow: var(--rt-shadow); }
.card-header { font-weight: 800; color: var(--rt-ink); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.card-body { padding: 1.25rem; }
@media (min-width: 768px) { .card-body-lg { padding: 1.75rem; } }
.list-group { --bs-list-group-border-color: var(--rt-line); }
.list-group-item { padding: .875rem 1.25rem; }

.stat { padding: 1.25rem; }
.stat .stat-label { font-size: .875rem; color: var(--rt-muted); }
.stat .stat-value { font-size: clamp(1.125rem, .85rem + 1.2vw, 1.625rem); overflow-wrap: normal; font-weight: 800; color: var(--rt-ink); letter-spacing: -.02em; margin-top: .375rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
a.stat { text-decoration: none; display: block; transition: border-color .15s ease; }
a.stat:hover { border-color: #b6c4f5; }

.metric { background: var(--rt-ground); border-radius: 12px; padding: 1rem; height: 100%; }
.metric .metric-label { font-size: .8125rem; color: var(--rt-muted); }
.metric .metric-value { font-size: 1.125rem; font-weight: 800; color: var(--rt-ink); margin-top: .25rem; font-variant-numeric: tabular-nums; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0; font-size: .9375rem; }
.kv dt { color: var(--rt-muted); font-weight: 500; }
.kv dd { margin: 0; text-align: right; font-weight: 700; color: var(--rt-ink); font-variant-numeric: tabular-nums; }

/* ---------- Badges ---------- */
.badge { font-weight: 700; border-radius: 999px; padding: .4em .75em; }
.badge-soft { background: var(--rt-tint); color: var(--rt-navy); }
.badge-outline { background: #fff; color: var(--rt-ink); border: 1px solid var(--rt-line); }
.text-bg-warning { background-color: #fbf1dc !important; color: #6b4a0e !important; }
.text-bg-success { background-color: #e3f4ea !important; color: #155b34 !important; }
.text-bg-danger { background-color: #fbe5e3 !important; color: #8f2219 !important; }
.text-bg-info { background-color: #e3f1fb !important; color: #12507a !important; }
.text-bg-secondary { background-color: #eceef3 !important; color: #3a4458 !important; }
.text-bg-dark { background-color: var(--rt-ink) !important; color: #fff !important; }
.text-bg-primary { background-color: var(--rt-tint) !important; color: var(--rt-navy) !important; }

/* ---------- Hlavička aplikace ---------- */
.rt-header { background: #fff; border-bottom: 1px solid var(--rt-line); }
.rt-header .navbar { --bs-navbar-padding-y: 0; min-height: 68px; }
.rt-brand { display: inline-flex; align-items: center; gap: .625rem; font-weight: 800; font-size: 1.125rem; letter-spacing: -.02em; color: var(--rt-ink); text-decoration: none; }
.rt-brand:hover { color: var(--rt-ink); }
.rt-header .nav-link { color: var(--rt-text); font-weight: 600; border-radius: 9px; padding: .5rem .875rem !important; }
.rt-header .nav-link:hover { color: var(--rt-ink); background: var(--rt-ground); }
.rt-header .nav-link.active { color: var(--rt-ink); background: var(--rt-tint); }
.rt-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--rt-tint); color: var(--rt-navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .875rem; flex: none; }
.dropdown-menu { --bs-dropdown-border-color: var(--rt-line); --bs-dropdown-border-radius: 12px; --bs-dropdown-link-active-bg: var(--rt-primary); box-shadow: var(--rt-shadow-lg); padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-weight: 500; }
.navbar-toggler { border-color: var(--rt-line); border-radius: 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(var(--rt-primary-rgb), .15); }
@media (max-width: 991.98px) {
  .rt-header .navbar-collapse { padding: .75rem 0 1rem; }
  .rt-header .navbar-nav { gap: .25rem; }
}

/* Veřejná hlavička na úvodní stránce */
.rt-public-header { background: #fff; border-bottom: 1px solid var(--rt-line); }
.rt-public-header .nav-link { color: var(--rt-text); font-weight: 600; }
.rt-public-header .nav-link:hover { color: var(--rt-ink); }

/* ---------- Stránky ---------- */
.page-head { padding: 2rem 0 1.5rem; }
.page-head h1 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.125rem); margin: 0; }
.page-head .lead-sm { color: var(--rt-muted); margin: .375rem 0 0; }
.back-link { font-size: .875rem; color: var(--rt-muted); text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; }
.back-link:hover { color: var(--rt-ink); }

/* ---------- Karta nabídky ---------- */
.offer-card { overflow: hidden; height: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.offer-card:hover { border-color: #b6c4f5; box-shadow: var(--rt-shadow-lg); }
.offer-card .offer-photo { aspect-ratio: 16 / 10; background: var(--rt-photo) center / cover no-repeat; position: relative; display: block; }
.offer-card .offer-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa3b5; font-size: 2.25rem; }
.offer-card .offer-tag { position: absolute; top: .75rem; left: .75rem; background: #fff; color: var(--rt-ink); border-radius: 8px; padding: .3rem .625rem; font-size: .8125rem; font-weight: 700; }
.offer-card .offer-profit { position: absolute; right: .75rem; bottom: .75rem; background: var(--rt-primary); color: #fff; border-radius: 8px; padding: .375rem .75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.offer-card .offer-title { font-size: 1.0625rem; font-weight: 800; color: var(--rt-ink); text-decoration: none; letter-spacing: -.01em; }
.offer-card .offer-title::after { content: ""; position: absolute; inset: 0; }
.offer-card .card-body { position: relative; display: flex; flex-direction: column; gap: .875rem; }
.offer-card .offer-foot { margin-top: auto; padding-top: .875rem; border-top: 1px solid var(--rt-line); display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; position: relative; z-index: 1; }

.risk { display: inline-flex; gap: 3px; vertical-align: middle; }
.risk i { width: 14px; height: 7px; border-radius: 2px; background: var(--rt-line-strong); display: inline-block; }
.risk i.on { background: var(--rt-primary); }
.risk.high i.on { background: #c8463d; }
.risk-light i { background: #3b4e95; }
.risk-light i.on { background: #fff; }

/* Filtr */
.filter-bar .form-label { font-size: .8125rem; font-weight: 600; color: var(--rt-muted); }

/* ---------- Detail ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 210px)); gap: .625rem; }
.gallery > a, .gallery > div { border-radius: 12px; overflow: hidden; background: var(--rt-photo); display: block; position: relative; }
.gallery > a:first-child { grid-row: span 2; border-radius: var(--rt-radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .more { position: absolute; inset: 0; background: rgba(18, 26, 46, .62); color: #fff; display: grid; place-items: center; font-weight: 800; }
.gallery-1 { grid-template-columns: 1fr; grid-template-rows: minmax(0, 430px); }
.gallery-1 > a:first-child { grid-row: auto; }
@media (max-width: 767.98px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 110px; }
  .gallery > a:first-child { grid-column: span 2; grid-row: auto; }
  .gallery > a:nth-child(n+4) { display: none; }
  .gallery-1 { grid-template-rows: 240px; }
}

.rt-tabs { --bs-nav-tabs-border-color: var(--rt-line); --bs-nav-link-color: var(--rt-muted); --bs-nav-link-hover-color: var(--rt-ink); --bs-nav-tabs-link-active-color: var(--rt-ink); flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--rt-line); gap: .25rem; scrollbar-width: none; }
.rt-tabs::-webkit-scrollbar { display: none; }
.rt-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-weight: 600; white-space: nowrap; padding: .75rem .875rem; margin-bottom: -1px; background: none; }
.rt-tabs .nav-link.active { border-bottom-color: var(--rt-ink); font-weight: 800; background: none; }

.big-profit { font-size: 2.75rem; font-weight: 800; color: var(--rt-primary); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (min-width: 992px) { .sticky-lg { position: sticky; top: 1.5rem; } }

.milestones { list-style: none; margin: 0; padding: 0; }
.milestones li { display: flex; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--rt-line); }
.milestones li:last-child { border-bottom: 0; }
.milestones .dot { width: 22px; height: 22px; border-radius: 999px; flex: none; margin-top: 2px; background: var(--rt-primary); }
.milestones .dot.open { background: none; border: 2px solid var(--rt-line-strong); }
.progress { --bs-progress-bar-bg: var(--rt-primary); --bs-progress-bg: #eef0f5; --bs-progress-border-radius: 999px; }

.doc-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--rt-line); }
.doc-row:last-child { border-bottom: 0; }

/* ---------- Tabulky ---------- */
.table { --bs-table-border-color: var(--rt-line); --bs-table-hover-bg: var(--rt-ground); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .875rem 1rem; vertical-align: middle; }
.table thead th { font-size: .8125rem; font-weight: 600; color: var(--rt-muted); background: #f9fafc; white-space: nowrap; }
.card > .table-responsive:last-child .table tr:last-child td { border-bottom: 0; }
.table-sm > :not(caption) > * > * { padding: .625rem .75rem; }

/* ---------- Tikety ---------- */
.thread { display: flex; flex-direction: column; gap: 1rem; }
.msg { border-radius: 14px; padding: .875rem 1.125rem; max-width: 85%; }
.msg.mine { background: var(--rt-tint); margin-left: auto; }
.msg.theirs { background: #fff; border: 1px solid var(--rt-line); }
@media (max-width: 575.98px) { .msg { max-width: 100%; } }

/* ---------- Administrace ---------- */
.admin-shell { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; padding-top: 1.5rem; }
.admin-side { flex: 1 1 220px; max-width: 100%; }
.admin-main { flex: 999 1 640px; min-width: 0; }
@media (min-width: 992px) { .admin-side { flex: 0 0 236px; position: sticky; top: 1.5rem; } }
.admin-nav .nav-link { color: var(--rt-text); font-weight: 600; border-radius: 10px; padding: .625rem .875rem; display: flex; align-items: center; gap: .625rem; }
.admin-nav .nav-link i { font-size: 1.05rem; opacity: .8; }
.admin-nav .nav-link:hover { background: #fff; color: var(--rt-ink); }
.admin-nav .nav-link.active { background: var(--rt-ink); color: #fff; }
.admin-nav .nav-link .badge { margin-left: auto; }
@media (max-width: 991.98px) {
  .admin-nav { flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; gap: .25rem; padding-bottom: .25rem; scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav .nav-link { white-space: nowrap; }
}
.chip-filter { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .375rem; scrollbar-width: none; padding-bottom: 2px; }
.chip-filter::-webkit-scrollbar { display: none; }
.chip-filter .btn { white-space: nowrap; }

/* ---------- Úvodní stránka ---------- */
.hero { background: var(--rt-ground); border-bottom: 1px solid var(--rt-line); padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.5rem); line-height: 1.06; letter-spacing: -.04em; }
.hero .hero-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; max-width: 540px; }
.hero-points { border-top: 1px solid var(--rt-line); padding-top: 1.375rem; max-width: 560px; }
.hero-points strong { display: block; color: var(--rt-ink); font-weight: 800; }
.showcase { border-radius: 18px; overflow: hidden; border: 1px solid var(--rt-line); background: #fff; box-shadow: var(--rt-shadow-lg); }
.showcase .photo { aspect-ratio: 16 / 9; background: var(--rt-photo); display: grid; place-items: center; color: #9aa3b5; font-size: 2.5rem; }
.showcase .bar { background: var(--rt-navy); color: var(--rt-navy-text); padding: 1.25rem 1.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; font-size: .75rem; }
.showcase .bar strong { display: block; color: #fff; font-size: 1rem; margin-top: .25rem; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .showcase .bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
.section h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; }
.steps { border-top: 2px solid var(--rt-ink); }
.steps .step-no { font-weight: 800; color: var(--rt-primary); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.125rem; margin: .5rem 0; }
.roles-row { border-top: 1px solid var(--rt-navy-line); padding: 1.75rem 0; }
.roles-row:last-child { border-bottom: 1px solid var(--rt-navy-line); }
.roles-row h3 { color: #fff; font-size: 1.375rem; margin: 0; }
.faq .accordion-item { border: 0; border-bottom: 1px solid var(--rt-line-strong); background: transparent; }
.faq .accordion-button { background: transparent; font-weight: 700; color: var(--rt-ink); padding: 1.125rem 0; box-shadow: none; font-size: 1.0625rem; }
.faq .accordion-button:not(.collapsed) { color: var(--rt-ink); }
.faq .accordion-body { padding: 0 0 1.25rem; max-width: 640px; }
.faq .accordion { border-top: 1px solid var(--rt-line-strong); --bs-accordion-btn-focus-box-shadow: none; }

.plan-table th, .plan-table td { text-align: center; }
.plan-table th:first-child, .plan-table td:first-child { text-align: left; }
.plan-card { height: 100%; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--rt-primary); box-shadow: 0 0 0 1px var(--rt-primary), var(--rt-shadow-lg); }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--rt-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .5rem; padding: .3rem 0; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--rt-primary); font-weight: 700; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 69px); display: grid; place-items: center; padding: 2.5rem 1rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card-wide { max-width: 720px; }

/* ---------- Patička ---------- */
.rt-footer { border-top: 1px solid var(--rt-line); background: #fff; color: var(--rt-muted); font-size: .875rem; }
.rt-footer a { color: var(--rt-muted); text-decoration: none; }
.rt-footer a:hover { color: var(--rt-ink); }

/* Tisk */
@media print { .rt-header, .rt-footer, .no-print { display: none !important; } body { background: #fff; } }
.min-w-0 { min-width: 0 !important; }
.doc-row a { text-decoration: none; }
.card-header a, .list-group-item a { text-decoration: none; }
.row.g-3 > * > .mb-3, .row.g-2 > * > .mb-3 { margin-bottom: 0 !important; }

/* ---------- Mapa ---------- */
.offers-map { height: min(70vh, 620px); min-height: 360px; border-radius: var(--rt-radius); border: 1px solid var(--rt-line); z-index: 0; }
.map-pin span { display: inline-block; transform: translate(-50%, -100%); background: var(--rt-primary); color: #fff; font-weight: 800; font-size: .8125rem; padding: .25rem .5rem; border-radius: 8px; white-space: nowrap; box-shadow: 0 4px 12px rgba(18, 26, 46, .25); font-family: var(--bs-body-font-family); }
.leaflet-popup-content { font-family: var(--bs-body-font-family); }

/* ---------- Porovnání ---------- */
.compare-tray { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 1030; background: var(--rt-ink); color: #fff; border-radius: 14px; padding: .5rem .5rem .5rem 1.25rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 16px 40px rgba(18, 26, 46, .3); white-space: nowrap; max-width: calc(100% - 2rem); }
.compare-table th { width: 220px; color: var(--rt-muted); font-weight: 600; font-size: .875rem; background: #f9fafc; }
.compare-table td { min-width: 220px; }
.compare-table .best { color: var(--rt-primary); font-weight: 800; }

/* ---------- Prémiové stránky (členství) ---------- */
.page-hero { background: var(--rt-navy); color: var(--rt-navy-text); padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--rt-primary-rgb), .55), transparent 70%); pointer-events: none; }
.page-hero > .container-xl { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1.08; letter-spacing: -.02em; }
.page-hero .eyebrow { color: #9fb4ff; }
.page-hero .lead { color: var(--rt-navy-text); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.hero-facts { border-top: 1px solid var(--rt-navy-line); padding-top: 1.25rem; }
.hero-facts strong { display: block; color: #fff; font-size: 1.5rem; font-weight: 800; }
.perk { display: flex; gap: 1rem; }
.perk .perk-ic { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--rt-tint); color: var(--rt-primary); display: grid; place-items: center; font-size: 1.375rem; }
.perk h3 { font-size: 1.0625rem; margin: 0 0 .25rem; }
.perk p { margin: 0; }
.exclusive { border: 1px solid var(--rt-line); border-radius: var(--rt-radius); background: #fff; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.exclusive .num-big { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); font-weight: 800; color: var(--rt-primary); letter-spacing: -.02em; line-height: 1; }
.membership-steps { counter-reset: ms; list-style: none; padding: 0; margin: 0; }
.membership-steps li { counter-increment: ms; position: relative; padding: 0 0 1.25rem 3rem; }
.membership-steps li::before { content: counter(ms); position: absolute; left: 0; top: -.125rem; width: 2rem; height: 2rem; border-radius: 999px; background: var(--rt-ink); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .875rem; }
.membership-steps li strong { color: var(--rt-ink); display: block; }
.btn-check + .choice-card { display: block; cursor: pointer; border: 1px solid var(--rt-line-strong); border-radius: 12px; padding: 1rem 1.125rem; height: 100%; }
.btn-check:checked + .choice-card { border-color: var(--rt-primary); box-shadow: 0 0 0 1px var(--rt-primary); background: var(--rt-tint); }
.price-row { display: flex; justify-content: space-between; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--rt-line); }
.price-row:last-child { border-bottom: 0; }
.price-row strong { color: var(--rt-ink); white-space: nowrap; }
.featured-badge { background: #fff4d6 !important; color: #7a5300 !important; }
.offer-card.is-featured { border-color: #e9c46a; box-shadow: 0 0 0 1px #e9c46a; }
.service-card .svc-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--rt-tint); color: var(--rt-primary); display: grid; place-items: center; font-size: 1.5rem; }
.invoice-paper { max-width: 860px; }

/* ---------- Nápověda / dokumentace ---------- */
.docs-shell { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; padding: 2rem 0 1rem; }
.docs-side { flex: 1 1 240px; max-width: 100%; }
.docs-side-inner { position: sticky; top: 1rem; }
.docs-main { flex: 999 1 600px; min-width: 0; max-width: 820px; }
.docs-head h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: -.02em; margin: 0 0 .75rem; }
.docs-head .lead { font-size: 1.125rem; color: var(--rt-text); }
.docs-hint { background: var(--rt-tint); color: var(--rt-navy); border-radius: var(--rt-radius-sm); padding: .75rem 1rem; }
.docs-toc { border: 1px solid var(--rt-line); border-radius: var(--rt-radius); background: #fff; padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 1.5rem; }
.docs-toc li { padding: .2rem 0; break-inside: avoid; }
.docs-toc a { text-decoration: none; font-weight: 600; }
.docs-content { font-size: 1.0125rem; line-height: 1.7; }
.docs-content h2 { font-size: 1.375rem; margin: 2.75rem 0 .875rem; padding-top: 1.5rem; border-top: 1px solid var(--rt-line); scroll-margin-top: 1rem; }
.docs-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.docs-content h3 { font-size: 1.0625rem; margin: 1.75rem 0 .5rem; scroll-margin-top: 1rem; }
.docs-content p, .docs-content ul, .docs-content ol { margin-bottom: 1rem; }
.docs-content li { margin-bottom: .25rem; }
.docs-content code { background: var(--rt-ground); color: var(--rt-ink); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.docs-content pre { background: var(--rt-navy); color: #e6ebff; border-radius: var(--rt-radius-sm); padding: 1rem 1.125rem; font-size: .875rem; overflow-x: auto; }
.docs-content pre code { background: none; color: inherit; padding: 0; }
.docs-content .table { font-size: .9375rem; }
.callout { display: flex; gap: .875rem; border-radius: var(--rt-radius-sm); padding: 1rem 1.125rem; margin: 1.25rem 0; background: var(--rt-tint); color: var(--rt-navy); }
.callout > i { font-size: 1.25rem; line-height: 1.5; flex: none; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: #fbf1dc; color: #6b4a0e; }
.callout-ok { background: #e3f4ea; color: #155b34; }
.flow { list-style: none; counter-reset: fl; padding: 0; margin: 1.25rem 0; }
.flow li { counter-increment: fl; position: relative; padding: 0 0 1rem 2.75rem; border-left: 2px solid var(--rt-line); margin-left: .9rem; }
.flow li:last-child { border-left-color: transparent; padding-bottom: 0; }
.flow li::before { content: counter(fl); position: absolute; left: -1rem; top: -.125rem; width: 1.875rem; height: 1.875rem; border-radius: 999px; background: var(--rt-primary); color: #fff; font-weight: 800; font-size: .8125rem; display: grid; place-items: center; }
.flow li strong { display: block; color: var(--rt-ink); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.role-grid .card-body { padding: 1.125rem; }
.docs-pager { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rt-line); margin-top: 3rem; padding-top: 1.25rem; }
.docs-pager-link { display: flex; flex-direction: column; gap: .125rem; text-decoration: none; font-weight: 700; color: var(--rt-ink); border: 1px solid var(--rt-line); border-radius: var(--rt-radius-sm); padding: .75rem 1rem; background: #fff; min-width: 0; }
.docs-pager-link:hover { border-color: #b6c4f5; color: var(--rt-primary); }
@media (max-width: 991.98px) { .docs-side-inner { position: static; } .docs-side .admin-nav { flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; } .docs-side .admin-nav .nav-link { white-space: nowrap; } }

/* ---------- Lišta cookies ---------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; background: #fff; border-top: 1px solid var(--rt-line); box-shadow: 0 -8px 24px -16px rgba(18, 26, 46, .25); padding: .875rem 0; }
.cookie-bar[hidden] { display: none; }
