/* ============================================================
   POOLPAD — LOCAL PROS DIRECTORY
   /assets/css/directory.css

   Loaded by layouts/directory.njk AFTER the global style.css,
   so PoolPad's brand tokens (--navy-800, --aqua, --gold,
   --shadow*, --container, --header-height, --mainfont) are
   available. This sheet owns every dir-* / pro-* / rv-* / auth /
   dashboard / messages component in the directory class contract.

   Load-bearing rules (JS toggles the `hidden` property):
     .dir-page [hidden], .dir-toolbar [hidden] { display:none!important }
     .modal-overlay:not([hidden]) { display:flex }
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --color-primary: #1967d2;
  --color-primary-dark: #004591;
  --color-primary-light: #e8f1fc;
  --color-secondary: #0e3763;
  --color-text: #1d1d1f;
  --color-text-light: #6e6e73;
  --color-text-lighter: #86868b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-card: #ffffff;
  --color-border: #e8ecf0;
  --color-border-light: #f1f4f7;
  --color-star: #f5a623;
  --color-success: #10b981;
  --color-warning: #f5a623;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-sans: var(--mainfont);

  /* Directory-local helpers (PoolPad aqua/navy accents) */
  --dir-navy: var(--navy-800, #0e3763);
  --dir-navy-deep: var(--navy-900, #0a2747);
  --dir-aqua: var(--aqua, #06b6d4);
  --dir-aqua-bright: var(--aqua-500, #18c0db);
  --dir-aqua-strong: var(--aqua-600, #0e7490);
  --dir-aqua-tint: #e7f7fb;
  --dir-aqua-tint-2: #d3f0f7;
  --dir-gold: var(--gold, #f5a623);
  --dir-hero-gradient: linear-gradient(135deg, #0e3763 0%, #14457a 55%, #1a4f8b 100%);
  --dir-btn-gradient: linear-gradient(135deg, #18c0db 0%, #0e7490 100%);
  --dir-shadow-aqua: 0 8px 22px rgba(6, 116, 138, 0.28);
  --dir-shadow-aqua-lg: 0 12px 30px rgba(6, 116, 138, 0.4);
}

/* ============================================================
   2. BASE + LOAD-BEARING VISIBILITY
   ============================================================ */
.dir-page {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.dir-page [hidden],
.dir-toolbar [hidden] {
  display: none !important;
}

.modal-overlay:not([hidden]) {
  display: flex;
}

.dir-page *,
.dir-page *::before,
.dir-page *::after {
  box-sizing: border-box;
}

.dir-page img {
  max-width: 100%;
  height: auto;
}

/* :where() keeps specificity at element level so any single-class
   component rule (.dir-hero-title { margin: 0 auto } etc.) wins.
   Still beats style.css's bare h1/p resets via source order. */
:where(.dir-page) h1,
:where(.dir-page) h2,
:where(.dir-page) h3,
:where(.dir-page) h4,
:where(.dir-page) p {
  margin: 0;
}

/* Generic in-copy links. :where() keeps specificity at zero so any
   single-class component (a.city-card etc.) wins without fights. */
:where(.dir-page) a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

:where(.dir-page) a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* ============================================================
   3. ACCESSIBILITY — FOCUS RINGS
   ============================================================ */
.dir-page a:focus-visible,
.dir-page button:focus-visible,
.dir-page input:focus-visible,
.dir-page select:focus-visible,
.dir-page textarea:focus-visible,
.dir-page summary:focus-visible,
.dir-page [tabindex]:focus-visible,
.dir-toolbar a:focus-visible,
.dir-toolbar button:focus-visible {
  outline: 2px solid var(--dir-aqua);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   4. LAYOUT PRIMITIVES — CONTAINER / SECTIONS
   ============================================================ */
.dir-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.dir-section {
  padding: 4rem 0;
}

.dir-section--alt {
  background: var(--color-bg-alt);
}

.dir-section-title {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 800;
  color: var(--dir-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.dir-section-sub {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 70ch;
}

.dir-section-empty {
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 640px;
  line-height: 1.6;
}

.dir-section-empty code {
  font-size: 0.8rem;
}

/* ============================================================
   5. BREADCRUMBS
   ============================================================ */
.dir-breadcrumbs {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.dir-breadcrumbs a {
  color: var(--color-text-light);
  text-decoration: none;
}

.dir-breadcrumbs a:hover {
  color: var(--dir-aqua-strong);
}

.dir-breadcrumbs .sep {
  margin: 0 0.5rem;
  opacity: 0.45;
}

/* ============================================================
   6. DIRECTORY TOOLBAR (slim sticky bar below PoolPad header)
   ============================================================ */
.dir-toolbar {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-sans);
  line-height: 1.4;
}

.dir-toolbar *,
.dir-toolbar *::before,
.dir-toolbar *::after {
  box-sizing: border-box;
}

.dir-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
}

.dir-toolbar-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.dir-toolbar-nav a {
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dir-toolbar-nav a:hover {
  color: var(--dir-navy);
}

.dir-toolbar-nav a.dir-toolbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--dir-navy);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dir-toolbar-nav a.dir-toolbar-brand svg {
  color: var(--dir-aqua);
  flex: none;
}

.dir-toolbar-nav a.dir-toolbar-brand:hover {
  color: var(--dir-navy-deep);
}

.dir-toolbar-nav a.dir-toolbar-forpros {
  background: var(--dir-aqua-tint);
  color: var(--dir-aqua-strong);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.dir-toolbar-nav a.dir-toolbar-forpros:hover {
  background: var(--dir-aqua-tint-2);
  color: var(--dir-navy);
}

/* ---------- Auth cluster ---------- */
.header-auth {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.header-auth-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-auth-links a {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.header-login-btn {
  color: var(--color-text-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

.header-login-btn:hover {
  color: var(--dir-navy);
  background: var(--color-bg-alt);
}

.header-signup-btn {
  background: var(--dir-btn-gradient);
  color: #fff !important;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(6, 116, 138, 0.25);
}

.header-signup-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6, 116, 138, 0.35);
}

/* ---------- Logged-in user dropdown ---------- */
.header-user {
  position: relative;
}

.header-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  font-family: var(--font-sans);
  transition: background 0.15s ease;
}

.header-user-trigger:hover {
  background: var(--color-bg-alt);
}

.header-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dir-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.header-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-chevron {
  width: 16px;
  height: 16px;
  color: var(--color-text-lighter);
  transition: transform 0.15s ease;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(16, 42, 73, 0.16));
  min-width: 210px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 200;
}

/* Hover for pointer devices, :focus-within so tapping/tabbing the
   trigger opens the menu on touch + keyboard. */
.header-user:hover .header-dropdown,
.header-user:focus-within .header-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-user:hover .header-user-chevron,
.header-user:focus-within .header-user-chevron {
  transform: rotate(180deg);
}

.header-dropdown a,
.header-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  text-decoration: none;
  transition: background 0.1s ease, color 0.1s ease;
}

.header-dropdown a:hover,
.header-dropdown button:hover {
  background: var(--color-bg-alt);
  color: var(--dir-navy);
}

.header-dropdown svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-lighter);
  flex-shrink: 0;
}

.header-dropdown-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 0.35rem 0;
}

/* ---------- Notification bell ---------- */
.notif-bell {
  position: relative;
}

.notif-bell-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--color-text-light);
  transition: background 0.15s ease, color 0.15s ease;
}

.notif-bell-btn:hover {
  background: var(--color-bg-alt);
  color: var(--dir-navy);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(16, 42, 73, 0.16));
  min-width: 300px;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 200;
}

.notif-bell:hover .notif-dropdown,
.notif-bell:focus-within .notif-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notif-dropdown-header {
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dir-navy);
  border-bottom: 1px solid var(--color-border);
}

.notif-list {
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  display: block;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.85rem;
  transition: background 0.1s ease;
}

.notif-item:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.notif-item.notif-unread {
  background: var(--dir-aqua-tint);
}

.notif-item.notif-unread:hover {
  background: var(--dir-aqua-tint-2);
}

.notif-item strong {
  display: block;
  font-size: 0.85rem;
}

.notif-item span {
  display: block;
  color: var(--color-text-light);
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

.notif-item small {
  color: var(--color-text-lighter);
  font-size: 0.75rem;
}

/* ============================================================
   7. HERO — navy gradient with cursive accent + wave
   ============================================================ */
.dir-hero {
  position: relative;
  overflow: hidden;
  background: var(--dir-hero-gradient);
  color: #fff;
  text-align: center;
  padding: 4.25rem 0 7rem;
}

/* Subtle wave-line pattern floating over the gradient */
.dir-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='140' height='48' viewBox='0 0 140 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 24c11.7-9 23.3-9 35 0s23.3 9 35 0 23.3-9 35 0 23.3 9 35 0' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 140px 48px;
  pointer-events: none;
}

.dir-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.dir-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dir-aqua-bright);
  margin-bottom: 1.1rem;
}

.dir-hero-kicker::before,
.dir-hero-kicker::after {
  content: "";
  flex: none;
  width: 2.2rem;
  height: 2px;
  border-radius: 2px;
}

.dir-hero-kicker::before {
  background: linear-gradient(90deg, rgba(24, 192, 219, 0.25) 0%, var(--dir-aqua-bright) 100%);
}

.dir-hero-kicker::after {
  background: linear-gradient(90deg, var(--dir-aqua-bright) 0%, rgba(24, 192, 219, 0.25) 100%);
}

.dir-hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 auto 1rem;
  max-width: 22ch;
  text-wrap: balance;
}

/* Cursive gold-glow accent word inside the title */
.dir-hero-script {
  display: inline-block;
  font-family: 'PoolScript', 'Snell Roundhand', 'Apple Chancery', 'Segoe Script', cursive;
  font-weight: 700;
  font-size: 1.16em;
  line-height: 1.05;
  padding: 0 0.08em 0.12em;
  transform: rotate(-1deg);
  background: linear-gradient(94deg, #ffffff 0%, #fff3d6 55%, #ffd98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff3d6; /* fallback when background-clip:text unsupported */
  filter: drop-shadow(0 3px 14px rgba(7, 31, 58, 0.6));
}

.dir-hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

.dir-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.dir-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dir-hero-stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.dir-hero-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

/* Wave svg sits flush against the next section */
.dir-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(28px, 4.5vw, 60px);
  display: block;
  pointer-events: none;
  z-index: 1;
}

.dir-hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Compact city-page variant: left aligned, tighter */
.dir-hero--city {
  text-align: left;
  padding: 3rem 0 5.5rem;
}

.dir-hero--city .dir-hero-kicker {
  margin-bottom: 0.85rem;
}

.dir-hero--city .dir-hero-kicker::after {
  display: none;
}

.dir-hero--city .dir-hero-title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin: 0 0 0.6rem;
  max-width: none;
}

.dir-hero--city .dir-hero-sub {
  margin: 0;
  max-width: 640px;
}

.dir-hero--city .dir-hero-stats {
  justify-content: flex-start;
  margin-top: 1.5rem;
}

/* City-hero extras carried from the source templates */
.city-cross-link {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.city-cross-link a {
  color: var(--dir-aqua-bright);
  font-weight: 600;
}

.city-cross-link a:hover {
  color: #fff;
}

.city-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.city-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ============================================================
   8. SEARCH PILL
   ============================================================ */
.dir-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(16, 42, 73, 0.16));
}

.dir-hero .dir-search {
  margin-top: 2rem;
}

.dir-search input {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  outline: none;
  background: transparent;
}

.dir-search input::placeholder {
  color: var(--color-text-lighter);
}

.dir-search button {
  padding: 1rem 2rem;
  background: var(--dir-btn-gradient);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: filter 0.15s ease;
}

.dir-search button:hover {
  filter: brightness(1.08);
}

.dir-search-hint {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* ============================================================
   9. STARS (output of the `stars` filter)
   ============================================================ */
.dir-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-star);
  line-height: 1;
}

.dir-star {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.dir-star-full {
  fill: var(--color-star);
}

.dir-star-half .dir-star-half-bg,
.dir-star-half .star-half-bg {
  fill: none;
  stroke: var(--color-star);
  stroke-width: 1.5;
}

.dir-star-half .dir-star-half-fill,
.dir-star-half .star-half-fill {
  fill: var(--color-star);
  clip-path: inset(0 50% 0 0);
}

.dir-star-empty {
  fill: none;
  stroke: var(--color-star);
  stroke-width: 1.5;
}

.dir-stars--sm .dir-star {
  width: 0.85em;
  height: 0.85em;
}

.rating-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.review-count {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ============================================================
   10. CITY + STATE GRIDS
   ============================================================ */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.city-card:hover {
  border-color: var(--dir-aqua);
  box-shadow: var(--shadow, 0 4px 16px rgba(16, 42, 73, 0.08));
  color: var(--color-text);
  transform: translateY(-2px);
}

.city-card-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dir-navy);
  margin-bottom: 0.15rem;
}

.city-card-info span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.city-card-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--dir-aqua-tint);
  color: var(--dir-aqua-strong);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.state-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.state-card:hover {
  border-color: var(--dir-aqua);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
  color: var(--dir-navy);
  transform: translateY(-1px);
}

.state-card span {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 400;
}

/* ============================================================
   11. CITY PAGE — STATS BAR / MAP / LIST HEADERS
   ============================================================ */
.city-stats-bar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.city-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.city-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dir-navy);
  letter-spacing: -0.02em;
}

.city-stat-value small {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--color-text-lighter);
}

.city-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-top: 0.15rem;
  display: block;
}

.city-stat-label a {
  color: var(--dir-aqua-strong);
  text-decoration: none;
  font-weight: 700;
}

.city-stat-label a:hover {
  text-decoration: underline;
}

.city-map-section {
  padding: 1.5rem 0 0;
}

.city-map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 16px rgba(16, 42, 73, 0.08));
  background: var(--color-bg-alt);
}

.city-section-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dir-navy);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.city-list-header {
  margin-bottom: 1.75rem;
}

.city-list-subhead {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.builders-list {
  padding: 2rem 0 4rem;
}

.builders-count {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* ============================================================
   12. BUILDER CARD
   ============================================================ */
.builder-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.builder-card:hover {
  border-color: var(--dir-aqua);
  box-shadow: var(--shadow, 0 4px 16px rgba(16, 42, 73, 0.08));
  transform: translateY(-2px);
}

.builder-card-inner {
  display: flex;
  padding: 1.5rem;
  gap: 1.25rem;
}

.builder-card-rank {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--dir-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(14, 55, 99, 0.25);
}

.builder-card-thumb {
  flex-shrink: 0;
  width: 148px;
  height: 111px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  background: var(--color-bg-alt);
}

.builder-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.builder-card-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.builder-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.builder-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.builder-card-header h3 a {
  color: var(--dir-navy);
  text-decoration: none;
}

.builder-card-header h3 a:hover {
  color: var(--dir-aqua-strong);
}

.claim-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text-lighter);
  border: 1px solid var(--color-border);
}

.claimed-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.builder-card-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.builder-card-description {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.builder-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  background: var(--dir-aqua-tint);
  color: var(--dir-aqua-strong);
  border-radius: 999px;
}

.builder-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.meta-item a {
  color: var(--color-text-light);
}

.meta-item a:hover {
  color: var(--dir-aqua-strong);
}

.builder-card-areas {
  font-size: 0.825rem;
  color: var(--color-text-lighter);
}

.builder-card-areas strong {
  color: var(--color-text-light);
}

/* ============================================================
   13. CITY HIGHLIGHTS
   ============================================================ */
.city-highlights {
  padding: 3rem 0;
  background: var(--color-bg-alt);
}

.city-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.city-highlight-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.city-highlight-card:hover {
  border-color: var(--dir-aqua);
  box-shadow: var(--shadow, 0 4px 16px rgba(16, 42, 73, 0.08));
  transform: translateY(-2px);
}

.city-highlight-icon {
  width: 48px;
  height: 48px;
  background: var(--dir-aqua-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.city-highlight-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--dir-aqua-strong);
}

.city-highlight-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.city-highlight-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dir-navy);
  text-decoration: none;
  display: block;
}

a.city-highlight-name:hover {
  color: var(--dir-aqua-strong);
}

.city-highlight-detail {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* ============================================================
   14. CITY SEO CONTENT
   ============================================================ */
.city-seo-content {
  padding: 3rem 0;
}

.city-seo-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dir-navy);
  margin-bottom: 0.75rem;
}

.city-seo-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dir-navy);
  margin: 1.75rem 0 0.5rem;
}

.city-seo-content p {
  color: var(--color-text-light);
  line-height: 1.75;
  max-width: 75ch;
  margin-bottom: 1rem;
}

.city-seo-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.city-seo-list li {
  padding: 0.65rem 0 0.65rem 1.5rem;
  position: relative;
  color: var(--color-text-light);
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border-light);
}

.city-seo-list li:last-child {
  border-bottom: none;
}

.city-seo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 8px;
  height: 8px;
  background: var(--dir-aqua);
  border-radius: 50%;
}

.city-seo-list li strong {
  color: var(--color-text);
}

/* ============================================================
   15. CITY FAQ
   ============================================================ */
.city-faq {
  padding: 3rem 0;
  background: var(--color-bg-alt);
}

.city-faq-list {
  max-width: 800px;
  margin-top: 0.5rem;
}

.city-faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.city-faq-item[open] {
  border-color: var(--dir-aqua);
}

.city-faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dir-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  transition: background 0.15s ease;
}

.city-faq-item summary::-webkit-details-marker {
  display: none;
}

.city-faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dir-aqua-strong);
  flex-shrink: 0;
  line-height: 1;
}

.city-faq-item[open] summary::after {
  content: "\2212";
}

.city-faq-item summary:hover {
  background: var(--color-bg-alt);
}

.city-faq-item p {
  padding: 0 1.25rem 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================================
   16. CITY SHOW MORE
   ============================================================ */
.city-show-more-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.city-show-more-btn {
  background: var(--color-bg);
  border: 2px solid var(--dir-navy);
  color: var(--dir-navy);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.city-show-more-btn:hover {
  background: var(--dir-navy);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   17. NEARBY CITIES
   ============================================================ */
.nearby-cities {
  padding: 3rem 0;
  background: var(--color-bg-alt);
}

.nearby-cities h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dir-navy);
  margin-bottom: 1rem;
}

.nearby-lead {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.nearby-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nearby-link:hover {
  border-color: var(--dir-aqua);
  color: var(--dir-aqua-strong);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
  transform: translateY(-1px);
}

.nearby-link span {
  color: var(--color-text-lighter);
  font-weight: 400;
}

.nearby-link-city {
  font-weight: 600;
  color: var(--dir-navy);
}

.nearby-link-count {
  font-size: 0.8rem;
  color: var(--color-text-lighter);
}

.nearby-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Pro page: "More Pool Companies" peer cards ---------- */
.pro-peer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.pro-peer-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pro-peer-card:hover {
  border-color: var(--dir-aqua);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(16, 42, 73, 0.1));
  transform: translateY(-3px);
}

.pro-peer-thumb {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.pro-peer-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pro-peer-card:hover .pro-peer-thumb img {
  transform: scale(1.04);
}

.pro-peer-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--dir-aqua, #06b6d4);
  background: linear-gradient(135deg, #eef5fb 0%, #e0eef8 100%);
}

.pro-peer-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem 1rem;
}

.pro-peer-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--dir-navy);
  line-height: 1.3;
}

.pro-peer-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.pro-peer-rating-value {
  font-weight: 700;
  color: var(--color-text);
}

.pro-peer-review-count {
  color: var(--color-text-lighter);
}

.pro-peer-rating--none {
  color: var(--color-text-lighter);
  font-style: italic;
}

.pro-peer-type {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* ============================================================
   18. DIRECTORY CTA — navy gradient panel
   ============================================================ */
.dir-cta {
  position: relative;
  overflow: hidden;
  background: var(--dir-hero-gradient);
  color: #fff;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 2rem;
}

.dir-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='140' height='48' viewBox='0 0 140 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 24c11.7-9 23.3-9 35 0s23.3 9 35 0 23.3-9 35 0 23.3 9 35 0' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 140px 48px;
  pointer-events: none;
}

.dir-cta > * {
  position: relative;
}

.dir-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.dir-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin: 0 auto 2rem;
  max-width: 520px;
}

.dir-cta-buttons,
.dir-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dir-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  background: #fff;
  color: var(--dir-navy);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dir-cta-btn:hover {
  color: var(--dir-navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7, 31, 58, 0.35);
}

.dir-cta-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dir-cta-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}

/* ============================================================
   19. PRO PAGE (individual business)
   ============================================================ */
.pro-page {
  padding: 2rem 0 4rem;
}

.pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  align-items: start;
}

.pro-main {
  min-width: 0;
  overflow: hidden;
}

.pro-header {
  margin-bottom: 2rem;
}

.pro-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dir-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  overflow-wrap: break-word;
}

.pro-location {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.pro-directory-links {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.pro-directory-links a {
  font-weight: 600;
  color: var(--dir-aqua-strong);
}

.pro-directory-links a:hover {
  color: var(--dir-navy);
}

.pro-directory-sep {
  margin: 0 0.35rem;
  color: var(--color-text-lighter);
}

.pro-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pro-rating .dir-stars {
  font-size: 1.25rem;
  gap: 3px;
}

.pro-rating .rating-value {
  font-size: 1.1rem;
}

.pro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pro-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
}

.pro-badge svg {
  width: 14px;
  height: 14px;
}

/* On the pro page the badge carries both .pro-badge and the status class; the
   two-class selector wins the cascade so Verified stays green / Unclaimed grey. */
.pro-badge.claimed-badge {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
  text-transform: none;
  font-size: 0.8rem;
  letter-spacing: normal;
}

.pro-badge.claim-badge {
  background: var(--color-bg-alt);
  color: var(--color-text-lighter);
  border-color: var(--color-border);
  text-transform: none;
  font-size: 0.8rem;
  letter-spacing: normal;
}

.pro-section {
  margin-bottom: 2rem;
}

.pro-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dir-navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border-light);
}

.pro-description {
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
}

/* ---------- Gallery ---------- */
.pro-gallery {
  margin-bottom: 2rem;
  max-width: 100%;
  overflow: hidden;
}

.pro-gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  max-width: 100%;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
}

.pro-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pro-gallery-main:hover img {
  transform: scale(1.02);
}

.pro-gallery-count {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(7, 31, 58, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.pro-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 2px 2px 0.35rem;
  scrollbar-width: thin;
  max-width: 100%;
}

.pro-gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.pro-gallery-thumbs img.is-active {
  opacity: 1;
  outline: 2px solid var(--dir-aqua);
  outline-offset: 1px;
}

.pro-gallery-thumbs img:hover {
  opacity: 1;
}

/* ---------- Lightbox ---------- */
.pro-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
  background: rgba(7, 20, 38, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pro-lightbox[hidden] {
  display: none;
}

.pro-lightbox-img {
  max-width: min(100%, 1100px);
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pro-lightbox-close,
.pro-lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.pro-lightbox-close:hover,
.pro-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.pro-lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
}

.pro-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  line-height: 1;
}

.pro-lightbox-prev { left: 1rem; }
.pro-lightbox-next { right: 1rem; }

.pro-lightbox-count {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .pro-lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .pro-lightbox-prev { left: 0.5rem; }
  .pro-lightbox-next { right: 0.5rem; }
}

/* ---------- Location & hours ---------- */
.pro-location-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.pro-subheading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dir-navy);
  margin-bottom: 0.75rem;
}

.pro-address-block {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.pro-address-block strong {
  color: var(--color-text);
}

.pro-map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
  margin-bottom: 0.75rem;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.pro-map-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.pro-hours-empty {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

.pro-hours-pane .pro-hours-table {
  margin-top: 0;
}

.pro-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pro-hours-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

.pro-hours-table tr:last-child {
  border-bottom: none;
}

.hours-day {
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.hours-time {
  padding: 0.6rem 0.9rem;
  color: var(--color-text-light);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours-closed .hours-time {
  color: var(--color-text-lighter);
  font-style: italic;
}

/* Current weekday (marked by pro-reviews.js) */
.pro-hours-table tr.is-today {
  background: var(--color-primary-light, #e8f1fc);
}

.pro-hours-table tr.is-today .hours-day {
  color: var(--dir-navy);
}

.pro-hours-table tr.is-today .hours-day::after {
  content: "Today";
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--dir-aqua, #06b6d4);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.pro-hours-table tr.is-today .hours-time {
  color: var(--dir-navy);
  font-weight: 600;
}

.btn-google-maps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  margin-top: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-google-maps:hover {
  border-color: var(--dir-aqua);
  color: var(--dir-aqua-strong);
  background: var(--dir-aqua-tint);
}

.btn-google-maps svg {
  flex-shrink: 0;
}

.price-inactive {
  opacity: 0.25;
}

/* ---------- Services & areas ---------- */
.pro-services-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.pro-services-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.pro-services-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--dir-aqua);
  border-radius: 50%;
  flex-shrink: 0;
}

.pro-areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pro-area-tag {
  padding: 0.4rem 0.85rem;
  background: var(--dir-aqua-tint);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dir-aqua-strong);
}

a.pro-area-tag {
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

a.pro-area-tag:hover {
  background: var(--dir-aqua-tint-2);
  color: var(--dir-navy);
}

/* ---------- Sidebar ---------- */
.pro-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 60px);
  min-width: 0;
  overflow: hidden;
}

.pro-contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow, 0 4px 16px rgba(16, 42, 73, 0.08));
  overflow: hidden;
}

.pro-contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dir-navy);
  margin-bottom: 1rem;
}

.pro-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
}

.pro-contact-item:last-of-type {
  border-bottom: none;
}

.pro-contact-item svg {
  flex-shrink: 0;
  color: var(--dir-aqua-strong);
}

.pro-contact-item a {
  color: var(--color-text);
  word-break: break-all;
  overflow-wrap: anywhere;
  min-width: 0;
}

.pro-contact-item a:hover {
  color: var(--dir-aqua-strong);
}

/* ---------- Claim box ---------- */
.pro-claim-box {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}

.pro-claim-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dir-navy);
  margin-bottom: 0.35rem;
}

.pro-claim-box p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.btn-claim {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: #fff;
  color: var(--dir-aqua-strong);
  border: 2px solid var(--dir-aqua-strong);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-claim:hover {
  background: var(--dir-aqua-strong);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Pro actions ---------- */
.pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-light);
}

.pro-actions-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pro-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pro-action-btn:hover {
  border-color: var(--dir-aqua);
  background: var(--dir-aqua-tint);
  color: var(--dir-navy);
}

.pro-action-btn svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   20. REVIEWS (rv-*)
   ============================================================ */
.rv-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.rv-summary-rating {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dir-navy);
  line-height: 1;
}

.rv-summary .dir-stars {
  font-size: 1.25rem;
  gap: 3px;
}

.rv-summary-count {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-left: 0.25rem;
}

.rv-count-badge {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--dir-aqua-tint);
  color: var(--dir-aqua-strong);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.rv-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.rv-sort-btn {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-card);
  color: var(--color-text-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.rv-sort-btn:hover {
  border-color: var(--dir-aqua);
  color: var(--dir-aqua-strong);
}

.rv-sort-btn.active {
  background: var(--dir-aqua-strong);
  color: #fff;
  border-color: var(--dir-aqua-strong);
}

.rv-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rv-card {
  padding: 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.rv-card:hover {
  border-color: var(--dir-aqua-tint-2);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
}

.rv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rv-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.rv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.rv-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dir-navy);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.rv-author {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.rv-time {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-lighter);
}

.rv-rating {
  flex-shrink: 0;
}

.rv-rating .dir-stars {
  font-size: 0.9rem;
  gap: 1px;
}

.rv-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text);
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
}

.rv-show-more {
  display: block;
  width: 100%;
  padding: 0.85rem;
  margin-top: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  color: var(--dir-aqua-strong);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rv-show-more:hover {
  border-color: var(--dir-aqua);
  background: var(--dir-aqua-tint);
}

.rv-attribution {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-lighter);
  text-align: center;
}

/* ---------- Review photos (display + upload preview) ---------- */
.rv-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.rv-photo-link {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rv-photo-link:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
}

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

.rv-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.rv-photo-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt);
}

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

.rv-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 39, 71, 0.7);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.rv-photo-remove:hover {
  background: rgba(220, 38, 38, 0.9);
}

/* ---------- Star rating input ---------- */
.rv-star-rating-input {
  display: inline-flex;
  gap: 0.15rem;
}

.rv-star-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #d1d5db;
  cursor: pointer;
  padding: 0 0.1rem;
  line-height: 1;
  transition: color 0.1s ease, transform 0.1s ease;
}

.rv-star-btn:hover,
.rv-star-btn:focus-visible {
  transform: scale(1.08);
}

.rv-star-btn.is-active {
  color: var(--color-star);
}

/* ============================================================
   21. BUTTONS (shared)
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  background: var(--dir-btn-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--dir-shadow-aqua);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--dir-shadow-aqua-lg);
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--dir-navy);
  border: 2px solid var(--dir-navy);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: var(--dir-navy);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

/* Sidebar contact-card CTA spacing (matches source usage) */
.pro-contact-card .btn-primary {
  width: 100%;
  margin-top: 1rem;
}

/* ============================================================
   22. AUTH PAGES + FORMS
   ============================================================ */
.auth-page {
  padding: 3.5rem 0 4.5rem;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(46rem 28rem at 88% -4%, rgba(6, 182, 212, 0.12), transparent 62%),
    radial-gradient(38rem 24rem at 4% 104%, rgba(14, 55, 99, 0.09), transparent 58%),
    linear-gradient(180deg, #f6fbfd 0%, #eef6fa 100%);
}

.auth-card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid rgba(14, 55, 99, 0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.5rem 2.25rem;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  box-shadow:
    0 1px 2px rgba(10, 39, 71, 0.05),
    0 18px 45px -12px rgba(10, 39, 71, 0.18);
}

/* Slim brand accent along the top edge of the card */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--dir-btn-gradient);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.auth-brand-name {
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: 0.01em;
}

.auth-brand-sub {
  color: var(--dir-aqua);
  text-transform: uppercase;
  font-size: 0.72em;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.auth-card h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dir-navy);
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  color: var(--color-text-light);
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 34ch;
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group textarea {
  min-height: 96px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dir-aqua);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.form-group input:disabled {
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  cursor: not-allowed;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-lighter);
}

.form-help {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-lighter);
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 3px solid #dc2626;
  color: #b91c1c;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 3px solid #16a34a;
  color: #15803d;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-link {
  text-align: center;
  margin-top: 1.15rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.auth-link a {
  font-weight: 600;
  color: var(--dir-aqua-strong);
}

.auth-link a:hover {
  color: var(--dir-navy);
}

/* ---------- Label row with inline helper link ---------- */
.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.form-inline-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dir-aqua-strong);
  white-space: nowrap;
}

.form-inline-link:hover {
  color: var(--dir-navy);
}

/* ---------- Password input with show/hide toggle ---------- */
.input-wrap {
  position: relative;
  display: flex;
}

.input-wrap input {
  width: 100%;
  padding-right: 3rem;
}

.input-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--color-text-lighter);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.input-toggle:hover {
  color: var(--dir-navy);
  background: var(--color-bg-alt);
}

.input-toggle .eye-slash {
  display: none;
}

.input-toggle--on .eye-slash {
  display: block;
}

/* ---------- Divider between form and alternate action ---------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.6rem 0 1rem;
  color: var(--color-text-lighter);
  font-size: 0.82rem;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ---------- Terms + trust footnote ---------- */
.auth-terms {
  text-align: center;
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-text-lighter);
}

.auth-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.25rem auto 0;
  max-width: 440px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.auth-footnote svg {
  flex-shrink: 0;
  color: var(--dir-aqua-strong);
}

/* ---------- Role selector (signup) ---------- */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.role-option {
  cursor: pointer;
  position: relative;
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 0.9rem 2.1rem 0.9rem 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

/* Radio indicator in the top-right corner of each role card */
.role-card::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.role-card strong {
  font-size: 0.9rem;
  color: var(--dir-navy);
}

.role-card small {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-text-light);
}

.role-option:hover .role-card {
  border-color: var(--dir-aqua-tint-2);
  background: #fbfeff;
}

.role-option--active .role-card {
  border-color: var(--dir-aqua-strong);
  background: var(--dir-aqua-tint);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
}

.role-option--active .role-card::after {
  border-color: var(--dir-aqua-strong);
  background: var(--dir-aqua-strong)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
    center / 62% no-repeat;
}

/* Keyboard focus on the hidden radio lights up the card */
.role-option input:focus-visible + .role-card {
  outline: 2px solid var(--dir-aqua);
  outline-offset: 2px;
}

/* ============================================================
   23. BUILDER SIGNUP
   ============================================================ */
.builder-signup-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-md, 0 10px 30px rgba(16, 42, 73, 0.1));
}

.builder-signup-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dir-navy);
  margin-bottom: 0.25rem;
}

.builder-signup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bs-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.bs-result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bs-result-card:hover {
  border-color: var(--dir-aqua);
  background: var(--dir-aqua-tint);
  color: var(--color-text);
}

.bs-result-card span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.bs-no-results {
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.bs-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--color-text-lighter);
  font-size: 0.85rem;
}

.bs-divider::before,
.bs-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ============================================================
   24. ACCOUNT + SETTINGS
   ============================================================ */
.account-page {
  padding: 2.5rem 0 4rem;
  min-height: 70vh;
}

.account-loading {
  text-align: center;
  padding: 4rem 0;
  color: var(--color-text-light);
  font-size: 1rem;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.account-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dir-navy);
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--dir-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(14, 55, 99, 0.25);
}

.account-email {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.account-role-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
}

/* Role badge variants — source JS uses role-homeowner/role-pro/role-admin,
   older markup uses role-user/role-business. Cover both sets. */
.role-user,
.role-homeowner {
  background: var(--dir-aqua-tint);
  color: var(--dir-aqua-strong);
}

.role-business,
.role-pro {
  background: #fef3c7;
  color: #92400e;
}

.role-admin {
  background: #fce7f3;
  color: #9d174d;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.account-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.account-card:hover {
  border-color: var(--dir-aqua);
  box-shadow: var(--shadow, 0 4px 16px rgba(16, 42, 73, 0.08));
  color: var(--color-text);
  transform: translateY(-2px);
}

.account-card svg {
  width: 28px;
  height: 28px;
  color: var(--dir-aqua-strong);
  margin-bottom: 0.25rem;
}

.account-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dir-navy);
}

.account-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ---------- Settings ---------- */
.settings-header {
  margin-bottom: 2rem;
}

.settings-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dir-navy);
}

.settings-back {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  display: inline-block;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.settings-back:hover {
  color: var(--dir-aqua-strong);
}

.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 560px;
}

.settings-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
}

.settings-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dir-navy);
  margin-bottom: 1rem;
}

/* ============================================================
   25. DASHBOARD / ADMIN
   ============================================================ */
.dash-page {
  padding: 2rem 0 4rem;
  min-height: 80vh;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dir-navy);
}

.dash-back {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-decoration: none;
}

.dash-back:hover {
  color: var(--dir-aqua-strong);
}

/* ---------- Tabs ---------- */
.dash-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dash-tab {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.dash-tab:hover {
  color: var(--dir-navy);
}

.dash-tab.active {
  color: var(--dir-navy);
  border-bottom-color: var(--dir-navy);
}

.dash-tab .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--dir-aqua-strong);
  color: #fff;
  border-radius: 999px;
  margin-left: 0.4rem;
}

/* ---------- Stat cards ---------- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
}

.dash-stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dir-navy);
}

.dash-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.15rem;
}

/* ---------- Table ---------- */
.dash-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.dash-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--dir-navy);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.dash-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.dash-table tbody tr:nth-child(even) td {
  background: #fafbfd;
}

.dash-table tbody tr:hover td {
  background: var(--dir-aqua-tint);
}

/* ---------- Status badges ---------- */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-approved,
.status-published {
  background: #d1fae5;
  color: #065f46;
}

.status-rejected,
.status-flagged {
  background: #fee2e2;
  color: #991b1b;
}

.status-open {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* ---------- Diff view ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.diff-col {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.diff-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-lighter);
  margin-bottom: 0.5rem;
}

.diff-col.diff-current {
  background: #fef2f2;
  border-color: #fecaca;
}

.diff-col.diff-proposed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.diff-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.diff-row:last-child {
  border-bottom: none;
}

.diff-key {
  font-weight: 600;
  color: var(--color-text);
}

.diff-value {
  color: var(--color-text-light);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* ---------- Approve / reject ---------- */
.dash-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-approve {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--color-success);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-approve:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-reject {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-reject:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ---------- Edit form ---------- */
.edit-form {
  max-width: 640px;
}

.edit-form .form-group {
  margin-bottom: 1rem;
}

.edit-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---------- Empty state ---------- */
.dash-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-light);
}

.dash-empty svg {
  width: 48px;
  height: 48px;
  color: var(--color-text-lighter);
  margin-bottom: 0.75rem;
}

.dash-empty p {
  font-size: 0.95rem;
}

/* ============================================================
   26. MESSAGES
   ============================================================ */
.msg-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  min-height: 500px;
}

.msg-threads {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  overflow-y: auto;
  max-height: 600px;
}

.msg-thread-item {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.1s ease;
}

.msg-thread-item:hover,
.msg-thread-item.active {
  background: var(--dir-aqua-tint);
  color: var(--color-text);
}

.msg-thread-item.active {
  box-shadow: inset 3px 0 0 var(--dir-aqua);
}

.msg-thread-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dir-navy);
}

.msg-thread-item span {
  font-size: 0.8rem;
  color: var(--color-text-light);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-thread-view {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  display: flex;
  flex-direction: column;
}

.msg-thread-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dir-navy);
}

.msg-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  max-height: 450px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.msg-bubble {
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  max-width: 75%;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.msg-bubble.msg-mine {
  background: var(--dir-navy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg-bubble.msg-theirs {
  background: var(--color-bg-alt);
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-bubble small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 0.15rem;
}

.msg-send-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
}

.msg-send-form input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.msg-send-form input:focus {
  outline: none;
  border-color: var(--dir-aqua);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.msg-send-form button {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  min-height: 0;
}

/* ============================================================
   27. MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 39, 71, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(16, 42, 73, 0.16));
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  font-family: var(--font-sans);
}

.modal-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dir-navy);
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-lighter);
  line-height: 1;
  padding: 0;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: var(--dir-navy);
}

/* ============================================================
   28. FOR BUILDERS (marketing page)
   ============================================================ */
.builders-hero {
  position: relative;
  overflow: hidden;
  background: var(--dir-hero-gradient);
  color: #fff;
  text-align: center;
}

/* :not([class]) so these fallbacks never override the hero's own
   .dir-hero-kicker / .dir-hero-title / .dir-hero-sub elements. */
.builders-hero h1:not([class]) {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 auto 1rem;
  max-width: 24ch;
}

.builders-hero p:not([class]) {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto 2rem;
}

.builders-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Ghost secondary reads correctly on the navy hero */
.builders-hero .btn-secondary,
.dir-hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.builders-hero .btn-secondary:hover,
.dir-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  color: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-card {
  padding: 1.75rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 42, 73, 0.06));
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow, 0 4px 16px rgba(16, 42, 73, 0.08));
  border-color: var(--dir-aqua);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--dir-aqua-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  color: var(--dir-aqua-strong);
}

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dir-navy);
  margin-bottom: 0.35rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.how-step-number {
  width: 44px;
  height: 44px;
  background: var(--dir-btn-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 0.85rem;
  box-shadow: var(--dir-shadow-aqua);
}

.how-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dir-navy);
  margin-bottom: 0.35rem;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================================================
   29. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pro-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pro-sidebar {
    position: static;
  }

  .pro-gallery-main {
    aspect-ratio: 16 / 10;
  }

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

  .city-highlights-grid {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .dir-hero {
    padding: 3.25rem 0 5.5rem;
  }

  .dir-hero--city {
    padding: 2.5rem 0 4.5rem;
  }

  .dir-hero-stats {
    gap: 0.5rem;
  }

  .dir-hero-stat {
    padding: 0.5rem 1.1rem;
  }

  .dir-hero-stat-number {
    font-size: 1.15rem;
  }

  .dir-search {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .dir-search input {
    padding: 0.9rem 1.25rem;
  }

  .dir-search button {
    border-radius: 0;
    padding: 0.9rem 1.25rem;
  }

  .city-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .city-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .city-map {
    height: 280px;
    border-radius: var(--radius-md);
  }

  .city-highlights-grid {
    grid-template-columns: 1fr;
  }

  .city-highlight-card {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }

  .city-highlight-icon {
    margin: 0;
    flex-shrink: 0;
  }

  .builder-card-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .builder-card-thumb {
    width: 100%;
    height: 180px;
  }

  .builder-card-rank {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .builder-card-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pro-header h1 {
    font-size: 1.5rem;
  }

  .pro-services-list {
    grid-template-columns: 1fr;
  }

  .pro-location-hours-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pro-hours-pane {
    padding-top: 0.25rem;
    border-top: 1px solid var(--color-border-light);
  }

  .pro-gallery-main {
    aspect-ratio: 4 / 3;
  }

  .pro-gallery-thumbs img {
    width: 64px;
    height: 48px;
  }

  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .edit-form .form-row {
    grid-template-columns: 1fr;
  }

  .msg-layout {
    grid-template-columns: 1fr;
  }

  .msg-threads {
    max-height: 250px;
  }

  .dir-toolbar-nav {
    gap: 0.85rem;
  }
}

@media (max-width: 640px) {
  .dir-section {
    padding: 3rem 0;
  }

  .dir-hero-title {
    font-size: clamp(1.7rem, 7.5vw, 2.1rem);
  }

  .dir-cta {
    padding: 2.25rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .auth-card {
    padding: 1.9rem 1.35rem 1.6rem;
    margin: 0 0.5rem;
  }

  .builder-signup-card {
    padding: 1.5rem;
  }

  .modal-card {
    padding: 1.5rem;
  }

  .role-selector {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .account-header {
    flex-direction: column;
    text-align: center;
  }

  .builders-hero h1 {
    font-size: 1.75rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Toolbar compacts and may wrap to a second row on tiny screens.
     No overflow clipping here — the dropdowns are absolutely
     positioned children and must remain visible. */
  .dir-toolbar-inner {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .dir-toolbar-nav {
    gap: 0.7rem;
  }

  .dir-toolbar-nav a {
    font-size: 0.8rem;
  }

  .dir-toolbar-nav a.dir-toolbar-brand {
    font-size: 0.88rem;
  }

  .dir-toolbar-nav a.dir-toolbar-forpros {
    padding: 0.22rem 0.7rem;
    font-size: 0.75rem;
  }

  .header-user-name {
    display: none;
  }
}

/* ============================================================
   30. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .dir-page *,
  .dir-page *::before,
  .dir-page *::after,
  .dir-toolbar *,
  .dir-toolbar *::before,
  .dir-toolbar *::after,
  .modal-overlay,
  .modal-card {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .city-card:hover,
  .state-card:hover,
  .builder-card:hover,
  .nearby-link:hover,
  .account-card:hover,
  .benefit-card:hover,
  .city-highlight-card:hover,
  .dir-cta-btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .header-signup-btn:hover,
  .btn-claim:hover,
  .city-show-more-btn:hover,
  .rv-photo-link:hover,
  .rv-star-btn:hover,
  .builder-card:hover .builder-card-thumb img {
    transform: none;
  }
}

/* ============================================================
   26. CITY GUIDE ROWS (alternating text/media, hub + city pages)
   ============================================================ */
.dir-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.35rem;
}
.dir-hero--city .dir-hero-ctas {
  justify-content: flex-start;
}
.dir-hero-ctas .dir-cta-btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

.dir-rows-section {
  padding: 3.25rem 0 1.25rem;
  background: var(--color-bg);
}
.dir-rows {
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}
.dir-row {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.dir-row--top {
  align-items: start;
}
@media (min-width: 64em) {
  .dir-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
  .dir-row--flip .dir-row-media {
    order: -1;
  }
}
.dir-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dir-aqua-strong);
  margin-bottom: 0.5rem;
}
.dir-row h2 {
  font-size: 1.6rem;
  color: var(--dir-navy);
  margin: 0 0 0.85rem;
}
.dir-row p {
  line-height: 1.7;
  color: #3a4a5a;
  margin: 0 0 1rem;
}
.dir-row p:last-child {
  margin-bottom: 0;
}
.dir-row-text a {
  color: var(--color-primary);
  font-weight: 600;
}
.dir-figure {
  margin: 0;
}
.dir-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}
.dir-figure figcaption {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.6rem;
  line-height: 1.5;
}
.dir-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}
.dir-chips a {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  background: var(--dir-aqua-tint);
  color: var(--dir-navy);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.dir-chips a:hover {
  background: var(--dir-aqua-tint-2);
}
.dir-sidecard {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.1rem;
  margin-top: 1.25rem;
}
.dir-sidecard h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dir-navy);
  margin: 0 0 0.35rem;
}
.dir-sidecard p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}
.dir-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}
.dir-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 320px;
}
.dir-price-table th {
  text-align: left;
  background: var(--dir-navy);
  color: #fff;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
}
.dir-price-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  color: #3a4a5a;
}
.dir-price-table td a {
  color: var(--color-primary);
  font-weight: 600;
}
.dir-price-table tr:nth-child(even) td {
  background: var(--color-bg-alt);
}
.dir-price-table tr.dir-price-hl td {
  background: var(--dir-aqua-tint);
  color: var(--dir-navy);
  font-weight: 700;
}
.dir-local-list {
  list-style: none;
  margin: 1.1rem 0 1.25rem;
  padding: 0;
}
.dir-local-list li {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: #3a4a5a;
  font-size: 0.95rem;
}
.dir-local-list li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.15rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dir-aqua);
  box-shadow: 0 0 0 4px var(--dir-aqua-tint);
}
.dir-local-list li strong {
  color: var(--dir-navy);
}

/* Hub extras: finder pointer under search, price-table footnote */
.dir-search-alt {
  margin: 0.85rem auto 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  max-width: 560px;
}
.dir-search-alt a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dir-price-table--hub {
  min-width: 560px;
  background: var(--color-bg-card);
}
.dir-price-table--hub td {
  background: var(--color-bg-card);
}
.dir-price-table--hub tr:nth-child(even) td {
  background: var(--color-bg-alt);
}
.dir-table-note {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 720px;
}
.dir-table-note a {
  color: var(--color-primary);
  font-weight: 600;
}

/* On-image gallery arrows (pro page main photo) */
.pro-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(7, 31, 58, 0.6);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0 0 4px;
}
.pro-gallery-arrow:hover {
  background: rgba(7, 31, 58, 0.85);
}
.pro-gallery-arrow--prev { left: 0.75rem; }
.pro-gallery-arrow--next { right: 0.75rem; }
@media (max-width: 48em) {
  .pro-gallery-arrow { width: 36px; height: 36px; font-size: 1.4rem; }
}

/* ============================================================
   27. VIEW-COMPANY CTAs + MOBILE POLISH
   ============================================================ */
/* Anchor jumps clear the sticky header + toolbar */
#listings, #pricing, #faq, #map, #cities, #states, #how-it-works {
  scroll-margin-top: calc(var(--header-height, 64px) + 56px);
}

/* Listing-card action buttons */
.builder-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.95rem;
}
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.bc-btn--primary {
  background: var(--dir-btn-gradient);
  color: #fff;
  box-shadow: var(--dir-shadow-aqua);
}
.bc-btn--primary:hover {
  filter: brightness(1.07);
  color: #fff;
  transform: translateY(-1px);
}
.bc-btn--ghost {
  background: var(--color-bg-card);
  color: var(--dir-navy);
  border: 1.5px solid var(--color-border);
}
.bc-btn--ghost:hover {
  border-color: var(--dir-aqua);
  background: var(--dir-aqua-tint);
  color: var(--dir-navy);
}

/* Highlight-card + peer-card CTAs */
.city-highlight-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dir-aqua-strong);
  text-decoration: none;
}
.city-highlight-cta:hover {
  color: var(--dir-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pro-peer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dir-aqua-strong);
}
.pro-peer-card:hover .pro-peer-cta {
  color: var(--dir-navy);
}

/* ---------- Mobile polish ---------- */
@media (max-width: 768px) {
  /* Rank becomes a badge overlaid on the full-width thumb instead of
     its own orphan row (builder-card-inner goes column at this width) */
  .builder-card-inner {
    position: relative;
    padding: 1.1rem;
  }
  .builder-card-rank {
    position: absolute;
    top: 1.75rem;
    left: 1.75rem;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(7, 31, 58, 0.35);
  }
  .builder-card-thumb {
    height: 190px;
    border-radius: var(--radius-md);
  }
  .builder-card-actions .bc-btn {
    flex: 1 1 45%;
  }
  .dir-rows-section {
    padding: 2.5rem 0 1rem;
  }
  .dir-rows {
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .dir-hero-ctas {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.25rem;
  }
  .dir-hero-ctas .dir-cta-btn {
    width: 100%;
  }
  .dir-row {
    gap: 1.4rem;
  }
  .dir-row h2 {
    font-size: 1.35rem;
  }
  .dir-eyebrow {
    font-size: 0.72rem;
  }
  .dir-figure img {
    border-radius: 14px;
  }
  .dir-figure figcaption {
    font-size: 0.8rem;
  }
  .dir-local-list li {
    padding: 0.8rem 0.9rem 0.8rem 2.35rem;
    font-size: 0.9rem;
  }
  .dir-local-list li::before {
    left: 0.85rem;
    top: 1.05rem;
  }
  .dir-price-table {
    font-size: 0.87rem;
  }
  .dir-price-table th,
  .dir-price-table td {
    padding: 0.6rem 0.7rem;
  }
  .dir-table-wrap {
    -webkit-overflow-scrolling: touch;
  }
  .dir-table-note {
    font-size: 0.84rem;
  }
  .dir-search-alt {
    font-size: 0.84rem;
  }
  .dir-chips a {
    font-size: 0.82rem;
    padding: 0.38rem 0.8rem;
  }
  .dir-sidecard {
    padding: 1.1rem 1rem 0.95rem;
  }
  .city-stat-value {
    font-size: 1.4rem;
  }
  .city-stats-grid {
    gap: 0.85rem 0.75rem;
  }
  .builder-card-actions {
    gap: 0.5rem;
  }
  .bc-btn {
    padding: 0.6rem 1rem;
  }
}

/* ============================================================
   28. COMMUNITY FORUM (frm-*)
   Static shells live in src/directory/forum/; dynamic content is
   hydrated by /assets/js/directory/forum.js. Shares dir-hero,
   dir-sidecard, btn-primary and the auth toolbar components.
   ============================================================ */

/* ---------- toolbar ---------- */
.frm-toolbar-new {
  white-space: nowrap;
}

/* ---------- hero ---------- */
.frm-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 1.4rem 0 0.4rem;
  flex-wrap: wrap;
}

.frm-hero-cta {
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
}

.frm-hero-ghost {
  color: #cfe9f5;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid rgba(207, 233, 245, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.frm-hero-ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.frm-crumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.frm-crumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.frm-crumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

/* On-white crumbs sit on working pages (thread, new post), where the
   inherited .dir-breadcrumbs 1rem padding just pushes the content down.
   Spacing below the crumb is owned by one margin, nothing else. */
.frm-crumbs--onwhite {
  justify-content: flex-start;
  color: var(--color-text-lighter);
  padding: 0;
  margin: 0 0 0.6rem;
}

.frm-crumbs--onwhite a {
  color: var(--color-text-light);
}

.frm-crumbs--onwhite a:hover {
  color: var(--dir-aqua-strong);
}

.frm-cat-hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: left;
}

.frm-cat-hero-icon {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.frm-cat-hero-icon svg {
  width: 38px;
  height: 38px;
  color: #7fe0f0;
}

.frm-cat-hero-title {
  margin-bottom: 0.35rem;
}

.frm-cat-hero-sub {
  margin: 0;
}

/* ---------- section scaffolding ---------- */
.frm-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.frm-section-head h2 {
  font-size: 1.7rem;
  color: var(--dir-navy);
  margin-bottom: 0.5rem;
}

.frm-section-head p {
  color: var(--color-text-light);
  margin: 0;
}

/* The forum is a working page, not a landing page — the hero is trimmed
   back so discussions start near the top of the first screen. */
.frm-hero {
  /* Bottom padding stays above the 60px wave that overlaps the section. */
  padding: 2.3rem 0 4.6rem;
}

.frm-hero .dir-hero-stats {
  margin-top: 1.25rem;
}

.frm-hero .dir-hero-sub {
  margin-bottom: 0;
}

/* Category pages are pure navigation — trim the banner harder still. */
.frm-hero--cat {
  padding: 1.6rem 0 4.5rem;
}

.frm-cats-section {
  background: var(--color-bg-alt);
  padding: 2.1rem 0 2.4rem;
}

.frm-cats-section .frm-section-head {
  margin-bottom: 1.4rem;
}

.frm-main-section {
  padding: 2.2rem 0 3rem;
}

/* 2/1 layout: feed takes two thirds, sidebar one third. */
.frm-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

/* ---------- category grid ---------- */
.frm-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.frm-cat-card {
  --frm-accent: var(--dir-aqua);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 1.2rem;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.frm-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(14, 55, 99, 0.12);
  border-color: var(--frm-accent);
}

.frm-cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--frm-accent);
  background: #eef4f9;
}

@supports (background: color-mix(in srgb, red 12%, white)) {
  .frm-cat-icon {
    background: color-mix(in srgb, var(--frm-accent) 12%, #ffffff);
  }
}

.frm-cat-icon svg {
  width: 25px;
  height: 25px;
}

.frm-cat-name {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--dir-navy);
  margin-bottom: 0.25rem;
}

.frm-cat-tag {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text-light);
}

.frm-cat-count {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--dir-aqua-strong);
  background: var(--dir-aqua-tint);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  min-height: 1.4rem;
}

.frm-cat-count:empty {
  visibility: hidden;
}

/* ---------- feed ---------- */
.frm-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.frm-feed-head h2 {
  font-size: 1.35rem;
  color: var(--dir-navy);
  margin: 0;
}

.frm-sort {
  display: inline-flex;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.22rem;
  gap: 0.15rem;
}

.frm-sort-btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.frm-sort-btn:hover {
  color: var(--dir-navy);
}

.frm-sort-btn.active {
  background: #ffffff;
  color: var(--dir-navy);
  box-shadow: 0 1px 4px rgba(14, 55, 99, 0.14);
}

.frm-thread-list {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.frm-thread-list:empty {
  display: none;
}

.frm-thread-list--pinned {
  margin-bottom: 1rem;
}

.frm-thread-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.2rem;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.15s ease;
}

.frm-thread-row:last-child {
  border-bottom: 0;
}

a.frm-thread-row:hover {
  background: #f6fbfd;
}

.frm-thread-row--pinned {
  background: #fffdf4;
}

.frm-row-main {
  min-width: 0;
}

.frm-row-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--dir-navy);
  margin-bottom: 0.2rem;
}

.frm-row-snippet {
  display: block;
  font-size: 0.86rem;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
}

.frm-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--color-text-lighter);
}

.frm-row-last strong {
  color: var(--color-text-light);
}

.frm-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dir-aqua-strong);
  background: var(--dir-aqua-tint);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  text-decoration: none;
}

a.frm-chip:hover {
  background: var(--dir-aqua-tint-2);
}

.frm-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  padding: 0.14rem 0.45rem;
  margin-right: 0.35rem;
  vertical-align: 2px;
}

.frm-badge--pin {
  color: #8a6100;
  background: #fdf1cf;
}

.frm-badge--lock {
  color: #5b6470;
  background: #eceff3;
}

.frm-row-stats {
  display: flex;
  gap: 1.1rem;
}

.frm-row-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
}

.frm-row-stat strong {
  font-size: 1rem;
  color: var(--dir-navy);
  line-height: 1.2;
}

.frm-row-stat span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-lighter);
}

.frm-feed-error {
  padding: 1.6rem 1.2rem;
  text-align: center;
  color: var(--color-text-light);
}

/* ---------- avatars ---------- */
.frm-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  background: var(--dir-aqua-strong);
}

.frm-avatar--lg {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
}

.frm-avatar--t1 { background: #0e7490; }
.frm-avatar--t2 { background: #0e3763; }
.frm-avatar--t3 { background: #7c3aed; }
.frm-avatar--t4 { background: #0f9d76; }
.frm-avatar--t5 { background: #d97706; }
.frm-avatar--t6 { background: #dc4b4b; }

/* ---------- skeletons / empty / load more ---------- */
@keyframes frm-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.frm-skel {
  pointer-events: none;
}

.frm-skel-avatar,
.frm-skel-line {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 40%, #eef1f5 60%);
  background-size: 800px 100%;
  animation: frm-shimmer 1.3s linear infinite;
}

.frm-skel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.frm-skel-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.frm-skel-line {
  height: 0.8rem;
  width: 90%;
}

.frm-skel-line--short {
  width: 55%;
}

.frm-skel--title {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.frm-skel--title .frm-skel-line {
  height: 1.3rem;
}

.frm-empty {
  text-align: center;
  background: var(--color-bg-card);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.6rem 1.5rem;
}

.frm-empty-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--dir-aqua-tint);
  color: var(--dir-aqua-strong);
  margin-bottom: 0.9rem;
}

.frm-empty-art svg {
  width: 30px;
  height: 30px;
}

.frm-empty h3 {
  color: var(--dir-navy);
  margin-bottom: 0.4rem;
}

.frm-empty p {
  color: var(--color-text-light);
  max-width: 420px;
  margin: 0 auto 1.2rem;
}

.frm-more-wrap {
  text-align: center;
  margin-top: 1.2rem;
}

.frm-load-more {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dir-aqua-strong);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.frm-load-more:hover {
  border-color: var(--dir-aqua);
  box-shadow: 0 4px 12px rgba(6, 116, 138, 0.12);
}

/* Static thread pages: footer links to the category + new-discussion CTA */
.frm-thread-footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.92rem;
  font-weight: 600;
}

.frm-thread-footlinks a {
  color: var(--dir-aqua-strong);
  text-decoration: none;
}

.frm-thread-footlinks a:hover {
  text-decoration: underline;
}

/* ---------- sidebar ---------- */
.frm-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: calc(var(--header-height, 70px) + 60px);
}

.frm-side .dir-sidecard h3 {
  margin-bottom: 0.6rem;
}

.frm-side-cta p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.frm-side-note {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: var(--color-text-lighter);
  text-align: center;
}

.frm-side-note-top {
  font-size: 0.86rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.frm-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.frm-rules li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

.frm-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--dir-aqua);
}

.frm-side-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.frm-side-links a {
  font-size: 0.9rem;
  color: var(--dir-aqua-strong);
  text-decoration: none;
}

.frm-side-links a:hover {
  text-decoration: underline;
}

.frm-side-about .frm-side-seo {
  font-size: 0.85rem;
  color: var(--color-text-lighter);
  margin: 0.6rem 0 0;
}

.frm-side-about p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ---------- SEO strip ---------- */
.frm-seo-section {
  background: var(--color-bg-alt);
  padding: 2.8rem 0 3rem;
}

.frm-seo-copy {
  max-width: 760px;
}

.frm-seo-copy h2 {
  font-size: 1.4rem;
  color: var(--dir-navy);
  margin-bottom: 0.7rem;
}

.frm-seo-copy p {
  color: var(--color-text-light);
  margin-bottom: 0.8rem;
}

.frm-seo-copy a {
  color: var(--dir-aqua-strong);
}

/* ---------- thread page ---------- */
.frm-thread-section {
  padding: 0.9rem 0 3rem;
}

.frm-thread-section .frm-crumbs {
  padding: 0;
  margin-bottom: 0.6rem;
}

.frm-thread-head {
  margin-bottom: 1rem;
}

.frm-thread-container {
  max-width: 880px;
}

/* Thread pages share the 2/1 split: discussion left, sidebar right. The
   breadcrumb spans both columns; the sidebar starts level with the article. */
/* Column gap only: the breadcrumb spans both columns, so a row gap would
   add a second, much larger space under it on top of its own margin. */
.frm-thread-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: 2.2rem;
  row-gap: 0;
  align-items: start;
}

.frm-thread-columns > .frm-crumbs {
  grid-column: 1 / -1;
}

.frm-thread-main {
  min-width: 0;
}

/* ---------- Products Mentioned (sidebar) ---------- */
.frm-side-products {
  border-top: 3px solid var(--dir-aqua, #06b6d4);
}

.frm-products-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.frm-product-item a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  text-decoration: none;
  color: var(--dir-navy, #0e3763);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.frm-product-item a:hover {
  border-color: var(--dir-aqua-strong, #0891b2);
  box-shadow: 0 1px 6px rgba(8, 145, 178, 0.14);
}

.frm-product-item svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--dir-aqua-strong, #0891b2);
}

.frm-product-item .frm-product-arrow {
  margin-left: auto;
  color: var(--color-text-lighter, #9ca3af);
  font-weight: 400;
}

.frm-products-note {
  margin: 0.7rem 0 0;
  font-size: 0.75rem;
  color: var(--color-text-lighter, #9ca3af);
}

/* Full product card — photo on top, then name, then Buy Now / Read Our
   Review. Used whenever the admin attached a photo to the mention; photo-less
   products keep the compact .frm-product-item row above. */
.frm-product-card {
  border: 1px solid var(--color-border, #e8ecf0);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.frm-product-card:hover {
  border-color: var(--dir-aqua-strong, #0e7490);
  box-shadow: 0 3px 12px rgba(8, 145, 178, 0.14);
}

.frm-product-card__shot {
  display: block;
  background: linear-gradient(160deg, #f6fbfd 0%, #eef5f9 100%);
  border-bottom: 1px solid var(--color-border-light, #f1f4f7);
  padding: 0.85rem;
}

.frm-product-card__shot img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.frm-product-card__body {
  padding: 0.75rem 0.8rem 0.85rem;
}

.frm-product-card__brand {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dir-aqua-strong, #0e7490);
  margin-bottom: 0.15rem;
}

.frm-product-card__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dir-navy, #0e3763);
  text-decoration: none;
}

.frm-product-card__name:hover {
  color: var(--dir-aqua-strong, #0e7490);
}

.frm-product-card__blurb {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-light, #4b5563);
}

.frm-product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.frm-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.frm-product-btn--buy {
  background: var(--dir-btn-gradient, linear-gradient(135deg, #18c0db 0%, #0e7490 100%));
  color: #fff;
  border: none;
}

.frm-product-btn--buy:hover {
  color: #fff;
  filter: brightness(1.06);
}

.frm-product-btn--review {
  background: #fff;
  color: var(--dir-navy, #0e3763);
  border: 1px solid var(--color-border, #e8ecf0);
}

.frm-product-btn--review:hover {
  background: var(--dir-aqua-tint, #e7f7fb);
  border-color: var(--dir-aqua-strong, #0e7490);
  color: var(--dir-aqua-strong, #0e7490);
}

/* Below the 2/1 breakpoint the sidebar is full width — go side-by-side so a
   stack of products doesn't turn into a wall of photos. */
@media (max-width: 1024px) and (min-width: 561px) {
  .frm-product-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
  }

  .frm-product-card__shot {
    border-bottom: none;
    border-right: 1px solid var(--color-border-light, #f1f4f7);
    height: 100%;
  }

  .frm-product-card__shot img {
    height: 110px;
  }

  .frm-product-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .frm-product-btn {
    flex: 1 1 130px;
    max-width: 240px;
  }
}

.frm-thread-head {
  margin-bottom: 1.4rem;
}

.frm-thread-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.frm-thread-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  color: var(--dir-navy);
  margin: 0 0 0.5rem;
}

.frm-thread-meta {
  font-size: 0.88rem;
  color: var(--color-text-lighter);
}

.frm-thread-meta strong {
  color: var(--color-text-light);
}

/* ---------- thread action bar ----------
   Back to the subforum on the left, thread tools on the right. Sits
   directly under the title so the page starts with something useful. */
.frm-thread-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 0.55rem 0.75rem;
  margin-bottom: 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.frm-bar-back {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dir-aqua-strong);
  text-decoration: none;
  white-space: nowrap;
}

.frm-bar-back:hover { text-decoration: underline; }

.frm-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.frm-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.frm-bar-btn:hover {
  color: var(--dir-aqua-strong);
  border-color: var(--dir-aqua);
}

.frm-bar-btn[data-on="true"] {
  color: #ffffff;
  background: var(--dir-aqua-strong);
  border-color: var(--dir-aqua-strong);
}

.frm-bar-btn--primary {
  color: #ffffff;
  background: var(--dir-navy);
  border-color: var(--dir-navy);
}

.frm-bar-btn--primary:hover {
  color: #ffffff;
  background: var(--dir-aqua-strong);
  border-color: var(--dir-aqua-strong);
}

.frm-bar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dir-aqua);
}

/* ---------- post cards ----------
   Member column left, post right — the layout every long-running pool
   forum uses, because you want to know who is talking before you read. */
.frm-post {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.frm-post--op {
  border-left: 4px solid var(--dir-aqua);
  margin-bottom: 1.6rem;
}

.frm-post--unread {
  box-shadow: inset 3px 0 0 var(--dir-aqua);
}

.frm-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  padding-right: 1.1rem;
  border-right: 1px solid var(--color-border);
}

.frm-member .frm-avatar {
  margin-bottom: 0.35rem;
}

.frm-member-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dir-navy);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.frm-member-handle {
  font-size: 0.76rem;
  color: var(--dir-aqua-strong);
}

.frm-member-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-lighter);
}

.frm-member-loc {
  font-size: 0.74rem;
  color: var(--color-text-lighter);
}

.frm-member-stats {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  width: 100%;
  border-top: 1px solid var(--color-border);
  font-size: 0.72rem;
  color: var(--color-text-lighter);
}

.frm-member-stats span {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.frm-member-stats b {
  color: var(--color-text-light);
  font-weight: 700;
}

/* Post header strip: when it was written, and its number in the thread */
.frm-post-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-text-lighter);
}

.frm-post-num {
  margin-left: auto;
  color: var(--color-text-lighter);
  text-decoration: none;
  font-weight: 600;
}

.frm-post-num:hover { color: var(--dir-aqua-strong); }

.frm-post-new {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: var(--dir-aqua);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

/* Quoted post inside a reply */
.frm-quote {
  margin: 0 0 0.8rem;
  padding: 0.65rem 0.9rem;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--dir-aqua);
  border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
}

.frm-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.3rem;
}

.frm-quote cite a {
  color: var(--dir-aqua-strong);
  text-decoration: none;
}

.frm-quote p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-light);
}

/* Photos attached to a post */
.frm-post-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.frm-shot {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.frm-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.frm-shot:hover img { transform: scale(1.04); }

.frm-post-spacer { flex: 1 1 auto; }

/* Quote / Reply buttons in the post footer */
.frm-post-act {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.frm-post-act:hover {
  color: var(--dir-aqua-strong);
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

.frm-post-body {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--color-text);
  overflow-wrap: break-word;
}

.frm-post-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.frm-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.frm-like-btn:hover {
  border-color: var(--dir-aqua);
  color: var(--dir-aqua-strong);
}

.frm-like-btn[data-liked="true"] {
  color: #ffffff;
  background: var(--dir-aqua-strong);
  border-color: var(--dir-aqua-strong);
}

.frm-admin-tools {
  display: inline-flex;
  gap: 0.45rem;
}

.frm-admin-btn {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
}

.frm-admin-btn:hover {
  border-color: var(--color-text-lighter);
}

.frm-admin-btn--danger {
  color: #c0392b;
}

.frm-admin-btn--danger:hover {
  border-color: #c0392b;
}

.frm-replies-head h2 {
  font-size: 1.15rem;
  color: var(--dir-navy);
  margin: 0 0 0.9rem;
}

/* ---------- composers ---------- */
.frm-composer {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.3rem 1.15rem;
  margin-top: 1.6rem;
}

.frm-composer h3 {
  font-size: 1.05rem;
  color: var(--dir-navy);
  margin: 0 0 0.8rem;
}

.frm-composer textarea,
.frm-new-form textarea,
.frm-new-form input[type="text"],
.frm-new-form select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.frm-composer textarea:focus,
.frm-new-form textarea:focus,
.frm-new-form input[type="text"]:focus,
.frm-new-form select:focus {
  outline: none;
  border-color: var(--dir-aqua);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.frm-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

/* Quote chip above the reply box */
.frm-quote-bar {
  margin-bottom: 0.6rem;
}

.frm-quote-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--dir-aqua);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.83rem;
  color: var(--color-text-light);
}

.frm-quote-chip__label { white-space: nowrap; }
.frm-quote-chip__label strong { color: var(--dir-navy); }

.frm-quote-chip__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.8;
  font-style: italic;
}

.frm-quote-chip__x {
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-text-lighter);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 0.2rem;
}

.frm-quote-chip__x:hover { color: var(--dir-navy); }

/* Photos staged in the composer before posting */
.frm-stage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.frm-stage-shot {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.frm-stage-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frm-stage-shot button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(15, 30, 45, 0.72);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.frm-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.frm-attach-btn:hover {
  color: var(--dir-aqua-strong);
  border-color: var(--dir-aqua);
}

.frm-composer-hint {
  font-size: 0.8rem;
  color: var(--color-text-lighter);
}

.frm-composer--locked p,
.frm-composer--signin p {
  margin: 0;
  color: var(--color-text-light);
}

.frm-composer--signin {
  background: linear-gradient(135deg, #f2fbfd 0%, #eef4fb 100%);
  border-color: var(--dir-aqua-tint-2);
}

.frm-signin-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

/* ---------- new discussion page ---------- */
.frm-new-section {
  padding: 2.2rem 0 3.5rem;
}

.frm-new-container {
  max-width: 1080px;
}

.frm-columns--new {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.frm-new-title {
  font-size: 1.7rem;
  color: var(--dir-navy);
  margin: 0 0 0.35rem;
}

.frm-new-sub {
  color: var(--color-text-light);
  margin: 0 0 1.4rem;
}

.frm-new-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.3rem;
}

.frm-new-form .form-group {
  margin-bottom: 1.1rem;
}

.frm-new-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dir-navy);
  margin-bottom: 0.4rem;
}

.frm-char-count {
  font-size: 0.78rem;
  color: var(--color-text-lighter);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .frm-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .frm-columns,
  .frm-columns--new,
  .frm-thread-columns {
    grid-template-columns: 1fr;
  }
  /* Row gap stays 0 (it would reopen the gap under the breadcrumb), so the
     stacked sidebar carries its own separation from the discussion. */
  .frm-thread-columns > .frm-side {
    margin-top: 2.2rem;
  }
  .frm-side {
    position: static;
  }
}

@media (max-width: 640px) {
  /* Toolbar nav (forum + directory) gained links — let it wrap instead of
     pushing the "+ Start a Discussion" chip off-screen. */
  .dir-toolbar-nav {
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }
  .frm-toolbar-new {
    font-size: 0.75rem;
  }
  .frm-cat-grid {
    grid-template-columns: 1fr;
  }
  .frm-row-stats {
    display: none;
  }
  .frm-thread-row {
    padding: 0.95rem 1rem;
  }
  .frm-cat-hero-row {
    flex-direction: column;
    text-align: center;
    gap: 0.7rem;
  }
  .frm-hero-actions .frm-hero-cta {
    width: 100%;
    text-align: center;
  }
  .frm-hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  /* Member column folds into a single header row above the post */
  .frm-post {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  .frm-post-side {
    display: none;
  }
  .frm-member {
    flex-direction: row;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    padding: 0 0 0.7rem;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .frm-member .frm-avatar {
    margin-bottom: 0;
  }
  .frm-member-name {
    font-size: 0.95rem;
  }
  .frm-member-stats {
    flex-direction: row;
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    border-top: 0;
    gap: 0.7rem;
  }
  .frm-member-stats span {
    gap: 0.25rem;
  }
  .frm-thread-bar {
    justify-content: flex-start;
  }
  .frm-bar-actions {
    width: 100%;
  }
  .frm-bar-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .frm-shot {
    width: 104px;
    height: 104px;
  }
  .frm-composer-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .frm-composer-foot .btn-primary {
    width: 100%;
  }
  .frm-attach-btn {
    justify-content: center;
  }
}

/* ============================================================
   28. NATIONWIDE EXPANSION — small additions
   ============================================================ */
/* Footnote under a capped city listing pointing at the finder */
.city-list-note {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-text-light);
}
.city-list-note a {
  color: var(--dir-navy);
  font-weight: 600;
}

/* Single business photo on national /pros/ profiles (fetched from the
   business's Google profile — same pipeline as the curated locals) */
.pro-photo-figure {
  margin: 0 0 1.75rem;
}
.pro-photo-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid var(--color-border);
}
.pro-photo-figure figcaption {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* Attribution line under the national pro gallery */
.pro-gallery-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin: 0.5rem 0 1.5rem;
}

/* Sourcing line under the About copy — says where the facts came from. */
.pro-source-note {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0.9rem 0 0;
}
