/* BluePages — uses theme base; only page-specific styles below */
@import url("/static/theme/theme.css");
@import url("/static/theme/layout.css");

/* Hero rotating AEO statements */
.hero-rotating {
  position: relative;
  min-height: 4.5rem;
}
.hero-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.hero-slide .hero-tagline {
  margin: 0 0 1.5rem;
}
.hero-slide-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

/* Hero CTA row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.btn-hero-secondary {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--theme-radius);
  font-weight: 600;
  text-decoration: none;
  background: var(--theme-surface);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
  font-size: 0.95rem;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-hero-secondary:hover {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* AEO answer: plain paragraph on cream. No pale card, no colored left rail. */
.aeo-answer-block {
  max-width: var(--theme-max-width);
  margin: 0 auto;
  padding: 0 var(--theme-gutter) 1.5rem;
}
.aeo-answer-inner {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.aeo-answer-statement {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--theme-text);
}

/* One-time offer modal (C-SuiteWare 90-day test drive) */
.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.offer-modal[hidden] {
  display: none !important;
}
.offer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.offer-modal-box {
  position: relative;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.offer-modal-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.offer-modal-text {
  margin: 0 0 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--theme-text);
}
.offer-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.offer-modal-actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.offer-close {
  margin-top: 0.25rem;
  color: var(--theme-text-muted);
  font-size: 0.9rem;
}
.send-blu-prompt { margin: 0.5rem 0; }
.send-blu-prompt .form-group { margin-bottom: 0.75rem; }
.send-blu-prompt label { font-size: 0.9rem; display: block; margin-bottom: 0.25rem; }
#send-blu-modal .form-group { margin-bottom: 0.75rem; }
#send-blu-modal .form-group label { display: block; margin-bottom: 0.25rem; font-size: 0.9rem; }
.send-blu-word-count { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--theme-text-muted, #666); }
#send-blu-modal select, #send-blu-modal textarea, #send-blu-modal input { width: 100%; padding: 0.5rem; border-radius: var(--theme-radius); border: 1px solid var(--theme-border); font-family: inherit; }

/* BLU handshake metric */
.blu-section .blu-intro {
  margin: 0 0 1rem 0;
  color: var(--theme-text);
}
.blu-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.blu-stat {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 0.75rem 1rem;
  text-align: center;
}
.blu-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-accent);
  display: block;
}
.blu-stat-label {
  font-size: 0.8rem;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blu-loading {
  color: var(--theme-text-muted);
  margin: 0;
}
.blu-legend {
  font-size: 0.9rem;
  color: var(--theme-text-muted);
  margin: 0;
}

/* Footer login */
.footer-login {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--theme-border);
  font-size: 0.9rem;
  color: var(--theme-text-muted);
}
.footer-login a {
  color: var(--theme-text-muted);
}
.footer-login a:hover {
  color: var(--theme-accent);
}

/* Page: home — search section, results, about */
.search-section,
.about-section {
  max-width: var(--theme-max-width);
  margin: 0 auto;
  padding: 3rem var(--theme-gutter);
}

.section-inner {
  width: 100%;
}

/* Directory + monetization layout: main content + sidebar ads */
.section-with-ads {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1.5rem;
  align-items: start;
}

.search-main {
  min-width: 0;
}

.search-sidebar {
  position: sticky;
  top: 1rem;
}

.ad-slot {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-bg);
  border: 1px dashed var(--theme-border);
  border-radius: 8px;
  overflow: hidden;
}

.ad-slot-top {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin-bottom: 1.25rem;
}

.ad-slot-sidebar {
  width: 175px;
  min-height: 600px;
}

/* Sidebar promo: C-SuiteWare 90-day challenge + demo CTA */
.sidebar-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
}
.sidebar-promo-link {
  display: block;
  line-height: 0;
}
.sidebar-promo-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--theme-radius, 6px);
}
.sidebar-promo-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--theme-radius, 6px);
  background: var(--theme-accent, #2563eb);
  color: #fff;
  border: none;
  white-space: nowrap;
}
.sidebar-promo-btn:hover {
  opacity: 0.9;
  color: #fff;
}

.ad-slot-bottom {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: 2rem auto 0;
}

.ad-placeholder {
  color: var(--theme-text-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.ad-placeholder:hover {
  color: var(--theme-accent);
}

@media (max-width: 900px) {
  .section-with-ads {
    grid-template-columns: 1fr;
  }
  .search-main {
    order: 0;
  }
  .search-sidebar {
    order: 1;
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
  }
  .ad-slot-sidebar {
    min-height: 100px;
    width: 100%;
    max-width: 320px;
  }
}

.search-section h2,
.about-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.search-form input[type="search"],
.search-form input[type="text"],
.search-form .search-filter {
  min-width: 140px;
}

/* Dual-search hero: what + where on the first row, filters on the second. */
.hero:has(.dual-search) .hero-inner,
.hero-inner:has(.dual-search) {
  max-width: min(56rem, 100%);
}

.search-form.dual-search {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem 0.7rem;
  align-items: stretch;
  text-align: left;
  margin: 0 auto 0.85rem;
  width: 100%;
}

.search-form.dual-search #search-q,
.search-form.dual-search #search-where {
  grid-column: span 2;
  min-width: 0;
}

.search-form.dual-search #search-city {
  grid-column: span 2;
  min-width: 0;
}

.search-form.dual-search button[type="submit"],
.search-form.dual-search #search-near-me {
  grid-column: span 1;
}

.search-form.dual-search #search-industry,
.search-form.dual-search #search-category,
.search-form.dual-search #search-state,
.search-form.dual-search #search-zip,
.search-form.dual-search #search-area,
.search-form.dual-search #search-sort {
  grid-column: span 1;
  min-width: 0;
}

.search-form.dual-search #search-refine {
  display: none;
}

.search-section.is-idle .search-main > h2,
.search-section.is-idle .search-main > h2 + p,
.search-section.is-idle #results-hint {
  display: none;
}

.hero-search-note,
.search-sort-note {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--theme-text-muted);
  background: none;
  border: 0;
  padding: 0;
}

.hero .hero-search-note {
  text-align: left;
  max-width: none;
}

.search-filter {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: var(--theme-surface);
  color: var(--theme-text);
  font-size: 1rem;
  font-family: inherit;
}

.search-quick-tops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.quick-tops-label {
  font-size: 0.9rem;
  color: var(--theme-text-muted);
}

.btn-quick-top {
  padding: 0.35rem 0.65rem;
  border-radius: var(--theme-radius);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--theme-accent);
  background: transparent;
  color: var(--theme-accent);
  transition: background 0.15s, color 0.15s;
}

.btn-quick-top:hover {
  background: var(--theme-accent);
  color: #fff;
}

.quick-tops-in {
  font-size: 0.9rem;
  color: var(--theme-text-muted);
}

.search-combo-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn-combo {
  padding: 0.35rem 0.65rem;
  border-radius: var(--theme-radius);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--theme-accent);
  background: transparent;
  color: var(--theme-accent);
  transition: background 0.15s, color 0.15s;
}

.btn-combo:hover {
  background: var(--theme-accent);
  color: #fff;
}

.search-service-wrap,
.search-filters-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn-service {
  padding: 0.35rem 0.65rem;
  border-radius: var(--theme-radius);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
}

.btn-service:hover,
.btn-service.is-active {
  border-color: var(--theme-yale, var(--theme-accent));
  background: var(--theme-yale, var(--theme-accent));
  color: #fff;
}

.btn-service .svc-count {
  font-weight: 500;
  opacity: 0.8;
}

.directory-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--home-radius, 12px);
  box-shadow: var(--theme-shadow);
  padding: 1rem 1.1rem;
}

.directory-card-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--theme-radius);
  background: var(--home-page-bg, #f4f6f9);
}

.directory-card-photo[hidden] {
  display: none;
}

.directory-card-body h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.directory-card-meta,
.directory-card-rating {
  margin: 0 0 0.35rem;
  color: var(--theme-text-muted);
  font-size: 0.92rem;
}

.directory-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.directory-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
}

.btn-filter {
  padding: 0.35rem 0.65rem;
  border-radius: var(--theme-radius);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-filter:hover {
  border-color: var(--theme-accent);
  background: var(--theme-accent);
  color: #fff;
}

.search-filter-inline {
  min-width: 120px;
}

.results {
  margin-top: 1rem;
}

.results-hint,
.search-sort-note {
  color: var(--theme-text-muted);
  font-size: 0.95rem;
}

.results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Business card: info + location with map */
.results-list .business-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 1.25rem;
  align-items: start;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--home-radius, 12px);
  box-shadow: var(--theme-shadow);
  padding: 1.25rem;
}


.business-card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}


.business-card-title-block {
  min-width: 0;
}

.business-card-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-claim-listing {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--theme-radius, 6px);
  background: var(--theme-yale);
  color: #ffffff;
  text-decoration: none;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.btn-claim-listing:hover {
  background: var(--theme-oxford);
  color: #ffffff;
  text-decoration: none;
}

.business-single-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.business-single-name-row .business-single-name {
  margin: 0;
}

.business-card-main .business-name {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.business-card-main .business-name a:hover {
  text-decoration: underline;
  color: var(--theme-accent);
}

.business-badge-featured {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-yale);
  background: rgba(var(--theme-accent-rgb, 19, 64, 116), 0.12);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  margin-right: 0.25rem;
}

.business-distance {
  font-size: 0.8rem;
  color: var(--theme-accent);
  margin-bottom: 0.2rem;
}

.business-google-line {
  font-size: 0.875rem;
  color: var(--theme-text);
  margin-bottom: 0.2rem;
}

.business-google-line .star {
  color: #f59e0b;
}

.business-franchise-legal {
  font-size: 0.85rem;
  color: var(--theme-text-muted);
  margin: 0.15rem 0 0.35rem 0;
  font-style: italic;
}

.business-card-gallery {
  margin: 1rem 0;
  border-radius: var(--theme-radius);
  overflow: hidden;
  background: var(--theme-surface);
}

.business-card-gallery .gallery-main {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.business-card-gallery .gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.business-card-gallery .gallery-grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.business-card-gallery .gallery-grid-four > div {
  aspect-ratio: 1;
  overflow: hidden;
}

.business-card-gallery .gallery-grid-four img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.business-card-gallery .gallery-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  color: var(--theme-accent);
  font-size: 0.9rem;
}

.business-card-gallery .gallery-link:hover {
  text-decoration: underline;
}

.flair-wall {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--theme-border);
}

.flair-wall-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--theme-text-muted);
  margin-bottom: 0.75rem;
}

.flair-wall-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.flair-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  font-size: 0.85rem;
}

.flair-badge-icon {
  font-size: 1.1rem;
}

.flair-badge-name {
  color: var(--theme-text);
}

.business-linkedin-module .business-card-section-title {
  margin-bottom: 0.25rem;
}

.business-employees-module {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-border);
}

.business-employees-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.business-employees-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--theme-border);
}

.business-employees-list li:last-child {
  border-bottom: none;
}

.business-employees-list a {
  color: var(--theme-accent);
}

.business-card-main .business-meta {
  color: var(--theme-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.business-card-main .business-meta a {
  color: var(--theme-accent);
}

.business-card-serving {
  font-size: 0.85rem;
  color: var(--theme-text-muted);
  margin-bottom: 0.5rem;
}

.business-card-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.business-card-cta a {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: var(--theme-radius);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.business-card-cta .cta-call {
  background: var(--theme-accent);
  color: #fff;
}

.business-card-cta .cta-call:hover {
  background: var(--theme-accent-hover);
  color: #fff;
}

.business-card-cta .cta-website,
.business-card-cta .cta-directions,
.business-card-cta .cta-blu {
  background: var(--theme-bg);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
}
.business-card-cta .cta-blu {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}
.business-card-cta .cta-blu:hover {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
}

.business-card-cta .cta-website:hover,
.business-card-cta .cta-directions:hover {
  background: var(--theme-surface);
  color: var(--theme-accent);
  border-color: var(--theme-accent);
}

.business-card-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--theme-text);
  margin: 0.75rem 0 0;
  padding: 0;
}

.business-description-placeholder {
  font-style: italic;
  opacity: 0.92;
}

.business-card-section {
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

.business-card-section-title {
  font-weight: 600;
  color: var(--theme-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.business-card-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.business-card-tag {
  display: inline-block;
  padding: 0.2em 0.5em;
  background: var(--theme-bg);
  border: 1px solid var(--theme-border);
  border-radius: 6px;
  color: var(--theme-text);
  font-size: 0.8rem;
}

.business-card-hours .business-card-section-list {
  flex-direction: column;
  gap: 0.1rem;
}

.business-card-hours .business-card-tag {
  background: transparent;
  border: none;
  padding: 0;
}

.business-card-year {
  font-size: 0.8rem;
  color: var(--theme-text-muted);
}

.business-card-reviews {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--theme-border);
}

.business-card-reviews-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--theme-text-muted);
  margin-bottom: 0.5rem;
}

.review-item {
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
}

.review-item:last-child {
  margin-bottom: 0;
}

.review-meta {
  color: var(--theme-text-muted);
  margin-bottom: 0.2rem;
}

.review-meta .review-stars {
  color: #f59e0b;
}

.review-text {
  color: var(--theme-text);
  line-height: 1.45;
}

.review-author {
  font-size: 0.8rem;
  color: var(--theme-text-muted);
  margin-top: 0.15rem;
}

.business-card-location {
  background: var(--theme-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--theme-border);
}

.business-card-location .location-image-wrap {
  position: relative;
  width: 100%;
  max-height: 140px;
  aspect-ratio: 16 / 10;
  background: var(--theme-surface);
  overflow: hidden;
}
.business-card-location .location-image-wrap:empty {
  display: none;
}

.business-card-location .location-image-wrap .location-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}


.business-card-location .location-address {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--theme-text-muted);
  line-height: 1.5;
}

.business-card-location .location-links {
  padding: 0 1rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.business-card-location .location-links a {
  font-size: 0.85rem;
  color: var(--theme-accent);
}

.results-summary-wrap {
  list-style: none;
  margin-bottom: 0.25rem;
}
.results-summary {
  color: var(--theme-text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
}

.results-empty {
  color: var(--theme-text-muted);
  font-style: italic;
  padding: 1.5rem;
  text-align: center;
}

.business-single {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--home-radius, 12px);
  box-shadow: var(--theme-shadow);
  padding: 1.25rem 1.35rem 1.5rem;
}

.business-single-name {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.business-single-meta {
  color: var(--theme-text-muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.business-single-address {
  margin-top: 1rem;
}

.guide-body {
  line-height: 1.6;
}

.guide-body ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.guide-body a {
  color: var(--theme-accent);
}

.about-section {
  border-top: 1px solid var(--theme-border);
}

.about-section p {
  color: var(--theme-text-muted);
  margin-bottom: 0.75rem;
}

.home-portals {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.home-portals li {
  margin: 0 0 0.85rem;
}

.home-portals a {
  font-weight: 600;
}

.faq-list { margin: 0; padding: 0; }
.faq-list dt {
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  color: var(--theme-text);
}
.faq-list dt:first-of-type { margin-top: 0; }
.faq-list dd {
  margin: 0 0 0 0;
  padding: 0 0 1rem;
  color: var(--theme-text-muted);
  line-height: 1.5;
  border-bottom: 1px solid var(--theme-border);
}
.faq-list dd:last-of-type { border-bottom: none; }

@media (max-width: 768px) {
  .results-list .business-card {
    grid-template-columns: 1fr;
  }
  .business-card-header {
    flex-wrap: wrap;
  }
  .business-card-location .location-image-wrap {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .search-form.dual-search {
    grid-template-columns: 1fr 1fr;
  }
  .search-form.dual-search #search-q,
  .search-form.dual-search #search-city,
  .search-form.dual-search #search-where {
    grid-column: 1 / -1;
  }
  .search-form.dual-search button[type="submit"],
  .search-form.dual-search #search-near-me {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .search-form {
    flex-direction: column;
  }
  .search-form input {
    min-width: 100%;
  }
  .search-form.dual-search {
    grid-template-columns: 1fr;
  }
  .search-form.dual-search button[type="submit"],
  .search-form.dual-search #search-near-me,
  .search-form.dual-search #search-refine {
    grid-column: 1 / -1;
    width: 100%;
  }
  .search-form.dual-search #search-refine {
    display: block;
  }
  .search-form.dual-search:not(.show-refine) #search-industry,
  .search-form.dual-search:not(.show-refine) #search-category,
  .search-form.dual-search:not(.show-refine) #search-state,
  .search-form.dual-search:not(.show-refine) #search-zip,
  .search-form.dual-search:not(.show-refine) #search-area,
  .search-form.dual-search:not(.show-refine) #search-sort {
    display: none;
  }
  .search-form.dual-search.show-refine #search-industry,
  .search-form.dual-search.show-refine #search-category,
  .search-form.dual-search.show-refine #search-state,
  .search-form.dual-search.show-refine #search-zip,
  .search-form.dual-search.show-refine #search-area,
  .search-form.dual-search.show-refine #search-sort {
    grid-column: 1 / -1;
    width: 100%;
    display: block;
  }
}

/* Vote (upvote = Google review, downvote = report concern) */
.business-card-vote {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--theme-border);
}

.btn-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: var(--theme-radius);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--theme-border);
  background: var(--theme-bg);
  color: var(--theme-text);
  transition: background 0.15s, border-color 0.15s;
}

.btn-vote-up:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}

.btn-vote-down:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--theme-error);
  color: var(--theme-error);
}

/* Downvote modal */
.vote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.vote-modal-overlay.vote-modal-open {
  opacity: 1;
  visibility: visible;
}

.vote-modal {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 1.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vote-modal h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.vote-modal-desc {
  color: var(--theme-text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.vote-modal label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.vote-modal textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  background: var(--theme-bg);
  color: var(--theme-text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  margin-bottom: 1rem;
}

.vote-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.vote-modal-message {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.vote-modal-message-success {
  color: var(--theme-success);
}

.vote-modal-message-error {
  color: var(--theme-error);
}

/* Social & share on business card */
.business-card-social-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--theme-border);
  font-size: 0.8rem;
}

.social-share-label {
  color: var(--theme-text-muted);
  margin-right: 0.15rem;
}

.social-badge {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  color: var(--theme-text);
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  transition: border-color 0.15s, color 0.15s;
}

.social-badge:hover {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
}

.social-karma {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-text-muted);
  margin: 0 0.15rem;
}
.karma-up, .karma-down {
  cursor: pointer;
}
.karma-up:hover { color: var(--theme-success); }
.karma-down:hover { color: var(--theme-error, #c00); }
.social-badge-copy {
  cursor: pointer;
  font-family: inherit;
}

.social-badge-share {
  color: var(--theme-accent);
}

.social-badge-claim {
  color: var(--theme-accent);
}

/* Geo hubs: white cards on cream, chips, claim, labeled paid board. */
.geo-hub {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 2rem;
}
.geo-crumbs {
  font-size: 0.9rem;
  color: var(--theme-text-muted);
  margin-bottom: 0.75rem;
}
.geo-crumbs a { color: var(--theme-yale); }
.geo-summary { max-width: 42rem; }
.geo-children h2,
.geo-listings h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}
.geo-chip-list,
.geo-listing-list,
.geo-extra {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.geo-listing-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.geo-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}
.geo-chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  background: var(--theme-surface);
  border: 1px solid var(--theme-line-strong, #c9d4e1);
  border-radius: 999px;
}
.geo-chip-list a,
.geo-browse-cities a {
  color: var(--theme-oxford);
  text-decoration: none;
  font-weight: 600;
}
.geo-chip-list a:hover,
.geo-browse-cities a:hover {
  color: var(--theme-yale);
  text-decoration: none;
}
.geo-count {
  color: var(--theme-text-muted);
  font-size: 0.85em;
}
.geo-listing,
.geo-listing.geo-listing-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--home-radius, 12px);
  box-shadow: var(--theme-shadow);
  padding: 1rem 1.1rem;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}
.geo-listing-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.geo-listing-main {
  flex: 1;
  min-width: 0;
}
.geo-listing-main a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--theme-oxford);
  line-height: 1.3;
}
.geo-listing-main a:hover {
  color: var(--theme-yale);
}
.geo-listing-meta {
  margin: 0.2rem 0 0;
  color: var(--theme-text-muted);
  font-size: 0.9rem;
}
.geo-listing-card .btn-claim-listing {
  margin-top: 0.1rem;
}
.geo-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.geo-browse { margin: 1rem 0 0; }
.geo-browse-state { margin: 0 0 1.25rem; }
.geo-browse-state h3 { margin: 0 0 0.35rem; }
.geo-browse-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
}

/* Paid board: labeled Sponsored seats. Not organic cards, not the BLU community board. */
.sponsored-board {
  background: var(--theme-surface);
  border: 2px solid var(--theme-yale);
  border-radius: var(--home-radius, 12px);
  box-shadow: var(--theme-shadow);
  padding: 0;
  margin: 0 0 2rem;
  overflow: hidden;
}
.sponsored-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0.95rem 1.2rem;
  background: var(--theme-prussian);
}
.sponsored-board-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--theme-cream);
}
.sponsored-board-head .btn,
.sponsored-board-head .btn-primary {
  background: var(--theme-surface);
  color: var(--theme-prussian);
}
.sponsored-board-head .btn:hover,
.sponsored-board-head .btn-primary:hover {
  background: var(--theme-surface);
  color: var(--theme-yale);
}
.sponsored-note {
  margin: 0;
  padding: 0.75rem 1.2rem 0.15rem;
  color: var(--theme-text-muted);
  font-size: 0.92rem;
}
.sponsored-list {
  list-style: none;
  padding: 0.85rem 1.1rem 1.15rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sponsored-list > li:not(.geo-listing) {
  padding: 0.15rem 0;
  color: var(--theme-oxford);
}
.sponsored-board .geo-listing,
.sponsored-board .geo-listing.geo-listing-card,
.geo-listing.geo-listing-card.sponsored {
  border-color: var(--theme-yale);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow);
}
.sponsored-badge {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--theme-yale);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 0.1em;
}
.geo-listing-card:not(.sponsored) .sponsored-badge {
  background: transparent;
  color: var(--theme-yale);
  border: 1px solid var(--theme-yale);
}

/* Prussian offer rail (Media Minds services). */
.offer-rail {
  background: var(--theme-offer-rail, var(--theme-prussian));
}
.offer-rail-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.offer-rail .btn-primary {
  background: var(--theme-yale);
  color: #ffffff;
}
.offer-rail .btn-primary:hover {
  background: var(--theme-oxford);
  color: #ffffff;
}
.offer-rail .btn-secondary {
  background: transparent;
  color: var(--theme-cream);
  border-color: var(--theme-powder);
}
.offer-rail .btn-secondary:hover {
  color: #fff;
  border-color: var(--theme-cream);
}

/* Listing shell (shared by business.html). White cards on the cool-gray page. */
.listing-page { width: 100%; }
.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
  gap: 2rem;
  align-items: start;
}
.listing-side-offer {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--home-radius, 12px);
  box-shadow: var(--theme-shadow);
  padding: 1.15rem 1.25rem;
  margin: 0 0 1.25rem;
}
.listing-side-offer p {
  margin: 0 0 0.75rem;
}
.listing-side-offer p:last-child { margin-bottom: 0; }
.listing-side-offer h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: var(--theme-oxford);
}
.listing-side-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

/* Funnel leftovers for older pages. Convert pages load funnels.css after this file. */
.funnel-page { flex: 1; }
.funnel-hero {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem var(--theme-gutter) 5rem;
}
.funnel-kicker {
  color: var(--theme-yale);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.funnel-lede { font-size: 1.15rem; color: var(--theme-text-muted); }
.funnel-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (max-width: 800px) {
  .listing-layout { grid-template-columns: 1fr; }
  .listing-side { order: 2; }
}

@media (max-width: 640px) {
  .geo-listing,
  .geo-listing.geo-listing-card {
    flex-wrap: wrap;
  }
  .geo-listing-main {
    flex: 1 1 10rem;
  }
  .sponsored-board-head {
    align-items: flex-start;
  }
  .offer-rail-inner {
    padding-left: var(--theme-gutter);
    padding-right: var(--theme-gutter);
  }
  .offer-rail-inner .btn {
    flex: 1 1 10rem;
    text-align: center;
  }
}
