/* Boise directories — Dev only. Two themes, one codebase. */
:root {
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --ink: #1a2421;
  --muted: #4d5b56;
  --paper: #f4f1ea;
  --paper-2: #e8e2d6;
  --line: #d5cdbd;
  --accent: #2f5d50;
  --accent-2: #b5693c;
  --owned: #6b3f1d;
  --sponsored: #5c4a16;
  --danger: #8b2e2e;
  --max: 1120px;
  --radius: 10px;
}
[data-theme="home"] {
  --ink: #1b2a4a;
  --muted: #4a5870;
  --paper: #f7f4ef;
  --paper-2: #ebe4d8;
  --line: #d8cfc2;
  --accent: #1b2a4a;
  --accent-2: #c4622d;
  --owned: #8a3d16;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 8px; background: #fff; padding: 8px; z-index: 20; }
.dev-banner {
  background: #3b2a10;
  color: #f3e6c8;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 8px 16px;
  text-align: center;
}
.dev-banner strong { color: #fff; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
header.site {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, white);
  position: sticky; top: 0; z-index: 8;
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  text-decoration: none; color: inherit;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.02em;
}
.brand span { display: block; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
nav.primary { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
nav.primary a { text-decoration: none; color: var(--ink); }
nav.primary a:hover { color: var(--accent-2); }
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 240px at 10% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--paper);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -.03em;
  max-width: 16ch;
}
.hero p.lede { max-width: 62ch; color: var(--muted); margin: 0 0 24px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  border: 0; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.grid { display: grid; gap: 16px; }
.cats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 32px 0; }
.card, .listing {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card h2, .listing h2, .listing h3 {
  font-family: var(--font-serif);
  font-weight: 550;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.card p, .listing p { margin: 0 0 8px; color: var(--muted); font-size: 16px; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; color: var(--muted); }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  margin: 0 6px 8px 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
}
.badge.owned { background: #f3e4d6; border-color: #e0c4a6; color: var(--owned); }
.badge.swap { background: #e4eee9; border-color: #c5d9d0; color: var(--accent); }
.badge.sponsored { background: #f4ead0; border-color: #e2d19a; color: var(--sponsored); }
.listings { padding: 28px 0 48px; }
.filters { display: flex; gap: 10px 12px; flex-wrap: wrap; margin: 0 0 18px; align-items: flex-start; }
.filters #filter-q { width: min(100%, 340px); flex: 1 1 220px; }
select, input, textarea {
  font: inherit; font-size: 16px;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  width: 100%;
}
label { display: block; font-size: 14px; font-weight: 650; margin: 0 0 6px; }
.field { margin: 0 0 14px; }
.form { max-width: 560px; }
.disclosure {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 15px;
  color: var(--muted);
}
.disclosure strong { color: var(--ink); }
footer.site {
  font-size: 14px;
  color: var(--muted);
  padding: 28px 0 40px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
footer.site .owner-line {
  color: var(--ink);
  font-weight: 650;
  margin: 0 0 8px;
}
footer.site a { color: inherit; }
h1.page, h2.section {
  font-family: var(--font-serif);
  font-weight: 550;
  letter-spacing: -.02em;
}
.meta { font-size: 15px; color: var(--muted); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 40px 0; }
.hub article { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.hub h2 { font-family: var(--font-serif); margin-top: 0; }
.notice {
  background: #fff; border-left: 4px solid var(--accent-2);
  padding: 12px 14px; margin: 16px 0; font-size: 15px;
}
.empty { padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.admin pre { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); padding: 12px; border-radius: 8px; font-size: 13px; }
.ok { color: #216b3a; }
.err { color: var(--danger); }
@media (max-width: 640px) {
  body { font-size: 17px; }
  header.site .bar { padding: 10px 0; }
}

.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.city-pill {
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.city-pill:hover { border-color: var(--accent); }
.city-pill.is-active,
.city-pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.city-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.hero-photo {
  position: relative;
  overflow: hidden;
  color: #f6f3ec;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  border-bottom: 0;
  background: #1a2428;
}
.hero-photo .hero-media,
.hero-photo .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  z-index: 0;
}
.hero-photo .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,16,20,.28) 0%, rgba(8,16,20,.48) 48%, rgba(8,16,20,.82) 100%),
    linear-gradient(90deg, rgba(8,16,20,.42) 0%, rgba(8,16,20,.18) 52%, rgba(8,16,20,.12) 100%);
  pointer-events: none;
}
.hero-photo .wrap { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 48px; }
.hero-photo h1,
.hero-photo .lede,
.hero-photo .tiny { color: #f6f3ec; }
.hero-photo .tiny a,
.hero-photo a:not(.btn) { color: #f3eee6; }
.hero-photo .btn.ghost {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
@media (max-width: 640px) {
  .city-pills { gap: 6px; }
  .city-pill { font-size: 13px; padding: 7px 12px; }
  .hero-photo { min-height: 360px; }
  .hero-photo .hero-media img { object-position: 40% center; }
  .hero-photo .wrap { padding-top: 48px; padding-bottom: 36px; }
}

.consult-cta { margin-top: 28px; }
.consult-cta h2 { margin-top: 0; }
.consult-cta .form { margin-top: 12px; }
.consult-cta select { width: 100%; max-width: 420px; }

.hero-photo.hero-skyline .hero-media img {
  object-position: 72% center;
}
.hero-photo.hero-skyline .hero-overlay {
  background:
    linear-gradient(180deg, rgba(8,16,20,.22) 0%, rgba(8,16,20,.40) 45%, rgba(8,16,20,.78) 100%),
    linear-gradient(90deg, rgba(8,16,20,.52) 0%, rgba(8,16,20,.18) 48%, rgba(8,16,20,.06) 100%);
}
@media (max-width: 640px) {
  .hero-photo.hero-skyline .hero-media img { object-position: 78% center; }
}

.provider-pill {
  margin: 8px 0 16px;
  font-size: 14px;
}
.provider-pill a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.provider-pill a:hover { border-color: var(--accent); }
footer.site .provider-pill { margin: 0 0 12px; }

.check-group { border: 0; padding: 0; margin: 0 0 12px; }
.check-group legend { font-weight: 650; margin-bottom: 8px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }

.admin-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.admin-filters .field { margin: 0; }
.admin-filters input, .admin-filters select { min-width: 140px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.admin-table th, .admin-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.admin-table th { background: var(--paper-2); font-weight: 650; }

.admin-table tr.revoked td { background: #f8ecec; }
.admin-table td .btn { margin: 0 0 4px 0; }

/* 2026-11-10: hero contrast + bottom-aligned skyline */
.hero-photo p.lede,
.hero-photo .lede { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.65); }
.hero-photo h1 { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.55); }
.hero-photo .tiny { text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hero-photo.hero-skyline .hero-media img { object-position: 72% bottom; }
.hero-photo.hero-skyline .hero-overlay {
  background:
    linear-gradient(180deg, rgba(8,16,20,.30) 0%, rgba(8,16,20,.50) 45%, rgba(8,16,20,.80) 100%),
    linear-gradient(90deg, rgba(8,16,20,.68) 0%, rgba(8,16,20,.38) 50%, rgba(8,16,20,.10) 100%);
}
@media (max-width: 640px) {
  .hero-photo.hero-skyline .hero-media img { object-position: 78% bottom; }
}


/* Premier listings — display styling only, not a paid or sponsored claim. */
.premier-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 108px;
  height: 108px;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
}
.premier-ribbon span {
  position: absolute;
  top: 20px;
  right: -30px;
  width: 132px;
  padding: 5px 0 6px;
  transform: rotate(45deg);
  background: linear-gradient(180deg, #f8eec0 0%, #e0c36a 52%, #c9a227 100%);
  color: #3d3008;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(40, 28, 8, .35);
  border-block: 1px solid rgba(255, 248, 220, .55);
}
.listing-premium {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 240px;
  padding: 22px;
  border: 2px solid #c9a227;
  box-shadow: 0 0 0 1px rgba(232, 208, 130, .45), 0 10px 28px rgba(40, 28, 8, .14);
  background: #161814;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.listing-premium .listing-media,
.listing-premium .listing-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--premium-focal, 50% 40%);
  z-index: 0;
}
.listing-premium .listing-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,14,18,.28) 0%, rgba(10,14,18,.50) 45%, rgba(10,14,18,.86) 100%),
    linear-gradient(90deg, rgba(10,14,18,.74) 0%, rgba(10,14,18,.40) 58%, rgba(10,14,18,.22) 100%);
}
.listing-premium .listing-body {
  position: relative;
  z-index: 2;
}
.listing-premium h3,
.listing-premium h3 a,
.listing-premium p,
.listing-premium .meta,
.listing-premium .tiny,
.listing-premium .listing-body a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
}
.listing-premium h3 { margin-bottom: 6px; }
.listing-premium h3 a:hover,
.listing-premium .listing-body a:hover { color: #f3e2a8; }
.listing-premium .badge { text-shadow: none; }
@media (min-width: 700px) {
  .grid.cats > .listing-premium { grid-column: span 2; min-height: 280px; }
}


/* Featured listings — silver treatment, single-width. Display styling only. */
.featured-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 108px;
  height: 108px;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
}
.featured-ribbon span {
  position: absolute;
  top: 20px;
  right: -30px;
  width: 132px;
  padding: 5px 0 6px;
  transform: rotate(45deg);
  background: linear-gradient(180deg, #f4f5f7 0%, #c5ccd3 52%, #8b949e 100%);
  color: #2a2f35;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(20, 24, 28, .35);
  border-block: 1px solid rgba(255, 255, 255, .6);
}
.listing-featured {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 240px;
  padding: 22px;
  border: 2px solid #8b949e;
  box-shadow: 0 0 0 1px rgba(200, 208, 216, .45), 0 10px 28px rgba(20, 24, 28, .14);
  background: #16181b;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.listing-featured .listing-media,
.listing-featured .listing-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--premium-focal, 50% 40%);
  z-index: 0;
}
.listing-featured .listing-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,14,18,.28) 0%, rgba(10,14,18,.52) 45%, rgba(10,14,18,.88) 100%),
    linear-gradient(90deg, rgba(10,14,18,.76) 0%, rgba(10,14,18,.42) 58%, rgba(10,14,18,.24) 100%);
}
.listing-featured .listing-body {
  position: relative;
  z-index: 2;
}
.listing-featured h3,
.listing-featured h3 a,
.listing-featured p,
.listing-featured .meta,
.listing-featured .tiny,
.listing-featured .listing-body a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
}
.listing-featured h3 { margin-bottom: 6px; }
.listing-featured h3 a:hover,
.listing-featured .listing-body a:hover { color: #e8edf2; }
.listing-featured .badge { text-shadow: none; }
/* Featured stays single-width — do not span two columns. */

.hero-photo.hero-featured .hero-media img {
  object-position: var(--premium-focal, 50% 40%);
}
.hero-photo.hero-featured .hero-overlay {
  background:
    linear-gradient(180deg, rgba(10,14,18,.26) 0%, rgba(10,14,18,.50) 45%, rgba(10,14,18,.86) 100%),
    linear-gradient(90deg, rgba(10,14,18,.76) 0%, rgba(10,14,18,.42) 52%, rgba(10,14,18,.20) 100%);
}

.hero-photo.hero-premium .hero-media img {
  object-position: var(--premium-focal, 50% 40%);
}
.hero-photo.hero-premium .hero-overlay {
  background:
    linear-gradient(180deg, rgba(10,14,18,.26) 0%, rgba(10,14,18,.48) 45%, rgba(10,14,18,.84) 100%),
    linear-gradient(90deg, rgba(10,14,18,.76) 0%, rgba(10,14,18,.40) 52%, rgba(10,14,18,.18) 100%);
}
.hero-photo.hero-premium .notice {
  background: rgba(10,14,18,.78);
  border-left-color: #e0c36a;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.hero-photo.hero-premium .notice .badge { text-shadow: none; }
.hero-photo a.badge:not(.btn) {
  color: var(--ink);
  text-shadow: none;
}
.hero-photo a.badge.owned:not(.btn),
.hero-photo .badge.owned { color: var(--owned); text-shadow: none; }
.hero-photo a.badge.swap:not(.btn),
.hero-photo .badge.swap { color: var(--accent); text-shadow: none; }

[hidden] { display: none !important; }
