/* Visual design pass 2026-10-14 — tokens and shared surfaces */

:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(28, 36, 32, 0.06);
  --font-hero: clamp(1.75rem, 4vw + 1rem, 2.75rem);
  --font-page: clamp(1.5rem, 2vw + 1rem, 2rem);
  --font-card: clamp(1.05rem, 1vw + 0.9rem, 1.35rem);
  --font-body: 1rem;
  --line-tight: 1.2;
  --line-body: 1.55;
  --focus-ring: 0 0 0 3px rgba(29, 83, 66, 0.28);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary,
.hero-search,
.property-card .pc-btn:not(.pc-btn-secondary) {
  min-height: 44px;
  border-radius: var(--radius-md);
  font-weight: 650;
}

.surface-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

/* Homepage hero */
.hero--marketing {
  padding: var(--space-4) 0 var(--space-2);
  max-width: 36rem;
}
.hero--marketing .hero-eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero--marketing h1 {
  margin: 0 0 var(--space-3);
  font-size: var(--font-hero);
  line-height: var(--line-tight);
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--ink);
}
.hero--marketing .hero-sub {
  margin: 0 0 var(--space-3);
  font-size: 1.05rem;
  line-height: var(--line-body);
  color: var(--muted);
}
.hero--marketing .hero-cover {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: var(--line-body);
  color: var(--ink);
}
.hero-photo { display: none !important; }

.flyer-main article {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}
.flyer-main article h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--font-card);
  letter-spacing: -0.02em;
}
.flyer-commercial {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

/* Explore */
.explore-page .explore-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.explore-page .explore-search-primary input {
  width: 100%;
  max-width: 32rem;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  font-size: var(--font-body);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.explore-page .explore-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-3);
  max-width: 32rem;
}
.explore-page .explore-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.explore-page .explore-filter-grid select {
  min-height: 44px;
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}
.explore-page .filter-row.state-filters,
.explore-page .filter-row#regionFilters {
  display: none;
}
.explore-page .explore-wrap h1 {
  font-size: var(--font-page);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-2);
}
.explore-page .community-card {
  text-align: left;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.explore-page .community-card .card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-3);
  font-weight: 650;
  color: var(--accent);
}

/* Home detail sheet */
.home-sheet .property-card {
  padding: var(--space-4) var(--space-1);
  gap: var(--space-3);
  max-width: 100%;
  overflow-x: hidden;
}
.home-sheet .pc-price {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0;
}
.home-sheet .pc-address {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0;
  line-height: var(--line-tight);
}
.home-sheet .pc-facts {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.home-sheet .walk-shul-title {
  margin: var(--space-4) 0 var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-sheet .pc-syn-select {
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
}
.home-sheet .pc-syn-result {
  font-size: 1rem;
  margin: var(--space-2) 0;
}
.home-sheet .pc-back {
  align-self: flex-start;
  min-height: 44px;
  font-weight: 650;
  color: var(--accent);
}
.home-sheet .pc-actions-row {
  gap: var(--space-4);
}
.home-sheet .pc-btn-secondary {
  min-height: 44px;
  border-radius: var(--radius-md);
}

/* Advertiser form */
.ad-form-section {
  margin: var(--space-6) 0;
  padding: 0;
  border: 0;
}
.ad-form-section > legend {
  font-size: var(--font-card);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0;
  margin-bottom: var(--space-3);
}
.ad-form-section label {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  font-size: 0.92rem;
  font-weight: 600;
}
.ad-form-section label .optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}
.ad-form-section input,
.ad-form-section textarea,
.ad-form-section select {
  min-height: 44px;
  font: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  max-width: 100%;
}
.ad-form-section textarea {
  min-height: 6rem;
  resize: vertical;
}
.ad-form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.ad-form-actions .btn-primary,
.ad-form-actions .btn-secondary {
  min-height: 44px;
  width: 100%;
  max-width: 22rem;
}
#adPreview.surface-card {
  margin-top: var(--space-6);
}

@media (max-width: 860px) {
  .hero--marketing h1 {
    font-size: clamp(1.65rem, 6vw, 2.1rem);
  }
  .flyer-main {
    grid-template-columns: 1fr;
  }
}
