/* ==========================================================================
   Business Directory — Frontend Styles (v1.1.2)
   Color scheme: Orange (#FF6A00) accents & Black (#111111) text on a light,
   warm background. The v1.0 solid-black hero has been replaced with a
   soft cream/orange gradient for a friendlier, more modern feel.
   ========================================================================== */

:root{
	--bd-orange: #FF6A00;
	--bd-orange-dark: #E05A00;
	--bd-orange-light: #FFF1E6;
	--bd-black: #111111;
	--bd-black-soft: #1E1E1E;
	--bd-gray: #6B6B6B;
	--bd-gray-light: #F5F5F5;
	--bd-border: #E7E7E7;
	--bd-white: #FFFFFF;
	--bd-green: #1F9254;
	--bd-red: #D93025;
	--bd-radius: 14px;
	--bd-shadow: 0 4px 18px rgba(17,17,17,0.07);
	--bd-shadow-hover: 0 14px 30px rgba(17,17,17,0.14);
	--bd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* v1.1.1 — light hero palette (replaces the solid black hero background) */
	--bd-hero-bg: linear-gradient(135deg, #FFFFFF 0%, #FFF6EE 55%, #FFEBDA 100%);
	--bd-hero-border: #F0DCC8;
}

.bd-wrap, .bd-wrap *{ box-sizing: border-box; }
.bd-wrap{ font-family: var(--bd-font); color: var(--bd-black); }

/* Reset the handful of elements themes most commonly restyle globally
   (list bullets/margins, link color/underline, button font/cursor) so this
   plugin's layout looks the same no matter which theme is active. Specific
   component rules further down the file are more specific and always win. */
.bd-wrap ul, .bd-wrap li{ list-style: none; margin: 0; padding: 0; }
.bd-wrap a{ text-decoration: none; color: inherit; }
.bd-wrap button{ font-family: inherit; cursor: pointer; }
.bd-wrap img{ max-width: 100%; height: auto; }
.bd-wrap input, .bd-wrap select, .bd-wrap textarea{ font-family: inherit; }

.bd-container{ max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero / archive header ---------- */
.bd-hero{
	background: var(--bd-hero-bg);
	border-bottom: 1px solid var(--bd-hero-border);
	padding: 64px 20px 48px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.bd-hero::after{
	content: "";
	position: absolute;
	right: -80px; top: -80px;
	width: 260px; height: 260px;
	background: var(--bd-orange);
	opacity: 0.10;
	border-radius: 50%;
}
.bd-hero::before{
	content: "";
	position: absolute;
	left: -60px; bottom: -100px;
	width: 220px; height: 220px;
	background: var(--bd-black);
	opacity: 0.04;
	border-radius: 50%;
}
.bd-hero-inner{ max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.bd-hero-title{
	color: var(--bd-black);
	font-size: 40px;
	font-weight: 800;
	margin: 0 0 12px;
	letter-spacing: -0.5px;
}
.bd-hero-sub{ color: var(--bd-gray); font-size: 17px; margin: 0 0 30px; }

.bd-search-form{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--bd-white);
	padding: 10px;
	border-radius: 12px;
	border: 1px solid var(--bd-border);
	box-shadow: var(--bd-shadow);
}
.bd-search-form input[type="text"]{
	flex: 1 1 220px;
	border: none;
	padding: 12px 14px;
	font-size: 15px;
	border-radius: 8px;
	background: var(--bd-gray-light);
}
.bd-search-form select{
	border: none;
	padding: 12px 14px;
	font-size: 15px;
	border-radius: 8px;
	background: var(--bd-gray-light);
}
.bd-search-form input:focus, .bd-search-form select:focus{ outline: 2px solid var(--bd-orange); }
.bd-search-form button{
	background: var(--bd-orange);
	color: var(--bd-white);
	border: none;
	font-weight: 700;
	padding: 12px 26px;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease;
}
.bd-search-form button:hover{ background: var(--bd-orange-dark); }

/* ---------- Category strip ---------- */
.bd-cat-strip{
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 18px 20px;
	max-width: 1180px;
	margin: 0 auto;
}
.bd-category-pill{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--bd-gray-light);
	color: var(--bd-black);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--bd-border);
	transition: all .15s ease;
}
.bd-category-pill span{ color: var(--bd-gray); font-weight: 400; }
.bd-category-pill:hover{ border-color: var(--bd-orange); color: var(--bd-orange-dark); }
.bd-category-pill.is-active{ background: var(--bd-orange); border-color: var(--bd-orange); color: var(--bd-white); }
.bd-category-pill.is-active span{ color: rgba(255,255,255,0.8); }

.bd-categories-list{ display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Grid & cards ---------- */
.bd-grid{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	padding: 36px 0 20px;
}

.bd-card{
	background: var(--bd-white);
	border: 1px solid var(--bd-border);
	border-radius: var(--bd-radius);
	box-shadow: var(--bd-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease;
	position: relative;
}
.bd-card:hover{ transform: translateY(-5px); box-shadow: var(--bd-shadow-hover); }
.bd-card-accent{ height: 6px; width: 100%; background: linear-gradient(90deg, var(--bd-orange), var(--bd-black)); }
.bd-card-body{ padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.bd-card-cats{ display: flex; flex-wrap: wrap; gap: 6px; }
.bd-badge{
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: var(--bd-orange-dark);
	background: var(--bd-orange-light);
	padding: 4px 10px;
	border-radius: 6px;
}
.bd-badge-link{ text-decoration: none; }
.bd-badge-link:hover{ background: var(--bd-orange); color: var(--bd-white); }

.bd-card-title{ margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; }
.bd-card-title a{ color: var(--bd-black); text-decoration: none; }
.bd-card-title a:hover{ color: var(--bd-orange-dark); }

.bd-card-desc{ margin: 0; color: var(--bd-gray); font-size: 14.5px; line-height: 1.55; }

.bd-card-meta{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--bd-black); }
.bd-card-meta li{ position: relative; padding-left: 22px; }
.bd-card-meta li a{ color: inherit; text-decoration: none; }
.bd-card-meta li a:hover{ color: var(--bd-orange-dark); }
.bd-icon-address::before{ content: "📍"; position: absolute; left: 0; }
.bd-icon-phone::before{ content: "📞"; position: absolute; left: 0; }

.bd-card-link{
	margin-top: auto;
	padding-top: 10px;
	font-weight: 700;
	font-size: 14px;
	color: var(--bd-orange-dark);
	text-decoration: none;
}
.bd-card-link:hover{ text-decoration: underline; }

/* ---------- Status badge ---------- */
.bd-status{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 700;
	width: fit-content;
	padding: 4px 10px;
	border-radius: 999px;
}
.bd-status-dot{ width: 8px; height: 8px; border-radius: 50%; }
.bd-status-open{ background: rgba(31,146,84,0.1); color: var(--bd-green); }
.bd-status-open .bd-status-dot{ background: var(--bd-green); }
.bd-status-closed{ background: rgba(217,48,37,0.08); color: var(--bd-red); }
.bd-status-closed .bd-status-dot{ background: var(--bd-red); }
.bd-status-lg{ font-size: 14px; padding: 6px 14px; margin: 14px 0 18px; }

/* ---------- Pagination ---------- */
.bd-pagination{ display: flex; justify-content: center; gap: 8px; padding: 20px 0 60px; flex-wrap: wrap; }
.bd-pagination .page-numbers{
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 8px; background: var(--bd-gray-light); color: var(--bd-black);
	text-decoration: none; font-weight: 600; font-size: 14px;
}
.bd-pagination .page-numbers.current{ background: var(--bd-orange); color: var(--bd-white); }
.bd-pagination .page-numbers:hover{ background: var(--bd-black); color: var(--bd-white); }

.bd-empty-state{ text-align: center; padding: 60px 20px; color: var(--bd-gray); font-size: 16px; }

/* ---------- Single business page ---------- */
.bd-single-hero{
	background: var(--bd-hero-bg);
	border-bottom: 1px solid var(--bd-hero-border);
	padding: 56px 20px;
	position: relative;
	overflow: hidden;
}
.bd-single-hero::before{
	content: "";
	position: absolute; left: -60px; bottom: -100px;
	width: 260px; height: 260px; background: var(--bd-orange);
	opacity: 0.10; border-radius: 50%;
}
.bd-single-hero-inner{ max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.bd-single-title{ color: var(--bd-black); font-size: 38px; font-weight: 800; margin: 14px 0 12px; letter-spacing: -0.5px; }
.bd-single-desc{ color: var(--bd-gray); font-size: 16.5px; max-width: 640px; margin: 14px 0 26px; line-height: 1.6; }

.bd-hero-actions{ display: flex; flex-wrap: wrap; gap: 12px; }
.bd-btn{
	display: inline-flex; align-items: center; justify-content: center;
	padding: 13px 24px; border-radius: 9px; font-weight: 700; font-size: 14.5px;
	text-decoration: none; transition: all .15s ease; cursor: pointer;
}
.bd-btn-primary{ background: var(--bd-orange); color: var(--bd-white); }
.bd-btn-primary:hover{ background: var(--bd-orange-dark); }
.bd-btn-outline{ background: transparent; border: 2px solid var(--bd-black); color: var(--bd-black); }
.bd-btn-outline:hover{ background: var(--bd-black); color: var(--bd-white); }
.bd-btn-ghost{ background: rgba(17,17,17,0.06); color: var(--bd-black); }
.bd-btn-ghost:hover{ background: rgba(17,17,17,0.12); }
.bd-btn-block{ width: 100%; }

.bd-single-grid{
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
	padding: 40px 20px 20px;
}
@media (max-width: 820px){
	.bd-single-grid{ grid-template-columns: 1fr; }
}

.bd-panel{
	background: var(--bd-white);
	border: 1px solid var(--bd-border);
	border-radius: var(--bd-radius);
	padding: 26px 26px 28px;
	box-shadow: var(--bd-shadow);
	margin-bottom: 24px;
}
.bd-panel-title{
	font-size: 18px; font-weight: 800; margin: 0 0 18px;
	padding-bottom: 12px; border-bottom: 2px solid var(--bd-orange-light);
	position: relative;
}
.bd-panel-title::after{
	content: ""; position: absolute; left: 0; bottom: -2px;
	width: 46px; height: 2px; background: var(--bd-orange);
}

.bd-info-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.bd-info-list li{ display: flex; flex-direction: column; gap: 3px; }
.bd-info-label{ font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bd-gray); font-weight: 700; }
.bd-info-value{ font-size: 15.5px; color: var(--bd-black); line-height: 1.5; }
.bd-info-value a{ color: var(--bd-orange-dark); text-decoration: none; }
.bd-info-value a:hover{ text-decoration: underline; }

/* Phone numbers specifically: some themes' own global link/visibility
   styles have been observed to render this text invisible (while the link
   stays clickable) even though our normal cascade already sets a visible
   color. These rules are intentionally forceful so a phone number is never
   silently hidden by an unrelated theme style. */
.bd-phone-value{ display: flex; flex-direction: column; gap: 4px; }
.bd-phone-link, a.bd-phone-link{
	color: var(--bd-orange-dark) !important;
	text-decoration: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	display: inline-block !important;
	font-size: 15.5px !important;
}
.bd-phone-link:hover{ text-decoration: underline !important; }

.bd-content{ font-size: 15.5px; line-height: 1.7; color: var(--bd-black); }

.bd-hours-list{ list-style: none; margin: 0; padding: 0; }
.bd-hours-list li{
	display: flex; justify-content: space-between; align-items: center;
	padding: 9px 0; border-bottom: 1px solid var(--bd-gray-light); font-size: 14.5px;
}
.bd-hours-list li:last-child{ border-bottom: none; }
.bd-hours-day{ color: var(--bd-gray); font-weight: 600; }
.bd-hours-time{ font-weight: 700; }
.bd-hours-today{ background: var(--bd-orange-light); margin: 0 -14px; padding: 9px 14px !important; border-radius: 8px; }
.bd-hours-today .bd-hours-day, .bd-hours-today .bd-hours-time{ color: var(--bd-orange-dark); }

/* ---------- Services list ---------- */
.bd-services-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.bd-services-list li{
	position: relative; padding-left: 24px; font-size: 14.5px; color: var(--bd-black); line-height: 1.4;
	white-space: nowrap;
}
.bd-services-list li::before{
	content: "✓"; position: absolute; left: 0; top: 0;
	color: var(--bd-orange-dark); font-weight: 800;
}

/* ---------- Keywords list ---------- */
.bd-keywords-list{ display: flex; flex-wrap: wrap; gap: 8px; }
.bd-keyword-pill{
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--bd-gray);
	background: var(--bd-gray-light);
	border: 1px solid var(--bd-border);
	padding: 5px 12px;
	border-radius: 999px;
}

/* ---------- Related section ---------- */
.bd-related{ background: var(--bd-gray-light); padding: 10px 0 30px; margin-top: 10px; }
.bd-section-title{ font-size: 26px; font-weight: 800; padding-top: 34px; margin: 0 0 4px; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 900px){
	.bd-single-grid{ padding: 32px 16px 16px; }
	.bd-container{ padding: 0 16px; }
}

@media (max-width: 680px){
	.bd-search-form{ flex-direction: column; }
	.bd-search-form input, .bd-search-form select, .bd-search-form button{ width: 100%; }
	.bd-grid{ grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 600px){
	.bd-hero-title, .bd-single-title{ font-size: 28px; }
	.bd-hero{ padding: 42px 16px 34px; }
	.bd-single-hero{ padding: 40px 16px; }
	.bd-hero-actions{ flex-direction: column; }
	.bd-hero-actions .bd-btn{ width: 100%; }
	.bd-panel{ padding: 20px 18px 22px; }
	.bd-services-list{ flex-direction: column; gap: 10px; }
	.bd-services-list li{ white-space: normal; }
}
