/* Directory Page Styles */

body.page-template-template-directory {
	background: #ffffff;
}

.directory-page {
	background: #ffffff;
	min-height: 100vh;
}

/* Directory Hero Section */
.directory-hero {
	background: url('/wp-content/uploads/2025/12/directory-bg.svg') center top/cover no-repeat;
	padding: 100px 0 60px;
	text-align: center;
	position: relative;
	min-height: 630px;
}

/* Breadcrumb */
.directory-breadcrumb {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 80px;
	font-size: 14px;
	justify-content: flex-start;
}

.directory-breadcrumb__link {
	color: #a1a1aa;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.directory-breadcrumb__link:hover {
	color: #27272a;
}

.directory-breadcrumb__separator {
	color: #a1a1aa;
	flex-shrink: 0;
}

.directory-breadcrumb__current {
	color: #27272a;
	font-weight: 500;
}

.directory-hero__title {
	font-family: 'TWK Everett', sans-serif;
	font-size: 48px;
	font-weight: 500;
	margin-bottom: 12px;
	color: #000000;
	line-height: 1.1;
	letter-spacing: -1.44px;
}

.directory-hero__subtitle {
	font-family: 'DM Sans', sans-serif;
	font-size: 28px;
	font-weight: 300;
	color: #000000;
	max-width: 844px;
	margin: 0 auto 20px;
	line-height: 1.3;
}

/* Directory Search Bar */
.directory-search-container {
	max-width: 640px;
	margin: 0 auto 0;
}

.directory-search-bar {
	display: flex;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.15);
	border-radius: 50px;
	padding: 8px;
	box-shadow: 0px 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.directory-search-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 0 24px;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	color: #000000;
	background: transparent;
}

.directory-search-input::placeholder {
	color: #a1a1aa;
}

.directory-search-btn {
	background: #000000;
	color: #ffffff;
	border: none;
	border-radius: 50px;
	padding: 12px 32px;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.directory-search-btn:hover {
	background: #333333;
}

.directory-search-btn__icon {
	width: 20px;
	height: 20px;
	display: block;
}

/* Popular Searches */
.directory-popular-searches {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.directory-popular-searches__label {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #71717a;
}

.directory-popular-searches__tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px 8px 16px;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.15);
	border-radius: 24px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #000000;
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
}

.directory-popular-searches__tag:hover {
	background: #f5f1ed;
	border-color: #000000;
	transform: translateY(-1px);
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
	color: #000000;
}

.directory-popular-searches__text {
	flex: 1;
}

.directory-popular-searches__flag {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

/* Partner Count & View Toggle */
.directory-partner-count {
	background: #ffffff;
	padding: 28px 0 0;
}

.directory-count-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.directory-partner-count__text {
	font-family: 'TWK Everett', sans-serif;
	font-size: 18px;
	font-weight: 500;
	color: #191a23;
	margin: 0;
}

.directory-view-toggle {
	display: flex;
	background: #f0f0f1;
	border-radius: 8px;
	padding: 3px;
}

.directory-view-toggle__btn {
	background: none;
	border: none;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #71717a;
	padding: 8px 18px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.directory-view-toggle__btn:hover {
	color: #191a23;
}

.directory-view-toggle__btn--active {
	background: #ffffff;
	color: #191a23;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Filter Dropdowns Bar */
.directory-filters-bar {
	background: #ffffff;
	padding: 24px 0 0;
}

.directory-filters-row {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: flex-start;
}

.directory-filters-row .multiselect-wrapper {
	flex: 0 0 auto;
	min-width: 180px;
	position: relative;
}

.directory-filters-row .multiselect-trigger {
	width: 100%;
	height: 44px;
	background: white;
	border: 1px solid rgba(17, 17, 17, 0.15);
	border-radius: 8px;
	padding: 0 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	color: #191a23;
	cursor: pointer;
	transition: all 0.2s;
}

.directory-filters-row .multiselect-trigger:hover {
	border-color: rgba(17, 17, 17, 0.3);
}

.directory-filters-row .clear-filters {
	background: none;
	border: none;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #A02DEB;
	cursor: pointer;
	white-space: nowrap;
	padding: 8px 12px;
}

.directory-filters-row .clear-filters:hover {
	text-decoration: underline;
}

/* Case Studies Grid */
.directory-case-studies {
	padding: 48px 0 64px;
}

.cs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.cs-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 28px;
	padding: 24px;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: box-shadow 0.2s, transform 0.2s;
	height: 480px;
	overflow: hidden;
}

.cs-card:hover {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
	color: inherit;
}

/* Card — Partner Row */
.cs-card__partner {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cs-card__partner-avatar {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}

.cs-card__partner-avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #3f3f46;
	color: #ffffff;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
}

.cs-card__partner-name {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #3f3f46;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Card — Body */
.cs-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
}

.cs-card__title {
	font-family: 'TWK Everett', sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: #000000;
	margin: 0;
}

.cs-card__excerpt {
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.4;
	color: #52525b;
	margin: 0;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

/* Card — Client Logo */
.cs-card__logo-area {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	flex-shrink: 0;
}

.cs-card__logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 180px;
	height: 90px;
	overflow: hidden;
}

.cs-card__logo-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Card — Tags */
.cs-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cs-card__chip {
	display: inline-flex;
	align-items: center;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #3f3f46;
	background: rgba(212, 212, 216, 0.4);
	height: 32px;
	padding: 0 14px;
	border-radius: 8px;
	white-space: nowrap;
}

/* Card — Country Flags */
.cs-card__flags {
	display: flex;
	align-items: center;
	gap: 4px;
}

.cs-card__flag {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.cs-card__flag-more {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #71717a;
	margin-left: 2px;
}

/* Directory Content */
.directory-content {
	padding: 64px 0;
}

.directory-content .marketplace-container {
	max-width: 1200px;
}

/* Responsive */
@media (max-width: 1024px) {
	.cs-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.directory-hero {
		padding: 60px 20px 40px;
	}

	.directory-hero__title {
		font-size: 36px;
	}

	.directory-hero__subtitle {
		font-size: 16px;
		margin-bottom: 32px;
	}

	.directory-search-container {
		max-width: 100%;
	}

	.directory-search-bar {
		padding: 6px;
	}

	.directory-search-input {
		padding: 0 16px;
		font-size: 14px;
	}

	.directory-search-btn {
		padding: 10px 20px;
		font-size: 14px;
	}

	.directory-count-row {
		flex-wrap: wrap;
		gap: 12px;
	}

	.directory-view-toggle__btn {
		padding: 6px 14px;
		font-size: 13px;
	}

	.directory-popular-searches {
		gap: 8px;
	}

	.directory-popular-searches__tag {
		padding: 6px 10px 6px 12px;
		font-size: 13px;
	}

	.directory-filters-row {
		flex-wrap: wrap;
	}

	.directory-filters-row .multiselect-wrapper {
		flex: 1 1 calc(50% - 6px);
		min-width: 0;
	}

	.cs-grid {
		grid-template-columns: 1fr;
	}

	.cs-card {
		height: auto;
		min-height: 320px;
	}

	.directory-content {
		padding: 48px 0;
	}
}
