/* mobile.de WordPress Integration PRO - Frontend Styles */

.mobile-de-integration-pro-wrapper {
	--md-primary: #0066cc;
	--md-primary-hover: #0052a3;
	--md-btn-text: #ffffff;
	--md-price: #0066cc;
	--md-heading: #1a1a2e;

	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 30px 20px;
	color: var(--md-heading);
	line-height: 1.6;
	overflow-x: clip;
	box-sizing: border-box;
}

.mobile-de-integration-pro-container {
	width: 100%;
}

/* Breadcrumbs */
.mobilede-breadcrumbs {
	font-size: 0.875rem;
	color: #6c757d;
	margin-bottom: 20px;
}

.mobilede-breadcrumbs a {
	color: var(--md-primary);
	text-decoration: none;
}

.mobilede-breadcrumbs a:hover {
	text-decoration: underline;
}

.mobilede-breadcrumb-sep {
	margin: 0 6px;
	color: #adb5bd;
}

/* Header */
.mobile-de-integration-pro-header {
	margin-bottom: 30px;
}

.mobile-de-integration-pro-title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--md-heading);
}

.mobile-de-integration-pro-count {
	color: #6c757d;
	margin: 0;
	font-size: 0.95rem;
}

/* Filters */
.mobilede-filters {
	margin-bottom: 30px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.mobilede-filters-make-model-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: flex-end;
	margin-bottom: 16px;
}

.mobilede-filters-form {
	margin: 0;
	padding: 0;
}

.mobilede-filters-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: flex-end;
}

.mobilede-filters-row + .mobilede-filters-row {
	margin-top: 16px;
}

.mobilede-filters-row-top {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.mobilede-filters-row-second {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.mobilede-filter-model { margin-top: 12px; }

.mobilede-filters-row-ranges {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	align-items: end;
}

.mobilede-filters-row-actions {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	justify-content: space-between;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e9ecef;
}

.mobilede-filter-group {
	flex: 1;
	min-width: 0;
}

.mobilede-filter-group label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #495057;
	margin-bottom: 6px;
}

.mobilede-filter-group select,
.mobilede-filter-group input[type="number"] {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 36px 0 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 42px;
	background-color: #fff;
	color: var(--md-heading);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23495057' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 10px 6px;
}

.mobilede-filter-group input[type="number"] {
	cursor: text;
	-moz-appearance: textfield;
	background-image: none;
	padding: 10px 12px;
}

.mobilede-filter-group input[type="number"]::-webkit-outer-spin-button,
.mobilede-filter-group input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.mobilede-filter-group select:focus,
.mobilede-filter-group input[type="number"]:focus {
	outline: none;
	border-color: var(--md-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-primary) 10%, transparent);
}

.mobilede-range-inputs {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mobilede-range-inputs input {
	flex: 1;
	min-width: 0;
}

.mobilede-range-sep {
	color: #6c757d;
	font-weight: 600;
	flex-shrink: 0;
}

.mobilede-filter-buttons {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-shrink: 0;
}

.mobilede-btn-apply,
.mobilede-btn-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
	padding: 10px 24px;
	font-size: 0.95rem;
	font-family: inherit;
	line-height: 1.4;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	text-align: center;
	text-decoration: none;
	min-width: 150px;
	height: 42px;
	box-sizing: border-box;
	border-radius: 6px;
}

.mobilede-btn-clear {
	background: #e9ecef;
	color: #495057;
}

.mobilede-btn-clear:hover {
	background: #dee2e6;
	color: #212529;
}

.mobilede-btn-disabled {
	opacity: 0.5;
	pointer-events: none;
}

.mobilede-filter-sort {
	max-width: 260px;
}

/* Vehicle Grid */
.mobile-de-integration-pro-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

/* Vehicle Card */
.mobilede-vehicle-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}

.mobilede-vehicle-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.mobilede-sold-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-transform: uppercase;
	pointer-events: none;
}

.mobilede-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* ── Card Image Slider ── */

.md-card-slider {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0f0f0;
}

.md-card-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.md-card-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.md-card-slide--active {
	opacity: 1;
	pointer-events: auto;
}

.md-card-slide > .mobilede-card-link {
	height: 100%;
}

/* Grey panel behind image — avoids black decoder flash before CDN pixels arrive */
.md-card-slide-media {
	display: block;
	width: 100%;
	height: 100%;
	background-color: #e8eaed;
	position: relative;
	overflow: hidden;
}

.md-card-slide-media img.md-card-slide-img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.md-card-slide-media img.md-card-slide-img.md-card-slide-img--visible {
	opacity: 1;
}

.md-card-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1a1a2e;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.15s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	padding: 0;
}

.mobilede-vehicle-card:hover .md-card-arrow {
	opacity: 1;
}

.md-card-arrow:hover,
.md-card-arrow:focus,
.md-card-arrow:active {
	background: rgba(255, 255, 255, 0.98);
	color: #1a1a2e;
}

.md-card-arrow:hover svg,
.md-card-arrow:focus svg,
.md-card-arrow:active svg {
	stroke: #1a1a2e;
}

.md-card-arrow:focus {
	outline: none;
}

.md-card-arrow--prev { left: 8px; }
.md-card-arrow--next { right: 8px; }

.md-card-dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 5px;
}

.md-card-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background 0.15s ease;
	border: none;
	padding: 0;
}

.md-card-dot--active {
	background: #fff;
}

.md-card-image-counter {
	position: absolute;
	bottom: 8px;
	right: 8px;
	z-index: 3;
	background: rgba(26, 26, 46, 0.7);
	color: #fff;
	font-size: 0.75rem;
	padding: 3px 10px;
	border-radius: 20px;
	line-height: 1.4;
}

.md-card-no-image {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e9ecef;
	color: #6c757d;
}

/* ── Card Body ── */

.md-card-body-link {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.md-card-body {
	padding: 14px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.md-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 2px;
	color: var(--md-heading);
	line-height: 1.25;
}

.md-card-subtitle {
	font-size: 0.85rem;
	color: #6c757d;
	margin: 0 0 6px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.md-card-key-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.md-card-spec-pill {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.025em;
	line-height: 1.35;
	color: #495057;
	background: rgba(73, 80, 87, 0.10);
	border: 1px solid rgba(73, 80, 87, 0.24);
	padding: 5px 11px;
	border-radius: 20px;
	white-space: nowrap;
}

.md-card-price-row {
	margin-top: auto;
	padding-top: 10px;
}

.md-card-price {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--md-price);
	display: block;
}

.md-card-location {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	font-size: 0.8rem;
	color: #6c757d;
}

.md-card-location svg {
	flex-shrink: 0;
}

/* Vehicle Not Found (404) */
.mobilede-not-found-message {
	text-align: center;
	padding: 60px 20px 48px;
	max-width: 560px;
	margin: 0 auto;
}

.mobilede-not-found-icon {
	color: #6c757d;
	margin-bottom: 20px;
}

.mobilede-not-found-message h1 {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--md-heading);
	margin: 0 0 12px;
}

.mobilede-not-found-message p {
	color: #6c757d;
	font-size: 1rem;
	margin: 0 0 24px;
	line-height: 1.6;
}

.mobilede-not-found-similar {
	margin-top: 8px;
}

.mobilede-not-found-similar h2 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--md-heading);
	margin: 0 0 20px;
}

/* No Vehicles */
.mobilede-no-vehicles {
	text-align: center;
	padding: 60px 20px;
	color: #6c757d;
}

.mobilede-btn {
	display: inline-block;
	padding: 12px 28px;
	background: var(--md-primary);
	color: var(--md-btn-text);
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	margin-top: 16px;
	transition: background 0.2s ease;
}

.mobilede-btn:hover {
	background: var(--md-primary-hover);
	color: var(--md-btn-text);
}

/* Pagination */
.mobilede-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 40px;
	padding: 20px 0;
	flex-wrap: wrap;
}

.mobilede-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	text-decoration: none;
	color: var(--md-primary);
	font-size: 0.95rem;
	background: #fff;
	transition: all 0.15s ease;
}

.mobilede-page-link:not(.mobilede-page-current):hover {
	background: #f0f2f5;
	border-color: var(--md-primary);
}

.mobilede-page-current {
	background: var(--md-primary);
	color: var(--md-btn-text);
	border-color: var(--md-primary);
	font-weight: 600;
}

.mobilede-page-dots {
	padding: 0 4px;
	color: #6c757d;
}

/* Single Vehicle */
.mobilede-single-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 40px;
	align-items: start;
	max-width: 100%;
}

.mobilede-single-main {
	min-width: 0;
	overflow: hidden;
}

.mobilede-single-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 16px;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Price Block */
.mobilede-single-price-block {
	margin-bottom: 24px;
	padding: 20px;
	background: var(--md-price-bg, #f0f7ff);
	border-radius: 8px;
	border: 1px solid var(--md-price-bg-border, #c5ddf5);
}

.mobilede-single-price {
	font-size: 2rem;
	font-weight: 700;
	color: var(--md-price);
	display: block;
}

.mobilede-single-was-price {
	font-size: 1rem;
	color: #dc3545;
	text-decoration: line-through;
	margin-right: 12px;
}

.mobilede-single-saving {
	font-size: 0.95rem;
	color: #28a745;
	font-weight: 600;
}

.mobilede-single-monthly {
	display: block;
	font-size: 0.95rem;
	color: #6c757d;
	margin-top: 6px;
}

.mobilede-price-indicator {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
	margin-top: 8px;
	background: #e9ecef;
	color: #495057;
}

/* Highlights */
.mobilede-single-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 30px;
}

.mobilede-highlight-item {
	padding: 12px 16px;
	background: #f8f9fa;
	border-radius: 8px;
	text-align: center;
}

.mobilede-highlight-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6c757d;
	margin-bottom: 4px;
}

.mobilede-highlight-value {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	color: var(--md-heading);
}

/* Description */
.mobilede-single-description {
	margin-bottom: 30px;
}

.mobilede-single-description h2 {
	font-size: 1.25rem;
	margin: 0 0 12px;
}

.mobilede-description-content {
	color: #495057;
}

/* Specifications */
.mobilede-specifications {
	margin-bottom: 30px;
}

.mobilede-specifications h2 {
	font-size: 1.1rem;
	margin: 0 0 12px;
}

.mobilede-specs-table {
	width: 100%;
	border-collapse: collapse;
}

.mobilede-specs-table tr:nth-child(even) {
	background: #f8f9fa;
}

.mobilede-specs-table th,
.mobilede-specs-table td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid #e9ecef;
	font-size: 0.85rem;
}

.mobilede-specs-table th {
	font-weight: 600;
	color: #495057;
	width: 40%;
}

.mobilede-specs-table td {
	color: var(--md-heading);
}

/* Features */
.mobilede-features {
	margin-bottom: 32px;
}

.mobilede-features > h2 {
	font-size: 1.1rem;
	margin: 0 0 16px;
}

.mobilede-features-groups {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.mobilede-features-group {
	padding: 0;
}

.mobilede-features-category {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6c757d;
	margin: 0 0 10px;
}

.mobilede-features-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
}

.mobilede-feature-item {
	font-size: 0.8rem;
	line-height: 1.3;
	background: #f8f9fa;
	border-radius: 8px;
	padding: 8px 12px;
	color: var(--md-heading);
}

/* Gallery */
.mobilede-gallery {
	margin-bottom: 30px;
}

.mobilede-gallery-main {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #f0f0f0;
	aspect-ratio: 3 / 2;
}

.mobilede-gallery-main img#mobilede-gallery-hero {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mobilede-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1a1a2e;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	padding: 0;
	transition: opacity 0.2s ease, background 0.15s ease;
}

.mobilede-gallery-arrow:hover,
.mobilede-gallery-arrow:focus,
.mobilede-gallery-arrow:active {
	background: rgba(255, 255, 255, 0.98);
	color: #1a1a2e;
}

.mobilede-gallery-arrow:hover svg,
.mobilede-gallery-arrow:focus svg,
.mobilede-gallery-arrow:active svg {
	stroke: #1a1a2e;
}

.mobilede-gallery-arrow:focus {
	outline: none;
}

.mobilede-gallery-arrow--prev { left: 12px; }
.mobilede-gallery-arrow--next { right: 12px; }

.mobilede-gallery-counter {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
}

.mobilede-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	overflow-x: auto;
	padding-bottom: 8px;
	scrollbar-width: thin;
}

.mobilede-gallery-thumb {
	flex-shrink: 0;
	width: 80px;
	height: 56px;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	padding: 0;
	background: none;
	transition: border-color 0.15s ease;
}

.mobilede-gallery-thumb:hover,
.mobilede-gallery-thumb--active {
	border-color: var(--md-primary);
}

.mobilede-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mobilede-gallery-placeholder {
	padding: 60px 20px;
	text-align: center;
	background: #f8f9fa;
	border-radius: 12px;
	margin-bottom: 30px;
	color: #6c757d;
}

/* Sidebar */
.mobilede-single-sidebar {
	position: sticky;
	top: 100px;
}

.mobilede-sidebar-card {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mobilede-sidebar-card h3 {
	font-size: 1.1rem;
	margin: 0 0 16px;
}

.mobilede-sidebar-price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--md-price);
	margin: 0 0 8px;
}

.mobilede-sidebar-title {
	color: #495057;
	margin: 0 0 20px;
	font-size: 0.95rem;
}

.mobilede-dealer-info {
	padding-top: 16px;
	border-top: 1px solid #e9ecef;
}

.mobilede-dealer-phone,
.mobilede-dealer-email {
	margin: 8px 0 0;
	font-size: 0.9rem;
}

.mobilede-dealer-phone a,
.mobilede-dealer-email a {
	color: var(--md-primary);
	text-decoration: none;
	font-weight: 600;
}

.mobilede-dealer-phone a:hover,
.mobilede-dealer-email a:hover {
	text-decoration: underline;
}

.mobilede-contact-note {
	margin-top: 12px;
	font-size: 0.85rem;
	color: #6c757d;
	line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
	.mobilede-single-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.mobilede-single-sidebar {
		position: static;
	}

	.mobilede-gallery-thumbs {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		flex-wrap: nowrap;
	}

	.mobilede-gallery-thumb {
		flex-shrink: 0;
	}

	.mobilede-description-content {
		overflow-wrap: break-word;
		word-break: break-word;
	}
}

@media (max-width: 768px) {
	.mobile-de-integration-pro-grid {
		grid-template-columns: 1fr;
	}

	.mobile-de-integration-pro-title {
		font-size: 1.5rem;
	}

	.mobilede-filters-make-model-row,
	.mobilede-filters-row,
	.mobilede-filters-row-top,
	.mobilede-filters-row-second,
	.mobilede-filters-row-ranges {
		display: flex;
		flex-direction: column;
	}

	.mobilede-filter-group {
		min-width: 100%;
	}

	.mobilede-filters-row-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.mobilede-filter-sort {
		max-width: none;
	}

	.mobilede-filter-buttons {
		flex-direction: column;
	}

	.mobilede-btn-apply,
	.mobilede-btn-clear {
		width: 100%;
		text-align: center;
	}

	.mobilede-single-title {
		font-size: 1.35rem;
	}

	.mobilede-single-price {
		font-size: 1.5rem;
	}

	.mobilede-single-highlights {
		grid-template-columns: repeat(2, 1fr);
	}

	.mobilede-gallery-thumb {
		width: 60px;
		height: 42px;
	}

	.md-card-arrow {
		opacity: 1;
	}

	.mobilede-specifications {
		overflow-x: auto;
	}

	.mobilede-single-price-block {
		word-wrap: break-word;
	}

	.mobilede-gallery-main {
		aspect-ratio: 4 / 3;
	}

	.mobilede-breadcrumbs {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.mobilede-features-groups {
		grid-template-columns: 1fr;
	}

	.mobilede-features-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.mobile-de-integration-pro-wrapper {
		padding: 15px 12px;
	}

	.mobilede-single-highlights {
		grid-template-columns: 1fr 1fr;
	}
}

/* Gallery tabs (photos / videos) */
.mobilede-gallery-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.mobilede-gallery-tab {
	background: #f1f3f5;
	border: 1px solid #ced4da;
	border-radius: 4px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 14px;
	color: #343a40;
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
}

.mobilede-gallery-tab:hover {
	background: #e9ecef;
	border-color: #adb5bd;
	color: #212529;
}

.mobilede-gallery-tab--active,
.mobilede-gallery-tab--active:hover {
	background: var(--md-primary, #0066cc);
	border-color: var(--md-primary, #0066cc);
	color: var(--md-btn-text, #fff);
}

.mobilede-gallery-panel--hidden {
	display: none;
}

.mobilede-gallery-hero-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.mobilede-gallery-videos {
	display: grid;
	gap: 16px;
}

.mobilede-gallery-videos--multiple {
	gap: 24px;
}

.mobilede-gallery-video {
	margin: 0;
}

.mobilede-gallery-videos--multiple .mobilede-gallery-video {
	padding-bottom: 24px;
	border-bottom: 1px solid #e9ecef;
}

.mobilede-gallery-videos--multiple .mobilede-gallery-video:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.mobilede-gallery-video-title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #343a40;
}

.mobilede-gallery-video-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 6px;
	overflow: hidden;
}

.mobilede-gallery-video-player video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 0;
	background: #000;
}

/* Lightbox */
.mobilede-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobilede-lightbox[hidden] {
	display: none !important;
}

body.mobilede-lightbox-open {
	overflow: hidden;
}

.mobilede-lightbox-img {
	max-width: min(96vw, 1400px);
	max-height: 90vh;
	object-fit: contain;
}

.mobilede-lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}

.mobilede-lightbox-close:hover,
.mobilede-lightbox-close:focus,
.mobilede-lightbox-close:active {
	background: none;
	border: 0;
	box-shadow: none;
	outline: none;
	color: #fff;
}

.mobilede-lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: rgba(255, 255, 255, 0.15);
	border: 0;
	color: #fff;
	cursor: pointer;
	border-radius: 4px;
}

.mobilede-lightbox-arrow svg {
	display: block;
	pointer-events: none;
}

.mobilede-lightbox-arrow--prev { left: 16px; }
.mobilede-lightbox-arrow--next { right: 16px; }

/* Simple vehicle selector shortcode */
.mobilede-vehicle-selector-form .mobilede-filters-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}

.mobilede-block-placeholder {
	padding: 16px;
	border: 1px dashed #c3c4c7;
	background: #f6f7f7;
	text-align: center;
}

/* ============================================================
   mobile.de additions
   ============================================================ */

.mobile-de-integration-pro-wrapper {
	--md-price-bg: #f0f7ff;
	--md-price-bg-border: #c5ddf5;
	--md-ok: #1a8f4c;
	--md-warn: #c77700;
	--md-bad: #c0392b;
}

.mobilede-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---- Filters ---- */
.mobilede-range-inputs { display: flex; align-items: center; gap: 8px; }
.mobilede-range-inputs select { flex: 1; min-width: 0; }
.mobilede-filter-keyword input[type="search"],
.mobilede-filter-group input[type="search"] {
	width: 100%;
	height: 44px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-family: inherit;
	font-size: .95rem;
	line-height: 42px;
	background: #fff;
	color: var(--md-heading);
}
.mobilede-filter-group input[type="search"]:focus {
	outline: none;
	border-color: var(--md-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-primary) 18%, transparent);
}
.mobilede-filter-make, .mobilede-filter-model { min-width: 160px; }
.mobilede-btn.mobilede-btn-apply, .mobilede-btn.mobilede-btn-clear { margin-top: 0; }

/* ---- Card extras ---- */
.mobilede-condition-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--md-primary);
	color: var(--md-btn-text);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.mobilede-condition-badge--inline {
	position: static;
	display: inline-block;
	margin-bottom: 10px;
}
.mobilede-fav-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	width: 38px;
	height: 38px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #495057;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	transition: transform .15s ease, color .15s ease;
}
.mobilede-fav-btn:hover { transform: scale(1.08); color: var(--md-bad); }
.mobilede-fav-btn svg { fill: none; }
.mobilede-fav-btn.is-active { color: var(--md-bad); }
.mobilede-fav-btn.is-active svg { fill: currentColor; }
.mobilede-fav-btn:focus-visible { outline: 2px solid var(--md-primary); outline-offset: 2px; }

.md-card-slide-img--deferred { background: #e8eaed; }
.md-card-slide-media--single { display: block; }
.md-card-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.md-card-price-row .md-card-price { display: inline-block; }
.md-card-price-meta {
	margin: 2px 0 0;
	font-size: .78rem;
	color: #6c757d;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}
.mobilede-rating {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: .7rem;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}
.mobilede-rating--great { background: #dff5e8; color: #0e6b37; }
.mobilede-rating--good { background: #e7f6dc; color: #3d6d12; }
.mobilede-rating--fair { background: #fff1d6; color: #8a5a00; }
.mobilede-rating--high { background: #fde3df; color: #9b2d20; }
.mobilede-vehicle-card--sold .md-card-slide-media img { filter: grayscale(.7); }

/* ---- Single page ---- */
.mobilede-sold-banner {
	background: #1d2327;
	color: #fff;
	text-align: center;
	padding: 12px 16px;
	border-radius: 8px;
	font-weight: 600;
	margin-bottom: 20px;
}
.mobilede-single-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 12px;
	margin: 4px 0 18px;
}
.mobilede-single-heading .mobilede-single-title { margin: 0; }
.mobilede-single-subtitle { margin: 4px 0 0; color: #6c757d; font-size: 1.05rem; }
.mobilede-single-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.mobilede-tool-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	background: #fff;
	color: var(--md-heading);
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
}
.mobilede-tool-btn:hover { border-color: var(--md-primary); color: var(--md-primary); }
a.mobilede-tool-btn { text-decoration: none; line-height: 1.2; }
.mobilede-tool-btn.mobilede-fav-btn {
	position: static;
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: none;
	background: #fff;
}
.mobilede-tool-btn.mobilede-fav-btn:hover { transform: none; }
.mobilede-tool-btn.mobilede-fav-btn.is-active { border-color: var(--md-bad); }
.mobilede-share-fallback {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin: -6px 0 16px;
	font-size: .9rem;
}
.mobilede-share-fallback[hidden] { display: none; }
.mobilede-share-fallback a, .mobilede-share-fallback button {
	color: var(--md-primary);
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
}

.mobilede-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin: 0 0 24px;
}
.mobilede-fact { background: #f8f9fa; border-radius: 8px; padding: 10px 14px; }
.mobilede-fact dt {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #6c757d;
	margin: 0 0 2px;
}
.mobilede-fact dd { margin: 0; font-weight: 600; color: var(--md-heading); }

.mobilede-highlight-notes {
	margin: 0 0 26px;
	padding: 14px 18px 14px 36px;
	background: #f6f9fc;
	border-left: 3px solid var(--md-primary);
	border-radius: 0 8px 8px 0;
}
.mobilede-highlight-notes li { margin: 3px 0; }

.mobilede-features-list .mobilede-feature-item--extra { display: none; }
.mobilede-features-list.is-expanded .mobilede-feature-item--extra { display: block; }
.mobilede-features-toggle {
	margin-top: 12px;
	padding: 8px 16px;
	border: 1px solid var(--md-primary);
	border-radius: 6px;
	background: transparent;
	color: var(--md-primary);
	font-weight: 600;
	cursor: pointer;
}
.mobilede-features-toggle:hover { background: var(--md-primary); color: var(--md-btn-text); }

.mobilede-specifications { margin-bottom: 32px; }
.mobilede-specifications > h2, .mobilede-environment > h2 { font-size: 1.1rem; margin: 0 0 16px; }
.mobilede-specs-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.mobilede-specs-group h3 {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #6c757d;
	margin: 0 0 8px;
}

.mobilede-environment { margin-bottom: 32px; }
.mobilede-co2-scale { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.mobilede-co2-scale-title { font-size: .85rem; font-weight: 600; margin-right: 8px; }
.mobilede-co2-class {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	font-weight: 700;
	font-size: .85rem;
	color: #fff;
	opacity: .35;
}
.mobilede-co2-class.is-active { opacity: 1; width: 40px; height: 40px; font-size: 1.1rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.mobilede-co2-class--a { background: #1c9b3a; }
.mobilede-co2-class--b { background: #6ab023; }
.mobilede-co2-class--c { background: #b7c91a; color: #333; }
.mobilede-co2-class--d { background: #f2d600; color: #333; }
.mobilede-co2-class--e { background: #f4a300; }
.mobilede-co2-class--f { background: #e85d1a; }
.mobilede-co2-class--g { background: #c4231c; }
.mobilede-co2-scale-extra { margin-left: 12px; font-size: .8rem; color: #6c757d; }
.mobilede-environment-note { margin: 12px 0 0; font-size: .78rem; color: #6c757d; line-height: 1.5; }

/* ---- Sidebar ---- */
.mobilede-price-card { background: var(--md-price-bg); border-color: var(--md-price-bg-border); }
.mobilede-price-card .mobilede-sidebar-price { font-size: 2rem; margin-bottom: 4px; }
.mobilede-price-vat, .mobilede-price-monthly { margin: 0 0 4px; font-size: .85rem; color: #495057; }
.mobilede-price-monthly { font-weight: 600; }

.mobilede-rating-gauge { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .08); }
.mobilede-rating-gauge-label { font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.mobilede-rating-gauge-bar { display: flex; gap: 3px; }
.mobilede-rating-step { flex: 1; height: 8px; border-radius: 4px; background: #d6dbe0; }
.mobilede-rating-step--0.is-active { background: #1c9b3a; }
.mobilede-rating-step--1.is-active { background: #6ab023; }
.mobilede-rating-step--2.is-active { background: #f4a300; }
.mobilede-rating-step--3.is-active { background: #e85d1a; }
.mobilede-rating-step--4.is-active { background: #c4231c; }
.mobilede-rating-step.is-active { height: 12px; margin-top: -2px; }
.mobilede-rating-gauge-note { margin: 8px 0 0; font-size: .72rem; color: #6c757d; }

.mobilede-contact-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mobilede-contact-actions .mobilede-btn {
	margin: 0;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	text-align: center;
}
.mobilede-btn-whatsapp { background: #1fa855; }
.mobilede-btn-whatsapp:hover { background: #17894a; }

.mobilede-enquiry-form { display: flex; flex-direction: column; gap: 12px; }
.mobilede-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mobilede-field label { font-size: .8rem; font-weight: 600; color: #495057; }
.mobilede-field input, .mobilede-field select, .mobilede-field textarea {
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-family: inherit;
	font-size: .92rem;
	line-height: 1.2;
	background: #fff;
	color: var(--md-heading);
}
.mobilede-field textarea {
	height: auto;
	line-height: 1.45;
}
.mobilede-field select {
	appearance: none;
	-webkit-appearance: none;
	padding: 0 32px 0 12px;
	line-height: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23495057' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
}
.mobilede-field input:focus, .mobilede-field select:focus, .mobilede-field textarea:focus {
	outline: none;
	border-color: var(--md-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-primary) 18%, transparent);
}
.mobilede-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobilede-field--hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.mobilede-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: #495057; line-height: 1.4; }
.mobilede-consent input { margin-top: 3px; flex-shrink: 0; }
.mobilede-consent a { color: var(--md-primary); }
.mobilede-enquiry-submit { width: 100%; border: 0; cursor: pointer; margin: 0; font-size: 1rem; }
.mobilede-enquiry-status { margin: 0; font-size: .88rem; min-height: 1.2em; }
.mobilede-enquiry-status.is-ok { color: var(--md-ok); font-weight: 600; }
.mobilede-enquiry-status.is-error { color: var(--md-bad); }

.mobilede-finance-amount { font-size: 1.6rem; font-weight: 700; color: var(--md-price); margin: 0 0 12px; }
.mobilede-finance-amount span { font-size: .9rem; font-weight: 500; color: #6c757d; }
.mobilede-finance-list { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: .88rem; }
.mobilede-finance-list dt { color: #6c757d; }
.mobilede-finance-list dd { margin: 0; font-weight: 600; text-align: right; }
.mobilede-finance-note { margin: 12px 0 0; font-size: .75rem; color: #6c757d; }

.mobilede-seller-logo { max-width: 160px; max-height: 60px; height: auto; margin-bottom: 10px; display: block; }
.mobilede-seller-name { font-weight: 700; margin: 0 0 6px; }
.mobilede-seller-line { margin: 0 0 4px; font-size: .9rem; }
.mobilede-seller-line a { color: var(--md-primary); text-decoration: none; }
.mobilede-seller-card .mobilede-contact-note { margin-top: 10px; }
.mobilede-seller-address { font-style: normal; color: #495057; font-size: .9rem; line-height: 1.5; }
.mobilede-seller-map { margin: 8px 0 0; font-size: .85rem; }
.mobilede-seller-map a, .mobilede-source-link a { color: var(--md-primary); }
.mobilede-source-link { font-size: .85rem; text-align: center; }

.mobilede-related { margin-top: 48px; }
.mobilede-related h2 { font-size: 1.3rem; margin: 0 0 20px; }

.mobilede-not-found-page { padding-top: 10px; }
.mobilede-favorites .mobilede-no-vehicles[hidden] { display: none; }

/* ---- YouTube facade ---- */
.mobilede-youtube-facade {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
	cursor: pointer;
}
.mobilede-youtube-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.mobilede-youtube-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	border-radius: 12px;
	background: #e62117;
}
.mobilede-youtube-play::after {
	content: "";
	position: absolute;
	left: 27px;
	top: 14px;
	border-style: solid;
	border-width: 10px 0 10px 18px;
	border-color: transparent transparent transparent #fff;
}
.mobilede-youtube-facade:hover .mobilede-youtube-play { background: #ff0000; }
.mobilede-youtube-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; display: block; }

@media (max-width: 768px) {
	.mobilede-field-row { grid-template-columns: 1fr; }
	.mobilede-single-heading { flex-direction: column; }
	.mobilede-price-card .mobilede-sidebar-price { font-size: 1.7rem; }
	.mobilede-features-list { grid-template-columns: 1fr; }
}

/* ---- Print: a clean data sheet ---- */
@media print {
	.mobilede-no-print,
	.mobilede-gallery-thumbs,
	.mobilede-gallery-tabs,
	.mobilede-gallery-arrow,
	.mobilede-fav-btn,
	.mobilede-features-toggle,
	.mobilede-contact-actions,
	.mobilede-enquiry-form,
	.mobilede-related,
	.mobilede-breadcrumbs {
		display: none !important;
	}
	.mobilede-features-list .mobilede-feature-item--extra { display: block !important; }
	.mobilede-single-layout { display: block; }
	.mobilede-single-sidebar { position: static; }
	.mobilede-sidebar-card { box-shadow: none; break-inside: avoid; }
	.mobile-de-integration-pro-wrapper { padding: 0; max-width: none; }
	.mobilede-specs-group, .mobilede-environment { break-inside: avoid; }
}

/* ---- Theme resets: themes often underline links inside .entry-content ---- */
.mobile-de-integration-pro-wrapper a.mobilede-card-link,
.mobile-de-integration-pro-wrapper a.mobilede-card-link:hover,
.mobile-de-integration-pro-wrapper a.mobilede-btn,
.mobile-de-integration-pro-wrapper a.mobilede-btn:hover,
.mobile-de-integration-pro-wrapper a.mobilede-page-link,
.mobile-de-integration-pro-wrapper a.mobilede-page-link:hover {
	text-decoration: none !important;
	box-shadow: none;
	border-bottom: 0;
}
.mobile-de-integration-pro-wrapper a.mobilede-card-link { color: inherit; }
.mobile-de-integration-pro-wrapper .mobilede-btn,
.mobile-de-integration-pro-wrapper .mobilede-btn:hover { color: var(--md-btn-text); }

.mobile-de-integration-pro-wrapper .mobilede-btn.mobilede-btn-apply,
.mobile-de-integration-pro-wrapper .mobilede-btn.mobilede-btn-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	margin-top: 0;
	padding: 0 22px;
	line-height: 1;
	box-sizing: border-box;
	vertical-align: middle;
}

.mobile-de-integration-pro-wrapper .mobilede-btn.mobilede-btn-clear,
.mobile-de-integration-pro-wrapper .mobilede-btn.mobilede-btn-clear:hover {
	background: #e9ecef;
	color: #343a40;
}

.mobile-de-integration-pro-wrapper .mobilede-btn.mobilede-btn-clear:hover {
	background: #dee2e6;
	color: #212529;
}

/* Astra paints every button in the entry blue, including this outline button. */
.mobile-de-integration-pro-wrapper button.mobilede-features-toggle,
.mobile-de-integration-pro-wrapper button.mobilede-features-toggle:hover,
.mobile-de-integration-pro-wrapper button.mobilede-features-toggle:focus,
.mobile-de-integration-pro-wrapper button.mobilede-features-toggle:focus-visible,
.mobile-de-integration-pro-wrapper button.mobilede-features-toggle:active {
	background: transparent;
	color: var(--md-primary);
	border: 1px solid var(--md-primary);
	box-shadow: none;
	outline: none;
}
.mobile-de-integration-pro-wrapper button.mobilede-features-toggle:hover,
.mobile-de-integration-pro-wrapper button.mobilede-features-toggle:focus,
.mobile-de-integration-pro-wrapper button.mobilede-features-toggle:focus-visible,
.mobile-de-integration-pro-wrapper button.mobilede-features-toggle:active {
	background: var(--md-primary);
	color: var(--md-btn-text);
}
