:root {
  --bg: #0b0e14;
  --bg-deep: #07090d;
  --card: #141926;
  --card-2: #171d2c;
  --card-edge: rgba(255, 255, 255, 0.07);
  --text: #e8eaf0;
  --muted: #8b93a7;
  --navy: #1f2a44;
  --gold: #e5b356;
  --gold-dim: #96762f;
  --green: #4ade80;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;  /* the full-bleed hero's 100vw includes the scrollbar width */
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 500px at 70% -10%, rgba(229, 179, 86, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--gold); }

h1, h2, h3 { color: #f4f6fa; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
.hint { color: var(--muted); font-size: 0.95rem; }

/* Header — sticky, translucent, blurred */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-edge);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.5rem; }
.brand {
  color: #fff; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none;
}
.brand::before { content: "◆ "; color: var(--gold); font-size: 0.8em; }
.site-header nav { display: flex; gap: 0.25rem; }
.site-header nav a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-header nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* Hero — full-bleed Mount Rainier photo (static/rainier.jpg, CC BY-SA 4.0,
   Seattleron via Wikimedia Commons; attribution lives in the footer) */
.hero {
  text-align: center;
  padding: 7rem 1.5rem 5rem;
  margin: 0 calc(50% - 50vw);
  background:
    linear-gradient(180deg, rgba(11, 14, 20, 0.45) 0%, rgba(11, 14, 20, 0.55) 60%, var(--bg) 100%),
    url("/static/rainier.jpg") center 30% / cover no-repeat;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.3rem); margin: 0 0 0.6rem; font-weight: 800;
  background: linear-gradient(100deg, #fff 40%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.65));
}
.tagline {
  color: #dfe4ec; font-size: 1.12rem; margin: 0; font-weight: 500;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

/* Section cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2.5rem 0; }
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--card-edge); border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  text-decoration: none; color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 179, 86, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.card h2 { margin: 0 0 0.45rem; font-size: 1.06rem; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.section-title { font-size: 1.3rem; margin-top: 2.5rem; }
.section-title::after {
  content: ""; display: block; width: 2.2rem; height: 3px;
  background: var(--gold); border-radius: 2px; margin-top: 0.45rem;
}

/* Listings */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin: 1.4rem 0 2.5rem; }
.listing-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--card-edge); border-radius: var(--radius);
  padding: 1.3rem; text-decoration: none; color: inherit; position: relative;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.listing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 179, 86, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.listing-card h3 { margin: 0.7rem 0 0.35rem; font-size: 1rem; font-weight: 600; }
.listing-hero { border-radius: 10px; overflow: hidden; margin-bottom: 0.9rem; aspect-ratio: 16 / 10; }
.listing-hero img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.listing-card:hover .listing-hero img { transform: scale(1.04); }

/* Listing photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; margin: 1.6rem 0; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid var(--card-edge); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.gallery-label {
  position: absolute; left: 0.6rem; bottom: 0.6rem;
  background: rgba(7, 9, 13, 0.7); color: #e8eaf0;
  font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px;
}
.price { color: var(--green); font-weight: 700; font-size: 1.2rem; margin: 0.2rem 0; letter-spacing: -0.01em; }
.price.big { font-size: 1.7rem; }
.specs { color: var(--muted); margin: 0.2rem 0; font-size: 0.9rem; }

/* Badges */
.badge {
  display: inline-block; font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem; border-radius: 999px; vertical-align: middle;
}
.badge-sample { background: rgba(217, 119, 6, 0.16); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-status { background: rgba(96, 145, 255, 0.14); color: #93b4ff; border: 1px solid rgba(147, 180, 255, 0.3); }

/* Notices */
.notice {
  background: rgba(229, 179, 86, 0.07);
  border: 1px solid rgba(229, 179, 86, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1.1rem; color: #dcc48b; font-size: 0.95rem;
}

/* Interactive WA map */
#wa-map { margin: 1.6rem 0 0.8rem; }
#wa-map svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5)); }
#wa-map use { display: none; }  /* hide the source map's white halo/backdrop */
/* NOTE: never hide #state_outline — it lives inside the SVG's clipPath, and an
   empty clip path clips the whole map away. */
#wa-map .county {
  fill: #1a2130; stroke: #07090d; stroke-width: 120;
  cursor: pointer; transition: fill 0.12s ease;
}
#wa-map .county:hover, #wa-map .county:focus { fill: #33405c; outline: none; }
#wa-map .county.has-items { fill: var(--gold-dim); }
#wa-map .county.has-items:hover, #wa-map .county.has-items:focus { fill: var(--gold); }

/* County grid (map fallback + mobile-friendly tap targets) */
.county-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.55rem; margin: 1.2rem 0 2.2rem;
}
.county-cell {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 10px;
  padding: 0.5rem 0.8rem; text-decoration: none; color: var(--muted); font-size: 0.88rem;
  transition: border-color 0.14s ease, color 0.14s ease;
}
.county-cell:hover { border-color: rgba(229, 179, 86, 0.5); color: var(--text); }
.county-cell.has-items { border-left: 3px solid var(--gold); color: var(--text); }
.county-count {
  font-size: 0.72rem; font-weight: 600; background: rgba(255, 255, 255, 0.07);
  color: var(--muted); border-radius: 999px; padding: 0.1rem 0.5rem;
}
.county-cell.has-items .county-count { background: var(--gold); color: #0b0e14; }

/* Foreclosures */
.auction-meta { font-size: 1rem; color: var(--muted); }
.auction-meta strong { color: var(--text); }
.fc-list { display: grid; gap: 1rem; margin: 1.4rem 0; }
.fc-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--card-edge); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.fc-card h3 { margin: 0.5rem 0 0.8rem; font-size: 1.05rem; font-weight: 600; }
.fc-card dl { display: flex; flex-wrap: wrap; gap: 1.8rem; margin: 0; }
.fc-card dt {
  font-size: 0.66rem; font-weight: 600; text-transform: uppercase;
  color: var(--muted); letter-spacing: 0.08em;
}
.fc-card dd { margin: 0.15rem 0 0; font-weight: 650; font-size: 1.02rem; }
.fc-notes { color: var(--muted); font-size: 0.9rem; margin-bottom: 0; }

/* Market insight */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.4rem 0 2.5rem; }
.metric-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--card-edge); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; text-align: center;
}
.metric-card h3 {
  margin: 0; font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
}
.metric-value { font-size: 2rem; font-weight: 700; margin: 0.45rem 0 0; color: var(--gold); letter-spacing: -0.02em; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; margin: 1.4rem 0 2.2rem; }
.video-card { text-decoration: none; color: var(--text); display: block; }
.video-thumb {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--card-edge); aspect-ratio: 16 / 9;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.2rem; background: rgba(0, 0, 0, 0.25);
  opacity: 0; transition: opacity 0.15s ease;
}
.video-card:hover .video-play { opacity: 1; }
.video-card h3 { font-size: 0.95rem; font-weight: 600; margin: 0.65rem 0 0.1rem; color: var(--text); }
.video-card:hover h3 { color: var(--gold); }
.video-date { color: var(--muted); font-size: 0.8rem; margin: 0; }

/* Footer */
.site-footer {
  background: var(--bg-deep); border-top: 1px solid var(--card-edge);
  color: var(--muted); margin-top: 4rem; padding: 1.6rem 0; font-size: 0.88rem;
}
.fineprint { color: var(--muted); font-size: 0.78rem; }
.site-footer .fineprint { color: #5a6374; }
