.page-pad { padding-top: 24px; padding-bottom: 24px; }
.narrow { max-width: 760px; }
.lst { padding-top: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding-right: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--blue); }
.back-link:hover .ic { transform: translateX(-3px); }
.back-link .ic { transition: transform .25s var(--ease); }
.lst-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-top: 8px; }

/* Gallery */
.gallery { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--soft-2); touch-action: pan-y; }
.g-track { display: flex; height: 100%; transition: transform .5s var(--ease); }
.g-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.g-nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--surface-a); box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s var(--spring); }
.g-nav.prev { left: 14px; } .g-nav.next { right: 14px; }
.gallery:hover .g-nav, .g-nav:focus-visible { opacity: 1; }
.g-nav:hover { transform: scale(1.08); }
.g-count, .g-full { position: absolute; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgb(16 19 23 / .72); color: #fff; font-size: var(--t-xs); font-weight: 650; font-variant-numeric: tabular-nums; }
.g-count { left: 14px; }
.g-full { right: 14px; display: inline-flex; align-items: center; gap: 6px; border: 0; }
.g-full .ic { width: 16px; height: 16px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.thumbs button { flex: none; width: 92px; height: 64px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; opacity: .6; outline-offset: 2px; transition: opacity .2s, transform .25s var(--spring); }
.thumbs button[aria-current], .thumbs button:hover { opacity: 1; }
.thumbs button[aria-current] { outline: 2px solid var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.photos-sheet .full { display: grid; gap: 10px; }
.photos-sheet .full img { width: 100%; border-radius: 12px; }

.lst-head { margin-top: 22px; display: grid; gap: 8px; }
.lst-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.lst-badges:empty { display: none; }
.lst-facts { font-size: var(--t-md); color: var(--ink-2); }
.lst-addr { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.lst-sec { margin-top: 36px; }
.lst-sec h2 { margin-bottom: 14px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 24px; margin: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; box-shadow: 0 1px 0 var(--line); font-size: var(--t-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.unknown { color: var(--muted); font-weight: 500; font-style: italic; }
.terms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.terms li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--soft); font-size: var(--t-sm); }
.terms li.yes .ic { color: var(--green); } .terms li.no .ic { color: var(--red); } .terms li.unk .ic { color: var(--muted); }
.desc { max-width: 68ch; line-height: 1.65; color: var(--ink-2); margin-bottom: 16px; }
.report-btn { margin-top: 12px; }
.lst-sec .report-btn { display: flex; width: fit-content; }
.lst-map { position: relative; height: 320px; border-radius: var(--r-lg); overflow: hidden; }
.lst-map .map { position: absolute; inset: 0; }
.author p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.author .ic { width: 16px; height: 16px; }
.ok-text { color: var(--green); font-weight: 600; }

/* Price card */
.lst-side { position: sticky; top: calc(var(--top-h) + 16px); }
.price-card { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.big-price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big-price small { font-size: var(--t-sm); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pc-h { margin-top: 8px; font-size: var(--t-xs); font-weight: 650; color: var(--muted); }
.pc-list { margin: 0; }
.movein { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-2); font-weight: 600; }
.movein b { font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.movein.na { justify-content: flex-start; background: var(--soft); color: var(--ink-2); font-weight: 500; font-size: var(--t-sm); }
.contact-zone { margin-top: 6px; }
.contact-zone > [data-contact-details] { margin-top: 8px; }
.contacts { display: grid; gap: 8px; }
.notice { display: flex; gap: 10px; padding: 14px; border-radius: 14px; background: var(--amber-soft); color: var(--amber); font-size: var(--t-sm); }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fav-big.on { color: var(--red); background: var(--red-soft); }
.fav-big.on .ic { fill: currentColor; }
.similar { margin-top: 56px; }
.similar h2 { margin-bottom: 16px; }
.similar .cat-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.contact-bar { display: none; }

@media (max-width: 960px) {
  .lst-grid { grid-template-columns: minmax(0, 1fr); }
  .lst-side { position: static; }
}
@media (max-width: 760px) {
  .gallery { margin: 0 calc(var(--pad) * -1); border-radius: 0; aspect-ratio: 4 / 3; }
  .g-nav { display: none; }
  .lst-sec { margin-top: 28px; }
  .lst { padding-bottom: 96px; }
  /* Sticky contact bar: the page reserves space for it, so nothing (including the complaint button) is covered. */
  .contact-bar { position: fixed; z-index: 44; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgb(16 19 23 / .06); animation: bar-up .5s var(--ease) .2s backwards; }
  .contact-bar b { display: block; font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
  .contact-bar span { color: var(--muted); font-size: var(--t-xs); }
  .contact-bar .btn { min-height: 50px; padding: 0 22px; }
  body[data-page="listing"] .footer { padding-bottom: 110px; }
  html:has(body[data-page="listing"]) { scroll-padding-bottom: 96px; }
}
@keyframes bar-up { from { transform: translateY(100%); } }

/* Complaint */
.reasons { border: 0; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.reasons legend { margin-bottom: 8px; }
.reason { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: var(--t-sm); transition: border-color .2s, background-color .2s; }
.reason:hover { border-color: var(--ink-2); }
.reason:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.reason input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
.fieldset-error { color: var(--red); }
.reasons.has-error .reason { border-color: var(--red); }
.report-form .field { margin-bottom: 14px; }
.report-done { display: grid; gap: 14px; justify-items: center; text-align: center; padding-top: 12px; }
.done-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.done-mark .ic { width: 36px; height: 36px; stroke-width: 2.4; }
.copy-row { display: flex; gap: 8px; width: 100%; }
.copy-row .input { font-size: var(--t-xs); }

/* Tracking */
.track { display: grid; gap: 14px; }
.track h2 { margin-top: 16px; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: var(--t-xs); font-weight: 600; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 3px; border-radius: 2px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.now::before { background: var(--blue); transform-origin: left; animation: grow .7s var(--ease) both; }
.steps .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--soft-2); color: #fff; }
.steps .dot .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.steps li.done .dot { background: var(--blue); }
.steps li.now { color: var(--ink); }
.steps li.now .dot { background: var(--blue); box-shadow: 0 0 0 6px var(--blue-soft); animation: now 1.8s var(--ease) infinite; }
.steps li.optional { opacity: .5; }
@keyframes now { 50% { box-shadow: 0 0 0 10px rgb(31 90 240 / .08); } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 12px; box-shadow: inset 2px 0 0 var(--line); }
.timeline li { position: relative; padding: 12px 16px; border-radius: 14px; background: var(--soft); }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 3px var(--line-2); }
.timeline li.admin { background: var(--blue-soft); }
.timeline li.admin::before { box-shadow: 0 0 0 3px var(--blue); }
.timeline time { margin-left: 8px; color: var(--muted); font-size: var(--t-xs); }
.timeline p { margin-top: 4px; font-size: var(--t-sm); }
.reply { display: grid; gap: 10px; }
