/* South Broward Pros -- overrides on top of the stock Sparker 3.6 CSS.
   Loaded last (after style.css and vendors.css) so a same-specificity
   selector here wins the cascade without needing !important. Per the
   template's own documentation, all site-specific changes belong here so a
   future template update can drop straight back in over style.css/vendors.css
   without a merge. */

/* ---------------------------------------------------------------------
   1. No stock photography. The template ships two hero backgrounds as
   plain url() stock photos; neither photo file is vendored, so both
   selectors are redefined here to a flat color/gradient (home hero) or a
   per-business CSS variable (listing hero) instead.
   ------------------------------------------------------------------ */
.hero_single.version_2 {
  background: #0b2a5b url('/static/img/trades/hero.jpg') center center / cover no-repeat;
}
.hero_single.version_2 .wrapper {
  background: linear-gradient(180deg, rgba(8, 28, 60, 0.62) 0%, rgba(8, 28, 60, 0.72) 100%);
}

/* The business photo (or the trade-tile fallback) is set per page as an
   inline custom property on .hero_in itself; the :before layer just reads
   it. No inline value -> no image request at all, never the stock photo. */
.hero_in.shop_detail:before {
  background-image: var(--hero-photo, none);
  background-position: center center;
  background-size: cover;
  background-color: #12294d;
}

/* ---------------------------------------------------------------------
   1b. Header CTA cluster: an outline twin of .btn_add for the secondary
   "Founding member" action next to the solid "Get listed free" one.
   ------------------------------------------------------------------ */
/* style.css's own rule is "a.btn_add, .btn_add" (element+class, specificity
   0,1,1) with color:#fff !important -- a plain .btn_add--outline class
   (0,1,0) loses to it despite loading later. Match the element+class shape
   so this override actually wins. */
a.btn_add.btn_add--outline,
.btn_add.btn_add--outline {
  background: transparent !important;
  color: #004dda !important;
  border: 1px solid #004dda !important;
}
a.btn_add.btn_add--outline:hover,
.btn_add.btn_add--outline:hover {
  background: #004dda !important;
  color: #fff !important;
}

/* Mobile sticky "Get listed free" bar (kept from the previous build).
   Matches the exact breakpoint where the header's own .btn_add buttons
   hide (max-width: 991px, style.css) so there is never a width range
   where neither one is on screen. */
.sticky-cta {
  display: none;
}
@media (max-width: 991px) {
  body { padding-bottom: 66px; }
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid #ededed;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .08);
  }
  .sticky-cta .btn_1 {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}

/* ---------------------------------------------------------------------
   2. Star rating row (used by the stars() macro): five icon_star glyphs,
   filled ones carry the template's own .voted gold, unfilled ones get a
   quiet neutral so the row always reads as "X of 5" at a glance.
   ------------------------------------------------------------------ */
.stars-row {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 13px;
}
.stars-row .icon_star {
  color: #d7d7d7;
}
.stars-row .icon_star.voted {
  color: #FFC107;
}
.stars-row .stars-row__num {
  margin-left: 6px;
  font-weight: 600;
  color: #222;
}
.stars-row .stars-row__count {
  margin-left: 3px;
  color: #808080;
  font-size: 12px;
}

/* ---------------------------------------------------------------------
   3. Listing badges (Founder / Premium / Claimed / 4-star+). Sparker has
   no generic badge component for these, so this is a small addition
   matching the template's own palette and radius.
   ------------------------------------------------------------------ */
.sbp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.sbp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  line-height: 1.6;
}
.sbp-badge--founder { background: #FFC107; color: #222; }
.sbp-badge--premium { background: #222; color: #fff; }
.sbp-badge--claimed { background: transparent; color: #6f787f; border: 1px solid #d2d8dd; }
.sbp-badge--verified { background: #e6f4ea; color: #1e7e34; }

/* ---------------------------------------------------------------------
   4. Trade tiles: the flat SVG fallback image used whenever a business (or
   a trade card) has no real photo. Keep it filling its frame like a photo
   would, never letterboxed.
   ------------------------------------------------------------------ */
.grid_item figure img,
.strip.list_view figure img,
.hero_in.shop_detail {
  object-fit: cover;
}

/* ---------------------------------------------------------------------
   5. Category strip (top trades under the hero) and the full "Browse every
   trade" grid further down the homepage. Both reuse .main_categories'
   icon-tile idea but as a responsive grid of flat cards, since Sparker's
   own version hard-codes exactly five items.
   ------------------------------------------------------------------ */
/* Trade strip under the hero: a 7-track grid (six trades + More). The stock
   .main_categories ul li rule (inline-block, width 20%, float, border) has
   higher specificity than a bare .trade-strip li, so every override below
   carries the .main_categories ul prefix; otherwise the tiles collapse to
   20% of their track and render as slivers. */
.main_categories ul.trade-strip {
  list-style: none;
  margin: 0 auto;
  padding: 14px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.main_categories ul.trade-strip li,
.main_categories ul.trade-strip li:last-child {
  display: block;
  width: auto;
  float: none;
  border-right: none;
}
.main_categories ul.trade-strip li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 118px;
  padding: 16px 6px 12px;
  text-align: center;
  border: 1px solid #ededed;
  border-radius: 5px;
  color: #222;
  text-decoration: none;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.main_categories ul.trade-strip li a:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
  color: #004dda;
}
.main_categories ul.trade-strip li a h3 {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  margin: 0;
}
.main_categories ul.trade-strip img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}
.main_categories ul.trade-strip .trade-strip__count {
  font-size: 12px;
  color: #808080;
}
.main_categories ul.trade-strip li.trade-strip__more a {
  background: #f4f6f9;
  justify-content: center;
}
@media (max-width: 991px) {
  .main_categories ul.trade-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 575px) {
  .main_categories ul.trade-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
  .main_categories ul.trade-strip li a { min-height: 104px; padding: 12px 4px 10px; }
  .main_categories ul.trade-strip li a h3 { font-size: 13px; }
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trade-grid a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #ededed;
  border-radius: 5px;
  text-decoration: none;
  color: #222;
  background: #fff;
  transition: box-shadow .2s ease;
}
.trade-grid a:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  color: #004dda;
}
.trade-grid img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  flex: none;
}
.trade-grid .trade-grid__name {
  font-weight: 600;
  display: block;
}
.trade-grid .trade-grid__count {
  font-size: 12px;
  color: #808080;
}

@media (max-width: 991px) {
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .trade-grid { grid-template-columns: 1fr; }
}

/* #results is the stock "145 results" blue strip; we put the real page
   <h1> in it instead of its small stock <h4>, so give the h1 the same
   white-on-blue treatment at a size that reads as a title. */
#results h1 {
  color: #fff;
  margin: 8px 0 2px;
  font-size: 24px;
}
@media (max-width: 767px) {
  #results h1 { font-size: 19px; }
}
#results .results-count {
  color: #fff;
  opacity: .8;
  margin: 0 0 8px;
  font-size: 13px;
}
#results .custom-search-input-2 {
  margin-top: 14px;
}
@media (min-width: 992px) {
  #results .custom-search-input-2 { margin-top: 0; }
}

.call-link {
  display: inline-block;
  font-weight: 600;
  color: #004dda;
  line-height: 1;
}
.call-link i {
  margin-right: 6px;
}
.call-link:hover {
  color: #002f8a;
}

/* ---------------------------------------------------------------------
   6. Small text helpers used by the empty-state notes and the founding
   fallback row, kept quiet rather than styled as an error.
   ------------------------------------------------------------------ */
.sbp-note {
  border: 1px dashed #d2d8dd;
  border-radius: 5px;
  padding: 22px;
  color: #6f787f;
}
.sbp-note .btn_1 { margin-top: 12px; }

.hero-sub {
  color: #fff;
  opacity: .85;
  margin-top: 14px;
  font-size: 14px;
}
.hero-sub a {
  color: #fff;
  text-decoration: underline;
}

.spotlight-teaser {
  border-left: 3px solid #004dda;
  padding-left: 18px;
  margin-bottom: 20px;
}
.spotlight-teaser small {
  color: #808080;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
}
.spotlight-teaser h3 {
  margin: 4px 0 0;
}
.spotlight-teaser h3 a {
  color: #222;
  text-decoration: none;
}
.spotlight-teaser h3 a:hover {
  color: #004dda;
}

/* ---------------------------------------------------------------------
   7. Opening hours card: business.html has real hours as one free-text
   string (scraped format varies too much to safely split per line), so it
   renders inside the template's own "opening" card as a single line
   rather than the per-weekday list the stock markup used.
   ------------------------------------------------------------------ */
.opening .hours-text {
  margin: 0;
  color: #6f787f;
}

/* ---------------------------------------------------------------------
   8. Contact / claim sidebar card on the business page.
   ------------------------------------------------------------------ */
.box_detail.booking .claim-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ededed;
  font-size: 14px;
  color: #6f787f;
}
.box_detail.booking .claim-note a { font-weight: 600; }

/* ---------------------------------------------------------------------
   9. Pricing tables: only two plans (no monthly/yearly switcher), so give
   the list a max width and center it instead of stretching three-wide.

   tables.css's own mobile-first default for .pricing-features is a
   horizontal-swipe strip of 100px, single-line, ellipsis-truncated
   columns (built for short labels like "1 User") that only turns into a
   normal stacked, wrapping list at its own min-width:769px breakpoint.
   Our benefit copy is full sentences, so force the >=769px "stacked
   list" rules at every width instead of truncating our own selling
   points to "Google Busi...".
   ------------------------------------------------------------------ */
.pricing-list.pricing-list--two {
  max-width: 780px;
  margin-inline: auto;
}
.pricing-features {
  width: auto !important;
}
.pricing-features li {
  float: none !important;
  width: auto !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: left !important;
  margin: 0 !important;
}
.pricing-body {
  overflow-x: visible !important;
  overflow: visible !important;
}
.pricing-header {
  height: auto !important;
  padding: 1.9em 0.9em 1.6em !important;
  pointer-events: auto !important;
  text-align: center;
}
.pricing-footer {
  position: relative !important;
  height: auto !important;
  padding: 1.8em 0 !important;
  text-align: center;
}
.pricing-footer::after {
  display: none !important;
}
.pricing-wrapper .is-visible {
  transform: none !important;
  animation: none !important;
}

/* ---------------------------------------------------------------------
  10. Footer: plain, always-open columns (no per-column collapse markup),
   so the stock mobile "accordion heading" treatment is turned back off;
   the trades column is long enough to earn two text columns on larger
   screens.
   ------------------------------------------------------------------ */
@media (max-width: 575px) {
  footer h3 {
    cursor: default;
    border-bottom: none;
    padding: 0;
  }
  footer h3:after {
    display: none;
    content: none;
  }
}
.footer-trades {
  column-count: 2;
  column-gap: 20px;
}
.footer-legal {
  margin: 0;
  color: #808080;
  font-size: 13px;
}

/* ---------------------------------------------------------------------
  10b. Registration form (get_listed.html / claim). Bootstrap's reboot
   zeroes out fieldset/legend borders entirely; add back a light section
   divider and correctly size the nested "check-group" legends so they
   read as sub-labels, not section headings.
   ------------------------------------------------------------------ */
.reg-form fieldset {
  border-top: 2px solid #222;
  padding-top: 22px;
  margin: 0 0 26px;
}
.reg-form > fieldset:first-of-type {
  border-top: none;
  padding-top: 0;
}
.reg-form legend {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  float: none;
  width: auto;
}
.reg-form fieldset.check-group {
  border-top: none;
  padding: 4px 0 10px;
  margin: 0;
}
.reg-form fieldset.check-group legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.reg-form .req {
  color: #b5482a;
}
.reg-form .hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.reg-form .conditional-field {
  margin-top: 10px;
}
.form-errors {
  border: 1px solid #b5482a;
  background: #fbeae5;
  color: #7a2e17;
  border-radius: 5px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.form-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.page-lede {
  color: #6f787f;
  max-width: 70ch;
}
#error_page h1 {
  font-size: 26px;
  margin: 10px 0 6px;
  color: #fff;
}
#error_page .btn_1.outline {
  color: #fff;
  border-color: #fff;
}
#error_page .btn_1.outline:hover {
  background: #fff;
  color: #0054a6;
  border-color: #fff;
}

/* ---------------------------------------------------------------------
  11. Simple prose pages (about/terms/privacy) reuse the sub_header_in
   band + a plain container; keep line length readable.
   ------------------------------------------------------------------ */
.prose-content {
  max-width: 760px;
}

/* ---------------------------------------------------------------------
   12. Section header "view all" link (.main_title_3 a): the stock rule
   pins it absolute bottom:0/right:0, sized for the template's own short
   one-line lorem paragraph. Our real copy ("The founding roster is still
   open. Here are today's top-rated pros while the first spots get
   claimed.") is long enough to wrap to a second line at common widths, and
   the pinned link then sits on top of that wrapped text. Let it flow in
   normal document order below the paragraph instead -- verified against
   all four .main_title_3 blocks on the homepage at 1280px and 375px.
   ------------------------------------------------------------------ */
.main_title_3 a {
  position: static;
  display: inline-block;
  margin-top: 4px;
}
@media (max-width: 767px) {
  .main_title_3 a {
    top: auto;
  }
}
.prose-content h2 { margin-top: 1.6em; }

/* ---------------------------------------------------------------------
  13. Breadcrumb on the #results band (search.html / trade_city.html). The
   band is white-on-blue (#results { color:#fff; background:#004dda }), so
   the plain Bootstrap breadcrumb (dark, low-contrast divider) needs its
   own colors here rather than !important overrides scattered elsewhere.
   ------------------------------------------------------------------ */
.sbp-breadcrumb {
  margin-bottom: 6px;
}
.sbp-breadcrumb .breadcrumb {
  margin: 0;
  font-size: 12px;
}
.sbp-breadcrumb .breadcrumb-item,
.sbp-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, .8);
}
.sbp-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
  text-decoration: underline;
}
.sbp-breadcrumb .breadcrumb-item.active {
  color: #fff;
}
.sbp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, .5);
}

/* ---------------------------------------------------------------------
   7. Pagination nav for the large /search, /trade, /city listing pages.
   ------------------------------------------------------------------ */
.sbp-pagination {
  margin-top: 30px;
  text-align: center;
}
.sbp-pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #6f787f;
}
.sbp-pagination a {
  color: #002f8a;
  font-weight: 600;
}
.sbp-pagination a:hover {
  text-decoration: underline;
}
