/* DMP Core - Frontend CSS (dmp- prefix only, no global element styles) */

.dmp-root,
.dmp-scope {
	--dmp-primary: #e63070;
	--dmp-primary-dark: #c2185b;
	--dmp-primary-soft: #fff5f9;
	--dmp-text: #333;
	--dmp-text-light: #666;
	--dmp-border: #e0e0e0;
	--dmp-border-input: #ddd;
	--dmp-bg: #f8f8f8;
	--dmp-white: #fff;
	--dmp-radius: 8px;
	--dmp-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--dmp-text);
	box-sizing: border-box;
}

.dmp-scope {
	display: block;
}

.dmp-root *,
.dmp-root *::before,
.dmp-root *::after,
.dmp-scope *,
.dmp-scope *::before,
.dmp-scope *::after {
	box-sizing: inherit;
}

.dmp-hidden { display: none !important; }

/* Search Form */
.dmp-search-form {
	background: var(--dmp-white);
	border: 1px solid var(--dmp-border);
	border-radius: 12px;
	padding: 0 0 20px;
	margin-bottom: 20px;
	box-shadow: var(--dmp-shadow);
	overflow: hidden;
}

.dmp-search-form .dmp-search-tabs {
	display: flex;
	border-bottom: 1px solid var(--dmp-border);
	margin-bottom: 0;
}

.dmp-search-form .dmp-tab {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 14px 8px 12px;
	border: none;
	border-bottom: 3px solid transparent;
	background: var(--dmp-white);
	cursor: pointer;
	font-family: inherit;
	color: #999;
	transition: color 0.2s, border-color 0.2s;
	margin-bottom: -1px;
}

.dmp-search-form .dmp-tab-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

.dmp-search-form .dmp-tab-label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.dmp-search-form .dmp-tab--active {
	color: var(--dmp-primary);
	border-bottom-color: var(--dmp-primary);
	background: var(--dmp-white);
}

.dmp-search-form .dmp-search-main {
	padding: 4px 16px 0;
}

.dmp-search-form .dmp-search-field {
	display: grid;
	grid-template-columns: 28px 4.5em 1fr;
	align-items: center;
	gap: 8px 10px;
	padding: 14px 0;
	border-bottom: 1px dotted #d8d8d8;
}

.dmp-search-form .dmp-search-field:last-child {
	border-bottom: none;
}

.dmp-search-form .dmp-search-field-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dmp-primary);
	flex-shrink: 0;
}

.dmp-search-form .dmp-search-field-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--dmp-text);
	line-height: 1.3;
	white-space: nowrap;
}

.dmp-search-form .dmp-search-field-control {
	position: relative;
	min-width: 0;
}

.dmp-search-form .dmp-search-field-control .dmp-select {
	width: 100%;
	padding: 10px 32px 10px 12px;
	border: 1px solid var(--dmp-border-input);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: var(--dmp-white);
	color: var(--dmp-text);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.dmp-search-form .dmp-search-field-control .dmp-select:disabled {
	background: var(--dmp-bg);
	color: var(--dmp-text-light);
	cursor: not-allowed;
}

.dmp-search-form .dmp-search-field-control::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #bbb;
	pointer-events: none;
}

.dmp-field-row {
	margin-bottom: 12px;
}

.dmp-search-form .dmp-field-row--stacked {
	margin-bottom: 14px;
}

.dmp-search-form .dmp-field-row--stacked .dmp-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--dmp-text-light);
}

.dmp-search-form .dmp-field-row--inline-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dmp-field-row--inline {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dmp-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--dmp-text-light);
}

.dmp-select,
.dmp-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--dmp-border);
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	background: var(--dmp-white);
	color: var(--dmp-text);
}

.dmp-select:disabled {
	background: var(--dmp-bg);
	opacity: 0.7;
}

.dmp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s;
}

.dmp-btn--primary {
	background: var(--dmp-primary);
	color: var(--dmp-white);
	width: 100%;
}

.dmp-btn--primary:hover {
	background: var(--dmp-primary-dark);
}

.dmp-root .dmp-search-form button.dmp-btn--cta,
.dmp-scope .dmp-search-form button.dmp-btn--cta {
	width: 100%;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 18px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	background: var(--dmp-primary) !important;
	background-color: var(--dmp-primary) !important;
	color: var(--dmp-white) !important;
	box-shadow: 0 4px 14px rgba(230, 48, 112, 0.35);
	-webkit-appearance: none;
	appearance: none;
}

.dmp-root .dmp-search-form button.dmp-btn--cta:hover,
.dmp-scope .dmp-search-form button.dmp-btn--cta:hover,
.dmp-root .dmp-search-form button.dmp-btn--cta:focus-visible,
.dmp-scope .dmp-search-form button.dmp-btn--cta:focus-visible {
	background: var(--dmp-primary-dark) !important;
	background-color: var(--dmp-primary-dark) !important;
	color: var(--dmp-white) !important;
	box-shadow: 0 6px 18px rgba(230, 48, 112, 0.42);
}

.dmp-root .dmp-search-form button.dmp-btn--cta:disabled,
.dmp-scope .dmp-search-form button.dmp-btn--cta:disabled {
	opacity: 0.65;
	cursor: wait;
	background: var(--dmp-primary);
	background-color: var(--dmp-primary);
	color: var(--dmp-white);
	box-shadow: none;
}

.dmp-search-form .dmp-btn-cta-text {
	flex: 1;
	text-align: center;
	color: inherit;
}

.dmp-search-form .dmp-btn-cta-icon {
	flex-shrink: 0;
	color: inherit;
}

.dmp-btn--secondary {
	background: var(--dmp-white);
	color: var(--dmp-primary);
	border: 1px solid var(--dmp-primary);
}

.dmp-btn--sm {
	padding: 8px 14px;
	font-size: 12px;
}

.dmp-search-form .dmp-advanced {
	padding: 12px 16px 0;
}

.dmp-search-form .dmp-advanced-toggle {
	width: 100%;
	padding: 12px 14px;
	background: var(--dmp-primary-soft);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-family: inherit;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	text-align: left;
	transition: background 0.2s;
}

.dmp-search-form .dmp-advanced-toggle:hover {
	background: #ffe8f1;
}

.dmp-search-form .dmp-advanced-toggle-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dmp-search-form .dmp-advanced-toggle-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--dmp-primary);
	line-height: 1.4;
}

.dmp-search-form .dmp-advanced-toggle-desc {
	font-size: 11px;
	color: var(--dmp-text-light);
	line-height: 1.4;
}

.dmp-search-form .dmp-advanced-chevron {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--dmp-primary);
	border-bottom: 2px solid var(--dmp-primary);
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s;
}

.dmp-search-form .dmp-advanced-toggle[aria-expanded="true"] .dmp-advanced-chevron {
	transform: rotate(-135deg) translateY(2px);
}

.dmp-search-form .dmp-advanced-panel {
	padding: 14px 0 4px;
}

.dmp-search-form .dmp-search-hint {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 16px 0;
	padding: 12px 14px;
	background: #f3f3f3;
	border-radius: 10px;
}

.dmp-search-form .dmp-search-hint-icon {
	flex-shrink: 0;
	color: var(--dmp-primary);
	display: flex;
	align-items: center;
}

.dmp-search-form .dmp-search-hint-title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dmp-text);
	line-height: 1.45;
}

.dmp-search-form .dmp-search-hint-desc {
	margin: 0;
	font-size: 11px;
	color: var(--dmp-text-light);
	line-height: 1.45;
}

.dmp-search-form .dmp-search-actions {
	margin: 14px 16px 0;
}

@media (max-width: 400px) {
	.dmp-search-form .dmp-search-field {
		grid-template-columns: 24px 1fr;
		grid-template-rows: auto auto;
	}

	.dmp-search-form .dmp-search-field-label {
		grid-column: 2;
		grid-row: 1;
	}

	.dmp-search-form .dmp-search-field-control {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

.dmp-filter-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: 12px;
}

.dmp-checkbox,
.dmp-radio {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
}

.dmp-separator {
	color: var(--dmp-text-light);
}

/* Results */
.dmp-results-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 8px;
}

.dmp-view-toggle {
	display: flex;
	gap: 4px;
}

.dmp-view-btn {
	padding: 6px 12px;
	border: 1px solid var(--dmp-border);
	background: var(--dmp-white);
	border-radius: 4px;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
}

.dmp-view-btn--active {
	background: var(--dmp-text);
	color: var(--dmp-white);
	border-color: var(--dmp-text);
}

.dmp-sort {
	width: auto;
	min-width: 140px;
}

.dmp-results {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.dmp-results[data-view="card"] {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.dmp-results[data-view="list"] {
	grid-template-columns: 1fr;
}

.dmp-results[data-view="list"] .dmp-card {
	display: flex;
	flex-direction: row;
}

.dmp-results[data-view="list"] .dmp-card-image {
	width: 160px;
	flex-shrink: 0;
}

.dmp-card {
	background: var(--dmp-white);
	border: 1px solid var(--dmp-border);
	border-radius: var(--dmp-radius);
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.2s;
}

.dmp-card:hover {
	box-shadow: var(--dmp-shadow);
}

.dmp-card-image {
	position: relative;
	aspect-ratio: 16/10;
	background: var(--dmp-bg);
	overflow: hidden;
}

.dmp-card-image img,
.dmp-card-img {
	width: 100%;
	height: 100%;
	display: block;
}

.dmp-card-img {
	object-fit: cover;
}

.dmp-card-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.dmp-card-map.leaflet-container {
	font: inherit;
}

.dmp-card-map .leaflet-control-attribution {
	font-size: 9px;
	margin: 0 !important;
	background: rgba(255, 255, 255, 0.85) !important;
}

.dmp-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}

.dmp-card-rank {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	background: var(--dmp-primary);
	color: var(--dmp-white);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
}

.dmp-card-body {
	padding: 12px;
}

.dmp-card-name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.dmp-card-access {
	margin: 0 0 8px;
	font-size: 12px;
	color: var(--dmp-text-light);
}

.dmp-card-price {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--dmp-primary);
}

.dmp-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.dmp-tag {
	display: inline-block;
	padding: 2px 8px;
	background: #e8f5e9;
	color: #2e7d32;
	border-radius: 4px;
	font-size: 11px;
}

.dmp-card-rating {
	margin: 0 0 8px;
	font-size: 12px;
	color: #f9a825;
}

.dmp-card-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.dmp-card-detail-links {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	font-size: 12px;
	line-height: 1.4;
}

.dmp-card-link {
	padding: 0;
	border: none;
	background: none;
	color: var(--dmp-primary);
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dmp-card-link:hover {
	color: var(--dmp-primary-dark);
}

.dmp-card-link--disabled {
	color: var(--dmp-text-light);
	text-decoration: none;
	cursor: default;
}

.dmp-card-link-sep {
	color: var(--dmp-text-light);
	font-size: 12px;
	user-select: none;
}

.dmp-compare-check {
	font-size: 12px;
	cursor: pointer;
}

.dmp-loading,
.dmp-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--dmp-text-light);
}

.dmp-pagination {
	text-align: center;
	margin-top: 24px;
}

/* Modal */
.dmp-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.dmp-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.dmp-modal-content {
	position: relative;
	background: var(--dmp-white);
	border-radius: var(--dmp-radius);
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	z-index: 1;
}

.dmp-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: var(--dmp-text-light);
	z-index: 2;
	line-height: 1;
	font-family: inherit;
}

.dmp-modal-tabs {
	display: flex;
	overflow-x: auto;
	border-bottom: 1px solid var(--dmp-border);
	padding: 0 8px;
	flex-shrink: 0;
}

.dmp-modal-tab {
	padding: 12px 14px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	font-size: 13px;
	white-space: nowrap;
	font-family: inherit;
	color: var(--dmp-text-light);
}

.dmp-modal-tab--active {
	border-bottom-color: var(--dmp-primary);
	color: var(--dmp-primary);
	font-weight: 600;
}

.dmp-modal-body {
	padding: 16px;
	overflow-y: auto;
	flex: 1;
}

.dmp-modal-map {
	height: 200px;
	width: 100%;
	border-radius: var(--dmp-radius);
	border: 1px solid var(--dmp-border);
	margin-bottom: 16px;
	overflow: hidden;
	z-index: 1;
}

.dmp-modal-map .dmp-map-notice {
	padding: 24px 16px;
	margin: 0;
}

.dmp-modal-footer {
	padding: 12px 16px;
	border-top: 1px solid var(--dmp-border);
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.dmp-modal-footer .dmp-btn {
	flex: 1;
}

.dmp-modal-footer .dmp-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.dmp-dl {
	margin: 0;
}

.dmp-dl dt {
	font-size: 12px;
	color: var(--dmp-text-light);
	margin-top: 12px;
}

.dmp-dl dt:first-child {
	margin-top: 0;
}

.dmp-dl dd {
	margin: 4px 0 0;
}

.dmp-modal-heading {
	margin: 16px 0 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--dmp-text);
}

.dmp-modal-heading:first-child {
	margin-top: 0;
}

.dmp-rating-big {
	font-size: 24px;
	color: #f9a825;
}

/* Market */
.dmp-market {
	background: var(--dmp-white);
	border: 1px solid var(--dmp-border-input);
	border-radius: 12px;
	padding: 20px 18px;
	margin-bottom: 20px;
	box-shadow: var(--dmp-shadow);
}

.dmp-market-top {
	margin-bottom: 16px;
}

.dmp-market-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.dmp-market-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--dmp-text);
}

.dmp-market-scope-block {
	display: inline-block;
	vertical-align: top;
}

.dmp-market-title-accent {
	display: block;
	width: 100%;
	min-width: 2.5em;
	max-width: 100%;
	height: 3px;
	margin-top: 6px;
	background: var(--dmp-primary);
	border-radius: 2px;
}

.dmp-market-title-suffix {
	display: inline;
}

.dmp-market-info {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid var(--dmp-border);
	border-radius: 50%;
	background: var(--dmp-white);
	color: var(--dmp-text-light);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	font-family: inherit;
	cursor: help;
}

.dmp-market-condition {
	margin: 10px 0 0;
}

.dmp-market-plan {
	display: inline-block;
	padding: 6px 14px;
	background: var(--dmp-bg);
	border-radius: 999px;
	font-size: 13px;
	color: var(--dmp-text);
}

.dmp-market-prices {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid var(--dmp-border-input);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 18px;
}

.dmp-market-price-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 10px;
	text-align: center;
}

.dmp-market-price-col + .dmp-market-price-col {
	border-left: 1px solid var(--dmp-border-input);
}

.dmp-market-price-label {
	font-size: 12px;
	color: var(--dmp-text-light);
	line-height: 1.3;
}

.dmp-market-price-value {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--dmp-text);
}

.dmp-market-price-value--accent {
	color: var(--dmp-primary);
}

.dmp-market-price-unit {
	font-size: 14px;
	font-weight: 700;
}

.dmp-market-footer {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dmp-market-clinics-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--dmp-text);
	margin-bottom: 4px;
}

.dmp-market-clinics-value {
	margin: 0;
	font-size: 0;
	line-height: 1;
}

.dmp-market-count {
	font-size: 26px;
	font-weight: 700;
	color: var(--dmp-text);
}

.dmp-market-count-unit {
	font-size: 18px;
	font-weight: 700;
	color: var(--dmp-text);
}

.dmp-market-note {
	margin: 0;
	font-size: 11px;
	color: var(--dmp-text-light);
	line-height: 1.5;
}

/* Diagnosis */
.dmp-diagnosis-root {
	margin: 24px 0;
}

.dmp-diagnosis {
	background: var(--dmp-white);
	border: 1px solid var(--dmp-border);
	border-radius: 12px;
	padding: 28px 24px;
	box-shadow: var(--dmp-shadow);
	max-width: 640px;
	margin: 0 auto;
}

.dmp-diagnosis-intro {
	text-align: center;
}

.dmp-diagnosis-hero {
	margin-bottom: 24px;
}

.dmp-diagnosis-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.dmp-diagnosis-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--dmp-text);
}

.dmp-diagnosis-desc {
	margin: 0 0 16px;
	color: var(--dmp-text-light);
	font-size: 15px;
}

.dmp-diagnosis-features {
	list-style: none;
	margin: 0 auto 8px;
	padding: 0;
	max-width: 280px;
	text-align: left;
}

.dmp-diagnosis-features li {
	position: relative;
	padding: 6px 0 6px 28px;
	font-size: 14px;
	color: var(--dmp-text);
}

.dmp-diagnosis-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fce4ec;
	color: var(--dmp-primary);
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.dmp-diagnosis-start-btn {
	max-width: 320px;
	margin: 0 auto;
}

.dmp-diagnosis-form {
	text-align: left;
}

.dmp-diagnosis-progress-wrap {
	margin-bottom: 24px;
}

.dmp-diagnosis-progress-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--dmp-text-light);
}

.dmp-diagnosis-progress-step {
	color: var(--dmp-primary);
}

.dmp-diagnosis-progress-track {
	height: 8px;
	background: var(--dmp-bg);
	border-radius: 999px;
	overflow: hidden;
}

.dmp-diagnosis-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--dmp-primary), #f48fb1);
	border-radius: 999px;
	transition: width 0.35s ease;
	width: 0;
}

.dmp-diagnosis-step {
	animation: dmp-diagnosis-fade 0.25s ease;
}

@keyframes dmp-diagnosis-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dmp-diagnosis-q-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.dmp-diagnosis-q-hint {
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--dmp-text-light);
}

.dmp-diagnosis-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dmp-diagnosis-options--grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

@media (max-width: 480px) {
	.dmp-diagnosis-options--grid {
		grid-template-columns: 1fr;
	}
}

.dmp-diagnosis-option {
	display: block;
	position: relative;
	margin: 0;
	cursor: pointer;
}

.dmp-diagnosis-option-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.dmp-diagnosis-option-body {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 2px solid var(--dmp-border);
	border-radius: var(--dmp-radius);
	background: var(--dmp-white);
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.dmp-diagnosis-option:hover .dmp-diagnosis-option-body {
	border-color: #f8bbd0;
}

.dmp-diagnosis-option-input:focus-visible + .dmp-diagnosis-option-body {
	outline: 2px solid var(--dmp-primary);
	outline-offset: 2px;
}

.dmp-diagnosis-option-input:checked + .dmp-diagnosis-option-body {
	border-color: var(--dmp-primary);
	background: #fdf2f7;
	box-shadow: 0 0 0 1px var(--dmp-primary);
}

.dmp-diagnosis-option-marker {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid var(--dmp-border);
	border-radius: 50%;
	background: var(--dmp-white);
	transition: border-color 0.2s, background 0.2s;
}

.dmp-diagnosis-option-input[type="checkbox"] + .dmp-diagnosis-option-body .dmp-diagnosis-option-marker {
	border-radius: 4px;
}

.dmp-diagnosis-option-input:checked + .dmp-diagnosis-option-body .dmp-diagnosis-option-marker {
	border-color: var(--dmp-primary);
	background: var(--dmp-primary);
	box-shadow: inset 0 0 0 3px var(--dmp-white);
}

.dmp-diagnosis-option-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--dmp-text);
	line-height: 1.4;
}

.dmp-diagnosis-select-wrap {
	margin-top: 4px;
}

.dmp-diagnosis-select-wrap .dmp-select {
	max-width: 100%;
}

.dmp-diagnosis-error {
	margin: 12px 0 0;
	padding: 10px 12px;
	font-size: 13px;
	color: #c62828;
	background: #ffebee;
	border-radius: 6px;
}

.dmp-diagnosis-nav {
	display: flex;
	gap: 10px;
	margin-top: 24px;
}

.dmp-diagnosis-nav .dmp-btn {
	flex: 1;
}

.dmp-diagnosis-nav .dmp-btn--primary {
	width: auto;
	flex: 1.2;
}

.dmp-diagnosis-results {
	text-align: left;
}

.dmp-diagnosis-results-header {
	text-align: center;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--dmp-border);
}

.dmp-diagnosis-results-badge {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--dmp-primary);
	background: #fce4ec;
	border-radius: 999px;
}

.dmp-diagnosis-results-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
}

.dmp-diagnosis-results-desc {
	margin: 0;
	font-size: 14px;
	color: var(--dmp-text-light);
}

.dmp-diagnosis-results-actions {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.dmp-results--diagnosis {
	margin-top: 8px;
}

.dmp-results--diagnosis .dmp-card {
	text-align: left;
}

/* Compare */
.dmp-section-title {
	margin: 40px 0 16px;
	font-size: 20px;
	font-weight: 700;
}

.dmp-compare-section {
	margin-top: 32px;
	padding-top: 8px;
}

.dmp-compare-bar {
	position: fixed;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: nowrap;
	max-width: calc(100% - 24px);
	padding: 6px 12px;
	background: var(--dmp-white);
	border: 1px solid var(--dmp-border);
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	font-size: 12px;
	line-height: 1.4;
}

.dmp-compare-bar-count {
	font-weight: 600;
	color: var(--dmp-text);
	white-space: nowrap;
}

.dmp-compare-bar-links {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.dmp-compare-bar-link {
	padding: 0;
	border: none;
	background: none;
	color: var(--dmp-primary);
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dmp-compare-bar-link:hover {
	color: var(--dmp-primary-dark);
}

.dmp-compare-bar-sep {
	color: var(--dmp-text-light);
	font-size: 12px;
	user-select: none;
}

.dmp-toast {
	position: fixed;
	bottom: 52px;
	left: 50%;
	transform: translateX(-50%) translateY(12px);
	z-index: 99991;
	padding: 10px 18px;
	background: rgba(33, 33, 33, 0.92);
	color: #fff;
	font-size: 14px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.dmp-toast--visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.dmp-compare-remove {
	margin-top: 6px;
	padding: 0 6px;
	background: none;
	border: none;
	color: var(--dmp-text-light);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.dmp-compare-remove:hover {
	color: var(--dmp-primary);
}

.dmp-compare-official {
	display: inline-block;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	color: var(--dmp-white);
	background: var(--dmp-primary);
	border-radius: 4px;
	white-space: nowrap;
}

.dmp-compare-official:hover {
	background: var(--dmp-primary-dark);
	color: var(--dmp-white);
}

.dmp-compare-official-empty {
	color: var(--dmp-text-light);
}

.dmp-compare {
	overflow-x: auto;
}

.dmp-compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.dmp-compare-table th,
.dmp-compare-table td {
	border: 1px solid var(--dmp-border);
	padding: 10px;
	text-align: left;
	vertical-align: top;
}

.dmp-compare-table th {
	background: var(--dmp-bg);
	font-weight: 600;
	white-space: nowrap;
}

.dmp-compare-empty {
	padding: 24px;
	text-align: center;
	color: var(--dmp-text-light);
}

/* Popular */
.dmp-popular-items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.dmp-popular-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 12px 16px;
	border: 1px solid var(--dmp-border);
	border-radius: var(--dmp-radius);
	background: var(--dmp-white);
	cursor: pointer;
	font-family: inherit;
	min-width: 80px;
	transition: border-color 0.2s;
}

.dmp-popular-item:hover {
	border-color: var(--dmp-primary);
}

.dmp-popular-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fce4ec;
	color: var(--dmp-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.dmp-popular-label {
	font-size: 11px;
	color: var(--dmp-text);
}

/* Map */
.dmp-search-map {
	margin: 20px 0;
}

.dmp-map-wrap {
	position: relative;
	margin-bottom: 20px;
}

.dmp-map {
	height: 280px;
	border-radius: var(--dmp-radius);
	border: 1px solid var(--dmp-border);
	z-index: 1;
}

.dmp-map-wrap--expanded .dmp-map {
	height: 480px;
}

.dmp-map-notice {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--dmp-text-light);
	text-align: center;
}

.dmp-map-expand {
	margin-top: 8px;
}

.dmp-count {
	font-weight: 700;
	color: var(--dmp-primary);
}

/* Responsive */
@media (max-width: 480px) {
	.dmp-market-title {
		font-size: 15px;
	}

	.dmp-market-price-value {
		font-size: 17px;
	}

	.dmp-market-price-col {
		padding: 12px 6px;
	}
}

@media (min-width: 768px) {
	.dmp-filter-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.dmp-modal-open .dmp-root {
		overflow: hidden;
	}
}
