*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0f6b43;
  --ink-mid: #198b5a;
  --ink-soft: #5a7f6f;
  --cream: #f3f8f5;
  --warm: #e8f2ec;
  --border: #cfe3d7;
  --gold: #2fa56f;
  --gold-light: #a8ddc1;
  --white: #ffffff;
  --green: #198b5a;
  --green-bg: #e4f6ee;
  --green-text: #0f754d;
  --yellow-bg: #dbf1e4;
  --yellow-text: #24875b;
  --gray-bg: #edf4f0;
  --gray-text: #5e7d70;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px; height: 28px;
  background: var(--ink);
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.logo-mark svg { width: 16px; height: 16px; fill: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-mid);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { font-weight: 600; }

.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.1s !important;
  text-decoration: none;
}

.nav-cta:hover { background: var(--ink-mid) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--ink-soft);
  background: var(--cream);
}

.nav-toggle[aria-expanded='true'] {
  border-color: var(--ink);
  background: var(--cream);
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink-mid);
  stroke-width: 2;
}

/* ── PAGE HEADER ── */
.page-header {
  padding-top: 68px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.page-header::after {
  content: 'SPACES';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 11rem;
  font-weight: 700;
  color: rgba(0,0,0,0.035);
  letter-spacing: -0.04em;
  pointer-events: none;
  white-space: nowrap;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.breadcrumb a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.7;
}

/* ── FILTER BAR ── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  position: sticky;
  top: 68px;
  z-index: 90;
}

.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
}

.filter-tabs {
  display: flex;
  gap: 0;
}

.filter-tab {
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.filter-tab:hover { color: var(--ink); }
.filter-tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.filter-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-mid);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.filter-chip:hover { border-color: var(--ink); background: var(--cream); }

.result-count {
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ── MAIN LAYOUT ── */
.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 96px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky;
  top: 140px;
}

.sidebar-section { margin-bottom: 36px; }

.sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* Date picker display */
.date-grid {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cal-month {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.cal-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.cal-nav:hover { color: var(--ink); }

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}

.cal-day-lbl {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  text-align: center;
  font-size: 0.78rem;
  padding: 7px 4px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-mid);
  transition: background 0.15s, color 0.15s;
}

.cal-day:hover { background: var(--warm); }
.cal-day.today { background: var(--ink); color: var(--white); font-weight: 600; }
.cal-day.selected { background: var(--gold); color: var(--white); font-weight: 600; }
.cal-day.other { color: var(--ink-soft); opacity: 0.4; }
.cal-day.unavail { color: var(--border); cursor: default; }
.cal-day.unavail:hover { background: none; }

/* Capacity filter */
.capacity-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cap-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-mid);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.cap-opt:hover { border-color: var(--ink-soft); }
.cap-opt.checked { border-color: var(--ink); background: var(--cream); }

.cap-checkbox {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.cap-opt.checked .cap-checkbox {
  background: var(--ink);
  border-color: var(--ink);
}

.cap-opt.checked .cap-checkbox::after {
  content: '✓';
  font-size: 0.65rem;
  color: var(--white);
  font-weight: 700;
}

/* Status filter */
.status-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.status-opt:hover { border-color: var(--ink-soft); }
.status-opt.active { border-color: var(--ink); background: var(--cream); }

.status-opt-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-mid);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: #198b5a; }
.dot-yellow { background: #36a973; }
.dot-gray { background: #6d8d7e; }

.status-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ── SPACES GRID ── */
.spaces-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Featured large card */
.space-card-featured {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.space-card-featured:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.feat-img {
  height: 340px;
  overflow: hidden;
  position: relative;
}

.feat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}

.space-card-featured:hover .feat-img img { transform: scale(1.04); }

.feat-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3) 100%);
}

.feat-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.feat-slots {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex;
  gap: 6px;
}

.slot-pill {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
}

.feat-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.booth-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.booth-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.booth-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--warm);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--ink-mid);
  font-weight: 500;
}

.amenity i {
  font-size: 0.82rem;
  line-height: 1;
}

.feat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.feat-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feat-meta-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.feat-meta-lbl {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.badge-green { background: var(--green-bg); color: var(--green-text); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow-text); }
.badge-gray { background: var(--gray-bg); color: var(--gray-text); }

.btn-book {
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-book:hover { background: var(--ink-mid); transform: translateY(-1px); }

.btn-book-ghost {
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-book-ghost:hover { border-color: var(--ink); background: var(--cream); }

/* Standard cards row */
.cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.space-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.25s, transform 0.25s;
}

.space-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.09);
  transform: translateY(-4px);
}

.card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}

.space-card:hover .card-img img { transform: scale(1.05); }

.card-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.card-status {
  position: absolute;
  top: 14px; right: 14px;
}

.card-body { padding: 22px; }

.card-body .booth-label { font-size: 0.68rem; }

.card-body .booth-name {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-body .booth-desc {
  font-size: 0.85rem;
  margin-bottom: 16px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .amenities { margin-bottom: 18px; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.card-meta { font-size: 0.8rem; color: var(--ink-soft); }
.card-meta strong { color: var(--ink); font-weight: 600; }

/* ── SLOT TIMELINE ── */
.slot-section {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.slot-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.slot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.slot-booth {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  width: 100px;
  flex-shrink: 0;
}

.slot-timeline {
  flex: 1;
  display: flex;
  gap: 4px;
}

.slot-block {
  flex: 1;
  height: 28px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}

.slot-block:hover { opacity: 0.8; transform: scaleY(1.08); }

.slot-open { background: var(--green-bg); color: var(--green-text); }
.slot-taken { background: var(--gray-bg); color: var(--gray-text); cursor: default; }
.slot-taken:hover { opacity: 1; transform: none; }
.slot-limited { background: var(--yellow-bg); color: var(--yellow-text); }

.slot-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 2px;
}

/* ── INFO BANNER ── */
.info-banner {
  background: var(--ink);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-icon i {
  display: block;
  line-height: 1;
}

.info-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.info-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ── FOOTER ── */
footer {
  background: var(--cream);
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer p { font-size: 0.8rem; color: var(--ink-soft); }

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

.space-card-featured, .space-card, .slot-section, .info-banner {
  animation: fadeUp 0.6s ease both;
}

.space-card-featured { animation-delay: 0.1s; }
.cards-row .space-card:nth-child(1) { animation-delay: 0.2s; }
.cards-row .space-card:nth-child(2) { animation-delay: 0.3s; }
.slot-section { animation-delay: 0.35s; }
.info-banner { animation-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .space-card-featured { grid-template-columns: 1fr; }
  .feat-img { height: 260px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 107, 67, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
  }
  .nav-links a:hover { background: var(--cream); }
  .nav-links .nav-cta {
    display: block;
    width: 100%;
    margin-top: 6px;
    text-align: center;
    padding: 11px 14px;
  }
  .page-header-inner { padding: 40px 20px; grid-template-columns: 1fr; }
  .filter-bar { padding: 0 20px; }
  .filter-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; }
  .main-layout { padding: 32px 20px 60px; }
  .cards-row { grid-template-columns: 1fr; }
  footer { padding: 24px 20px; }
  .feat-body { padding: 24px; }
  .slot-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .slot-booth { width: auto; }
  .page-header::after { display: none; }
}