/* ================================================
   CATALOG — Option 1: 3-Column Bento Grid (Dark)
   ================================================ */

/* ── Variables ──────────────────────────────────── */
:root {
  --bg:           #0f0f0d;
  --bg-surface:   #1c1c1a;
  --bg-header:    #0f0f0d;
  --border:       rgba(255, 255, 255, 0.07);
  --border-card:  rgba(255, 255, 255, 0.06);
  --text-primary: rgba(255, 255, 255, 0.88);
  --text-muted:   rgba(255, 255, 255, 0.32);
  --text-faint:   rgba(255, 255, 255, 0.18);
  --accent:       #d4916a;
  --accent-dim:   rgba(212, 145, 106, 0.75);
  --gap:          6px;
  --radius:       14px;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 0.5px solid var(--border);
  padding: 14px 20px;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.logo:hover { color: var(--accent); }

.site-nav { display: flex; gap: 4px; }

.nav-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-btn.active { color: var(--text-primary); background: rgba(255,255,255,0.08); }

/* ── Hero ───────────────────────────────────────── */
.hero {
  padding: 52px 20px 36px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

a[href^=sms],
a[href^=tel] {
  /*border: 6px solid rgba(52, 52, 52, 1);*/
  border-radius: 8px;
  color: var(--accent);
  /*background-color: rgba(48, 48, 48, 0.75);*/
  display: inline-block;
  font-style: normal;
  /*margin-top: 10px;*/
  /*padding: 0.25rem 15px 1.25rem;*/
  text-decoration: none;
}

/* ── Bento Grid ─────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 12px 12px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Bento Cell ─────────────────────────────────── */
.bento-cell {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s ease, transform 0.22s ease;
}

.bento-cell:hover {
  transform: scale(1.015);
  z-index: 2;
}

/* Wide cells (span 2 columns) */
.bento-cell.wide { grid-column: span 2; }

/* ── Cell image area ────────────────────────────── */
.cell-img {
  width: 100%;
  height: 396px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-cell.wide .cell-img { height: 396px; }

.cell-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-cell:hover .cell-img img { transform: scale(1.04); }

/* Placeholder shown when no image is loaded */
.cell-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cell index badge */
.cell-num {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.3);
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  font-family: var(--font-mono);
}

/* Hover overlay */
.cell-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.84) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  z-index: 3;
}

/* ── Sold state ─────────────────────────────────── */
.bento-cell.is-sold .cell-img img {
  filter: brightness(0.75);
}

.sold-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

.sold-badge span {
  font-family: var(--font-mono);
  font-size: 36px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.6);
  padding: 100%;
  border-radius: 4px;
}

/* Suppress hover effects on sold cells */
.bento-cell.is-sold:hover {
  transform: none;
  cursor: default;
}

.bento-cell.is-sold:hover .cell-img img {
  transform: none;
}

.bento-cell.is-sold:hover .cell-overlay {
  opacity: 0;
}

/* ────────────────────────────────────────────────── */

.bento-cell:hover .cell-overlay { opacity: 1; }

.overlay-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.overlay-price {
  font-size: 11px;
  color: var(--accent);
  margin-top: 3px;
  font-family: var(--font-mono);
}

/* ── Cell body ──────────────────────────────────── */
.cell-body {
  padding: 12px 14px 14px;
  border-top: 0.5px solid var(--border-card);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.cell-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-price {
  font-size: 11px;
  color: var(--accent-dim);
  letter-spacing: 0.07em;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

/* ── Cell background tints ──────────────────────── */
.tint-1  { background: #1e1a24; }
.tint-2  { background: #181e1b; }
.tint-3  { background: #221c14; }
.tint-4  { background: #14181e; }
.tint-5  { background: #201418; }
.tint-6  { background: #161e1a; }
.tint-7  { background: #1e1c12; }
.tint-8  { background: #121820; }
.tint-9  { background: #1e1220; }
.tint-10 { background: #181612; }
.tint-11 { background: #1a1e14; }
.tint-12 { background: #201a1e; }
.tint-13 { background: #16141e; }
.tint-14 { background: #1c1618; }
.tint-15 { background: #14181c; }

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

/* ── Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bento-cell { animation: fadeUp 0.45s ease both; }
.bento-cell:nth-child(1)  { animation-delay: 0.04s; }
.bento-cell:nth-child(2)  { animation-delay: 0.08s; }
.bento-cell:nth-child(3)  { animation-delay: 0.12s; }
.bento-cell:nth-child(4)  { animation-delay: 0.16s; }
.bento-cell:nth-child(5)  { animation-delay: 0.20s; }
.bento-cell:nth-child(6)  { animation-delay: 0.24s; }
.bento-cell:nth-child(7)  { animation-delay: 0.28s; }
.bento-cell:nth-child(8)  { animation-delay: 0.32s; }
.bento-cell:nth-child(9)  { animation-delay: 0.36s; }
.bento-cell:nth-child(10) { animation-delay: 0.40s; }
.bento-cell:nth-child(11) { animation-delay: 0.44s; }
.bento-cell:nth-child(12) { animation-delay: 0.48s; }
.bento-cell:nth-child(13) { animation-delay: 0.52s; }
.bento-cell:nth-child(14) { animation-delay: 0.56s; }
.bento-cell:nth-child(15) { animation-delay: 0.60s; } 

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 8px 8px;
    gap: 5px;
  }

  /* On mobile all cells are single-column wide */
  .bento-cell.wide { grid-column: span 2; }

  .cell-img        { height: 192px; }
  .bento-cell.wide .cell-img { height: 228px; }

  .hero { padding: 36px 16px 28px; }
  .site-footer { flex-direction: column; gap: 4px; text-align: center; }
}
