/* #1562 public offer web. Layout follows sreal.at (INT-102): white header, search hero, card grid. */
:root {
  --ink: #1d2733;
  --muted: #5b6878;
  --line: #dde3ea;
  --bg: #ffffff;
  --soft: #f3f6f9;
  --accent: #0b5cad;
  --accent-ink: #ffffff;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--accent); }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { max-height: 48px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.2rem; }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }

.hero { background: linear-gradient(135deg, #0b5cad, #0a3d73); color: #fff; padding: 56px 0 40px; }
.hero h1 { font-size: 2.2rem; }
.hero-sub { margin: 0 0 24px; opacity: 0.9; }
.hero-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #fff; padding: 12px; border-radius: var(--radius); color: var(--ink); }
.hero-search select { flex: 1 1 180px; }
.hero-all a { color: #fff; }
.segmented { display: flex; gap: 8px; border: 0; margin: 0; padding: 0; }
.segmented label { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }

select, input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); min-width: 0; width: 100%; }
.button { display: inline-block; font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; text-align: center; }
.button-secondary { background: #fff; color: var(--accent); }
.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 16px; background: var(--soft); border-radius: var(--radius); margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.field-wide { grid-column: span 2; }
.filter-actions { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.result-count { font-weight: 600; }
.empty { padding: 24px; background: var(--soft); border-radius: var(--radius); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo-empty { color: var(--muted); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.card-body { padding: 12px 14px 16px; }
.card-kind { margin: 0; color: var(--muted); font-size: 0.85rem; }
.card-title { font-size: 1.05rem; margin: 4px 0; }
.card-place { margin: 0; color: var(--muted); }
.card-facts { display: flex; gap: 12px; margin: 6px 0; }
.card-price { font-weight: 700; font-size: 1.1rem; margin: 0; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 24px; }

.breadcrumbs { color: var(--muted); font-size: 0.9rem; }
.detail-place { color: var(--muted); margin-top: 0; }
.gallery-main { margin: 16px 0 8px; }
.gallery-main img { width: 100%; height: auto; max-height: 620px; object-fit: contain; background: var(--soft); border-radius: var(--radius); }
.gallery-strip { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 0; margin: 0; }
.gallery-strip img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; }
.gallery-empty { padding: 60px; text-align: center; background: var(--soft); border-radius: var(--radius); color: var(--muted); }
.key-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; margin: 16px 0; background: var(--soft); border-radius: var(--radius); }
.key-facts li { display: flex; flex-direction: column; min-width: 120px; }
.key-facts span { color: var(--muted); font-size: 0.85rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.detail-section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-price { font-size: 1.6rem; font-weight: 700; margin: 0; }
.props { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.props dt { color: var(--muted); }
.props dd { margin: 0; }
.description { white-space: pre-line; }
.broker-card { position: sticky; top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.broker-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }
.broker-name { font-weight: 700; margin: 0; }

.area-map { position: relative; height: 320px; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.area-map-tile { position: absolute; width: 256px; height: 256px; max-width: none; }
.area-map-circle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(11, 92, 173, 0.18); border: 2px solid rgba(11, 92, 173, 0.8); }

.contact-box { background: var(--soft); border-radius: var(--radius); margin-bottom: 32px; }
.contact-box p { display: flex; gap: 12px; flex-wrap: wrap; }
.prose { max-width: 760px; }
.placeholder { padding: 12px; border: 1px dashed #b26b00; background: #fff8ec; border-radius: 8px; }

.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 32px 0; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.footer-grid p { margin: 4px 0; }

.consent { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08); padding: 16px 0; z-index: 10; }
.consent[hidden] { display: none; }
.consent-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent-row p { margin: 0; flex: 1 1 320px; }
.consent-actions { display: flex; gap: 8px; }

@media (max-width: 760px) {
  h1, .hero h1 { font-size: 1.5rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .broker-card { position: static; }
}
