/* Premium Breakfast Directory — design tokens */
:root {
	--bfnme-primary: #D97745;
	--bfnme-primary-dark: #B85E30;
	--bfnme-secondary: #F5E6D3;
	--bfnme-accent: #6B8E5A;
	--bfnme-dark: #2F2A26;
	--bfnme-bg: #FAF8F4;
	--bfnme-text: #2F2A26;
	--bfnme-text-muted: #5C534C;
	--bfnme-border: #E8E0D6;
	--bfnme-card-bg: #ffffff;
	--primary-color: var(--bfnme-primary);
	--secondary-color: var(--bfnme-dark);
}

/* Site shell */
body {
	background-color: var(--bfnme-bg);
	color: var(--bfnme-text);
}

/* Parent theme header — espresso instead of pure black */
.top-head {
	background: var(--bfnme-dark);
}

.page-template-revolution-home .top-head {
	background: transparent;
}

.header-button a {
	background: var(--bfnme-primary);
	text-transform: none;
	letter-spacing: 0.02em;
}

.header-button a:hover {
	background: var(--bfnme-secondary);
	color: var(--bfnme-dark);
}

.searchbtn .btn-search {
	background: var(--bfnme-primary);
}

.searchbtn .btn-search:hover {
	background: var(--bfnme-primary-dark);
}

/* Listing cards — warm score badges */
.bottom-icons a.viewall-btn i,
.star-rating {
	background: var(--bfnme-secondary);
	border-color: var(--bfnme-border);
	color: var(--bfnme-primary);
}

.star-rating i,
.rate-text,
.cours-price,
.home-location i,
.home_fartures i {
	color: var(--bfnme-primary);
}

.main-location a:hover {
	color: var(--bfnme-primary-dark);
}

/* Child theme sections */
.bfnme-directory-hero {
	padding: 3rem 0 2rem;
	background: linear-gradient(135deg, var(--bfnme-secondary) 0%, var(--bfnme-bg) 100%);
}

.bfnme-directory-hero .main-searh-col {
	display: block;
	position: relative;
	flex: 1;
	width: auto;
	border: none;
	margin-right: 0;
}

.bfnme-directory-hero .bfnme-autocomplete {
	position: relative;
	width: 100%;
}

.bfnme-directory-hero .search-cat-box input.search-text {
	width: 100%;
	min-height: 48px;
	border-radius: 4px;
	border: 1px solid var(--bfnme-border);
	padding: 0.75rem 1rem;
}

.bfnme-directory-hero .bfnme-autocomplete-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 10050;
	max-height: 280px;
	overflow-y: auto;
	text-align: left;
	background: var(--bfnme-card-bg);
	border: 1px solid var(--bfnme-border);
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(47, 42, 38, 0.15);
}

.bfnme-directory-hero .bfnme-autocomplete-results.is-open {
	display: block;
}

.bfnme-directory-hero .bfnme-autocomplete-results a {
	display: block;
	padding: 0.65rem 1rem;
	text-align: left;
	color: var(--bfnme-text);
	text-decoration: none;
	border-bottom: 1px solid var(--bfnme-border);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bfnme-directory-hero .bfnme-autocomplete-results a:last-child {
	border-bottom: none;
}

.bfnme-directory-hero .bfnme-autocomplete-results a:hover,
.bfnme-directory-hero .bfnme-autocomplete-results a:focus {
	background: var(--bfnme-secondary);
	color: var(--bfnme-dark);
}

.bfnme-directory-hero .btn-search {
	background: var(--bfnme-primary);
	border-color: var(--bfnme-primary);
	min-height: 48px;
}

.bfnme-directory-hero .btn-search:hover {
	background: var(--bfnme-primary-dark);
	border-color: var(--bfnme-primary-dark);
}

.bfnme-directory-section {
	padding: 2.5rem 0;
}

.bfnme-directory-section .main-sec-title h2 {
	margin-bottom: 1.5rem;
	color: var(--bfnme-dark);
}

.bfnme-directory-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.bfnme-directory-tags a {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--bfnme-border);
	border-radius: 999px;
	text-decoration: none;
	color: var(--bfnme-text);
	font-size: 0.9rem;
	background: var(--bfnme-card-bg);
}

.bfnme-directory-tags a:hover {
	border-color: var(--bfnme-primary);
	color: var(--bfnme-primary);
	background: var(--bfnme-secondary);
}

/* Plugin listing pages inside theme shell */
.bfnme-listing-page,
.bfnme-restaurant-single {
	max-width: 1140px;
	margin: 0 auto;
	padding: 2rem 15px;
}

.bfnme-listing-page .container {
	max-width: 100%;
	padding: 0;
}

.bfnme-listing-page .bfnme-listing-header {
	padding-bottom: 0.25rem;
}

.bfnme-listing-page .bfnme-breadcrumbs {
	margin-bottom: 1rem;
}

/* Listing filters — polished dropdowns */
.bfnme-listing-page .bfnme-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
	gap: 0.85rem 1rem;
	margin: 1.25rem 0 1.75rem;
	padding: 1.1rem 1.25rem;
	background: linear-gradient(180deg, #fff 0%, #faf7f2 100%);
	border: 1px solid #efe8df;
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(47, 42, 38, 0.05);
}

.bfnme-filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.bfnme-filter-field--toggle {
	justify-content: flex-end;
	padding-bottom: 0.15rem;
}

.bfnme-filter-field--action {
	justify-content: flex-end;
}

.bfnme-filter-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a8278;
}

.bfnme-select-wrap {
	position: relative;
	display: inline-flex;
}

.bfnme-select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #8a8278;
	border-bottom: 2px solid #8a8278;
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

.bfnme-filters .bfnme-select {
	appearance: none;
	-webkit-appearance: none;
	min-width: 168px;
	padding: 0.65rem 2.25rem 0.65rem 0.85rem;
	border: 1px solid #e5dfd6;
	border-radius: 10px;
	background: #fff;
	color: #2f2a26;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.bfnme-filters .bfnme-select:hover {
	border-color: #d9cfc2;
}

.bfnme-filters .bfnme-select:focus {
	outline: none;
	border-color: #e87832;
	box-shadow: 0 0 0 3px rgba(232, 120, 50, 0.18);
}

.bfnme-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	cursor: pointer;
	user-select: none;
	min-height: 42px;
	padding: 0 0.15rem;
}

.bfnme-filter-toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.bfnme-filter-toggle__track {
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: #e8e2d9;
	border: 1px solid #ddd5c8;
	position: relative;
	transition: background 0.2s, border-color 0.2s;
	flex-shrink: 0;
}

.bfnme-filter-toggle__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(47, 42, 38, 0.18);
	transition: transform 0.2s ease;
}

.bfnme-filter-toggle input:checked + .bfnme-filter-toggle__track {
	background: #e87832;
	border-color: #d96a24;
}

.bfnme-filter-toggle input:checked + .bfnme-filter-toggle__track::after {
	transform: translateX(18px);
}

.bfnme-filter-toggle__text {
	font-size: 0.875rem;
	font-weight: 600;
	color: #4a4a4a;
}

.bfnme-filters .bfnme-btn--filter {
	min-height: 42px;
	padding: 0 1.25rem;
	border-radius: 10px;
	font-weight: 700;
	letter-spacing: 0.01em;
	box-shadow: 0 4px 12px rgba(232, 120, 50, 0.22);
}

.bfnme-listing-page .bfnme-grid,
.bfnme-listing-page .bfnme-grid.rest-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 1.6vw, 20px);
}

.bfnme-restaurant-single .bfnme-lightbox-gallery .bfnme-card img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
}

.bfnme-restaurant-single .bfnme-map {
	height: 360px;
	border-radius: 8px;
	overflow: hidden;
	margin: 1.5rem 0;
}

/* Single restaurant — rating / score / status row */
.bfnme-restaurant-single .bfnme-restaurant-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1.25rem;
	margin: 0.75rem 0 1.25rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--bfnme-border);
	font-size: 0.95rem;
	line-height: 1.4;
}

.bfnme-restaurant-single .bfnme-rating-pill {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.3rem 0.4rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: var(--bfnme-secondary);
	border: 1px solid var(--bfnme-border);
	color: var(--bfnme-text);
	width: auto;
	height: auto;
	max-width: 100%;
}

.bfnme-restaurant-single .bfnme-rating-num {
	font-weight: 700;
	color: var(--bfnme-primary);
}

.bfnme-restaurant-single .bfnme-rating-star {
	color: var(--bfnme-primary);
	font-size: 0.9rem;
}

.bfnme-restaurant-single .bfnme-review-count {
	color: var(--bfnme-text-muted);
	font-size: 0.875rem;
	white-space: nowrap;
}

.bfnme-restaurant-single .bfnme-score {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(217, 119, 69, 0.12);
	color: var(--bfnme-primary-dark);
	font-weight: 700;
	font-size: 0.875rem;
	white-space: nowrap;
}

.bfnme-restaurant-single .bfnme-open,
.bfnme-restaurant-single .bfnme-closed {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.875rem;
	white-space: nowrap;
}

.bfnme-restaurant-single .bfnme-open {
	background: rgba(107, 142, 90, 0.12);
}

.bfnme-restaurant-single .bfnme-closed {
	background: rgba(155, 77, 77, 0.1);
}

.bfnme-restaurant-single .entry-title h1 {
	margin-bottom: 0.25rem;
	word-break: break-word;
}

.bfnme-directory-card .star-rating {
	margin-left: auto;
}

.bfnme-directory-card .cours-price {
	color: var(--bfnme-primary);
	font-weight: 700;
}

.bfnme-directory-card .star-rating.bfnme-open-badge {
	color: var(--bfnme-accent);
	border-color: rgba(107, 142, 90, 0.35);
	background: rgba(107, 142, 90, 0.12);
}

.bfnme-breadcrumbs {
	margin-bottom: 1rem;
	font-size: 0.875rem;
}

.bfnme-open,
.bfnme-closed {
	font-weight: 600;
}

.bfnme-open {
	color: var(--bfnme-accent);
}

.bfnme-closed {
	color: #9B4D4D;
}

/* Footer — warm espresso shell, cream headings, olive 3rd column */
.site-footer .footer-top {
	background: var(--bfnme-dark);
	border-top: 3px solid var(--bfnme-primary);
	padding: 3rem 0 2rem;
}

.site-footer section.footer-top h2.widget-title,
.site-footer section.footer-top h3,
.site-footer section.footer-top .widget_block h2 {
	background: var(--bfnme-secondary);
	color: var(--bfnme-dark) !important;
	font-size: 1.05rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0.01em;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin-bottom: 0.75rem;
	box-shadow: none;
}

/* 3rd column (Popular Cities) — olive accent heading */
.site-footer .footer-top .footer-col:nth-child(3) .widget-title {
	background: var(--bfnme-accent);
	color: #fff !important;
}

.site-footer section.footer-top .widget-title::before {
	color: var(--bfnme-primary);
}

.site-footer .footer-top .footer-col:nth-child(3) .widget-title::before {
	color: #fff;
}

.site-footer .footer-top .widget-title,
.site-footer .footer-top .widget_block h2,
.site-footer .footer-top a,
.site-footer .footer-top li,
.site-footer .footer-top p {
	color: rgba(245, 230, 211, 0.92);
}

.site-footer section.footer-top .widget ul li a {
	color: rgba(245, 230, 211, 0.92);
}

.site-footer section.footer-top .widget ul li a:hover,
.site-footer section.footer-top ul li:hover a {
	color: var(--bfnme-primary);
}

.site-footer section.footer-top ul li:not(.recentcomments) a::before {
	background-color: var(--bfnme-primary);
}

.site-footer .footer-bottom {
	background: #252119;
	border-top: 1px solid rgba(245, 230, 211, 0.12);
	padding: 1.25rem 0;
}

.site-footer .footer-bottom .site-info,
.site-footer .footer-bottom .site-info p,
.site-footer .footer-bottom a {
	color: var(--bfnme-secondary);
}

.site-footer .footer-bottom a:hover,
.site-footer .site-info a:hover {
	color: var(--bfnme-primary);
}

.site-footer .footer-go-to-top {
	background-color: var(--bfnme-primary);
	color: #fff;
}

.site-footer .footer-go-to-top:hover,
.site-footer .footer-go-to-top:focus {
	background-color: var(--bfnme-primary-dark);
	color: #fff;
}

@media (max-width: 768px) {
	.bfnme-directory-hero {
		padding: 2rem 0 1.5rem;
	}

	.bfnme-listing-page,
	.bfnme-restaurant-single {
		padding: 1.25rem 12px;
	}

	.bfnme-listing-page .bfnme-grid,
	.bfnme-listing-page .bfnme-grid.rest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bfnme-restaurant-single .bfnme-grid {
		grid-template-columns: 1fr;
	}

	.bfnme-listing-page .bfnme-filters {
		align-items: stretch;
	}

	.bfnme-filter-field,
	.bfnme-select-wrap,
	.bfnme-filters .bfnme-select,
	.bfnme-filters .bfnme-btn--filter {
		width: 100%;
	}
}
