@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/DM-Sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/DM-Sans-latin.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 {
  --bg: #f6f8fc;
  --surface: #fff;
  --ink: #14233b;
  --muted: #5b677a;
  --blue: #2856f6;
  --hover: #1e43cb;
  --coral: #ff785a;
  --border: #dfe5ef;
  --sky: #ecf2ff;
  --error: #a12437;
  --good: #166243;
  --shadow: 0 12px 32px #192f6610;
  --radius: 1rem;
  color: var(--ink);
  font: 16px/1.5 "DM Sans", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--hover);
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
h1 { font-size: clamp(2rem, 4.4vw, 3.9rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -.035em; }
h3 { font-size: 1.08rem; letter-spacing: -.012em; }
li { overflow-wrap: anywhere; }
button:disabled { color: var(--muted); background: var(--bg); border-color: var(--border); cursor: default; }
[hidden] { display: none !important; }
.ico { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; vertical-align: -.24em; }
.shell { width: min(100% - 5rem, 80rem); margin-inline: auto; }
.section { margin-block: 3.3rem; }
.section-heading, .page-heading { margin-bottom: 1.4rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-heading p, .page-heading p { margin-top: .54rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; translate: 0 -160%; z-index: 10; margin: .75rem; background: var(--surface); padding: .6rem 1rem; border-radius: .5rem; }
.skip:focus { translate: 0; }
.btn, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; background: transparent; color: var(--ink);
  min-height: 2.75rem; border-radius: .72rem; padding: .65rem 1rem;
  font-weight: 650; line-height: 1.25; text-align: center;
}
.icon-btn { padding: 0; min-width: 2.75rem; }
.btn:hover, .icon-btn:hover { background: var(--sky); }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--hover); }
.outline { border-color: var(--border); background: var(--surface); }
.danger { color: var(--error); }
.text-link { color: var(--hover); font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; }
.text-link:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .60rem; white-space: nowrap; font-weight: 790; letter-spacing: -.045em; font-size: 1.20rem; }
.brand img { width: 2.35rem; height: 2.35rem; }
.brand b { color: var(--blue); font-weight: 790; }
.header { background: var(--surface); border-bottom: 1px solid #dfe5efb0; }
.header-inner { display: flex; justify-content: space-between; gap: 1.75rem; align-items: center; min-height: 4.625rem; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.language-picker { position: relative; flex: 0 0 auto; font-size: .875rem; }
.language-choice, .language-options button {
  display: flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .35rem .55rem;
  color: var(--ink); background: var(--surface); line-height: 1.2; white-space: nowrap;
}
.language-choice { border: 1px solid var(--border); border-radius: .65rem; }
.language-choice::after {
  content: ""; flex: 0 0 auto; width: .4rem; height: .4rem; margin: -.15rem .12rem 0 .05rem;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.language-flag { flex: 0 0 auto; width: 20px; height: 14px; border-radius: 2px; outline: 1px solid #14233b29; }
.language-options {
  position: absolute; z-index: 6; inset: calc(100% + .28rem) 0 auto auto; min-width: 100%; width: max-content;
  margin: 0; padding: .25rem; list-style: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: .65rem; box-shadow: var(--shadow);
}
.language-options button { width: 100%; border: 0; border-radius: .4rem; }
.language-options button:hover, .language-options button[aria-current] { background: var(--sky); }
.language-options button:focus-visible { outline-offset: -2px; }
.header-account { white-space: nowrap; }
.mobile-nav { display: none; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr minmax(15rem, 28%); gap: 1.25rem; overflow: hidden; background: #eaf0ff; border: 1px solid #dce6ff; border-radius: 1.65rem; margin-top: 1.7rem; padding: 3rem 3.1rem 2.35rem; }
.hero-copy { grid-column: 1 / -1; width: min(44rem, 76%); }
.hero h1 { max-width: 41rem; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p { margin-top: 1rem; color: #455672; max-width: 39rem; font-size: 1.08rem; }
.quick-search { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr 1.12fr auto; gap: .45rem; background: var(--surface); border: 1px solid #dce5fb; padding: .45rem; border-radius: 1rem; box-shadow: 0 10px 26px #20356411; margin-top: .48rem; }
.quick-search .search-control { display: grid; grid-template-columns: auto 1fr; gap: .5rem; align-items: center; padding-left: .55rem; border-right: 1px solid var(--border); min-width: 0; }
.search-control .ico { color: #536587; }
.quick-search .search-control:last-of-type { border-right: 0; }
.quick-search input, .quick-search select { display: block; width: 100%; border: none; background-color: var(--surface); color: var(--ink); padding: .64rem .75rem .64rem .2rem; min-height: 2.75rem; border-radius: .3rem; }
.quick-search button { min-height: 3.05rem; padding-inline: 1.12rem; }
.hero-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-actions a { background: #f8faff; border: 1px solid #dbe5fe; border-radius: 2rem; padding: .5rem .86rem; font-size: .9rem; min-height: 2.65rem; }
.hero-actions a:hover { background: var(--surface); border-color: #adbfef; }
.hero-actions .ico { color: var(--blue); width: 1rem; height: 1rem; }

.category-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.category-grid li { min-width: 0; }
.category-card { display: flex; align-items: center; gap: .65rem; min-height: 4.5rem; height: 100%; padding: .72rem; border: 1px solid var(--border); border-radius: .9rem; background: var(--surface); font-weight: 650; font-size: .93rem; line-height: 1.25; }
.category-card:hover { border-color: #a6baf6; box-shadow: var(--shadow); }
.category-icon { width: 2.45rem; height: 2.45rem; flex: none; display: grid; place-items: center; color: var(--hover); border-radius: .68rem; background: var(--sky); }
.category-grid li:nth-child(3n + 2) .category-icon { color: #823d5e; background: #f8e9f2; }
.category-grid li:nth-child(3n + 3) .category-icon { color: #82472f; background: #fcecdf; }
.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.listing-card { position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.listing-card:hover { border-color: #a6baf6; box-shadow: var(--shadow); }
.card-image { display: block; position: relative; aspect-ratio: 1.52; overflow: hidden; background: #e9f0fc; }
.card-image img, .main-photo img, .gallery-thumbs img, .upload-grid img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { display: grid; place-content: center; justify-items: center; gap: .45rem; width: 100%; height: 100%; color: #566a8a; font-size: .85rem; background-image: linear-gradient(150deg, #f6f8fe, #e4edff); }
.image-placeholder .ico { width: 2rem; height: 2rem; }
.heart-btn { position: absolute; z-index: 1; display: grid; place-items: center; top: .55rem; right: .55rem; border: 1px solid #e8ecf5; box-shadow: 0 3px 12px #12224220; background: white; border-radius: 50%; }
.heart-btn[aria-pressed="true"] { color: #9d2a59; background: #fff0f4; }
.heart-btn[aria-pressed="true"] svg { fill: currentColor; }
.card-body { display: grid; gap: .38rem; padding: .9rem .9rem 1rem; }
.card-title { overflow-wrap: anywhere; max-width: 100%; }
.card-title:hover { color: var(--hover); text-decoration: underline; }
.card-meta { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .9rem; }
.card-meta .ico { width: 1rem; height: 1rem; }
.translation-status, .translation-original { margin-block: .15rem; }
.translation-original summary { cursor: pointer; }
.translation-attribution { display: block; width: fit-content; margin-top: .3rem; }
.translation-attribution img { max-width: 100%; height: auto; }
.badges { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: .18rem .56rem; background: #edf1f8; color: #455672; border-radius: .35rem; font-size: .8rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.badge.sale, .badge.published { background: #e7f5ed; color: #225e43; }
.badge.rent, .badge.pending { background: #e8eeff; color: #243fa0; }
.badge.service, .badge.refused { background: #fcece5; color: #843a26; }
.price { font-size: 1.25rem; font-weight: 790; letter-spacing: -.025em; }
.listing-card .price { margin-top: .18rem; }
.price span { font-size: .875rem; font-weight: 550; letter-spacing: 0; color: var(--muted); }
.empty { min-height: 10rem; display: grid; align-content: center; justify-items: center; gap: .55rem; padding: 1.75rem 1rem; text-align: center; border: 1px dashed #c8d4e9; background: #f9fbff; border-radius: var(--radius); }
.empty > .ico { color: var(--blue); width: 1.75rem; height: 1.75rem; }
.empty p { color: var(--muted); max-width: 38rem; }
.demo-banner { display: inline-flex; margin-bottom: 1rem; padding: .35rem .7rem; color: #624520; border-radius: .5rem; background: #fcefd9; font-size: .9rem; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.how article { border-radius: var(--radius); padding: 1.2rem; background: var(--surface); border: 1px solid var(--border); }
.how .category-icon { margin-bottom: .85rem; }
.how p { margin-top: .45rem; color: var(--muted); font-size: .94rem; }

.page { padding-block: 2rem 3.8rem; min-height: 54vh; }
.back-link { margin-bottom: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; }
.panel + .panel { margin-top: 1rem; }
.stack { display: grid; gap: 1rem; }
.stack-tight { display: grid; gap: .65rem; }
.split { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.spread { justify-content: space-between; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: .45rem; }
.form-actions > :first-child { margin-right: auto; }
.field { display: grid; gap: .23rem; min-width: 0; }
.field label { font-weight: 660; }
.field small { color: var(--muted); }
.field .field-error { color: var(--error); }
.field :is(input:not([type="checkbox"]), textarea, select) {
  width: 100%; min-width: 0; background-color: var(--surface); color: var(--ink);
  border: 1px solid #7f8da5; border-radius: .58rem; padding: .60rem .72rem; min-height: 2.8rem;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b677a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: .98rem; background-position: right .55rem center; padding-right: 1.8rem !important; }
.field input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin-right: .4rem; accent-color: var(--blue); }
.field :is(input, select):disabled { background-color: #f0f3f9; color: var(--muted); }
.field textarea { min-height: 7.2rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.listing-location-options {
  max-block-size: min(14rem, 35dvh); overflow-y: auto; overscroll-behavior: contain;
  list-style: none; margin: 0; padding: .22rem; border: 1px solid var(--border); border-radius: .58rem;
}
.listing-location-options [role="option"] {
  display: grid; align-content: center; min-height: 2.75rem; padding: .4rem .5rem;
  border-radius: .35rem; cursor: pointer; overflow-wrap: anywhere;
}
.listing-location-options [role="option"]:hover,
.listing-location-options [aria-selected="true"] { background: var(--sky); }
.form-error, .notice { border-radius: .55rem; padding: .72rem .85rem; background: var(--sky); color: #243b68; }
.form-error, .notice.error { background: #fff1f3; color: var(--error); }
.notice.success { background: #eaf7ed; color: var(--good); }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.filters-extra { padding: 0 .85rem .85rem; }
.sort-field { flex: 0 1 21rem; }
.filter-layout .section-heading { align-items: start; }
.filter-layout .listing-grid { margin-top: 1rem; }
.chip { border-radius: 2rem; min-height: 2.5rem; padding: .43rem .72rem; background: var(--sky); color: var(--hover); }
.pagination { margin-top: 1.5rem; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .75rem; }
.pagination strong { color: var(--muted); }
.details-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(18rem, .95fr); align-items: start; gap: 1.25rem; }
.details-layout h1 { font-size: clamp(1.9rem, 4vw, 3rem); overflow-wrap: anywhere; }
.details-layout .price { display: block; font-size: 1.85rem; }
.details-layout .card-meta span { overflow-wrap: anywhere; }
#listing-facts:empty { display: none; }

.location-card { width: min(100%, 44rem); margin-top: 1.25rem; }
.location-card h2 { margin-bottom: .25rem; }
.location-card .location-name { margin: 0; overflow-wrap: anywhere; }
.location-card [data-location-map]:empty { display: none; }
.location-map { margin: .75rem 0 0; }
.location-map-trigger { display: block; width: 100%; padding: 0; border: 0; border-radius: .7rem; background: transparent; }
.location-map-interactive { display: block; width: 100%; min-height: 225px; aspect-ratio: 440 / 250; border: 1px solid var(--border); border-radius: .7rem; }
.location-map-notice { margin-bottom: .45rem; }
.location-map-notice a { text-decoration: underline; }
.location-map-image { --location-map-nearby-size: 19px; --location-map-selected-size: 24px; display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: .7rem; background: #f0f3f5; overflow: hidden; }
.location-map-land { fill: #e6eee6; stroke: #a7bcb4; stroke-width: 1.3; }
.location-map-neighbour { fill: none; stroke: #a7bcb4; stroke-width: 1; }
.location-map-highlight { fill: #b6cafa; fill-opacity: .87; stroke: var(--hover); stroke-width: 2.6; stroke-linejoin: round; }
.location-map-area { stroke-dasharray: 5 4; }
.location-map-image path, .location-map-highlight { vector-effect: non-scaling-stroke; }
.location-map-image text { text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: #f8faff; stroke-width: 4; stroke-linejoin: round; }
.location-map-nearby { font-size: 14px; }
.location-map-selected { font-size: 19px; font-weight: 700; }
.location-map-north, .location-map-scale { font-size: 13px; font-weight: 600; fill: var(--ink); }
.location-map-scale path { fill: none; stroke: currentColor; }
.location-map-scale text { text-anchor: start; }
.location-map figcaption { margin-top: .25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; color: var(--muted); font-size: .8125rem; }
.location-map figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 480px) {
  .location-map-nearby { font-size: var(--location-map-nearby-size); }
  .location-map-selected { font-size: var(--location-map-selected-size); }
  .location-map-north, .location-map-scale { font-size: 17px; }
}

.main-photo { aspect-ratio: 1.5; overflow: hidden; border-radius: var(--radius); background: #e9f0fc; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem; margin-inline: -.3rem; }
.gallery-thumbs button { padding: 0; flex: 0 0 4.7rem; height: 3.8rem; border: 2px solid transparent; border-radius: .55rem; overflow: hidden; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(6rem, 1fr) 2fr; gap: .55rem .65rem; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 570; }
.aside-card .btn { width: 100%; }
.auth-panel { width: min(100%, 32rem); margin-inline: auto; }
.auth-panel h1 { font-size: 2.2rem; }
.editor { width: min(100% - 3rem, 51rem); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0 0 1.2rem; gap: .5rem; }
.steps li { border-top: 3px solid var(--border); padding-top: .5rem; color: var(--muted); font-size: .9rem; }
.steps li[aria-current="step"] { border-color: var(--blue); color: var(--hover); font-weight: 700; }
.steps li.complete { border-color: #5a9c7a; color: var(--good); }
.upload-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0; gap: .75rem; }
.upload-grid li { border: 1px solid var(--border); border-radius: .65rem; overflow: hidden; background: var(--surface); }
.upload-grid img { height: 6.5rem; }
.upload-grid .row { gap: .15rem; padding: .2rem; }
.upload-grid .icon-btn { min-width: 2.7rem; }
.dash-nav { overflow-x: auto; padding: .25rem; margin: -.25rem -.25rem 1rem; display: flex; gap: .35rem; }
.dash-nav a { white-space: nowrap; }
.dash-nav a[aria-current="page"] { color: var(--hover); background: var(--sky); }
.result-list { display: grid; gap: .65rem; padding: 0; list-style: none; margin: 0; }
.result-list > li { border: 1px solid var(--border); border-radius: .65rem; padding: .85rem; overflow-wrap: anywhere; }
.result-list h3 { margin-bottom: .35rem; }
.conversations { display: grid; gap: 1rem; grid-template-columns: minmax(15rem, 1fr) minmax(0, 2fr); align-items: start; }
.thread { max-height: 32rem; overflow-y: auto; }
.bubble { padding: .65rem .8rem; border-radius: .8rem; background: var(--bg); max-width: min(100%, 32rem); width: fit-content; }
.bubble.mine { margin-left: auto; background: var(--sky); }
.bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { font-size: .85rem; color: var(--muted); }
.footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 1.25rem; }
.footer-inner { display: grid; gap: .65rem; }
.footer-general { display: flex; gap: .4rem 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: .15rem 1rem; font-size: .92rem; color: var(--muted); }
.footer-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
button.footer-link { padding: 0; border: 0; color: inherit; background: transparent; text-align: start; }
.footer-link:hover, .footer-link[aria-current="page"] { text-decoration: underline; }
.footer-legal { padding-top: .4rem; border-top: 1px solid var(--border); justify-content: center; }
.legal-document { max-width: 52rem; }
.legal-document h1, .legal-document h2 { overflow-wrap: anywhere; }
.legal-document > article { display: grid; gap: 1rem; }
.legal-document dl { display: grid; gap: .8rem; margin: 0; }
.legal-document dt { font-weight: 650; }
.legal-document dd { margin: 0; overflow-wrap: anywhere; }
.legal-document .text-link { min-height: 2rem; }
.loading { padding-block: 4rem; color: var(--muted); }
.toast { position: fixed; z-index: 8; right: 1rem; bottom: 1rem; max-width: min(26rem, 100% - 2rem); padding: .72rem 1rem; border-radius: .6rem; background: var(--ink); color: white; box-shadow: var(--shadow); }
.notice-editor { margin-bottom: .8rem; }
.notice .text-link { min-height: 2rem; }
dialog { width: min(100% - 2rem, 34rem); padding: 1.35rem; color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 14px 75px #14233b45; }
dialog::backdrop { background: #14233b80; }
.last-message { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkbox { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .45rem; }
.checkbox input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
.category-admin { border: 1px solid var(--border); border-radius: .65rem; }
.category-admin summary { cursor: pointer; padding: .85rem; }
.category-admin form { padding: .3rem .85rem .85rem; }
fieldset { border: 1px solid var(--border); border-radius: .65rem; }
legend { font-weight: 660; }
.business-logo { width: 4.5rem; height: 4.5rem; border: 1px solid var(--border); border-radius: .75rem; object-fit: contain; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 3rem); }
  .header-inner { flex-wrap: wrap; gap: .25rem .65rem; padding-block: .35rem; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
  .header-actions .language-options { inset-inline: 0 auto; }
  .hero { padding: 2.45rem 2.45rem 2rem; }
  .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .category-card { align-items: start; flex-direction: column; min-height: 5.9rem; }
}
@media (max-width: 840px) {
  .shell { width: calc(100% - 2rem); }
  .hero { padding: 2rem 1.6rem 1.6rem; }
  .hero-copy { width: 80%; }
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(3.9rem + env(safe-area-inset-bottom)); }
  .header-inner { min-height: 3.65rem; }
  .header .brand { flex: 1 1 min-content; min-width: min-content; white-space: normal; line-height: 1.1; }
  .header .brand img { flex: 0 0 auto; }
  .header-account { display: none; }
  .header-post { display: none; }
  .desktop-message { display: none; }
  .header-actions .header-search { display: none; }
  .mobile-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; z-index: 5; inset: auto 0 0; padding: .21rem .2rem calc(.21rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
  .mobile-nav a { display: grid; justify-items: center; align-content: center; gap: .12rem; min-height: 3.4rem; font-size: .78rem; color: var(--muted); }
  .mobile-nav a[aria-current="page"] { color: var(--hover); font-weight: 730; }
  .mobile-nav .post-icon { background: var(--blue); color: white; padding: .2rem; width: 1.52rem; height: 1.52rem; border-radius: .43rem; }
  .toast { bottom: 4.35rem; }
  .footer-legal { justify-content: flex-start; }
  .hero { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: .85rem; border-radius: 1.05rem; padding: 1.22rem .85rem 1rem; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(2.05rem, 8.5vw, 3.1rem); max-width: 26rem; }
  .hero p { margin-top: .6rem; font-size: .97rem; }
  .quick-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .22rem; border-radius: .75rem; padding: .35rem; }
  .quick-search .query { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--border); }
  .quick-search .search-control { padding-left: .35rem; gap: .35rem; }
  .quick-search input, .quick-search select { font-size: .95rem; }
  .quick-search button { grid-column: 1 / -1; min-height: 2.75rem; }
  .hero-actions { gap: .35rem; }
  .hero-actions a { flex: 1 1 0; min-height: 2.6rem; padding: .4rem .35rem; font-size: .87rem; }
  .hero-actions .ico { display: none; }
  .section { margin-block: 2rem; }
  .section-heading { align-items: start; }
  .section-heading .text-link { font-size: .88rem; text-align: right; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .category-card { flex-direction: row; align-items: center; gap: .42rem; min-height: 3.55rem; padding: .5rem; font-size: .85rem; }
  .category-icon { width: 2.1rem; height: 2.1rem; border-radius: .52rem; }
  .category-icon .ico { width: 1.1rem; height: 1.1rem; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .listing-card { border-radius: .72rem; }
  .card-body { padding: .62rem; }
  .card-title { font-size: .98rem; }
  .card-image { aspect-ratio: 1.28; }
  .heart-btn { top: .35rem; right: .35rem; }
  .footer-inner, .how { display: grid; grid-template-columns: 1fr; gap: .65rem; }
  .how article { padding: .9rem; }
  .how .category-icon { margin-bottom: .5rem; }
  .page { padding-block: 1.35rem 2.75rem; }
  .panel { padding: .95rem; }
  .details-layout, .conversations, .split { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .filters .query-field { grid-column: 1 / -1; }
  .sort-field { flex-basis: 100%; }
  .upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { gap: .35rem; }
  .steps li { font-size: .79rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.cookie-dialog { width: min(100% - 2rem, 36rem); max-height: calc(100dvh - 2rem); overflow: auto;
  overscroll-behavior: contain; padding: clamp(1rem, 4vw, 1.65rem); background: var(--surface); }
.cookie-dialog::backdrop { background: #14233b99; }
html:has(.cookie-dialog[open]) { overflow: hidden; }
.cookie-dialog h2 { font-size: 1.3rem; }
#cookie-dialog-title:focus { outline: none; }
.cookie-dialog p { font-size: 1rem; }
.cookie-dialog .cookie-footnote { color: var(--muted); font-size: .875rem; }
.cookie-policy-view { width: min(100% - 2rem, 50rem); }
.cookie-policies { display: flex; flex-wrap: wrap; gap: .15rem 1rem; padding: 0; margin: 0; list-style: none; }
.cookie-policies .text-link { min-height: 2rem; }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.cookie-actions .btn { border-color: var(--blue); min-height: 2.75rem; text-align: center; white-space: normal; }
.cookie-secondary { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-category + .cookie-category { margin-top: .65rem; }
@media (max-width: 34rem) {
  .cookie-actions { grid-template-columns: 1fr; }
}
/* Marché local : bleu luxembourgeois, touches de rouge et priorité aux annonces. */
:root {
  --bg: #f6f3ec;
  --surface: #fffefa;
  --ink: #172e43;
  --muted: #596b79;
  --blue: #145779;
  --hover: #103f5c;
  --coral: #b73746;
  --border: #d9e1e5;
  --sky: #eaf3f8;
  --shadow: 0 12px 30px #183b5612;
  --radius: .8rem;
}
.header { border-color: #e2e3da; }
.header-inner { min-height: 4.65rem; }
.header-home { border-bottom: 0; }
.header-home .header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0;
}
.home-post { justify-self: center; }
.header-home .header-actions { justify-self: end; }
.header-home .language-options { inset-inline: auto 0; }
.home-account-strip { background: var(--bg); border-top: 1px solid var(--border); padding-top: .45rem; }
.home-account-strip > .shell { display: flex; justify-content: flex-end; }
.catalogue-notice { color: var(--muted); background: var(--bg); border-top: 1px solid var(--border); padding-block: .5rem; font-size: .875rem; }
.catalogue-notice { border-top: 1px solid var(--border); background: var(--bg); color: var(--muted); font-size: .875rem; }
.catalogue-notice > .shell { padding-block: .55rem; }
.brand { letter-spacing: -.04em; }
.brand img { width: 2.5rem; height: 2.5rem; }
.brand b { color: #ad3542; }
.brand:has(.brand-signature) { gap: .5rem; }
.brand:has(.brand-signature) img { width: 2.6rem; height: 2.6rem; }
.brand-signature { display: flex; flex-direction: column; align-items: flex-start; gap: .24rem; color: #172e43; line-height: 1; }
.brand-signature > span { font-size: 1.06rem; font-weight: 700; letter-spacing: -.04em; }
.brand-signature b { color: #aa3544; font-size: .67rem; font-weight: 700; letter-spacing: .22em; }
.btn { border-radius: .55rem; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: var(--hover); }
.text-link { color: var(--blue); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.5rem;
  margin-top: 1.35rem; padding: 1.75rem 2rem; background: #e7f2f8;
  border: 1px solid #d3e5ef; border-radius: 1.1rem;
}
.hero-copy { width: auto; grid-column: 1; align-self: center; }
.hero h1 { max-width: none; font-family: "DM Sans", "Segoe UI", sans-serif; font-size: clamp(2rem, 3.6vw, 3.15rem); font-weight: 700; letter-spacing: -.035em; }
.quick-search { grid-column: 1 / -1; margin: 0; border-color: #d3e2ea; border-radius: .7rem; box-shadow: 0 5px 18px #183b5613; }
.quick-search .field .search-control { height: 100%; }
.quick-search .field input { border: 0; padding-left: .2rem; }
.hero-actions { grid-column: 1 / -1; gap: .5rem; }
.hero-actions a { background: #fbfdfe; border-color: #d0e1ea; color: #145779; }
.hero-actions .ico, .search-control .ico { color: #537b91; }
.section { margin-block: 2.5rem; }
.section-heading h2 { font-family: "DM Sans", "Segoe UI", sans-serif; font-weight: 700; letter-spacing: -.035em; }
.listing-grid { gap: 1rem; }
.listing-card { border-color: #dce3e6; box-shadow: 0 2px 9px #183b5608; }
.listing-card:hover { border-color: #a9c8d8; box-shadow: var(--shadow); }
.card-image { background: #e9e9df; aspect-ratio: 1.42; }
.card-body { gap: .4rem; padding: .9rem 1rem 1rem; }
.card-title { font-size: 1rem; font-weight: 650; line-height: 1.3; }
.card-title:hover { color: var(--blue); }
.listing-card .price { color: #184d6b; font-size: 1.15rem; }
.badge { border-radius: .3rem; background: #eaf1f5; color: #4b6372; }
.badge.sale, .badge.published { background: #e5eee4; color: #315a3e; }
.badge.rent, .badge.pending { background: #e4f0f8; color: #245875; }
.badge.service, .badge.refused { background: #fae9e9; color: #8c3440; }
.category-card { border-radius: .7rem; }
.category-card:hover { border-color: #aacbdb; }
.category-icon, .category-grid li:nth-child(n) .category-icon { background: #e7f2f8; color: #245e7d; }
.category-grid li:nth-child(3n + 2) .category-icon { background: #fae9ea; color: #a23947; }
.demo-banner { background: #f5ead8; color: #674b2e; }
.details-layout h1 { font-family: "DM Sans", "Segoe UI", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.filter-layout > .page-heading h1 { font-family: "DM Sans", "Segoe UI", sans-serif; font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); }
.filter-layout .panel { box-shadow: 0 5px 20px #183b560a; }
@media (max-width: 920px) {
  .hero-copy { width: auto; }
  .header-home .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: .4rem;
    padding-block: .45rem;
  }
  .header-home .header-actions { grid-column: 2; grid-row: 1; }
  .home-post { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .header-actions > a[href="/compte/favoris"] { display: none; }
  .header-actions .language-options { inset-inline: auto 0; }
  .header-inner { flex-wrap: nowrap; }
  .header-actions { flex-wrap: nowrap; gap: .25rem; }
  .header .brand { flex: 0 1 auto; min-width: 0; white-space: nowrap; font-size: .9rem; gap: .35rem; }
  .header .brand img { width: 2rem; height: 2rem; }
  .header .brand:has(.brand-signature) img { width: 2.2rem; height: 2.2rem; }
  .brand-signature > span { font-size: .92rem; }
  .brand-signature b { font-size: .66rem; }
  .home-post { justify-self: start; }
  .home-post, .header-home .header-account-home { padding-inline: .55rem; font-size: .85rem; }
  .header-home .home-post .ico, .header-home .header-account-home .ico { width: 1rem; height: 1rem; }
  .hero { grid-template-columns: 1fr; gap: .7rem; padding: 1.15rem; margin-top: .75rem; }
  .hero-copy, .quick-search, .hero-actions { grid-column: 1; }
  .hero h1 { font-size: clamp(1.55rem, 7vw, 1.9rem); }
  .quick-search { grid-template-columns: minmax(0, 1fr); }
  .quick-search .query, .quick-search button { grid-column: 1; }
  .quick-search .search-control { border-right: 0; border-bottom: 1px solid var(--border); }
  .quick-search .field .search-control { border-bottom: 0; }
  .quick-search input, .quick-search select { min-width: 0; }
  .hero-actions a { padding-inline: .3rem; }
  .section { margin-block: 1.7rem; }
  .card-body { padding: .68rem; }
  .card-title { font-size: .91rem; }
  .listing-card .badge { font-size: .7rem; padding: .15rem .35rem; }
  .listing-card .badges { gap: .25rem; }
  .mobile-nav { box-shadow: 0 -4px 16px #183b5618; }
  .mobile-nav a { font-size: .68rem; }
}
