/* BIGinzerce.cz – nový vzhled (mobile-first, bez frameworku) */

:root {
  --brand: #1f6fd1;
  --brand-dark: #1557a8;
  --brand-soft: #e8f1fc;
  --cta: #f26a21;
  --cta-dark: #d4561a;
  --ink: #1b2230;
  --ink-2: #4a5466;
  --muted: #6b7385;
  --line: #e2e6ee;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --ok: #1a8a4a;
  --ok-soft: #e6f6ec;
  --err: #c62d2d;
  --err-soft: #fdecec;
  --info-soft: #eef3fb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 14px rgba(20, 30, 50, .06);
  --shadow-hover: 0 2px 6px rgba(20, 30, 50, .08), 0 10px 28px rgba(20, 30, 50, .10);
  --wrap: 1240px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(31, 111, 209, .45); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.hint { font-size: .86rem; color: var(--muted); margin: .35em 0 0; }
.empty { color: var(--muted); padding: 24px 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.tracking-pixel { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---------- cookie lišta (assets/js/souhlas.js) ---------- */
.reklama-vyp .adslot, .reklama-vyp .card-ad { display: none; }
.cookie-lista { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; max-width: 880px; margin: 0 auto; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; font-size: .92rem; max-height: calc(100vh - 24px); overflow: auto; }
.cookie-lista h2 { margin: 0 0 6px; font-size: 1.05rem; }
.cookie-lista p { margin: 0; color: var(--ink-2); }
.cookie-obsah { flex: 1 1 380px; }
.cookie-tlacitka { display: flex; gap: 8px; flex-wrap: wrap; }
/* odmítnutí je stejně výrazné jako přijetí */
.cookie-tlacitka .btn { min-width: 132px; justify-content: center; }
.cookie-volba { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; cursor: pointer; }
.cookie-volba input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.cookie-lista-nastaveni { flex-direction: column; align-items: stretch; }
.cookie-lista-nastaveni .cookie-obsah { flex: 0 0 auto; }
@media (max-width: 560px) { .cookie-tlacitka { width: 100%; } .cookie-tlacitka .btn { flex: 1 1 100%; } }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .62em 1.1em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-sm { padding: .42em .85em; font-size: .9rem; }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 2px 8px rgba(242, 106, 33, .3); }
.btn-cta:hover { background: var(--cta-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-link { background: none; color: var(--brand); padding-left: 0; padding-right: 0; }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger-text { color: var(--err); }
.btn:disabled { opacity: .6; cursor: progress; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; }
.inline-form { display: inline; }

/* ---------- hlavička ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo nav" "search search"; gap: 10px 12px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.logo { grid-area: logo; display: flex; }
.logo img { width: 150px; height: auto; }
.search { grid-area: search; display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search:focus-within { border-color: var(--brand); background: var(--surface); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6em 1em; outline: none; }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 16px; cursor: pointer; }
.header-nav { grid-area: nav; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); padding: 8px; border-radius: var(--radius-sm); }
.nav-link:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.nav-text { display: none; }
.header-nav .btn-cta { padding: .55em .9em; font-size: .92rem; }
.badge { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cta); color: #fff; font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }

.cat-nav { border-top: 1px solid var(--line); }
.cat-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; padding: 9px 11px; color: var(--ink-2); font-size: .9rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav a:hover { color: var(--brand); text-decoration: none; }
.cat-nav a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

@media (min-width: 760px) {
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search nav"; gap: 20px; }
  .logo img { width: 170px; }
  .nav-text { display: inline; }
  .badge { position: static; margin-left: -2px; }
}

/* ---------- obsah ---------- */
.main { padding-top: 18px; padding-bottom: 40px; min-height: 60vh; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: #a8b0bf; }
.breadcrumbs a { color: var(--muted); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; background: var(--info-soft); border-left: 4px solid var(--brand); }
.alert-success { background: var(--ok-soft); border-color: var(--ok); }
.alert-error { background: var(--err-soft); border-color: var(--err); }

.block { margin: 28px 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.block-head h2 { margin: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { margin: 0; }
.more { text-align: center; margin-top: 20px; }
.prose { overflow-wrap: anywhere; }
.prose img { border-radius: var(--radius-sm); }
.card-panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.narrow { max-width: 460px; margin: 10px auto; }
.narrow-wide { max-width: 820px; margin: 0 auto; background: var(--surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.actions, .actions-text { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 3fr 2fr; align-items: start; } }

/* ---------- úvod ---------- */
.hero {
  background: linear-gradient(135deg, #1f6fd1 0%, #2f8cf0 60%, #45a4ff 100%);
  color: #fff; border-radius: var(--radius); padding: 28px 22px; margin-bottom: 8px;
}
.hero h1 { color: #fff; }
.hero p { opacity: .92; max-width: 40em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cat-tile { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.cat-tile-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.cat-tile-head img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.cat-tile-subs { margin: 6px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.cat-tile-subs a { color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0; padding: 0; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-active:hover { color: #fff; }
.chips-sm .chip { font-size: .8rem; padding: 3px 10px; }

/* ---------- sekce ---------- */
.group-title { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 18px; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.sub-grid li { background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow); }
.sub-tile { display: block; font-weight: 600; color: var(--ink); }
.sub-links { font-size: .8rem; color: var(--muted); }
.sub-links a { color: var(--muted); }

.location-box { background: var(--surface); border-radius: var(--radius); padding: 10px 14px; margin: 16px 0; box-shadow: var(--shadow); }
.location-box summary { cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--ink-2); list-style: none; }
.location-box summary::-webkit-details-marker { display: none; }
.location-box summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.location-box[open] summary::after { content: "▴"; }

/* ---------- výpis ---------- */
.layout-sidebar { display: grid; gap: 20px; }
@media (min-width: 1000px) { .layout-sidebar { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } }
.sidebar { position: static; }
@media (min-width: 1000px) { .sidebar { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; } }
.side-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.side-box summary { font-weight: 700; cursor: pointer; padding: 2px 4px 8px; }
.side-group { margin: 10px 4px 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); font-size: .92rem; }
.side-list a:hover { background: var(--bg); text-decoration: none; }
.side-list a[aria-current] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 14px; overflow-x: auto; }
.tabs a { padding: 8px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--brand); }
.tabs a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.filters { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; margin-bottom: 14px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .9rem; }
.filters label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.filters input[type=number] { width: 7.5em; }
.filters input, .filters select { padding: .35em .5em; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.list-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }

.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.view-toggle button { border: 0; background: none; padding: 6px 9px; color: var(--muted); cursor: pointer; display: flex; }
.view-toggle button[aria-pressed=true] { background: var(--brand-soft); color: var(--brand); }

/* karty */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .layout-sidebar .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-hover); }
.card-highlight { box-shadow: 0 0 0 2px #ffb347, var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #eef1f6; overflow: hidden; }
/* obrázek je vyjmutý z toku – vysoká fotka by jinak rámeček (aspect-ratio je jen doporučení) i celý řádek karet natáhla */
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card-nophoto { position: absolute; inset: 0; background: center / 48px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8c0ce'%3E%3Cpath d='M4 5h3l2-2h6l2 2h3a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Zm8 3a5 5 0 1 0 0 10 5 5 0 0 0 0-10Z'/%3E%3C/svg%3E"); }
.card-photos { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; padding: 2px 7px; border-radius: 999px; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-title { font-size: .96rem; font-weight: 600; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-price { font-weight: 800; font-size: 1.05rem; margin: 0 0 4px; color: var(--ink); }
.card-text { display: none; color: var(--muted); font-size: .88rem; margin: 0 0 6px; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; margin: auto 0 0; font-size: .8rem; color: var(--muted); }
.card-place { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-ad { padding: 8px; justify-content: center; }
.cards:not(.cards-list) .card-ad { grid-column: 1 / -1; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: var(--brand-soft); color: var(--brand); }
.card-media .tag { position: absolute; left: 8px; top: 8px; }
.card-media .tag + .tag { top: 34px; }
.tag-new { background: #e7f7ee; color: var(--ok); }
.tag-demand { background: #fff1e6; color: #b5520f; }
.tag-rent { background: #f0eafd; color: #6b3fc4; }
.tag-offer { background: var(--brand-soft); color: var(--brand); }
.tag-muted { background: #eef0f4; color: var(--ink-2); }

.fav-btn { position: absolute; z-index: 2; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.fav-btn svg, [data-fav] svg { fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn[aria-pressed=true], [data-fav][aria-pressed=true] { color: #e0245e; }
.fav-btn[aria-pressed=true] svg, [data-fav][aria-pressed=true] svg { fill: currentColor; }

/* seznamové zobrazení */
.cards.cards-list { grid-template-columns: 1fr; gap: 10px; }
.cards-list .card { flex-direction: row; }
.cards-list .card-media { flex: 0 0 34%; max-width: 220px; aspect-ratio: 4 / 3; }
.cards-list .card-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .cards-list .card-title { font-size: 1.05rem; } }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 6px; }
.pagination a, .pagination span { min-width: 40px; padding: 8px 12px; border-radius: 8px; text-align: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .page-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pagination .page-gap { border: 0; background: none; min-width: 0; padding: 8px 2px; }

.empty-state { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 34px 20px; margin: 10px 0; }

.adslot { margin: 18px 0; text-align: center; min-height: 50px; }
.adslot-label { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.card-ad .adslot { margin: 0; }

/* ---------- detail ---------- */
.detail { display: grid; gap: 20px; }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.detail-main { min-width: 0; }
.detail-head h1 { margin: 6px 0 4px; overflow-wrap: anywhere; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-place { display: flex; align-items: center; gap: 4px; color: var(--muted); margin-bottom: 14px; }

.gallery { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; margin-bottom: 18px; }
/* ilustrace profese u inzerátu bez fotky (Images::illustration) – na detailu nižší pruh, kresba je ve středu */
.detail-illustration { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 7; background: #eef1f6; margin-bottom: 18px; }
.detail-illustration img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main { position: relative; display: flex; align-items: center; justify-content: center; background: #10151f; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem; padding: 3px 10px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; overflow-x: auto; }
.gallery-thumbs a { display: block; width: 84px; height: 64px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: .75; }
.gallery-thumbs a[aria-current] { border-color: var(--brand); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-text, .params { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.detail-text .prose { font-size: 1.02rem; }
.params { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 20px; margin: 0 0 18px; }
.params dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.params dd { margin: 2px 0 0; font-weight: 600; }

.detail-side { display: grid; gap: 14px; }
@media (min-width: 960px) { .detail-side { position: sticky; top: 120px; } }
.side-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.side-card h2 { font-size: 1rem; margin-bottom: 8px; }
.side-card p { margin: 0 0 6px; }
.detail-price { font-size: 1.8rem; font-weight: 800; margin: 0 0 12px !important; }
.price-card .btn-block + .btn-block, .price-card .phone-reveal { margin-top: 8px; }
.phone-reveal summary { list-style: none; }
.phone-reveal summary::-webkit-details-marker { display: none; }
.phone-reveal[open] summary { display: none; }
.phone { display: block; text-align: center; font-size: 1.35rem; font-weight: 700; padding: 8px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.side-actions { display: flex; gap: 8px; margin-top: 12px; }
.side-actions .btn { flex: 1; }
.seller-name { font-weight: 700; font-size: 1.05rem; }
.safety ul { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--ink-2); }
.owner .btn + .btn { margin-top: 8px; }

.contact { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; scroll-margin-top: 120px; }
.contact-form { display: grid; gap: 12px 16px; }
@media (min-width: 700px) { .contact-form { grid-template-columns: repeat(3, 1fr); } .field-full { grid-column: 1 / -1; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 12, 20, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: fixed; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- formuláře ---------- */
.form .field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .94rem; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea,
.search-panel input, .search-panel select, .search-inline input {
  width: 100%; padding: .62em .8em; border: 1px solid #cfd5df; border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 111, 209, .15); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:disabled { background: #f1f3f7; color: var(--muted); }
.req { color: var(--err); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err) !important; }
.error { color: var(--err); font-size: .88rem; margin: .35em 0 0; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400 !important; margin: 6px 0; cursor: pointer; }
.check input { margin-top: .3em; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.check.has-error { color: var(--err); }
.counter { display: block; text-align: right; font-size: .78rem; color: var(--muted); margin-top: 3px; }
.counter-warn { color: #b5520f; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .field-row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

.segmented { display: inline-flex; background: #eef1f6; border-radius: 999px; padding: 3px; margin-bottom: 12px; }
.segmented label { margin: 0; font-weight: 600; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: .42em 1em; border-radius: 999px; color: var(--ink-2); font-size: .92rem; }
.segmented input:checked + span { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.segmented input:focus-visible + span { outline: 3px solid rgba(31, 111, 209, .45); }

.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-suffix span { display: flex; align-items: center; padding: 0 12px; background: #eef1f6; border: 1px solid #cfd5df; border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }

.form-layout { display: grid; gap: 24px; }
@media (min-width: 1000px) { .form-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .form-tips { position: sticky; top: 120px; } }
.form-section { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 8px; margin: 0 0 16px; min-width: 0; }
.form-section legend { float: left; width: 100%; font-size: 1.12rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.form-section legend + * { clear: both; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .9rem; }
.legend-hint { font-size: .85rem; font-weight: 400; color: var(--muted); }
.form-submit { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 6px 0 20px; }
.tips { padding-left: 18px; margin: 0 0 12px; }
.tips li { margin-bottom: 6px; }

.cat-picker-js { display: grid; gap: 8px; }
@media (min-width: 640px) { .cat-picker-js { grid-template-columns: 1fr 1fr; } }

.autocomplete { position: relative; }
.autocomplete ul { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); max-height: 280px; overflow: auto; }
.autocomplete li { padding: 7px 10px; border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; }
.autocomplete li small { color: var(--muted); }
.autocomplete li[aria-selected=true], .autocomplete li:hover { background: var(--brand-soft); }
.autocomplete-ok input[name=obec_nazev] { border-color: var(--ok) !important; background: var(--surface) right 10px center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a8a4a'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2Z'/%3E%3C/svg%3E"); }

.dropzone { position: relative; display: block; border: 2px dashed #b9c3d3; border-radius: var(--radius); background: #f8fafd; padding: 26px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; font-weight: 400 !important; }
.dropzone:hover, .dropzone-over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-text { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-2); pointer-events: none; }
.dropzone-text svg { color: var(--brand); }
.dropzone-text small { color: var(--muted); }
.dropzone-busy { opacity: .6; }
.dropzone-full { display: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.photo-grid:empty { display: none; }
.photo-grid li { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #eef1f6; aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid li:first-child::after { content: "Hlavní"; position: absolute; left: 6px; top: 6px; background: var(--brand); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 999px; }
.photo-remove { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: .78rem !important; padding: 3px 6px; display: flex !important; gap: 4px; align-items: center; margin: 0 !important; }
.photo-remove-btn { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

.search-panel { display: grid; gap: 10px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 18px; align-items: end; }
@media (min-width: 760px) { .search-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); } .search-panel .field-grow { grid-column: span 2; } }
.search-panel .field label { font-size: .85rem; }
.search-panel .field { margin: 0; }
.search-inline { display: flex; gap: 8px; max-width: 460px; margin: 16px auto 0; }

.my-ads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.my-ad { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px 14px; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.my-ad img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; background: #eef1f6; }
.my-ad-title { font-weight: 700; color: var(--ink); }
.my-ad-body p { margin: 2px 0 0; font-size: .86rem; }
.my-ad-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.my-ad-actions form { display: contents; }
@media (min-width: 760px) { .my-ad { grid-template-columns: 84px minmax(0, 1fr) auto; } .my-ad-actions { grid-column: auto; } }

.success-box { max-width: 640px; margin: 20px auto; text-align: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 22px; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 34px; line-height: 64px; font-weight: 700; }
.success-box .hero-actions { justify-content: center; }

.sitemap { columns: 260px; column-gap: 24px; }
.sitemap section { break-inside: avoid; margin-bottom: 18px; background: var(--surface); padding: 14px 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.sitemap ul { margin: 0; padding-left: 18px; font-size: .92rem; }

/* ---------- patička ---------- */
.site-footer { background: #121a29; color: #b9c2d3; margin-top: 30px; padding: 32px 0 20px; font-size: .92rem; }
.site-footer a { color: #dfe6f3; }
.site-footer h2 { color: #fff; font-size: .95rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 5px; }
.site-footer .link-button { color: #dfe6f3; }
.footer-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-logo { filter: brightness(0) invert(1); opacity: .9; margin-bottom: 10px; }
.partners { margin-top: 22px; font-size: .8rem; color: #8592a8; }
.copyright { margin-top: 18px; padding-top: 14px; border-top: 1px solid #263248; font-size: .82rem; color: #8592a8; }

/* ---------- tisk (Můj výběr) ---------- */
/* ---------- AI asistent inzerátu ---------- */
.ai-box { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-soft), #f3ecff); border: 1px solid #cfe0f7; }
.ai-box-head { display: grid; gap: 2px; margin-bottom: 10px; }
.ai-box-head span { color: var(--ink-2); font-size: .92rem; }
.ai-box-row { display: grid; gap: 8px; }
@media (min-width: 640px) { .ai-box-row { grid-template-columns: minmax(0, 1fr) auto; } }
.ai-box-row input { width: 100%; padding: .6em .8em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.price-advice { display: block; margin-top: 6px; font-size: .9rem; }
.price-compare { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); }
.ai-status { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); min-height: 1.4em; }
.ai-busy .ai-status::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.1em; border: 2px solid var(--brand); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-result { margin-top: 8px; padding-top: 8px; border-top: 1px solid #cfe0f7; }
.ai-found { margin: 0; font-weight: 600; }
.price-variants { margin-top: 14px; }
.price-variants-title { margin: 0 0 6px; font-weight: 600; }
.price-variants-row { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-variant { display: grid; gap: 2px; padding: 10px 8px; text-align: center; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.price-variant:hover { border-color: var(--brand); }
.price-variant[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.price-variant-name { font-size: .82rem; color: var(--ink-2); }
.price-variant strong { font-size: 1.1rem; }
.price-variant small { font-size: .74rem; color: var(--muted); }
.price-sources { margin-top: 6px; font-size: .88rem; }
.price-sources summary { cursor: pointer; color: var(--brand); }
.price-sources ul { margin: 6px 0 0; padding-left: 18px; }
.cf-turnstile { margin: 4px 0 14px; }

/* ---------- našeptávač hledání ---------- */
.suggest-holder { position: relative; overflow: visible; }
.suggest { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); max-height: 60vh; overflow: auto; }
.suggest li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--brand-soft); }
.suggest small { color: var(--muted); white-space: nowrap; }
.search.suggest-holder input { border-radius: 999px 0 0 999px; }
.search.suggest-holder button { border-radius: 0 999px 999px 0; }
.search-tips { margin: 0 0 14px; color: var(--ink-2); }
.search-tips a { margin-right: 10px; }

/* ---------- moderace ---------- */
.mod-tools { margin-bottom: 14px; }
.mod-tools summary { cursor: pointer; font-weight: 600; }
.mod-inline, .mod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mod-actions { position: sticky; top: 0; z-index: 5; padding: 8px 0; background: var(--bg); }
.mod-stats { margin-bottom: 12px; }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mod-item { display: grid; grid-template-columns: auto 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.mod-item img, .mod-nophoto { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.mod-item h2 { font-size: 1rem; margin: 0 0 4px; }
.mod-reason { margin: 0 0 4px; font-size: .88rem; color: var(--ink-2); }
.mod-text { margin: 0 0 4px; font-size: .9rem; overflow-wrap: anywhere; }
.mod-confirmed { opacity: .65; }
.mod-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: .9rem; }
.mod-table th, .mod-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .mod-item { grid-template-columns: auto minmax(0, 1fr); } .mod-item img, .mod-nophoto { display: none; } }

/* ---------- úvod: hledání v hlavním bloku, kompaktní kategorie na mobilu ---------- */
.hero-search { display: flex; gap: 8px; max-width: 640px; margin-top: 14px; }
.hero-search input { flex: 1; min-width: 0; padding: .8em 1.1em; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: 1.02rem; box-shadow: 0 4px 18px rgba(10, 30, 70, .22); }
.hero-search .btn { border-radius: 999px; background: var(--ink); padding-inline: 1.4em; }
.hero-search .btn:hover { background: #000; }
.hero-search.suggest-holder .suggest { color: var(--ink); }
.hero-popular { margin: 10px 0 0; font-size: .9rem; }
.hero-popular a { color: #fff; text-decoration: underline; margin-left: 8px; }
@media (max-width: 639px) {
  .hero { padding: 20px 16px; }
  .hero-actions .btn-ghost { display: none; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { padding: 10px; }
  .cat-tile-head { font-size: .92rem; gap: 8px; line-height: 1.25; }
  .cat-tile-head img { width: 30px; height: 30px; }
  .cat-tile-subs { display: none; }
}
.img-missing { object-fit: contain !important; background: var(--bg); padding: 12%; }
.gallery-main .img-missing { background: #eef1f6; }

/* ---------- nahlášení inzerátu, pravidla ---------- */
.report { margin-top: 10px; font-size: .9rem; }
.report summary { cursor: pointer; color: var(--muted); }
.report-form { display: grid; gap: 6px; margin-top: 8px; }
.report-form select, .report-form textarea { width: 100%; padding: .5em .6em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.rules { max-width: 820px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px clamp(16px, 4vw, 34px); }
.rules h2 { margin-top: 1.4em; }
.rules li { margin-bottom: .35em; }

/* ---------- ikony sekcí (assets/img/kategorie/*.svg) ---------- */
.with-icon { display: flex; align-items: center; gap: 10px; }
.with-icon img { flex: none; border-radius: 10px; }
.cat-tile-head img { border-radius: 10px; }
.cat-tile:hover { box-shadow: var(--shadow-hover); }
.cat-tile { transition: box-shadow .15s; }

@media print {
  .site-header, .site-footer, .breadcrumbs, .fav-btn, .adslot, .card-ad, .page-head .btn, [data-fav-clear], .view-toggle { display: none !important; }
  body { background: #fff; }
  .cards { grid-template-columns: 1fr 1fr !important; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .card-text { display: block; }
}

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

/* ---------- feedy e-shopů (/pro-eshopy/, /moderace/feedy/) ---------- */
.feed-steps { display: grid; gap: 12px; margin: 14px 0; }
@media (min-width: 760px) { .feed-steps { grid-template-columns: repeat(3, 1fr); } }
.feed-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.feed-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.feed-row-main { flex: 1 1 320px; min-width: 0; }
.feed-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.feed-url { overflow-wrap: anywhere; font-size: .88rem; }
.feed-state { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: .78rem; font-weight: 600; background: #eef1f6; color: var(--ink-2); vertical-align: middle; }
.feed-state-1 { background: #fff3d6; color: #7a5200; }
.feed-state-2 { background: #dff5e6; color: #14693a; }
.feed-state-4 { background: #fde3e3; color: #9b1c1c; }
.feed-add { margin-top: 16px; max-width: 640px; }
.feed-form fieldset { border: 0; margin: 0 0 14px; min-width: 0; }
.feed-form legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.feed-form legend + * { clear: both; }
.feed-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.feed-mode > span { flex: 0 0 170px; font-weight: 600; }
.feed-mode select, .feed-mode input:not([type=radio]), .feed-map select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; max-width: 100%; min-width: 0; }
.feed-mode input:not([type=radio]) { flex: 1 1 160px; }
.feed-count { margin: 10px 0 0; font-weight: 600; color: #14693a; }
.feed-count-zero { color: #9b1c1c; }
.feed-map { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.feed-map th, .feed-map td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.feed-map thead th { border-top: 0; font-size: .82rem; color: var(--muted); font-weight: 600; }
.feed-map tbody th { font-weight: 600; white-space: nowrap; }
.feed-map select { width: 100%; }
.feed-example { color: var(--ink-2); font-size: .88rem; overflow-wrap: anywhere; }
.feed-example-empty { color: var(--muted); font-style: italic; }
.feed-params { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.feed-preview { pointer-events: none; }
.feed-preview .card-media img { width: 100%; height: 100%; object-fit: cover; }
.feed-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.feed-stats { border-collapse: collapse; margin-bottom: 12px; }
.feed-stats th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 3px 18px 3px 0; vertical-align: top; }
.feed-stats td { font-weight: 600; padding: 3px 0; overflow-wrap: anywhere; }
.feed-rejected { margin-bottom: 12px; }
.mod-feed-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 12px; }
.mod-feed-actions p { flex: 1 1 100%; }
@media (max-width: 640px) {
  .feed-map thead { display: none; }
  .feed-map tr { display: block; padding: 8px 0; border-top: 1px solid var(--line); }
  .feed-map th, .feed-map td { display: block; border: 0; padding: 2px 0; white-space: normal; }
  .feed-mode > span { flex-basis: calc(100% - 30px); }
}
.feed-mode > span:last-child { flex: 1 1 auto; }
.feed-cats td:first-child { overflow-wrap: anywhere; }
.feed-cat-1 td:first-child { font-weight: 700; }
.feed-cat-2 td:first-child { padding-left: 22px; }
.feed-cat-3 td:first-child { padding-left: 44px; color: var(--ink-2); }
.feed-cat-4 td:first-child { padding-left: 66px; color: var(--ink-2); font-size: .9rem; }
@media (max-width: 640px) { .feed-cats td:first-child { padding-left: 0; } }
