.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.top { border-bottom: 1px solid var(--line); background: var(--ground); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { border: 0; background: transparent; padding: 10px 16px; min-height: 44px; border-radius: 999px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tab-link { color: var(--muted); font-weight: 500; }
.count { background: var(--tape); color: var(--ink); font-size: 12px; padding: 2px 8px; border-radius: 999px; }

.main { padding-top: 48px; padding-bottom: 64px; }
.intro { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.intro-copy { flex: 999 1 520px; min-width: 0; }
.intro h1 { margin: 0 0 14px; font-size: 52px; line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; max-width: 680px; }
.intro p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.steps { flex: 1 1 300px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.steps li { display: flex; gap: 12px; align-items: center; }
.step-n { font-size: 13px; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.input-sm { min-height: 44px; padding: 8px 12px; font-size: 14px; width: auto; }
.section-note { margin: -8px 0 20px; color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 20px; }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; }
.card:hover { color: var(--ink); }
.card:hover .thumb img { transform: scale(1.02); }
.thumb { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #E3DED4; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.thumb .badge-new { position: absolute; top: 12px; left: 12px; background: var(--tape); font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 4px 8px; transform: rotate(-2deg); }
.thumb .badge-st { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.badge-reservado { background: #fff; color: var(--res-fg); border: 1px solid var(--res-bd); }
.badge-vendido { background: var(--ink); color: #fff; }
.card-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.card-price { font-family: var(--mono); font-size: 16px; font-weight: 500; white-space: nowrap; }
.card-meta { font-size: 13px; color: var(--muted); margin-top: -4px; }
.card.is-sold .thumb img { filter: grayscale(1); opacity: .5; }
.card.is-sold .card-title, .card.is-sold .card-price { color: var(--muted); }
.card.is-sold .card-price { text-decoration: line-through; }
.no-photo { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 12px; font-family: var(--mono); font-size: 12px; color: #4A463F; }

.empty { padding: 48px 0; text-align: center; color: var(--muted); font-size: 16px; }
.skeleton { aspect-ratio: 4 / 5; border-radius: 10px; background: #E6E1D7; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .6 } to { opacity: 1 } }

.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); padding-top: 24px; padding-bottom: 24px; }

/* detail */
.detail { padding: 0; border: 0; border-radius: 18px; max-width: 1000px; width: calc(100% - 48px); max-height: calc(100% - 48px); background: var(--ground); color: var(--ink); overflow: hidden; }
.detail::backdrop { background: rgba(22, 22, 22, .55); }
.detail-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-height: calc(100vh - 48px); }
.gallery-wrap { position: relative; background: #E3DED4; min-height: 360px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img, .gallery .no-photo { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gallery img { max-height: calc(100vh - 48px); }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.dots span.on { width: 18px; background: var(--ink); }
.round { position: absolute; width: 44px; height: 44px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.close { top: 14px; left: 14px; }
.nav { top: 50%; transform: translateY(-50%); }
.prev { left: 14px; } .next { right: 14px; }
.info { padding: 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 999px; }
.title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.title-row h2 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.d-price { font-size: 26px; font-weight: 500; white-space: nowrap; }
.d-desc { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 14px; }
.facts div { background: #fff; border-radius: 8px; padding: 10px 12px; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.reserve { margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.reserve h3 { margin: 0 0 4px; font-size: 18px; }
.reserve .hint { margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.btn-lg { min-height: 52px; font-size: 16px; }
.hp { position: absolute; left: -9999px; }
.notice { margin-top: 6px; border-radius: 14px; padding: 16px; font-size: 15px; line-height: 1.5; }
.notice strong { display: block; font-size: 17px; margin-bottom: 2px; }
.notice-ok { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-bd); }
.notice-res { background: var(--res-bg); color: var(--res-fg); border: 1px solid var(--res-bd); }
.notice-sold { background: var(--sold-bg); color: var(--sold-fg); border: 1px solid var(--sold-bd); }

@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top-in { padding-top: 12px; padding-bottom: 10px; }
  .brand { gap: 8px; }
  .brand .tape { font-size: 12px; padding: 3px 8px; }
  .brand-name { font-size: 15px; line-height: 1.15; }
  .tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; background: #E6E1D7; padding: 4px; border-radius: 999px; }
  .tab { justify-content: center; min-height: 40px; }
  .tab-link { display: none; }
  .main { padding-top: 24px; }
  .intro { gap: 20px; margin-bottom: 24px; }
  .intro h1 { font-size: 32px; }
  .intro p { font-size: 16px; }
  .steps { gap: 8px; font-size: 14px; }
  .step-n { width: 24px; height: 24px; font-size: 12px; }
  .tools { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .sort-label { display: none; }
  .toolbar { padding: 12px 0; margin-bottom: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; width: calc(100% + 32px); }
  .chips::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .card-row { flex-direction: column-reverse; gap: 2px; }
  .card-title { font-size: 14px; font-weight: 500; }
  .card-price { font-size: 15px; }
  .card-meta { display: none; }
  .thumb .badge-new { top: 8px; left: 8px; font-size: 11px; padding: 3px 6px; }
  .thumb .badge-st { top: auto; bottom: 8px; right: 8px; font-size: 11px; padding: 4px 8px; }

  .detail { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; margin: 0; }
  .detail-in { display: block; height: 100%; max-height: 100%; overflow-y: auto; }
  .gallery-wrap { height: 52vh; min-height: 300px; }
  .gallery img { max-height: none; }
  .nav { display: none; }
  .info { padding: 20px 16px 32px; overflow: visible; }
  .title-row h2 { font-size: 24px; }
  .d-price { font-size: 22px; }
}
