.tbd-directory {
	--tbd-navy: #09285C;
	--tbd-orange: #FF6500;
	--tbd-border: #E2E8F0;
	--tbd-muted: #64748b;
	max-width: 1100px;
	margin: 0 auto;
	padding-top: 32px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tbd-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.tbd-search-wrap {
	flex: 1 1 280px;
}

.tbd-search,
.tbd-sort {
	width: 100%;
	padding: 10px 14px;
	border: 1.6px solid var(--tbd-border);
	border-radius: 10px;
	font-size: 14px;
	box-sizing: border-box;
}

.tbd-sort-wrap {
	flex: 0 0 220px;
}

.tbd-count {
	font-size: 13px;
	color: var(--tbd-muted);
	font-weight: 600;
	margin-bottom: 14px;
}

.tbd-loading,
.tbd-empty {
	text-align: center;
	padding: 40px 0;
	color: var(--tbd-muted);
	font-size: 14px;
}

.tbd-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.tbd-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.tbd-table th {
	text-align: left;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--tbd-navy);
	background: #f8fafc;
	padding: 12px 14px;
	border-bottom: 2px solid var(--tbd-border);
	white-space: nowrap;
}

.tbd-table td {
	padding: 8px 14px;
	border-bottom: 1px solid var(--tbd-border);
	font-size: 14px;
	line-height: 1.35;
	vertical-align: middle;
}

.tbd-logo-img {
	width: 38px;
	height: 38px;
	object-fit: cover;
	border-radius: 7px;
	border: 1px solid var(--tbd-border);
	display: block;
}

.tbd-logo-placeholder {
	width: 38px;
	height: 38px;
	border-radius: 7px;
	background: #f1f5f9;
	display: block;
}

.tbd-agency-name {
	font-weight: 700;
	color: var(--tbd-navy);
}

.tbd-dealing-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: var(--tbd-navy);
	background: #eef4ff;
	border-radius: 999px;
	padding: 3px 9px;
	margin: 2px 4px 2px 0;
}

.tbd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tbd-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 11px;
	border-radius: 7px;
	font-size: 11.5px;
	font-weight: 700;
	text-decoration: none;
	border: 1.4px solid transparent;
	white-space: nowrap;
}

.tbd-btn-whatsapp {
	background: #16a34a;
	color: #fff;
}

.tbd-btn-call {
	background: var(--tbd-navy);
	color: #fff;
}

.tbd-btn-website {
	background: var(--tbd-navy);
	color: #fff;
}

.tbd-btn-website[aria-disabled="true"],
.tbd-btn-disabled {
	background: #f1f5f9;
	color: var(--tbd-muted);
	cursor: not-allowed;
	pointer-events: none;
	border-color: var(--tbd-border);
}

.tbd-btn-unavailable {
	background: #f1f5f9;
	color: #cbd5e1;
	cursor: not-allowed;
	pointer-events: none;
	border-color: var(--tbd-border);
}

.tbd-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 24px;
}

.tbd-page-btn {
	padding: 7px 13px;
	border: 1.4px solid var(--tbd-border);
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--tbd-navy);
	cursor: pointer;
}

.tbd-page-btn[disabled] {
	opacity: .4;
	cursor: not-allowed;
}

.tbd-page-btn.is-active {
	background: var(--tbd-orange);
	color: #fff;
	border-color: var(--tbd-orange);
}

/* ---------- Responsive: table -> stacked cards ---------- */
@media (max-width: 768px) {

	.tbd-sort-wrap {
		flex: 1 1 100%;
	}

	.tbd-table thead {
		display: none;
	}

	.tbd-table,
	.tbd-table tbody,
	.tbd-table tr,
	.tbd-table td {
		display: block;
		width: 100%;
	}

	.tbd-table tr {
		border: 1px solid var(--tbd-border);
		border-radius: 12px;
		margin-bottom: 14px;
		padding: 14px;
		box-shadow: 0 4px 14px rgba(9, 40, 92, .06);
	}

	.tbd-table td {
		border-bottom: none;
		padding: 6px 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 10px;
	}

	.tbd-table td[data-label]::before {
		content: attr(data-label);
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		color: var(--tbd-muted);
		flex-shrink: 0;
	}

	.tbd-table td.tbd-col-logo {
		justify-content: flex-start;
	}

	.tbd-table td.tbd-col-logo::before {
		display: none;
	}

	.tbd-table td.tbd-col-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.tbd-table td.tbd-col-actions::before {
		display: none;
	}

	.tbd-actions {
		width: 100%;
	}

	.tbd-btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}
