/* Custom styles for Downtown Business Directory */
.dbd-directory-container {
	font-family: "Open Sans", sans-serif;
}

.dbd-directory-header {
	padding: 0 8px;
}

.dbd-directory-header .form-select,
.dbd-directory-header .form-control {
	min-width: 180px;
}

/* Right-aligned field icons */
.dbd-field-icon-wrap {
	position: relative;
}

.dbd-has-right-icon {
	padding-right: 28px;
}

.dbd-field-icon {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	color: #8aa0b5;
	pointer-events: none;
}

.dbd-directory-accordion {
	background: #fff;
	padding: 12px;
}

.dbd-directory-accordion .dbd-category {
	display: block;
	padding: 10px 8px;
	color: #0055B8;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	position: relative;
	outline: none;
	padding-left: 8px;
	border-bottom: 2px solid #FFD456;
	font-size: 26px;
	font-weight: 400;
	line-height: 26.4px;
	letter-spacing: 0.66px;
	font-family: "alternate-gothic-no-1-d", sans-serif;
}

.dbd-directory-accordion .dbd-category .dbd-acc-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
	margin-right: 6px;
	vertical-align: middle;
}

.dbd-directory-accordion .dbd-category+.dbd-subcategories {
	padding: 6px 12px 12px 34px;
	border-bottom: 2px solid #FFD456;
}

.dbd-directory-accordion .dbd-subcategories {
	display: none;
}

.dbd-directory-accordion .dbd-subcategories a {
	outline: none;
	text-decoration: none;
	color: #000000;
	font-size: 16px;
}

.dbd-acc-icon {
	transition: transform 0.2s ease;
}

.dbd-category.open .dbd-acc-icon {
	transform: rotate(45deg);
	/* plus → X */
}

/* Active state for clicked subcategory */
.dbd-directory-accordion .dbd-subcategories .dbd-subcat.active {
	color: #0055B8;
	font-weight: 700;
}

.dbd-directory-map {
	width: 100%;
	height: 360px;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dbd-directory-list {
	margin-top: 6px;
}

/* Map popup layout */
.dbd-popup {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background-color: #0055B8;
	color: white; 
	border-radius: 6px;
	max-height: 200px;
	overflow-y: auto;
}

.dbd-directory-map .leaflet-popup-content-wrapper,
.dbd-directory-map .leaflet-popup-tip {
	background-color: #0055B8 !important;
}

.dbd-directory-map.leaflet-container a.leaflet-popup-close-button {
	color: #fff !important;
}

.dbd-popup-left {
	width: 100px;
	height: 100px;
	border-radius: 4px;
	overflow: hidden;
	background: #f4f4f4;
	border: 1px solid #e6e6e6;
	flex-shrink: 0; 
}

.dbd-popup-left img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

.dbd-popup-right {
	min-width: 160px;
}

.dbd-popup-title {
	font-weight: 700;
	margin-bottom: 4px;
	color: #faab19;
	font-size: 16px;
}

.dbd-popup-address,
.dbd-popup-phone,
.dbd-popup-website {
	font-size: 14px;
	margin-bottom: 3px;
	color: white;
}

.dbd-popup-website a {
	color: white;
	text-decoration: underline;
}

/* Parking popup styling */
.dbd-parking-popup {
	background-color: #0055B8;
	color: white;
	padding: 12px;
	border-radius: 6px;
}

.dbd-parking-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 6px;
	color: white;
}

.dbd-parking-address {
	font-size: 0.95rem;
	margin-bottom: 6px;
	color: white;
}
.dbd-business-address,.dbd-business-phone,.dbd-business-link{
	font-weight: bold;
}
.dbd-parking-meta ,.dbd-parking-address {
	font-size: 14px;
    margin-bottom: 3px;
    color: white;
}

.dbd-parking-meta div {
	margin-bottom: 3px;
}

.dbd-parking-meta strong {
	color: white;
}

.dbd-business-card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	flex-direction: column;
	margin-bottom: 22px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}
.dbd-business-content {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
/* List view: compact table-like rows */
.dbd-list-row {
	display: grid;
	grid-template-columns: 48px 1.2fr 1.6fr 1fr 0.8fr;
	align-items: center;
	gap: 10px;
	padding: 8px 6px;
	border-bottom: 1px solid #eee;
}

.dbd-list-img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	background: #fff;
	border: 1px solid #e6e6e6;
}

.dbd-list-img--placeholder {
	background: #f2f2f2;
}

.dbd-list-col {
	font-size: 16px;
}

.dbd-list-title,.dbd-grid-title{
	font-weight: 400;
    color: #0055b8;
    font-size: 32px;
    font-family: 'alternate-gothic-no-1-d';
}
.dbd-list-title{
	font-size: 28px;
}

.dbd-list-website a {
	text-decoration: underline;
	color: #0b63a5;
	font-size: 16px;
}

/* Business feature icons (DORA, Dollars) */
/* .dbd-biz-icons{
} */
 .dbd-grid-icons{
	display: flex;
 }
.dbd-grid-icons img{
	width: 20px;
	height: 20px;
	object-fit: contain;
	margin-right: 6px;
	vertical-align: middle;
	margin-top: 6px;
}
.map-legends-wrapper .legends-content img{
	width: 20px;
}
.legends-content{
	display: inline;
	padding-left: 20px;
}
.map-legends-wrapper label,.legends-content span {
		font-size: 14px;
		display: inline;
}
/* Two-line clamp utility for business descriptions with expandable behavior */
.clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.clamp-2.clamped {
	-webkit-line-clamp: unset;
	line-clamp: unset;
}

.dbd-readmore {
	font-size: 0.9rem;
	color: #0d6efd;
	border: none;
	background: transparent;
	padding: 0;
}
.dbd-category.open{
    border-bottom: 0px;
}

@media (max-width: 767px) {
	.dbd-list-row {
		grid-template-columns: 48px 1fr;
	}

	.dbd-list-address,
	.dbd-list-phone,
	.dbd-list-website {
		display: none;
	}
	.dbd-business-content {
		flex-direction: column;
	}
	.dbd-business-img {
		width: 100%;
		max-width: 100%;
	}
}

.dbd-business-img {
	width: 120px;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e6e6e6;
}

.dbd-business-details {
	flex: 1;
}
.dbd-business-image-wrapper{
		flex-shrink: 0;
}

.dbd-business-title {
	font-weight: 400 !important;
    font-size: 32px;
    margin-bottom: 6px;
    cursor: pointer;
    color: #0055b8;
}

.dbd-business-address,
.dbd-business-phone {
	font-size: 16px;
	color: #333;
	margin-bottom: 4px;
}

.dbd-business-link,.dbd-grid-link {
	color: #0b63a5;
	text-decoration: underline;
	font-size: 16px;
}

/* Sidebar left accent and separators similar to screenshot */
.dbd-directory-sidebar {
	background: transparent;
}

.dbd-directory-accordion {
	border-left: 12px solid transparent;
}

.dbd-category.open .dbd-cat-label {
	color: #1AA3DD;
}

/* Top control styles */
.dbd-directory-header .form-select.form-select-sm,
.dbd-directory-header .form-control.form-control-sm {
	background: #f5f7fa;
	border: 0;
}

.dbd-directory-header .btn-primary {
	background: #0055B8;
	border-color: #0055B8;
}

.dbd-directory-header .btn-light {
	background: #fff;
	border: 1px solid #e6eef9;
}

/* Remove outlines/box-shadows for UI elements within the directory UI */
.dbd-directory-container :focus,
.dbd-directory-container :focus-visible,
.dbd-directory-container a:focus,
.dbd-directory-container button:focus,
.dbd-directory-container input:focus,
.dbd-directory-container select:focus,
.dbd-directory-container textarea:focus,
.dbd-directory-container .btn:focus,
.dbd-directory-container .form-select:focus,
.dbd-directory-container .form-control:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* Top controls */
.dbd-view-btns .btn {
	border-radius: 4px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 52px;
	height: 52px;
	background: #F5F5F5;
	padding: 9px 6px;
}

/* Pagination buttons for directory pager */
.dbd-pager {
	margin-top: 12px;
	text-align: center;
}
.dbd-pager .dbd-pager-btn {
	background: #0056b8; /* default page/button color */
	color: #ffffff;
	border: none;
	padding: 6px 14px;
	margin: 0 4px;
	cursor: pointer;
	font-size: 14px;
}
.dbd-pager .dbd-pager-btn:hover {
	background: #004aa0;
}
.dbd-pager .dbd-pager-btn[disabled], .dbd-pager .dbd-pager-btn:disabled {
	opacity: 0.6;
	cursor: default;
}
.dbd-pager .dbd-pager-btn.active {
	background: #00a4e4; /* active background */
	color: #00283a;
}

.dbd-view-btns .btn .dbd-view-icon {
	width: 20px;
	height: 20px;
	display: block;
}

.dbd-view-btns .btn span {
	font-size: 10px;
	text-transform: uppercase;
	font-weight: 700;
	font-family: "Open Sans", sans-serif;
	line-height: 1;
	color: #0055B8;
}

.dbd-directory-header .form-select.form-select-sm,
.dbd-directory-header .form-control.form-control-sm,
.dbd-directory-header .btn,
.dbd-directory-header .dbd-search-btn {
	height: 52px;
}

.dbd-directory-header .form-select.form-select-sm,
.dbd-directory-header .form-control.form-control-sm {
	padding-top: 10px;
	padding-bottom: 10px;
}

/* Custom backgrounds and appearance for dropdowns and input */
.dbd-directory-header .form-select.form-select-sm,
.dbd-directory-header .form-control.form-control-sm {
	background: #F5F5F5;
	border: 0;
	box-shadow: none;
}

.dbd-directory-header .form-select.form-select-sm {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.dbd-directory-header select.form-select-sm option {
	background: #F5F5F5;
	padding: 6px 8px;
	border: 0;
}

/* Placeholder option styling */
.dbd-directory-header select.form-select-sm option[disabled] {
	color: #9aa7b2;
}

/* Disabled select styling */
.dbd-directory-header select.form-select-sm:disabled {
	background: #F0F2F5;
	color: #9aa7b2;
	cursor: not-allowed;
}

.dbd-directory-header select.form-select-sm:focus,
.dbd-directory-header input.form-control-sm:focus {
	outline: none;
	box-shadow: none;
}

.dbd-search-btn {
	padding: 6px 14px;
}

.dbd-search-btn i {
	margin-left: 10px;
	color: #fff;
}

/* Grid view */
.dbd-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.dbd-grid-card {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
}

.dbd-grid-img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	background: #fafafa;
	flex: 0 0 120px;
	border-radius: 4px;
}

.dbd-grid-img--placeholder {
	background: #f0f0f0;
}

.dbd-grid-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

 /* {
	font-weight: 400;
    font-size: 28px;
    color: #0055b8;
} */

.dbd-grid-address,.dbd-grid-phone {
	color: #333;
	font-size: 16px;
}

.dbd-grid-link {
	color: #0b63a5;
	text-decoration: underline;
	font-size: 16px;
}

.dbd-directory-map-section .parking-badge {
	background-color: #E9E9E9;
	border-radius: 8px;
	padding: 6px 8px;
	color: #2E3E47;
	font-size: 10px;
}

.dbd-pager {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.dbd-pager .btn-primary {
	background-color: #0055B8 !important;
}

@media (max-width: 991.98px) {
	.dbd-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
	.dbd-directory-sidebar {
		position: sticky;
		top: 20px;
	}
}

@media (max-width: 575.98px) {
	.dbd-grid {
		grid-template-columns: 1fr;
	}
}

/* Mobile responsiveness tweaks */
@media (max-width: 575.98px) {

	/* Make header controls stack and fill width */
	.dbd-directory-header .row>.col-auto,
	.dbd-directory-header .row>.col {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.dbd-directory-header .form-select.form-select-sm,
	.dbd-directory-header .form-control.form-control-sm,
	.dbd-directory-header .dbd-search-btn {
		width: 100%;
	}

	.dbd-view-btns {
		width: 100%;
		display: flex;
		justify-content: space-between;
		gap: 6px;
		margin-top: 6px;
	}

	.dbd-view-btns .btn {
		width: calc(33.333% - 4px);
		height: 48px;
		padding: 8px 4px;
	}

	/* Reduce map height for small screens */
	.dbd-directory-map {
		height: 260px;
	}

	/* Hide long helper text to save space */
	.dbd-directory-map-section .parking-badge {
		display: none;
	}

	/* Improve tap targets in accordion */
	.dbd-directory-accordion .dbd-category {
		font-size: 14px;
		padding: 8px 8px;
	}

	.dbd-directory-accordion .dbd-subcategories a {
		display: block;
		padding: 6px 0;
	}
}