.hpmdm-directory,
.hpmdm-single {
	--hpmdm-text: #172033;
	--hpmdm-muted: #5d6b82;
	--hpmdm-border: #d9e0ea;
	--hpmdm-surface: #ffffff;
	--hpmdm-soft: #f6f8fb;
	--hpmdm-accent: #087d93;
	--hpmdm-accent-dark: #05596a;
	--hpmdm-blue: #2563eb;
	--hpmdm-gold: #f59e0b;
	color: var(--hpmdm-text);
	font-family: inherit;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.hpmdm-directory *,
.hpmdm-single *,
.hpmdm-directory *::before,
.hpmdm-single *::before,
.hpmdm-directory *::after,
.hpmdm-single *::after {
	box-sizing: border-box;
}

section.hpmdm-directory {
	display: block;
	margin: 0;
	padding: 0;
}

/* Themes / Elementor often make labels inline or strip flex behavior from toolbar children. */
.hpmdm-toolbar label.hpmdm-search,
.hpmdm-toolbar label.hpmdm-filter {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
}

.hpmdm-directory article.hpmdm-card {
	margin: 0;
}

.hpmdm-directory .hpmdm-title,
.hpmdm-single .hpmdm-title {
	margin: 0 0 10px;
	padding: 0;
	font-weight: 700;
}

.hpmdm-single > h2 {
	margin: 1.25em 0 0.5em;
	color: var(--hpmdm-text);
	font-weight: 800;
	line-height: 1.25;
}

.hpmdm-single > h2:first-of-type {
	margin-top: 0;
}

.hpmdm-directory .hpmdm-search input,
.hpmdm-directory .hpmdm-filter select {
	-webkit-appearance: none;
	appearance: none;
	border-radius: 6px;
}

.hpmdm-table-wrap table.hpmdm-table {
	border: 0;
	margin: 0;
}

.hpmdm-single .hpmdm-richtext,
.hpmdm-single .hpmdm-richtext p {
	color: var(--hpmdm-text);
	font-size: 16px;
	line-height: 1.65;
}

.hpmdm-single .hpmdm-richtext p {
	margin: 0 0 1em;
}

.elementor-widget-pms_directory {
	width: 100%;
}

.elementor-widget-pms_directory .elementor-widget-container {
	width: 100%;
	max-width: none;
	min-width: 0;
}

.elementor-widget-pms_directory .hpmdm-grid {
	min-width: 0;
}

.hpmdm-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
	align-items: center;
	padding: 14px;
	border: 1px solid #dbe6ef;
	border-radius: 10px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.hpmdm-search {
	flex: 1 1 280px;
}

.hpmdm-search input,
.hpmdm-filter select {
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--hpmdm-border);
	border-radius: 6px;
	background: var(--hpmdm-surface);
	color: var(--hpmdm-text);
	padding: 10px 12px;
	font-size: 15px;
}

.hpmdm-filter {
	flex: 1 1 190px;
	max-width: 240px;
}

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

.hpmdm-columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hpmdm-columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hpmdm-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--hpmdm-border);
	border-radius: 8px;
	background: var(--hpmdm-surface);
	box-shadow: 0 12px 34px rgba(23, 32, 51, 0.08);
	overflow: hidden;
	position: relative;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hpmdm-card:hover {
	border-color: rgba(8, 125, 147, 0.42);
	box-shadow: 0 18px 44px rgba(23, 32, 51, 0.13);
	transform: translateY(-2px);
}

.hpmdm-compare-toggle {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	gap: 7px;
	align-items: center;
	border: 1px solid rgba(8, 125, 147, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--hpmdm-accent-dark);
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 8px 20px rgba(23, 32, 51, 0.08);
}

.hpmdm-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 22px;
	background: var(--hpmdm-soft);
}

.hpmdm-logo img,
.hpmdm-single-logo {
	display: block;
	max-width: 180px;
	max-height: 82px;
	object-fit: contain;
}

.hpmdm-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
	gap: 8px;
}

.hpmdm-title {
	margin: 0 0 10px;
	font-size: clamp(20px, 2vw, 24px);
	line-height: 1.2;
}

.hpmdm-title a {
	color: var(--hpmdm-text);
	text-decoration: none;
}

.hpmdm-title a:hover {
	color: var(--hpmdm-accent);
}

.hpmdm-best,
.hpmdm-description {
	margin: 0 0 12px;
	color: var(--hpmdm-muted);
	font-size: 15px;
	line-height: 1.55;
}

.hpmdm-ai-summary {
	display: grid;
	gap: 5px;
	margin: 0;
}

.hpmdm-ai-summary span {
	color: var(--hpmdm-accent-dark);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hpmdm-ai-summary p {
	margin: 0;
	color: var(--hpmdm-muted);
	font-size: 15px;
	line-height: 1.55;
}

.hpmdm-badges,
.hpmdm-tags,
.hpmdm-actions,
.hpmdm-integrations {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hpmdm-badges {
	margin: 0 0 4px;
}

.hpmdm-card .hpmdm-badge:nth-child(n+4) {
	display: none;
}

.hpmdm-badge {
	border-radius: 999px;
	background: #e9f6f8;
	color: var(--hpmdm-accent-dark);
	padding: 5px 9px;
	font-size: 12px;
	font-weight: 700;
}

.hpmdm-tags {
	padding-top: 0;
}

.hpmdm-tags span {
	border: 1px solid var(--hpmdm-border);
	border-radius: 999px;
	color: var(--hpmdm-muted);
	padding: 4px 8px;
	font-size: 12px;
}

.hpmdm-integrations {
	margin: 0;
}

.hpmdm-integration {
	display: inline-flex;
	align-items: center;
	border: 1px solid #cdd8e6;
	border-radius: 999px;
	background: #fff;
	color: #40516a;
	padding: 5px 9px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: normal;
}

.hpmdm-integration-featured {
	border-color: rgba(245, 158, 11, 0.45);
	background: #fff7ed;
	color: #9a5a00;
}

.hpmdm-integration-featured:hover {
	background: #ffedd5;
	color: #7c4700;
}

.hpmdm-info-block {
	display: grid;
	gap: 7px;
	min-width: 0;
	border: 1px solid #e3eaf2;
	border-radius: 8px;
	background: #fbfdff;
	padding: 9px;
}

.hpmdm-card .hpmdm-info-block {
	margin: 0;
}

.hpmdm-card .hpmdm-hotel-fit {
	border: 0;
	background: transparent;
	padding: 0;
}

.hpmdm-card .hpmdm-hotel-fit .hpmdm-tags span {
	background: #fff;
}

.hpmdm-block-label,
.hpmdm-group-label {
	display: block;
	color: #43546c;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hpmdm-integration-groups {
	background: linear-gradient(180deg, #fbfdff 0%, #f7fbfc 100%);
}

.hpmdm-integration-summary {
	border-color: #d8e7ee;
	background: #f7fbfc;
}

.hpmdm-count-pills {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.hpmdm-count-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	border: 1px solid #d6e5ef;
	border-radius: 8px;
	background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
	color: #33455d;
	padding: 8px 9px;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.25;
}

.hpmdm-count-pill span {
	overflow-wrap: anywhere;
	white-space: normal;
}

.hpmdm-count-pill strong {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	min-height: 24px;
	border-radius: 999px;
	background: #e9f6f8;
	color: var(--hpmdm-accent-dark);
	font-size: 12px;
}

.hpmdm-details-toggle {
	align-self: flex-start;
	border: 1px solid #cdd8e6;
	border-radius: 999px;
	background: #fff;
	color: var(--hpmdm-accent-dark);
	cursor: pointer;
	padding: 7px 10px;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
}

.hpmdm-details-toggle:hover,
.hpmdm-details-toggle[aria-expanded="true"] {
	border-color: rgba(8, 125, 147, 0.45);
	background: #e9f6f8;
}

.hpmdm-details-panel {
	display: grid;
	gap: 8px;
}

.hpmdm-card-expanded {
	display: grid;
	gap: 16px;
	margin-top: 14px;
	border: 1px solid #cddfec;
	border-radius: 10px;
	background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
	padding: 16px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hpmdm-card-expanded[hidden] {
	display: none;
}

.hpmdm-card-expanded-open {
	grid-column: 1 / -1;
	border-color: rgba(8, 125, 147, 0.42);
	box-shadow: 0 22px 54px rgba(23, 32, 51, 0.14);
	transform: none;
}

.hpmdm-card-expanded-open .hpmdm-card-body {
	display: grid;
	grid-template-columns: minmax(260px, 0.8fr) minmax(0, 2fr);
	gap: 22px;
	padding: 24px;
	align-items: start;
}

.hpmdm-card-expanded-open .hpmdm-title,
.hpmdm-card-expanded-open .hpmdm-best,
.hpmdm-card-expanded-open .hpmdm-ai-summary,
.hpmdm-card-expanded-open .hpmdm-card-body > .hpmdm-badges,
.hpmdm-card-expanded-open .hpmdm-actions {
	grid-column: 1;
}

.hpmdm-card-expanded-open .hpmdm-card-body > .hpmdm-hotel-fit {
	display: none;
}

.hpmdm-card-expanded-open .hpmdm-card-expanded {
	grid-column: 2;
	grid-row: 1 / span 7;
}

.hpmdm-expanded-hero {
	border: 1px solid rgba(8, 125, 147, 0.24);
	border-radius: 8px;
	background: linear-gradient(135deg, #eaf8fb 0%, #eef5ff 100%);
	padding: 16px;
	position: relative;
	overflow: hidden;
}

.hpmdm-expanded-hero::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: linear-gradient(180deg, var(--hpmdm-accent), var(--hpmdm-blue));
}

.hpmdm-expanded-hero p {
	margin: 7px 0 0;
	color: var(--hpmdm-text);
	font-size: 16px;
	line-height: 1.6;
}

.hpmdm-expanded-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 0.9fr);
	gap: 14px;
	align-items: stretch;
}

.hpmdm-card-expanded .hpmdm-info-block {
	border-radius: 8px;
	border-color: #d7e4ef;
	background: #fff;
	padding: 13px;
}

.hpmdm-card-expanded .hpmdm-hotel-fit {
	border-color: rgba(8, 125, 147, 0.22);
	background: #f3fbfd;
}

.hpmdm-card-expanded .hpmdm-integration-summary {
	border-color: rgba(37, 99, 235, 0.22);
	background: #f4f7ff;
}

.hpmdm-card-expanded .hpmdm-count-pills {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hpmdm-card-expanded .hpmdm-capabilities-panel {
	border-color: rgba(245, 158, 11, 0.28);
	background: #fff9ed;
}

.hpmdm-card-expanded .hpmdm-integration-groups {
	border-color: #d7e4ef;
	background: #fbfdff;
	padding: 16px;
}

.hpmdm-card-expanded .hpmdm-integration-group {
	padding-top: 12px;
	margin-top: 4px;
}

.hpmdm-expanded-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	padding-top: 2px;
}

.hpmdm-integration-group {
	display: grid;
	gap: 6px;
	min-width: 0;
	padding-top: 8px;
	border-top: 1px solid #edf2f7;
}

.hpmdm-integration-group:first-of-type {
	padding-top: 0;
	border-top: 0;
}

.hpmdm-hotel-fit {
	background: #fff;
}

.hpmdm-actions {
	margin-top: auto;
	padding-top: 6px;
}

.hpmdm-button,
.hpmdm-table-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border: 1px solid var(--hpmdm-accent);
	border-radius: 6px;
	background: var(--hpmdm-accent);
	color: #fff;
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.hpmdm-button:hover,
.hpmdm-table-link:hover {
	background: var(--hpmdm-accent-dark);
	border-color: var(--hpmdm-accent-dark);
	color: #fff;
}

.hpmdm-button-secondary {
	background: #fff;
	color: var(--hpmdm-accent);
}

.hpmdm-button-secondary:hover {
	background: #e9f6f8;
	color: var(--hpmdm-accent-dark);
}

.hpmdm-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--hpmdm-border);
	border-radius: 8px;
}

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

.hpmdm-table th,
.hpmdm-table td {
	border-bottom: 1px solid var(--hpmdm-border);
	padding: 16px;
	text-align: left;
	vertical-align: top;
}

.hpmdm-table .hpmdm-info-block {
	border: 0;
	background: transparent;
	padding: 0;
}

.hpmdm-table .hpmdm-count-pills {
	grid-template-columns: 1fr;
}

.hpmdm-table .hpmdm-integration-group {
	padding-top: 6px;
}

.hpmdm-table th {
	background: linear-gradient(180deg, #f8fbff 0%, #edf5f8 100%);
	color: var(--hpmdm-text);
	font-weight: 800;
}

.hpmdm-empty {
	margin: 20px 0;
	color: var(--hpmdm-muted);
}

.hpmdm-single-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	margin: 0 0 28px;
	padding: 20px;
	border: 1px solid var(--hpmdm-border);
	border-radius: 8px;
	background: linear-gradient(135deg, #f7fbff 0%, #edf9fb 100%);
}

.hpmdm-compare-bar {
	position: sticky;
	bottom: 16px;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin: 24px auto 0;
	border: 1px solid rgba(8, 125, 147, 0.26);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 18px 46px rgba(23, 32, 51, 0.16);
	padding: 14px 16px;
	backdrop-filter: blur(8px);
}

.hpmdm-compare-bar strong,
.hpmdm-compare-bar span {
	display: block;
}

.hpmdm-compare-bar strong {
	color: var(--hpmdm-text);
	font-size: 15px;
}

.hpmdm-compare-bar span {
	color: var(--hpmdm-muted);
	font-size: 13px;
	font-weight: 800;
}

.hpmdm-compare-bar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hpmdm-compare-open,
.hpmdm-compare-clear,
.hpmdm-compare-close {
	border: 1px solid var(--hpmdm-border);
	border-radius: 6px;
	background: #fff;
	color: var(--hpmdm-text);
	cursor: pointer;
	font-weight: 800;
	padding: 8px 12px;
}

.hpmdm-compare-open {
	border-color: var(--hpmdm-accent);
	background: var(--hpmdm-accent);
	color: #fff;
}

.hpmdm-compare-modal[hidden] {
	display: none;
}

.hpmdm-modal-open {
	overflow: hidden;
}

.hpmdm-compare-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 24px;
}

.hpmdm-compare-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 24, 38, 0.64);
}

.hpmdm-compare-dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	width: min(1120px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
	overflow: hidden;
}

.hpmdm-compare-modal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: linear-gradient(135deg, #eef9fb 0%, #eef4ff 100%);
	border-bottom: 1px solid var(--hpmdm-border);
}

.hpmdm-compare-modal-head p,
.hpmdm-compare-modal-head h3 {
	margin: 0;
}

.hpmdm-compare-modal-head p {
	color: var(--hpmdm-muted);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hpmdm-compare-modal-head h3 {
	color: var(--hpmdm-text);
	font-size: 24px;
	line-height: 1.15;
}

.hpmdm-compare-close {
	min-width: 38px;
	min-height: 38px;
	padding: 0;
	font-size: 18px;
}

.hpmdm-compare-matrix-wrap {
	min-height: 0;
	overflow: auto;
}

.hpmdm-matrix-scroll {
	min-width: 720px;
}

.hpmdm-compare-matrix {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
}

.hpmdm-compare-matrix th,
.hpmdm-compare-matrix td {
	border-right: 1px solid var(--hpmdm-border);
	border-bottom: 1px solid var(--hpmdm-border);
	padding: 15px;
	text-align: left;
	vertical-align: top;
	min-width: 190px;
}

.hpmdm-compare-matrix thead th {
	position: sticky;
	top: 0;
	z-index: 3;
	background: #f7fbff;
	color: var(--hpmdm-text);
	font-size: 16px;
}

.hpmdm-compare-matrix th:first-child {
	position: sticky;
	left: 0;
	z-index: 4;
	min-width: 150px;
	background: #f8fbff;
	color: #43546c;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hpmdm-compare-matrix thead th:first-child {
	z-index: 5;
}

.hpmdm-compare-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hpmdm-checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	padding-left: 0;
	list-style: none;
}

.hpmdm-checklist li {
	position: relative;
	padding-left: 26px;
}

.hpmdm-checklist li::before {
	position: absolute;
	left: 0;
	content: "\2713";
	color: var(--hpmdm-accent);
	font-weight: 800;
}

.hpmdm-faqs details {
	border: 1px solid var(--hpmdm-border);
	border-radius: 6px;
	margin-bottom: 10px;
	padding: 12px 14px;
	background: #fff;
}

.hpmdm-faqs summary {
	cursor: pointer;
	font-weight: 800;
}

@media (max-width: 900px) {
	.hpmdm-grid,
	.hpmdm-columns-2,
	.hpmdm-columns-3,
	.hpmdm-columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.hpmdm-toolbar,
	.hpmdm-search,
	.hpmdm-filter {
		display: block;
		width: 100%;
		max-width: none;
	}

	.hpmdm-compare-bar {
		bottom: 10px;
	}

	.hpmdm-compare-modal {
		padding: 12px;
	}

	.hpmdm-compare-dialog {
		max-height: calc(100vh - 24px);
	}

	.hpmdm-compare-modal-head h3 {
		font-size: 20px;
	}

	.hpmdm-grid,
	.hpmdm-columns-2,
	.hpmdm-columns-3,
	.hpmdm-columns-4,
	.hpmdm-checklist,
	.hpmdm-count-pills,
	.hpmdm-expanded-grid {
		grid-template-columns: 1fr;
	}

	.hpmdm-card-expanded .hpmdm-count-pills {
		grid-template-columns: 1fr;
	}

	.hpmdm-card-expanded-open {
		grid-column: 1 / -1;
	}

	.hpmdm-card-expanded-open .hpmdm-card-body {
		display: flex;
		flex-direction: column;
		gap: 12px;
		padding: 18px;
	}

	.hpmdm-card-expanded-open .hpmdm-card-expanded {
		grid-column: auto;
		grid-row: auto;
	}

	.hpmdm-table,
	.hpmdm-table thead,
	.hpmdm-table tbody,
	.hpmdm-table th,
	.hpmdm-table td,
	.hpmdm-table tr {
		display: block;
	}

	.hpmdm-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.hpmdm-table tr {
		border-bottom: 1px solid var(--hpmdm-border);
		padding: 10px 0;
	}

	.hpmdm-table td {
		display: grid;
		grid-template-columns: 130px 1fr;
		gap: 12px;
		border: 0;
		padding: 8px 14px;
	}

	.hpmdm-table td::before {
		content: attr(data-label);
		font-weight: 800;
		color: var(--hpmdm-text);
	}
}
