:root {
  --bg: #0d0f14;
  --panel: #141924;
  --panel-soft: #1a2231;
  --text: #f6f6f4;
  --muted: #bcc4d4;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(var(--site-accent-rgb), 0.22), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(44, 120, 180, 0.22), transparent 35%),
    var(--bg);
  min-height: 100vh;
  padding-top: 110px;
}

a {
  color: inherit;
  text-decoration: none;
}

.listing-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 164px;
  height: auto;
  display: block;
}

.header-nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-nav a {
  opacity: 0.74;
  transition: opacity 0.22s ease;
}

.header-nav a:hover,
.header-nav a.is-active {
  opacity: 1;
}

.listing-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 12px;
}

.eyebrow {
  margin: 0;
  color: rgba(var(--site-accent-rgb), 0.95);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.listing-hero h1 {
  margin: 10px 0 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  max-width: 820px;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.filters-wrap {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 24px;
}

.filter-grid {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  backdrop-filter: blur(14px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.field select {
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  font-size: 14px;
}

.filter-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.results-head {
  max-width: 1240px;
  margin: 26px auto 0;
  padding: 0 24px;
}

.results-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.listing-grid {
  max-width: 1240px;
  margin: 14px auto 48px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.listing-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.thumb-link {
  aspect-ratio: 16 / 10;
  display: block;
}

.thumb-no-picture {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a2231, #141924);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.badge-row {
  display: flex;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(var(--site-accent-rgb), 0.16);
  color: #fff;
}

.badge.muted {
  background: rgba(255, 255, 255, 0.1);
}

.listing-card h3 {
  margin: 0;
  font-size: 19px;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.1;
}

.meta,
.specs {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.detail-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 86px;
  }

  .listing-header {
    padding: 20px 16px;
  }

  .listing-hero,
  .filters-wrap,
  .results-head,
  .listing-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .filter-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .listing-hero h1 {
    font-size: clamp(30px, 8vw, 38px);
  }
}
