/**
 * Mentel Provider Directory — matches Elementor page design tokens.
 */

.mpd {
	--mpd-teal: #0f5067;
	--mpd-orange: #e67f25;
	--mpd-green: #b1daaf;
	--mpd-green-text: #436b41;
	--mpd-muted: #707c88;
	--mpd-credentials: #0f485c;
	--mpd-border: #ebebeb;
	--mpd-bg: #f7f8f9;
	--mpd-white: #ffffff;
	--mpd-radius-lg: 25px;
	--mpd-radius-md: 20px;
	--mpd-radius-pill: 50px;
	--mpd-font-heading: "Figtree", "Inter Tight", system-ui, sans-serif;
	--mpd-font-body: "Inter Tight", system-ui, sans-serif;
	--mpd-max-width: 826px;
	font-family: var(--mpd-font-body);
	color: var(--mpd-muted);
	line-height: 1.5;
	margin-top: 3rem;
	margin-bottom: 3rem;
}

.mpd *,
.mpd *::before,
.mpd *::after {
	box-sizing: border-box;
}

/* Filter bar */
.mpd-filters {
	margin: 0 0 3rem;
}

.mpd-filters__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 19px;
	background-color: var(--mpd-teal);
	border-radius: 25px;
}

.mpd-filters.is-panel-open .mpd-filters__inner {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.mpd-filters__field {
	flex: 1 1 0;
	min-width: 120px;
}

.mpd-filters__select-wrap {
	position: relative;
}

.mpd-filters__select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	background-image: none;
	margin: 0;
	padding: 10px 36px 10px 18px;
	border: 0;
	border-radius: var(--mpd-radius-pill);
	background: var(--mpd-white);
	color: var(--mpd-muted);
	font-family: var(--mpd-font-body);
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.mpd-filters__select:focus {
	outline: 2px solid var(--mpd-orange);
	outline-offset: 2px;
}

.mpd-filters__caret {
	position: absolute;
	top: 50%;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 12px;
	height: 8px;
	pointer-events: none;
	color: var(--mpd-muted);
	transform: translateY(-50%);
}

.mpd-filters__caret svg {
	display: block;
	width: 12px;
	height: 8px;
	flex-shrink: 0;
	overflow: visible;
}

/* Override Elementor/global theme button styles (white bg + white text). */
.mpd .mpd-filters__more,
.mpd .mpd-filters__more:hover,
.mpd .mpd-filters__more:focus,
.mpd .mpd-filters__more:active {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	min-width: 158px;
	min-height: 44px;
	margin: 0;
	padding: 12px 22px;
	border: 0 !important;
	border-radius: var(--mpd-radius-pill) !important;
	background-color: var(--mpd-orange) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--mpd-white) !important;
	font-family: var(--mpd-font-heading);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.mpd .mpd-filters__more:hover,
.mpd .mpd-filters__more:focus {
	opacity: 0.92;
	background-color: var(--mpd-orange) !important;
	color: var(--mpd-white) !important;
}

.mpd .mpd-filters__more-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.mpd .mpd-filters__more-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	color: inherit;
}

.mpd .mpd-filters__more-icon svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.mpd .mpd-filters__more-text {
	display: inline-block;
	color: inherit;
	white-space: nowrap;
}

.mpd .mpd-filters__more-caret {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: inherit;
	transition: transform 0.2s ease;
}

.mpd .mpd-filters__more-caret svg {
	display: block;
	width: 20px;
	height: 20px;
}

.mpd-filters.is-panel-open .mpd-filters__more-caret {
	transform: rotate(180deg);
}

.mpd-filters__panel {
	margin-top: -10px;
	border: 1px solid #dfe5ea;
	border-top: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(18, 48, 72, 0.10), 0 2px 8px rgba(18, 48, 72, 0.06);
	padding: 14px 16px 10px;
}

.mpd-filters__panel.is-hidden {
	display: none;
}

/* Strong scoped reset to avoid Elementor/theme overrides. */
.mpd .mpd-filters__panel,
.mpd .mpd-filters__panel * {
	font-family: var(--mpd-font-body) !important;
	box-sizing: border-box;
}

.mpd-filters__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 8px;
}

.mpd-filters__panel-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--mpd-teal);
}

.mpd-filters__panel-close {
	border: 0;
	background: transparent;
	color: #7f8b98 !important;
	font-size: 24px !important;
	line-height: 1 !important;
	cursor: pointer !important;
}

.mpd-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ecf0f3;
}

.mpd-selected__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 11px;
	border-radius: 999px !important;
	background: #eaf2fb !important;
	color: #24577a !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	border: 0;
	box-shadow: none;
}

button.mpd-selected__chip {
	cursor: pointer;
	border: 0;
}

.mpd-selected__chip--muted {
	background: #edf1f5;
	color: #6a7785;
}

.mpd-advanced {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	padding: 14px 0;
}

.mpd-advanced__group {
	border-right: 1px solid #ecf0f3;
	padding-right: 16px;
}

.mpd-advanced__group:last-child {
	border-right: 0;
	padding-right: 0;
}

.mpd-advanced__group-head {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font-size: 14px !important;
	font-weight: 700;
	color: var(--mpd-teal) !important;
	margin-bottom: 12px;
	line-height: 1.2;
}

.mpd-advanced__group-icon {
	width: 14px;
	height: 14px;
	color: #1f5374;
	display: inline-flex;
	margin-bottom: 3px;
}

.mpd-advanced__group-icon svg {
	width: 14px;
	height: 16px;
	stroke-width: 4;
}

.mpd-advanced__group-caret {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 18px !important;
	font-weight: 700;
	color: var(--mpd-teal) !important;
	line-height: 1;
	transform: rotate(0deg);
	transition: transform 0.2s ease;
}

.mpd-advanced__group-head[aria-expanded="true"] .mpd-advanced__group-caret {
	transform: rotate(180deg);
}

.mpd-advanced__sections {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px 14px;
}

.mpd .mpd-advanced__sections.is-hidden,
.mpd .mpd-advanced__sections[hidden] {
	display: none !important;
}

.mpd-advanced__section-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--mpd-teal) !important;
	margin-bottom: 5px;
	line-height: 1.2;
	letter-spacing: 0.5px;
}

.mpd-advanced__choices {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.mpd-advanced__choice {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px !important;
	color: var(--mpd-muted) !important;
	line-height: 1.25 !important;
	margin: 0 !important;
	letter-spacing: 0.5px;
	font-weight: 600 !important;
}

.mpd-advanced__choice.is-hidden {
	display: none;
}

.mpd-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(15, 34, 51, 0.38);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

body.mpd-modal-open {
	overflow: hidden;
}

.mpd-modal__dialog {
	width: min(460px, 100%);
	max-height: 78vh;
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #d8e0e7;
	box-shadow: 0 18px 40px rgba(15, 34, 51, 0.18);
}

.mpd-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid #e8edf2;
}

.mpd-modal__title {
	font-size: 14px;
	font-weight: 700;
	color: #1f5374;
}

.mpd-modal__close {
	border: 0;
	background: transparent;
	font-size: 20px !important;
	line-height: 1 !important;
	color: #6a7683 !important;
	cursor: pointer !important;
}

.mpd-modal__body {
	padding: 12px 14px 14px;
	display: grid;
	gap: 8px;
}

.mpd-modal__choice {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px !important;
	color: #506172 !important;
}

.mpd-advanced__choice input {
	width: 12px;
	height: 12px;
	margin: 0;
	appearance: checkbox;
	-webkit-appearance: checkbox;
	border: 1px solid #c8d2dc;
	border-radius: 2px;
	background: #fff;
	box-shadow: none !important;
}

.mpd-advanced__show-more {
	display: inline-block;
	margin-top: 3px;
	font-size: 11px !important;
	color: #2b75aa !important;
	text-decoration: underline !important;
	font-weight: 500;
	letter-spacing: 0.5px;
	cursor: pointer;
}

button.mpd-advanced__show-more {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.mpd-filters__panel-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #ecf0f3;
	padding-top: 10px;
}

.mpd-filters__clear {
	font-size: 12px;
	font-weight: 600;
	color: #2b75aa !important;
	text-decoration: underline !important;
	letter-spacing: 0.5px;
	cursor: pointer;
}

button.mpd-filters__clear {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.mpd-filters__action-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mpd-filters__btn {
	height: 30px !important;
	padding: 0 18px !important;
	border-radius: 999px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 1.4px !important;
	text-transform: uppercase !important;
	cursor: pointer;
	text-decoration: none !important;
	line-height: 30px !important;
	box-shadow: none !important;
}

.mpd-filters__btn--ghost {
	border: 1px solid #d2d9e0 !important;
	background: #fff !important;
	color: #6f7c8a !important;
}

.mpd-filters__btn--solid {
	border: 0 !important;
	background: var(--mpd-orange) !important;
	color: #fff !important;
	transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease !important;
}

.mpd .mpd-filters__panel .mpd-filters__btn--solid:hover,
.mpd .mpd-filters__panel .mpd-filters__btn--solid:focus {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(230, 127, 37, 0.28) !important;
	filter: brightness(1.03);
}

.mpd .mpd-filters__panel .mpd-filters__btn--solid:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(230, 127, 37, 0.22) !important;
	filter: brightness(0.98);
}

/* Specificity bump for Elementor button/link resets. */
.mpd .mpd-filters__panel a.mpd-filters__clear,
.mpd .mpd-filters__panel a.mpd-advanced__show-more,
.mpd .mpd-filters__panel button.mpd-filters__btn,
.mpd .mpd-filters__panel button.mpd-filters__panel-close {
	font-family: var(--mpd-font-body) !important;
	text-transform: inherit;
	letter-spacing: normal;
}

.mpd .mpd-filters__panel button.mpd-filters__btn {
	text-transform: uppercase;
	letter-spacing: 1.4px;
}

/* Results list */
.mpd-results {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	width: 100%;
}

.mpd-empty {
	width: 100%;
	max-width: var(--mpd-max-width);
	margin: 0;
	padding: 24px;
	border: 1px dashed var(--mpd-border);
	border-radius: var(--mpd-radius-md);
	background: var(--mpd-white);
	color: var(--mpd-muted);
	text-align: center;
}

/* Provider card */
.mpd-card {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 16px;
	min-height: 230px;
	padding: 20px;
	border: 1px solid var(--mpd-border);
	border-radius: var(--mpd-radius-md);
	background: var(--mpd-white);
	box-shadow: 0 0 10px -3px rgba(0, 0, 0, 0.18);
	transition: transform 0.25s ease;
	width: 80%;
}

.mpd-card:hover {
	transform: scale(1.02);
}

.mpd-card__photo {
	flex: 0 0 auto;
	width: 170px;
	max-width: 20.569% !important;
	aspect-ratio: 4 / 5;
	height: auto !important;
	border-radius: var(--mpd-radius-md) !important;
	background-color: #eceef0;
	object-fit: cover;
	object-position: center top;
}

.mpd-card__body {
	flex: 1 1 46%;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
}

.mpd-card__name {
	margin: 0;
	font-family: "nexa", Sans-serif !important;
	font-size: 31px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: -1.3px !important;
	color: var(--mpd-teal) !important;
	text-transform: capitalize !important;
}

.mpd-card__credentials {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--mpd-credentials);
	font-family: "Inter Tight", system-ui, sans-serif !important;
}

.mpd-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-top: 4px;
}

.mpd-card__location {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--mpd-muted);
	font-family: "Inter Tight", system-ui, sans-serif !important;
}

.mpd-card__meta-icons {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.mpd-card__meta-icon {
	display: inline-flex;
	width: 19px;
	height: 19px;
	color: var(--mpd-orange);
}

.mpd-card__meta-icon svg {
	width: 100%;
	height: 100%;
}

.mpd-card__meta-icon svg:not([fill="none"]) {
	fill: currentColor;
}

.mpd-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mpd-card__tag {
	display: inline-block;
	padding: 5px 10px;
	border-radius: var(--mpd-radius-pill);
	background: var(--mpd-teal);
	color: var(--mpd-white);
	font-family: var(--mpd-font-heading) !important;
	font-size: 10px;
	font-weight: 300;
	line-height: 21px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.mpd-card__bio {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--mpd-muted);
	font-family: "Inter Tight", system-ui, sans-serif !important;
}

.mpd-card__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: auto;
	padding: 5px 15px;
	border-radius: var(--mpd-radius-pill);
	background: var(--mpd-green);
	color: var(--mpd-green-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	font-family: "Inter Tight", system-ui, sans-serif !important;
}

.mpd-card__status-icon {
	display: inline-flex;
	width: 14px;
	height: 14px;
}

.mpd-card__status-icon svg {
	width: 100%;
	height: 100%;
	fill: var(--mpd-green-text);
}

.mpd-card__actions {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-width: 140px;
}

.mpd-card__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 15px;
	border: 1px solid transparent;
	border-radius: var(--mpd-radius-pill);
	font-family: "nexa", Sans-serif !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 3.6px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.2s ease;
}

.mpd-card__btn:hover,
.mpd-card__btn:focus {
	opacity: 0.9;
	color: var(--mpd-white);
	text-decoration: none;
}

.mpd-card__btn--profile {
	background: var(--mpd-orange);
	border-color: var(--mpd-orange);
	color: var(--mpd-white) !important;
}

.mpd-card__btn--book {
	background: var(--mpd-teal);
	border-color: var(--mpd-teal);
	color: var(--mpd-white) !important;
}

/* Pagination */
.mpd-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 2.5rem;
}

.mpd-pagination__pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.mpd-pagination__btn,
.mpd-pagination__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 40px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--mpd-border);
	border-radius: var(--mpd-radius-pill) !important;
	background: var(--mpd-white);
	color: var(--mpd-teal) !important;
	font-family: var(--mpd-font-body) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mpd-pagination__btn:hover:not(:disabled),
.mpd-pagination__page:hover {
	border-color: var(--mpd-teal) !important;
	background: var(--mpd-teal) !important;
    color: var(--mpd-white) !important;
}

.mpd-pagination__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.mpd-pagination__page.is-current {
	border-color: var(--mpd-teal);
	background: var(--mpd-teal);
	color: var(--mpd-white) !important;
}

.mpd-pagination__icon {
	display: inline-flex;
	width: 10px;
	height: 10px;
}

.mpd-pagination__icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.mpd-pagination__ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	color: var(--mpd-muted);
	font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
	.mpd-card__name {
		font-size: 24px;
	}
}

@media (max-width: 767px) {
	.mpd-filters__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.mpd-filters__field {
		flex: 1 1 100%;
		width: 100%;
	}

	.mpd .mpd-filters__more {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
	}

	.mpd-filters__panel {
		padding: 12px;
	}

	.mpd-advanced {
		grid-template-columns: 1fr;
	}

	.mpd-advanced__group {
		border-right: 0;
		padding-right: 0;
		padding-bottom: 12px;
		border-bottom: 1px solid #ecf0f3;
	}

	.mpd-advanced__sections {
		grid-template-columns: 1fr 1fr;
	}

	.mpd-results {
		max-width: none;
	}

	.mpd-card {
		flex-direction: column;
	}

	.mpd-card:hover {
		transform: none;
	}

	.mpd-card__photo {
		width: 100%;
		max-width: 100% !important;
		aspect-ratio: 4 / 5;
		object-fit: cover;
		object-position: center 15%;
	}

	.mpd-card__actions {
		flex-direction: column;
		width: 100%;
	}
}
