/* #1562 public offer web. Layout follows sreal.at (INT-102): white header, search hero, card grid. */
/* #1736: the colours below are the neutral default; base.html overrides them from the tenant theme. */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("quicksand-latin-ext-wght-normal.woff2") format("woff2");
  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: "Quicksand";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("quicksand-latin-wght-normal.woff2") format("woff2");
  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 {
  --ink: #1d2733;
  --primary: #1d2733;
  --secondary: #0b5cad;
  --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);
}
:root.font-quicksand { font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--secondary); }
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: 600; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--secondary); }
.top-bar { background: var(--primary); color: #fff; font-size: 0.85rem; }
.top-bar-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; padding: 6px 16px; }
.top-bar a { color: #fff; text-decoration: none; }
.top-bar a:hover, .top-bar a:focus-visible { text-decoration: underline; }
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 8px 0 0; }

.hero { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; padding: 56px 0 40px; }
.hero h1 { font-size: 2.2rem; }
.hero-sub { margin: 0 0 24px; opacity: 0.9; }
.hero-search { background: #fff; padding: 12px; border-radius: var(--radius); color: var(--ink); margin-bottom: 8px; }
.hero-all a, .hero-more a { color: #fff; }
.hero-more { margin: 0 0 4px; }
.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(--secondary); border-color: var(--secondary); }
.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--secondary); text-decoration: underline; cursor: pointer; }

.filters { 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; }
.location-suggest { margin-bottom: 4px; }
.location-extra { border: 0; margin: 6px 0 0; padding: 0; font-size: 0.9rem; }
.location-extra legend { font-size: 0.85rem; font-weight: 600; padding: 0; }
.location-extra label { display: block; font-weight: 400; }
.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: var(--accent-ink); 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; }
.price-vat { font-weight: 400; font-size: 0.9em; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; 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 a { display: block; cursor: zoom-in; }
.gallery-strip a:focus-visible, .gallery-main a:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 2px; }
.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 li { flex: 0 0 auto; }
.gallery-strip a { display: block; }
.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; }
.broker-card-wide { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 24px; }
.broker-card-wide .button { margin: 8px 8px 0 0; }
.broker-page-link { 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); }

.media-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-open { margin: 8px 0 0; }

.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; }
  .search-strip { grid-template-columns: 1fr; }
  .result-bar { flex-direction: column; align-items: stretch; }
  .broker-card { position: static; }
}

/* #1784: search strip, Dalsie filtre, chips, sort by the count, numbered pager. */
.search-strip { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.field-submit .button { width: 100%; }
.more-filters { margin-top: 12px; }
.more-filters > summary { cursor: pointer; font-weight: 600; color: var(--secondary); padding: 4px 0; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 12px 0; }
.rooms { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.rooms legend { font-size: 0.85rem; font-weight: 600; padding: 0; margin-bottom: 4px; width: 100%; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }
.check input { width: auto; }
.filter-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; }
.chip { display: inline-block; padding: 4px 12px; border: 1px solid var(--secondary); border-radius: 999px; color: var(--secondary); text-decoration: none; }
.chip-clear { display: inline-block; padding: 4px 0; color: var(--secondary); }
.result-bar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.sort-form { display: flex; gap: 8px; align-items: center; }
.sort-form label { font-weight: 600; }
.sort-form select { width: auto; }
.js .sort-form [data-sort-submit] { display: none; }
.pager-pages { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; flex-wrap: wrap; }
.pager-page { display: inline-block; min-width: 40px; padding: 8px 10px; text-align: center; border: 1px solid var(--line); border-radius: 8px; color: var(--secondary); text-decoration: none; }
.pager-page.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pager-gap { padding: 8px 4px; color: var(--muted); }

/* #1742: unit price, 3D label, other offers, print. */
.badge-3d { left: auto; right: 10px; background: var(--ink); }
.card-unit-price { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }
.related { border-top: 1px solid var(--line); }

@media print {
  @page { margin: 15mm; }
  body { color: #000; background: #fff; }
  a { color: inherit; text-decoration: none; }
  .main-nav, .gallery-strip, .filters, .pager, .consent, .related, .breadcrumbs, .link-button { display: none !important; }
  .site-header, .site-footer { border: 0; background: #fff; }
  .section { padding: 0; }
  .detail-grid { display: block; }
  .gallery-main img { max-height: 9cm; background: #fff; }
  .broker-card { position: static; border: 1px solid #999; break-inside: avoid; }
  .broker-card .button { border: 0; background: none; color: #000; padding: 0; text-align: left; font-weight: 600; }
  .broker-card .button-secondary { display: none; }
  .detail-section, .key-facts, .area-map { break-inside: avoid; }
  .media-embed { display: none; }
}
