/* branch-directory.css
   Covers both the [branch_directory] shortcode output and taxonomy-branch.php.
   Colors approximate your current table (lavender header, cream row stripe) —
   swap the hex values for your actual brand tokens if you have them defined
   as CSS custom properties elsewhere in the theme. */

.bt-branch-directory {
	max-width: var(--wp--style--global--content-size);
	margin: 1rem auto;
}

/* Toggle buttons */
.bt-toggle-buttons {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
}
 
.bt-toggle-btn {
	flex: 1;
	padding: 12px 20px;
	background: #f2f0f7;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	color: #4a4458;
	cursor: pointer;
	transition: background 0.15s ease;
}
 
.bt-toggle-btn.is-active {
	background: #d6d0e8;
	color: #1f1b2e;
}
 
.bt-toggle-btn:hover {
	background: #e2ddf0;
}
 
/* Country grouping */
.bt-country-block {
	margin-bottom: 28px;
}
 
.bt-country-name {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b6478;
	padding: 8px 4px;
	border-bottom: 1px solid #e5e1ee;
	margin-bottom: 4px;
}
 
/* Branch rows */
.bt-branch-list {
	display: flex;
	flex-direction: column;
}
 
.bt-branch-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
	transition: background 0.15s ease;
}
 
.bt-branch-row:nth-child(odd) {
	background: #faf9f6;
}
 
.bt-branch-row:hover {
	background: #f0ecf7;
}
 
.bt-branch-name {
	font-weight: 600;
	color: #2f2a3d;
	flex: 1 1 auto;
}
 
.bt-branch-chairman {
	color: #6b6478;
	font-size: 14px;
	flex: 0 0 auto;
}
 
.bt-branch-arrow {
	color: #9b93ad;
	flex: 0 0 auto;
}
 
/* Single branch page */
.bt-single-branch {
	max-width: 700px;
	margin: 0 auto;
}
 
.bt-breadcrumb {
	margin-bottom: 8px;
}
 
.bt-breadcrumb a {
	color: #6b6478;
	text-decoration: none;
	font-size: 14px;
}
 
.bt-branch-title {
	margin-bottom: 20px;
}
 
.bt-branch-details {
	background: #faf9f6;
	border-radius: 8px;
	padding: 8px 20px;
	margin-bottom: 32px;
}
 
.bt-detail-row {
	display: flex;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid #eee9f4;
}
 
.bt-detail-row:last-child {
	border-bottom: none;
}
 
.bt-detail-label {
	flex: 0 0 120px;
	font-weight: 600;
	color: #6b6478;
	font-size: 14px;
}
 
.bt-detail-value a {
	color: #4a3f8c;
}
 
.bt-no-details {
	color: #8a8494;
	font-style: italic;
	padding: 16px 0;
}
 
.bt-branch-post-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
 
.bt-branch-post-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #eee9f4;
}
 
.bt-post-date {
	color: #9b93ad;
	font-size: 13px;
}
 
/* Mobile */
@media (max-width: 600px) {
	.bt-toggle-buttons {
		flex-direction: column;
	}
	.bt-branch-row {
		flex-wrap: wrap;
	}
	.bt-detail-row {
		flex-direction: column;
		gap: 2px;
	}
	.bt-detail-label {
		flex: none;
	}
}
 
/* Breadcrumb */
.bt-breadcrumb {
	font-size: 14px;
	color: #6b6478;
	margin-bottom: 20px;
}
 
.bt-breadcrumb a {
	color: #6b6478;
	text-decoration: none;
}
 
.bt-breadcrumb a:hover {
	color: #4a3f8c;
	text-decoration: underline;
}
 
.bt-breadcrumb-sep {
	margin: 0 6px;
	color: #cfc9dc;
}
 
.bt-breadcrumb-current {
	color: #2f2a3d;
	font-weight: 600;
}
 
/* Child branch cards (country page listing each branch's full details) */
.bt-child-branches {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 32px;
}
 
.bt-child-branch-card {
	background: #faf9f6;
	border-radius: 8px;
	padding: 16px 20px;
}
 
.bt-child-branch-name {
	margin: 0 0 8px 0;
	font-size: 17px;
}
 
.bt-child-branch-name a {
	color: #2f2a3d;
	text-decoration: none;
}
 
.bt-child-branch-name a:hover {
	color: #4a3f8c;
	text-decoration: underline;
}
 
.bt-child-branch-card .bt-branch-details {
	background: transparent;
	padding: 0;
}
 
/* Adaptive Details / News / Events columns */
.bt-branch-columns {
	display: grid;
	gap: 28px;
	margin-bottom: 32px;
	align-items: start;
}
 
.bt-columns-1 {
	grid-template-columns: 1fr;
}
 
.bt-columns-2 {
	grid-template-columns: 1fr 1fr;
}
 
.bt-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}
 
.bt-branch-column .bt-branch-details {
	margin-bottom: 0;
}
 
.bt-branch-column .bt-branch-content {
	margin: 0;
}
 
.bt-branch-column .bt-branch-content h2 {
	font-size: 16px;
	margin: 0 0 12px 0;
}
 
@media (max-width: 800px) {
	.bt-branch-columns {
		grid-template-columns: 1fr !important;
	}
}
 
/* Back to Branches button */
.bt-back-button-wrap {
	margin-top: 8px;
}
 
.bt-back-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	background: #f2f0f7;
	color: #2f2a3d;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: background 0.15s ease;
}
 
.bt-back-button:hover {
	background: #d6d0e8;
}