:root {
  --ink: #07153d;
  --muted: #58637c;
  --blue: #075cf2;
  --blue-dark: #0346bc;
  --line: #dbe2ee;
  --panel: #f6f8fc;
  --available-bg: #d9f7e3;
  --available-fg: #126338;
  --reserved-bg: #fff0bd;
  --reserved-fg: #795200;
  --sold-bg: #e8ebf0;
  --sold-fg: #4d5667;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #90b9ff; outline-offset: 3px; }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font: 800 clamp(1.35rem, 3vw, 1.8rem)/1 "Manrope", sans-serif; text-decoration: none; }
.pickup { color: var(--muted); font-weight: 600; }
.pickup span { color: var(--blue); font-size: 1.25rem; margin-right: 4px; }

.intro { padding: clamp(52px, 8vw, 92px) 0 clamp(42px, 6vw, 72px); max-width: 850px; }
.eyebrow { color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .12em; margin: 0 0 12px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 800 clamp(2.6rem, 7vw, 5.8rem)/.98 "Manrope", sans-serif; letter-spacing: -.055em; margin-bottom: 24px; }
.intro > p:last-child { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.5; margin-bottom: 0; }

.catalogue { padding-bottom: 72px; }
.catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h2 { font: 800 clamp(1.65rem, 3vw, 2.4rem)/1.1 "Manrope", sans-serif; letter-spacing: -.035em; margin-bottom: 0; }
.result-count { color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; }
.filter-button { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 600; min-height: 44px; padding: 10px 20px; }
.filter-button:hover { border-color: #9db8e4; }
.filter-button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }

.groups { display: grid; gap: 50px; }
.group-header { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 16px; margin-bottom: 18px; padding-bottom: 14px; }
.group-title { font: 800 clamp(1.3rem, 2.5vw, 1.8rem)/1.1 "Manrope", sans-serif; margin: 0; }
.group-note { color: var(--muted); font-size: .92rem; margin: 0; }
.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.item-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-width: 0; transition: transform .18s ease, box-shadow .18s ease; }
.item-card:hover { box-shadow: 0 18px 45px rgba(7, 21, 61, .1); transform: translateY(-3px); }
.item-photo-wrap { aspect-ratio: 4 / 3; background: var(--panel); overflow: hidden; position: relative; }
.item-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.status-badge { border-radius: 999px; font-size: .78rem; font-weight: 700; left: 14px; padding: 7px 11px; position: absolute; top: 14px; }
.status-available { background: var(--available-bg); color: var(--available-fg); }
.status-reserved { background: var(--reserved-bg); color: var(--reserved-fg); }
.status-sold { background: var(--sold-bg); color: var(--sold-fg); }
.item-body { display: grid; gap: 8px; padding: 20px; flex: 1; }
.item-category { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.item-name { font: 800 1.15rem/1.25 "Manrope", sans-serif; margin: 0; }
.item-meta { color: var(--muted); margin: 0; }
.item-footer { align-items: center; display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.price { color: var(--blue); font: 800 1.45rem/1 "Manrope", sans-serif; }
.view-button { border: 0; background: none; color: var(--blue); cursor: pointer; font-weight: 700; padding: 10px 0; }
.view-button:hover { color: var(--blue-dark); }
.empty-group { color: var(--muted); background: var(--panel); border-radius: 14px; margin: 0; padding: 24px; }

.contact { align-items: center; background: var(--ink); border-radius: 24px; color: white; display: flex; justify-content: space-between; gap: 30px; margin-bottom: 72px; padding: clamp(28px, 5vw, 52px); }
.contact .eyebrow { color: #7eb0ff; }
.contact p:last-child { color: #c7d0e3; margin: 12px 0 0; max-width: 600px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-link { align-items: center; border-radius: 12px; color: white; display: inline-flex; font-weight: 700; justify-content: center; min-height: 48px; padding: 13px 22px; text-decoration: none; white-space: nowrap; }
.contact-link.compact { flex: 1; padding-inline: 16px; }
.sms-link { background: var(--blue); }
.sms-link:hover { background: #2873f5; }
.whatsapp-link { background: #16894c; }
.whatsapp-link:hover { background: #08763c; }
.item-contact { margin-top: 24px; }
footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 20px; font-size: .9rem; padding: 28px 0 40px; }

.item-dialog { border: 0; border-radius: 22px; box-shadow: 0 28px 90px rgba(7, 21, 61, .28); color: var(--ink); max-height: min(88vh, 820px); padding: 0; width: min(860px, calc(100% - 28px)); }
.item-dialog::backdrop { background: rgba(4, 12, 35, .66); backdrop-filter: blur(3px); }
.close-button { background: white; border: 0; border-radius: 50%; box-shadow: 0 4px 18px rgba(7,21,61,.18); cursor: pointer; font-size: 1.6rem; height: 42px; position: absolute; right: 16px; top: 16px; width: 42px; z-index: 2; }
.dialog-grid { display: grid; grid-template-columns: 1.15fr 1fr; }
.dialog-gallery { background: var(--panel); min-height: 420px; }
.dialog-main-photo { display: block; width: 100%; height: 360px; object-fit: cover; }
.thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 12px; }
.thumbnail { border: 2px solid transparent; border-radius: 8px; cursor: pointer; height: 62px; object-fit: cover; padding: 0; width: 80px; }
.thumbnail.active { border-color: var(--blue); }
.dialog-details { padding: 54px 34px 34px; }
.dialog-details .status-badge { display: inline-block; position: static; margin-bottom: 16px; }
.dialog-details h2 { margin-bottom: 10px; }
.dialog-price { color: var(--blue); font: 800 2rem/1 "Manrope", sans-serif; margin: 18px 0; }
.description { color: var(--muted); line-height: 1.6; }
.detail-list { border-top: 1px solid var(--line); display: grid; gap: 12px; margin: 24px 0; padding-top: 20px; }
.detail-row { display: flex; justify-content: space-between; gap: 18px; }
.detail-row span:first-child { color: var(--muted); }
@media (max-width: 820px) {
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-gallery { min-height: 0; }
  .dialog-main-photo { height: min(48vh, 360px); }
  .dialog-details { padding: 28px 24px 32px; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  .pickup { font-size: .84rem; }
  .intro { padding: 44px 0 42px; }
  h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .catalogue-heading, .group-header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .filters { flex-wrap: nowrap; margin-inline: -14px; overflow-x: auto; padding: 2px 14px 8px; }
  .filter-button { flex: 0 0 auto; }
  .item-grid { grid-template-columns: 1fr; }
  .item-card { display: grid; grid-template-columns: 42% 58%; }
  .item-photo-wrap { aspect-ratio: auto; min-height: 190px; }
  .item-body { padding: 16px; }
  .item-footer { align-items: flex-start; flex-direction: column; }
  .contact { align-items: stretch; flex-direction: column; }
  .contact-actions { width: 100%; }
  .contact-link { flex: 1; }
  footer { flex-direction: column; }
}
