/* ── Reset & Variables ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream:      #f0f4ef;
  --cream-dark: #dce5d9;
  --dark:       #1a3c34;
  --dark-2:     #15302a;
  --stone:      #5e7a6d;
  --stone-lt:   #8da698;
  --white:      #f8faf7;
  --border:     rgba(26,60,52,0.12);
  --accent:     #c0392b;
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'Inter', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--dark); }

/* ── Header ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  background: rgba(240,244,239,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; color: var(--dark); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.logo span { display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-bottom: 4px; }
nav { display: flex; align-items: center; gap: 36px; }
nav a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--stone); transition: color 0.2s; position: relative; }
nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: var(--dark); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
nav a:hover { color: var(--dark); }
nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-ghost { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dark); background: none; border: none; cursor: pointer; padding: 8px 16px; border-radius: 100px; transition: background 0.2s; text-decoration: none; }
.btn-ghost:hover { background: var(--cream-dark); }

/* ── Listings Page ── */
.listings-page { padding: 100px 80px 80px; max-width: 1400px; margin: 0 auto; }
.listings-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.listings-title { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 400; color: var(--dark); line-height: 1.1; }
.listings-count { font-size: 0.9rem; color: var(--stone); margin-top: 4px; }
.btn-map { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dark); background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 10px 20px; text-decoration: none; transition: border-color 0.2s, background 0.2s, transform 0.15s; }
.btn-map:hover { border-color: var(--dark); background: var(--cream-dark); transform: translateY(-1px); }

/* ── Filter Bar ── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--stone); background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 7px 16px; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.filter-btn:hover { color: var(--dark); border-color: var(--dark); }
.filter-btn.active { color: var(--white); background: var(--dark); border-color: var(--dark); }

/* ── Grid ── */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

/* ── Card ── */
.space-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; position: relative; overflow: hidden; }
.space-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.space-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(26,60,52,0.1); border-color: transparent; }
.space-card:hover::after { transform: scaleX(1); }
.card-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--dark); line-height: 1.2; margin-bottom: 6px; }
.card-location { font-size: 0.82rem; color: var(--stone); margin-bottom: 10px; }
.card-desc { font-size: 0.82rem; color: var(--stone-lt); line-height: 1.6; font-weight: 300; margin-bottom: 18px; flex: 1; }

/* ── Mobile ── */
@media (max-width: 1024px) {
  header { padding: 0 28px; } nav { display: none; }
  .listings-page { padding: 100px 28px 60px; }
}
@media (max-width: 640px) {
  .listings-grid { grid-template-columns: 1fr; }
  .listings-top { flex-direction: column; align-items: flex-start; gap: 16px; }
}
