/*
Theme Name: Listingpro Child Theme
Description: Listingpro Child Theme
Template: listingpro
Version: 1.0.9
Author: Olena Polonska
License: GNU General Public License
*/

.filter-top-section {
	overflow: auto;
}

.search-row .form-inline .form-group.margin-right-0 {
	display: none !important;
}

.listing-simple .post-with-map-container-right .search-row .lp-filter-inner {
	border-left: 1px solid #dedede!important;
	border-right: 1px solid #dedede!important;
}

.listing-categories {
	margin-bottom: 40px;
	margin-top: 40px;
	padding-bottom: 0;
}

.listing-categories li {
	float: left;
	margin: 3px;
}

.listing-categories li a {
	background: #262626;
	border-radius: 3px;
	color: #FFF;
	display: block;
	padding: 3px 15px;
}

.listing-categories li a:hover {
	background: #000;
}

.listing-categories li a.parent-listing-category {
	color: #262626;
	background: #30b94a;
}

.listing-categories li a.parent-listing-category:hover {
	background: #218534;
}

#select2-inputCategory-results li {
	text-transform: uppercase;
}

.lp-grid-box-bottom .pull-left {
	max-width: 100%;
}

/* .lp-grid-box-bottom .pull-left a {
	white-space: nowrap;
} */

.lp-grid-box-bottom .pull-left a::before {
	display: none;
}

/* .section-id-PaybackPeriod .lp-form-builder-field {
	float: left;
	width: 50%;
} */

.section-id-PaybackPeriod label {
	display: none;
}

.section-id-BusinessExpansion div#lp-form-builder-field-705 .form-group {
	display: block;
}

.listing-options {
	float: none;
	list-style: disc;
}

.lp-grid-box-left .listing-options li span {
	color: #7f7f7f;
}

.lp-grid-box-left .listing-options li span.option-title {
	color: #292929;
}

.single-listing-investment-ranges,
.single-listing-locations {
	font-size: 14px;
}

.lp-blog-grid-box-thumb a {
	display: block;
    overflow: hidden;
    height: 150px;
}

.lp-blog-grid-box-thumb img {
	height: 100%;
}

.eael-data-table tbody tr td {
	font-family: 'Sora', 'Quicksand' !important;
	font-size: 15px !important;
}

.lp_privacy_policy_Wrap p {
	font-size: 14px;
}

.submit-wrapper .lp-search-icon {
	color: #30B94A;
	top: 15px;
	left: 110px;
	font-size: 16px;
}

.submit-wrapper:hover .lp-review-btn {
	color: #FFF !important;
	background: #30B94A !important;
    -webkit-transition: background-color 1000ms linear;
    -ms-transition: background-color 1000ms linear;
    transition: background-color 1000ms linear;	
}

.submit-wrapper:hover .lp-search-icon {
	color: #FFF;
}

.widget-box.viewed-listing.widget_block > p,
.widget-box.business-contact.lp-lead-form-st.hide-block {
	display: none;
}

.lp-grid-box-thumb {
	height: 100%;
}

.show-img {
	width: 100%;
    height: 100%;
}

.grid_view2 .lp-grid-box-thumb img, .grid_view6 .lp-grid-box-thumb img {
    height: 100%;
}

.requiredFieldIsempty {
	border-color: #ff4a7a;
}

.submit_new_style .page-style2-content-wrap label[for=field-choose-relevant-states-for-your-specific-expansion-needs1] {
	color: navy !important;
    font-weight: bold !important;
}

#home-featured-franchises .icon-quick-eye.md-trigger.qickpopup {
	display: none;
}

.elementskit-client_logo img {
	max-width: 200px !important;	
}

.widget-box.viewed-listing.widget_block {
	border: 1px solid #dedede;
    border-radius: 5px;
	padding: 14px 20px 15px;
}

.widget-box.viewed-listing.widget_block input[type=submit] {
	border-color: #30B94A;
	color: #30B94A;
}

.widget-box.viewed-listing.widget_block p {
	font-size: 14px;
    line-height: 1.5em;
}

.lp-menu-container,
.lp-search-chnage-styles-st-fix {
/* 	width: 50%; */
}

.listing-second-view .listing-price.widget-box {
	border: none !important;
}

.widget_nav_menu .imo-widget-title-container:before {
	display: none;
}

#sidebar aside ul.wp-block-latest-posts {
	list-style: disc;
}

.top-banner {
	background-size: cover;
    background-position: 50%;
	height: 400px;
	width: 100%;
	position: relative;
}

.top-logo {
	background-size: 64%;
    background-position: 50%;
    position: absolute;
    top: 20px;
    left: 20px;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    background-color: #FFF;
    background-repeat: no-repeat;
}

.lp-home-banner-contianer .lp-search-bar .form-group.lp-location-search,
.lp-home-banner-contianer .lp-search-bar .form-group.lp-suggested-search {
	width: 40%;
}

body .lp-menu-bar.header-bg-color-class .fullwidth-header .lp-search-chnage-styles-st .header-filter .input-group.width-49-percent.margin-right-15,
.fullwidth-header .lp-search-chnage-styles-st .header-filter .input-group.width-49-percent {
	width: 48% !important;
}

.listing-all-categories {
	columns: 4;
	orphans: 3;
}

.top-listing-category > a {
	font-weight: bold;
}

.top-listing-category {
	margin-bottom: 20px;
	display: inline-block;
}

/*bft css*/

.investment-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

#investmentRange {
    width: 100%;
}

/*bft css*/

@media (max-width: 768px) {
	.lp-search-chnage-styles-st-fix {
		width: 100%;
	}
	body .lp-menu-bar.header-bg-color-class .fullwidth-header .lp-search-chnage-styles-st .header-filter .input-group.width-49-percent.margin-right-15,
	.fullwidth-header .lp-search-chnage-styles-st .header-filter .input-group.width-49-percent {
		width: 100% !important;
	}
	.listing-all-categories {
		columns: 2;
	}
	
	.grid_view2 .lp-grid-box-thumb img, .grid_view6 .lp-grid-box-thumb img {
		height: auto;
	}
}

@media (max-width: 414px) {
	.lp-menu-bar.header-bg-color-class .fullwidth-header .lp-search-chnage-styles-st .header-filter .input-group.width-49-percent.margin-right-15 {
		min-width: 100%; 
	}
	.listing-all-categories {
		columns: 1;
	}
	
	.elementor img,
	.grid_view2 .lp-grid-box-thumb img, .grid_view6 .lp-grid-box-thumb img,
	.city-girds:hover>.city-thumb>img { 
		max-width: auto !important;
		width: 100%;
		height: auto;
	}
}

.post-row-header>h2 {
    font-size: 18px;
    margin-bottom: 15px;
}
.listing-second-view .post-meta-left-box h1:nth-child(3) {
    display: none !important;
}
.widget-title h3 {
    color: #ffffff;
}

@media (min-width: 320px) and (max-width: 767px) {
    .lpl-button {
        font-size: 14px;
        margin-top: 70px;
    }
}
@media (max-width: 768px) {
    .listing-all-categories {
        columns: 1 !important;
        column-count: 1 !important;
        -webkit-column-count: 1 !important;
    }
}



/* ==========================================================================
   FOREFIND — Custom Single Listing Page Styles
   Append this entire block to the bottom of:
   /wp-content/themes/listingpro-child/style.css
   ========================================================================== */

/* ── DESIGN TOKENS ────────────────────────────────────────────────────────── */
:root {
  --ff-navy:         #0B1F3A;
  --ff-navy-80:      #1a3558;
  --ff-indigo:       #3024AE;
  --ff-indigo-70:    #4A3DCB;
  --ff-teal:         #0D9B76;
  --ff-teal-light:   #E8F8F3;
  --ff-teal-mid:     #B2E8D8;
  --ff-amber:        #F59E0B;
  --ff-amber-light:  #FEF3C7;
  --ff-red-light:    #FEE2E2;
  --ff-surface:      #F7F8FA;
  --ff-surface-2:    #EDEEF2;
  --ff-border:       #E2E4EA;
  --ff-border-strong:#C8CBD6;
  --ff-text-primary: #0B1F3A;
  --ff-text-secondary:#4A5568;
  --ff-text-muted:   #8E97A8;
  --ff-white:        #FFFFFF;
  --ff-radius-sm:    6px;
  --ff-radius-md:    10px;
  --ff-radius-lg:    16px;
}

/* ── PAGE WRAPPER ─────────────────────────────────────────────────────────── */
.ff-page-wrap {
  background: var(--ff-surface);
  min-height: 100vh;
  padding: 24px 0 60px;
}

/* ── TWO-COLUMN LAYOUT ────────────────────────────────────────────────────── */
.ff-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.ff-main  { min-width: 0; }
.ff-sidebar { position: sticky; top: 90px; }

/* ── SECTION BASE ─────────────────────────────────────────────────────────── */
.ff-section {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  animation: ffFadeUp 0.4s ease both;
}
.ff-section:nth-child(2) { animation-delay:.08s; }
.ff-section:nth-child(3) { animation-delay:.14s; }
.ff-section:nth-child(4) { animation-delay:.20s; }
.ff-section:nth-child(5) { animation-delay:.26s; }
.ff-section:nth-child(6) { animation-delay:.32s; }
.ff-section:nth-child(7) { animation-delay:.38s; }

@keyframes ffFadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}

.ff-sec-heading {
  font-family: 'Sora', 'Quicksand';
  font-size: 15px;
  font-weight: 700;
  color: var(--ff-navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ff-sec-heading::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: var(--ff-teal);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── 1. BANNER ─────────────────────────────────────────────────────────────── */
.ff-banner {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  animation: ffFadeUp 0.35s ease both;
}

.ff-banner-hero {
  background: var(--ff-navy);
  background-size: cover;
  background-position: center;
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 28px 22px;
  overflow: hidden;
}
.ff-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,0.92) 0%, rgba(11,31,58,0.45) 60%, rgba(11,31,58,0.2) 100%);
  z-index: 0;
}
.ff-banner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(13,155,118,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(245,158,11,.08) 0%, transparent 50%);
  z-index: 0;
}
.ff-banner-geo {
  position: absolute;
  right: 40px;
  top: 16px;
  opacity: .06;
  pointer-events: none;
}

.ff-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  width: 100%;
}

.ff-brand-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--ff-radius-md);
  background: var(--ff-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.15);
}
.ff-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.ff-logo-initials {
  font-weight: 700;
  font-size: 14px;
  color: var(--ff-navy);
  letter-spacing: -.5px;
  text-align: center;
  line-height: 1.2;
}

.ff-hero-info { flex: 1; min-width: 0; }
.ff-brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--ff-white);
  letter-spacing: -.4px;
  margin: 0 0 7px;
  line-height: 1.2;
}
.ff-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ff-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.ff-chip-white { background: rgba(255,255,255,.12); color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.18); }
.ff-chip-teal  { background: rgba(13,155,118,.22);  color: #5DCDB0; border: 1px solid rgba(13,155,118,.3); }
.ff-chip-amber { background: rgba(245,158,11,.18);  color: #FBC351; border: 1px solid rgba(245,158,11,.25); }

/* Tab nav */
.ff-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 20px;
  border-bottom: 1px solid var(--ff-border);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ff-tabs::-webkit-scrollbar { display: none; }
.ff-tab {
  padding: 13px 15px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ff-text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s, border-color .15s;
  display: inline-block;
}
.ff-tab:hover { color: var(--ff-navy); }
.ff-tab.active { color: var(--ff-teal); border-bottom-color: var(--ff-teal); }

/* Banner bottom bar */
.ff-banner-bar {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ff-fri-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-md);
  padding: 7px 13px;
  font-size: 12px;
  color: var(--ff-text-secondary);
}
.ff-bar-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.ff-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--ff-radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.ff-btn-outline { background: transparent; border: 1px solid var(--ff-border-strong); color: var(--ff-text-secondary); }
.ff-btn-outline:hover { background: var(--ff-surface); border-color: var(--ff-navy); color: var(--ff-navy); }
.ff-btn-teal { background: var(--ff-teal); color: var(--ff-white) !important; }
.ff-btn-teal:hover { background: #0b8a68; }

/* ── 2. METRICS ──────────────────────────────────────────────────────────── */
.ff-metrics-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), 1fr);
  gap: 10px;
}
.ff-metric-box {
  background: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-md);
  padding: 16px 10px;
  text-align: center;
  transition: border-color .15s, transform .15s;
}
.ff-metric-box:hover { border-color: var(--ff-teal); transform: translateY(-2px); }
.ff-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--ff-radius-sm);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ff-metric-value { font-size: 13px; font-weight: 700; color: var(--ff-navy); margin-bottom: 3px; line-height: 1.3; }
.ff-metric-label { font-size: 10px; color: var(--ff-text-muted); text-transform: uppercase; letter-spacing: .06em; line-height: 1.3; }

/* ── 3. INVESTMENT ───────────────────────────────────────────────────────── */
.ff-inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ff-inv-table-title { font-size: 11px; font-weight: 600; color: var(--ff-text-secondary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.ff-inv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ff-inv-table tr { border-bottom: 1px solid var(--ff-border); }
.ff-inv-table tr:last-child { border-bottom: none; }
.ff-inv-table td { padding: 9px 4px; color: var(--ff-text-secondary); }
.ff-inv-table td.val { text-align: right; font-weight: 600; color: var(--ff-navy); font-size: 12px; font-family: monospace; }
.ff-inv-table tr.total-row td { font-weight: 700; color: var(--ff-navy); border-top: 2px solid var(--ff-navy); padding-top: 11px; }
.ff-inv-fees { margin-top: 10px; font-size: 11px; color: var(--ff-text-muted); }
.ff-extra-fields { margin-top: 8px; }

/* Brand indigo, matching the home page, per Image 9. */
.ff-returns-panel {
  background: #3024AE;
  border-radius: var(--ff-radius-md);
  padding: 22px;
  color: var(--ff-white);
}
.ff-returns-title { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.ff-ret-item { margin-bottom: 14px; }
.ff-ret-label { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 3px; }
.ff-ret-value { font-size: 20px; font-weight: 700; color: var(--ff-white); }
.ff-ret-value.ff-accent { color: #4ECCA3; }

/* ── 4. ABOUT ────────────────────────────────────────────────────────────── */
.ff-brand-layout { display: grid; grid-template-columns: 1fr 200px; gap: 24px; }
.ff-brand-content { font-size: 13px; color: var(--ff-text-secondary); line-height: 1.75; }
.ff-brand-content p { margin-bottom: 12px; }
.ff-brand-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ff-tag { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; border: 1px solid; }
.ff-tag-teal  { background: var(--ff-teal-light); color: #0A6B52; border-color: var(--ff-teal-mid); }
.ff-tag-navy  { background: #EEF2FF; color: var(--ff-navy); border-color: #C7D2FE; }
.ff-tag-amber { background: var(--ff-amber-light); color: #92400E; border-color: #FDE68A; }

.ff-fact-sidebar {}
.ff-fact-sidebar-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ff-text-muted); margin-bottom: 10px; }
.ff-fact-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--ff-border); font-size: 12px; gap: 8px; }
.ff-fact-row:last-child { border-bottom: none; }
.ff-fact-key { color: var(--ff-text-muted); flex-shrink: 0; }
.ff-fact-val { font-weight: 600; color: var(--ff-navy); text-align: right; }

/* ── 5. SUPPORT ──────────────────────────────────────────────────────────── */
.ff-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-md);
  overflow: hidden;
}
.ff-support-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--ff-border);
  border-right: 1px solid var(--ff-border);
  transition: background .12s;
}
.ff-support-item:hover { background: var(--ff-surface); }
.ff-support-item:nth-child(3n) { border-right: none; }
.ff-support-item:nth-last-child(-n+3) { border-bottom: none; }
.ff-tick-wrap { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ff-tick-on  { background: var(--ff-teal-light); }
.ff-tick-off { background: var(--ff-surface-2, #EDEEF2); }
.ff-support-name { font-size: 12px; }
.ff-support-name.available   { color: var(--ff-navy); font-weight: 500; }
.ff-support-name.unavailable { color: var(--ff-text-muted); }
.ff-support-footer { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ff-text-secondary); }
.ff-support-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ff-teal); flex-shrink: 0; }
.ff-no-data { font-size: 13px; color: var(--ff-text-muted); }

/* ── 6. TERRITORIES ──────────────────────────────────────────────────────── */
.ff-terr-list { display: flex; flex-direction: column; gap: 4px; }
.ff-terr-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--ff-radius-sm); background: var(--ff-surface); transition: background .12s; }
.ff-terr-item:hover { background: var(--ff-surface-2, #EDEEF2); }
.ff-terr-name { flex: 1; font-size: 13px; font-weight: 500; color: var(--ff-navy); }
.ff-badge-open    { background: var(--ff-teal-light); color: #0A6B52; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.ff-badge-limited { background: var(--ff-amber-light); color: #92400E; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.ff-badge-closed  { background: var(--ff-red-light); color: #991B1B; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* ── 7. FAQS ─────────────────────────────────────────────────────────────── */
.ff-faq-item { border-bottom: 1px solid var(--ff-border); }
.ff-faq-item:last-child { border-bottom: none; }
.ff-faq-question { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; gap: 12px; user-select: none; }
.ff-faq-question:hover .ff-faq-q-text { color: var(--ff-teal); }
.ff-faq-q-text { font-size: 13px; font-weight: 500; color: var(--ff-navy); flex: 1; transition: color .15s; }
.ff-faq-icon { width: 22px; height: 22px; border: 1px solid var(--ff-border-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; color: var(--ff-text-muted); }
.ff-faq-item.open .ff-faq-icon { background: var(--ff-navy); border-color: var(--ff-navy); color: var(--ff-white); transform: rotate(45deg); }
.ff-faq-answer { font-size: 13px; color: var(--ff-text-secondary); line-height: 1.7; padding-bottom: 14px; display: none; }
.ff-faq-item.open .ff-faq-answer { display: block; }

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.ff-sidebar-widget-wrap .widget-box,
.ff-sidebar-widget-wrap .widget {
  background: var(--ff-white) !important;
  border: 1px solid var(--ff-border) !important;
  border-radius: var(--ff-radius-lg) !important;
  margin-bottom: 16px !important;
  box-shadow: none !important;
}
/* Restyle the ListingPro lead-form widget inside our sidebar */
.ff-sidebar-widget-wrap .lp-review-btn,
.ff-sidebar-widget-wrap input[type="submit"],
.ff-sidebar-widget-wrap button[type="submit"] {
  background: var(--ff-teal) !important;
  border-color: var(--ff-teal) !important;
  color: var(--ff-white) !important;
  border-radius: var(--ff-radius-md) !important;
  font-weight: 600 !important;
  transition: background .15s !important;
}
.ff-sidebar-widget-wrap .lp-review-btn:hover,
.ff-sidebar-widget-wrap input[type="submit"]:hover { background: #0b8a68 !important; }
.ff-sidebar-widget-wrap .form-control,
.ff-sidebar-widget-wrap input[type="text"],
.ff-sidebar-widget-wrap input[type="email"],
.ff-sidebar-widget-wrap input[type="tel"],
.ff-sidebar-widget-wrap select,
.ff-sidebar-widget-wrap textarea {
  border-radius: var(--ff-radius-md) !important;
  border-color: var(--ff-border) !important;
  font-size: 13px !important;
}
.ff-sidebar-widget-wrap .form-control:focus,
.ff-sidebar-widget-wrap input:focus {
  border-color: var(--ff-teal) !important;
  box-shadow: 0 0 0 3px rgba(13,155,118,.12) !important;
  outline: none !important;
}

/* Fallback CTA card (used only when no sidebar widget registered) */
.ff-sidebar-cta-card {
  background: var(--ff-navy);
  border-radius: var(--ff-radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.ff-cta-eyebrow { font-size: 10px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.ff-cta-heading { font-size: 18px; font-weight: 700; color: var(--ff-white); line-height: 1.3; margin-bottom: 6px; }
.ff-cta-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 16px; line-height: 1.5; }
.ff-cta-heading { letter-spacing: -.3px; }

/* Key financials card */
.ff-sidebar-stats {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  animation: ffFadeUp .4s ease .3s both;
}
.ff-sidebar-stats-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ff-text-muted); margin-bottom: 14px; }
.ff-sstat { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ff-border); font-size: 12px; }
.ff-sstat:last-child { border-bottom: none; }
.ff-sstat-label { color: var(--ff-text-muted); }
.ff-sstat-val { font-weight: 700; color: var(--ff-navy); font-family: monospace; font-size: 12px; }
.ff-sstat-val.ff-good { color: var(--ff-teal); }

/* Similar brands card */
.ff-similar-brands {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
  padding: 20px;
  animation: ffFadeUp .4s ease .4s both;
}
.ff-similar-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ff-text-muted); margin-bottom: 14px; }
.ff-similar-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ff-border); cursor: pointer; transition: opacity .15s; text-decoration: none; color: inherit; }
.ff-similar-item:last-child { border-bottom: none; }
.ff-similar-item:hover { opacity: .7; }
.ff-sim-logo { width: 32px; height: 32px; border-radius: 6px; background: var(--ff-surface); border: 1px solid var(--ff-border); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--ff-navy); flex-shrink: 0; overflow: hidden; }
.ff-sim-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ff-sim-info { flex: 1; min-width: 0; }
.ff-sim-name { font-size: 12px; font-weight: 500; color: var(--ff-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-sim-inv { font-size: 10px; color: var(--ff-text-muted); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ff-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .ff-sidebar { position: static; top: auto; }
  .ff-metrics-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .ff-inv-grid     { grid-template-columns: 1fr; }
  .ff-brand-layout { grid-template-columns: 1fr; }
  .ff-support-grid { grid-template-columns: 1fr 1fr; }
  .ff-support-item:nth-child(3n)    { border-right: 1px solid var(--ff-border); }
  .ff-support-item:nth-child(even)  { border-right: none; }
}
@media (max-width: 600px) {
  .ff-banner-hero   { height: 170px; padding: 0 16px 16px; }
  .ff-brand-name    { font-size: 18px; }
  .ff-brand-logo    { width: 56px; height: 56px; }
  .ff-section       { padding: 20px 16px; }
  .ff-metrics-grid  { grid-template-columns: repeat(2, 1fr) !important; }
  .ff-support-grid  { grid-template-columns: 1fr; }
  .ff-support-item  { border-right: none !important; }
  .ff-banner-bar    { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ff-bar-actions   { margin-left: 0; }
}



/* ── HIDE PARENT THEME'S SINGLE-LISTING WRAPPER when our template is active ── */
/* (Handled by the template_include filter — no CSS needed.) */

/* ── Brand initials fallback ───────────────────────────────────────────────
 A listing with no logo of its own used to render the ForeFind mark, so cards
 across the archive carried our logo where the brand’ should be. The card now
 draws the brand’ initials instead.

 Sized to fill the slot the <img> occupied rather than to a fixed box: the
 parent theme owns .logo-box / .brand-logo-img and this file cannot see those
 rules, so the tile inherits whatever space the image had. */
.logo-box .brand-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 88px;
  border-radius: 10px;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -.02em;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

/* ── BRAND LISTING PAGE — INDIGO PANELS ───────────────────────────────────────

 Three dark panels on a brand listing page (e.g. /franchises/gst-points/) were
 painted navy #0B1F3A and now take the homepage indigo #3024AE:

   Contact the Franchisor  .sidebar .widget-box:has(.wpcf7-form)
   Returns Outlook         .ihl-highlight
   Current Rank            .rank-current-badge

 All three are painted upstream — .ihl-highlight from an inline style ATTRIBUTE,
 the other two from an inline <style> block the parent theme/plugin prints. None
 of that markup exists in this child theme, so this file overrides rather than
 edits the source, and needs !important to beat the attribute.

 forefind-brand.css also loads on single listings (inc/brand-page.php) and holds
 the brand banner colour; these three overrides predate it and stay here.

 The contact widget is matched by the form inside it, not by its block id or
 its extra class: div#block-29 changes when the block is re-saved, and the
 class has already changed once (.cc on /franchises/gst-points/, .viewed-listing
 on /franchises/akr-express/), which silently switched every rule here off.
 The Contact Form 7 form is what identifies the box on every brand page. */

.ihl-highlight {
  background: var(--ff-indigo) !important;
}

body.single-listing .sidebar .widget-box:has(.wpcf7-form) {
  background: var(--ff-indigo) !important;
}

.rank-current-badge {
  background: var(--ff-indigo) !important;
}

/* Consent line under the contact form. Pre-existing, not caused by the repaint:
 #7f7f7f text and #337ab7 links read 2.5:1 and 2.2:1 on the old navy and are no
 better on indigo. Matched on the .form-group that holds the checkbox, because
 the line is two pieces — .wpcf7-list-item-label, then a bare unclassed <span>
 wrapping the two links — and only their shared parent covers both. */
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group:has(.wpcf7-checkbox),
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group:has(.wpcf7-checkbox) span {
  color: rgba(255, 255, 255, .8);
}
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group:has(.wpcf7-checkbox) a {
  color: #fff;
}

/* What you type into the contact form. Same repaint, one step further: the
   fields are near-transparent (rgba(255,255,255,.07)) so their real backdrop
   is the indigo, but the text colour still comes from stylesheets written for
   a white field. Measured on /franchises/gst-points/:

     name, phone, city   #555555  from bootstrap.min.css  .form-control
     email               #000000  from an inline <style> the plugin prints,
                                  with !important
     (and dynamic-css.css sets a bare `input { color: #3024AE }` — the panel
      colour itself, which would be invisible too if Bootstrap did not win)

   #555 on #3024AE is 1.46:1 and black is 2.99:1, against the 4.5:1 WCAG needs
   for body text — which is why a typed value reads as nothing at all. White
   is 10.6:1.

   The email rule is `input.wpcf7-form-control.wpcf7-email.…` — five classes
   and !important — so beating it needs both more classes and !important of
   our own, not just !important. Hence the second, longer selector. */
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group input,
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group select,
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group textarea,
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group input.wpcf7-form-control,
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group select.wpcf7-form-control,
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group textarea.wpcf7-form-control {
  color: #fff !important;
  background-color: rgba(255, 255, 255, .07) !important;
}

/* Placeholders (Full Name, Email Address…). Same story as the typed text: the
   plugin prints `input.wpcf7-form-control.wpcf7-email.…::placeholder { color:#555 }`
   and Bootstrap gives the rest #999 — both written for a white field, both
   unreadable on indigo (1.5:1 and 2.6:1). 75% white is 6.9:1 and still reads as
   a hint next to the full-white typed value. opacity:1 because Firefox dims
   placeholders by default. */
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group input::placeholder,
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group textarea::placeholder,
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group input.wpcf7-form-control::placeholder,
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group textarea.wpcf7-form-control::placeholder {
  color: rgba(255, 255, 255, .75) !important;
  opacity: 1 !important;
}

/* The investment select before a choice: keep its prompt dimmer, like a placeholder. */
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group select:has(option:checked[value="Investment Range"]) {
  color: rgba(255, 255, 255, .75) !important;
}

/* The closed select shows on indigo, but its open list is drawn by the OS on
   a white popup, where the inherited light text would disappear in turn. */
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group select option {
  color: #0E1117;
  background-color: #fff;
}

/* Chrome paints autofilled fields with its own near-white fill and dark text,
   which puts the problem straight back on the two fields most likely to be
   autofilled here — name and email. The inset shadow is the only way to
   repaint that fill; -webkit-text-fill-color is the only way to recolour the
   text. The long transition is the usual trick to outrun Chrome's own. */
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group input:-webkit-autofill,
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group input:-webkit-autofill:hover,
body.single-listing .sidebar .widget-box:has(.wpcf7-form) .form-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: inset 0 0 0 1000px #3A2EC0;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   Editorial disclaimer above the footer on brand listing pages
   --------------------------------------------------------------------------
   Rendered by inc/listing-disclaimer.php. Colours are literal rather than
   --ff-* tokens on purpose: forefind-ui.css carries those tokens and is only
   enqueued on the five redesigned pages and the listing archives, never on a
   single listing page. A token here would resolve to nothing and the text
   would fall back to whatever the parent theme sets.
   ========================================================================== */
.ff-disclaimer {
  border-top: 1px solid #E7E7EE;
  background: #F7F8FB;
  padding: 22px 0;
}
.ff-disclaimer__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5C5E68;
  max-width: 96ch;
}
.ff-disclaimer__label {
  color: #0E1117;
  font-weight: 700;
}
.ff-disclaimer__link {
  color: #1E7A31;          /* 5.09:1 on #F7F8FB */
  text-decoration: underline;
}
.ff-disclaimer__link:hover,
.ff-disclaimer__link:focus {
  color: #14591F;
}

@media (max-width: 767px) {
  .ff-disclaimer { padding: 18px 0; }
  .ff-disclaimer__text { font-size: 12.5px; }
}

/* ==========================================================================
   Inner-page header: one row, like the home page, with the search box kept
   --------------------------------------------------------------------------
   The parent header puts the search (col-md-6) and the menu block (col-md-8)
   side by side: 14 of 12 grid columns. It only fits while the account area is
   short ("Sign In"); signed in, the name ("Franchise Consultant") and "Add
   Franchises" push the menu onto a second row. The home page has no search,
   so its menu block is col-md-12 and never wraps.

   Here the row becomes a flex row: logo at its own width, search shrinks
   (420px down to 200px), menu + account keep their width. Below 1300px the
   name is hidden (the avatar and its dropdown stay); 981-1199px puts the
   search on a full-width second row; 980px and below is the mobile menu,
   untouched. Scoped with :has(search) so the home header is not affected.
   ========================================================================== */
@media (min-width: 981px) {
  .lp-menu-bar .fullwidth-header > .row:has(.lp-search-chnage-styles-st) {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    column-gap: 20px;
  }
  .lp-menu-bar .fullwidth-header > .row:has(.lp-search-chnage-styles-st)::before,
  .lp-menu-bar .fullwidth-header > .row:has(.lp-search-chnage-styles-st)::after { display: none; }
  .lp-menu-bar .fullwidth-header > .row:has(.lp-search-chnage-styles-st) > .lp-logo-container {
    flex: 0 0 auto;
    width: auto;
    float: none;
  }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    float: none;
    display: flex !important;
    align-items: center;
    gap: 24px;
  }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st)::before,
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st)::after { display: none; }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) > .lp-search-chnage-styles-st {
    flex: 1 1 420px;
    max-width: 420px;
    min-width: 200px;
  }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) > .lp-search-chnage-styles-st > .header-filter {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
  }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) > .lp-menu-container {
    flex: 0 0 auto;
    width: auto !important;
    margin-left: auto;
    float: none !important;
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
  }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) > .lp-menu-container::before,
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) > .lp-menu-container::after { display: none; }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) > .lp-menu-container > .pull-right {
    float: none !important;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) > .lp-menu-container > .padding-right-10 { order: 1; }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) > .lp-menu-container > .pull-right:not(.padding-right-10) { order: 2; }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) .lp-join-user-info > ul > li > a {
    display: inline-block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
}
@media (min-width: 981px) and (max-width: 1299px) {
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) { gap: 16px; }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) .lp-join-user-info > ul > li > a { display: none; }
}
@media (min-width: 981px) and (max-width: 1199px) {
  /* Too narrow for one row: the search box takes a full-width second row. */
  .lp-menu-bar .fullwidth-header > .row:has(.lp-search-chnage-styles-st),
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) { flex-wrap: wrap; }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) { row-gap: 10px; }
  .lp-menu-bar .header-right-panel:has(.lp-search-chnage-styles-st) > .lp-search-chnage-styles-st { order: 3; flex: 1 1 100%; max-width: none; }
}
