/* Model Platform - basal frontend styling.
   Designet til at være neutral, så det er let at overskrive i Breakdance. */

.mp-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}
.mp-alert-error {
	background: #fde8e8;
	color: #9b1c1c;
	border: 1px solid #f8b4b4;
}
.mp-alert-success {
	background: #e8f8ee;
	color: #166534;
	border: 1px solid #b4f8c8;
}

/* Formular */
.mp-profile-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}
.mp-profile-form input[type="text"],
.mp-profile-form input[type="email"],
.mp-profile-form input[type="password"],
.mp-profile-form input[type="number"],
.mp-profile-form select,
.mp-profile-form textarea {
	width: 100%;
	max-width: 480px;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	margin-bottom: 4px;
}
.mp-service-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.mp-service-row input[type="number"] {
	max-width: 140px;
}
.mp-checkbox-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 16px;
	font-weight: 400;
}
.mp-existing-gallery {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.mp-hint {
	font-size: 13px;
	color: #6b7280;
}
.mp-submit-btn {
	background: #111827;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}

/* Filter */
.mp-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}
.mp-filter-input {
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
}
.mp-filter-small {
	width: 130px;
}
.mp-filter-submit,
.mp-filter-reset {
	padding: 8px 16px;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	background: #fff;
	cursor: pointer;
}
.mp-filter-submit {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

/* Grid */
.mp-profiles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}
.mp-profile-card {
	position: relative;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}
.mp-profile-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.mp-profile-card.mp-featured {
	border-color: #f59e0b;
}
.mp-featured-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #f59e0b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
	z-index: 2;
}
.mp-profile-link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.mp-profile-thumb {
	position: relative;
	aspect-ratio: 3 / 4;
	width: 100%;
	background: #f3f4f6;
	overflow: hidden;
}
.mp-profile-thumb img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	max-width: none !important;
	border-radius: 0 !important;
}
.mp-profile-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: #e5e7eb;
}
.mp-profile-name {
	margin: 10px 12px 2px;
	font-size: 16px;
}
.mp-profile-meta {
	margin: 0 12px 12px;
	font-size: 13px;
	color: #6b7280;
}
.mp-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: #6b7280;
	padding: 40px 0;
}
.mp-grid-loading {
	text-align: center;
	padding: 20px;
	color: #6b7280;
}

/* Admin status badges */
.mp-status-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
.mp-status-active {
	background: #dcfce7;
	color: #166534;
}
.mp-status-expired {
	background: #fee2e2;
	color: #991b1b;
}
.mp-status-unpaid {
	background: #fef3c7;
	color: #92400e;
}

/* ── Single profil ─────────────────────────────────────────── */
.mp-single-profile {
	max-width: 1000px;
	margin: 0 auto;
	padding: 24px 0;
}
.mp-featured-badge-static {
	display: inline-block;
	background: #f59e0b;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 20px;
}
.mp-single-layout {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 40px;
	align-items: start;
}
@media (max-width: 700px) {
	.mp-single-layout { grid-template-columns: 1fr; }
}
.mp-single-images { display: flex; flex-direction: column; gap: 10px; }
.mp-single-img {
	width: 100%;
	border-radius: 10px;
	display: block;
	object-fit: cover;
}
.mp-single-img-placeholder {
	width: 100%;
	aspect-ratio: 3/4;
	background: #e5e7eb;
	border-radius: 10px;
}
.mp-single-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 20px;
	padding: 16px;
	background: #f9fafb;
	border-radius: 8px;
}
.mp-meta-row {
	display: flex;
	gap: 10px;
	font-size: 14px;
}
.mp-meta-label {
	font-weight: 600;
	color: #6b7280;
	min-width: 80px;
}
.mp-single-section { margin-top: 24px; }
.mp-single-section-title {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #f3f4f6;
}
.mp-single-description {
	font-size: 15px;
	line-height: 1.7;
	color: #374151;
}
.mp-single-services {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mp-service-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	background: #f9fafb;
	border-radius: 6px;
	font-size: 14px;
}
.mp-service-price {
	font-weight: 600;
	color: #111827;
}
.mp-payment-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mp-payment-badge {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
}
.mp-contact-section { display: flex; flex-direction: column; gap: 10px; }
.mp-contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	width: fit-content;
}
.mp-phone-btn {
	background: #111827;
	color: #fff;
}
.mp-whatsapp-btn {
	background: #25d366;
	color: #fff;
}
.mp-owner-panel {
	margin-top: 24px;
	padding: 16px;
	background: #fefce8;
	border: 1px solid #fde68a;
	border-radius: 8px;
}
.mp-package-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #fde68a;
	flex-wrap: wrap;
}
.mp-package-option:last-child { border-bottom: none; }
.mp-package-option button {
	padding: 5px 12px;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
}

/* ── Opdateret filterbar ────────────────────────────────────── */
.mp-filter-wrap {
	margin-bottom: 32px;
}
.mp-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: flex-end;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 24px;
}
.mp-filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 160px;
}
.mp-filter-group-wide {
	min-width: 220px;
	flex: 1 1 220px;
}
.mp-filter-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b7280;
}
.mp-filter-select {
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: #111827;
	cursor: pointer;
}
.mp-filter-actions {
	display: flex;
	gap: 10px;
	align-items: flex-end;
	padding-bottom: 1px;
}
.mp-filter-submit {
	padding: 9px 20px;
	background: #111827;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.mp-filter-reset {
	padding: 9px 16px;
	background: #fff;
	color: #6b7280;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
}

/* ── Range sliders ──────────────────────────────────────────── */
.mp-range-wrap {
	position: relative;
	height: 36px;
	display: flex;
	align-items: center;
}
.mp-range-track {
	position: absolute;
	left: 0; right: 0;
	height: 4px;
	background: #e5e7eb;
	border-radius: 2px;
	pointer-events: none;
	z-index: 0;
}
.mp-range-fill {
	position: absolute;
	height: 100%;
	background: #111827;
	border-radius: 2px;
}
.mp-range {
	position: absolute;
	width: 100%;
	height: 4px;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	pointer-events: none;
	z-index: 2;
}
.mp-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #111827;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	cursor: pointer;
	pointer-events: all;
}
.mp-range::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #111827;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	cursor: pointer;
	pointer-events: all;
}

/* ── SEO-beskrivelse på taxonomy-arkiv-sider ────────────────── */
.mp-term-seo-description {
	max-width: 860px;
	margin: 24px 0 36px;
	padding: 24px 28px;
	background: #f9fafb;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	font-size: 15px;
	line-height: 1.75;
	color: #374151;
}
.mp-term-seo-description h2,
.mp-term-seo-description h3 {
	margin-top: 20px;
	color: #111827;
}
.mp-term-seo-description a {
	color: #1d4ed8;
	text-decoration: underline;
}

/* ── Formular-validering ─────────────────────────────────────── */
.mp-field-invalid {
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 1px #dc2626 !important;
}
.mp-alert-error {
	scroll-margin-top: 100px;
}
