/* ==========================================================================
   AutoHub SaaS — Global Frontend Styles
   Design language: Inter font, gray-50 bg, gray-200 borders, rounded-xl cards,
   shadow-sm with hover lift, --ah-primary accent (default #e11d48).
   Google Fonts enqueued via class-cpt.php — no @import here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
	--ah-primary:       #e11d48;
	--ah-primary-dark:  #be1239;
	--ah-primary-soft:  rgba(225, 29, 72, 0.10);
	--ah-primary-hover: #be1239;
	--ah-primary-light: #fce7ec;
	--ah-primary-50:    #fff1f3;
	--ah-primary-100:   #ffe4e9;
	--ah-primary-200:   #fecdd6;

	--ah-gray-50:   #f9fafb;
	--ah-gray-100:  #f3f4f6;
	--ah-gray-200:  #e5e7eb;
	--ah-gray-300:  #d1d5db;
	--ah-gray-400:  #9ca3af;
	--ah-gray-500:  #6b7280;
	--ah-gray-600:  #4b5563;
	--ah-gray-700:  #374151;
	--ah-gray-800:  #1f2937;
	--ah-gray-900:  #111827;

	--ah-white:     #ffffff;
	--ah-black:     #000000;

	--ah-success:   #16a34a;
	--ah-warning:   #d97706;
	--ah-danger:    #dc2626;
	--ah-info:      #0284c7;

	/* 10 px = consistent rounded-xl feel */
	--ah-radius:    10px;
	--ah-radius-sm: 5px;
	--ah-radius-lg: 12px;
	--ah-radius-xl: 16px;

	--ah-shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
	--ah-shadow:    0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.04);
	--ah-shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.03);
	--ah-shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.03);

	--ah-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	--ah-font-mono: 'SF Mono', 'Fira Code', Consolas, monospace;

	--ah-transition: 0.18s ease;
}

/* --------------------------------------------------------------------------
   Base resets (scoped under plugin wrapper — no preflight bleeding into theme)
   -------------------------------------------------------------------------- */
.autohub-single-listing *,
.autohub-single-listing *::before,
.autohub-single-listing *::after,
.autohub-discover *,
.autohub-discover *::before,
.autohub-discover *::after {
	box-sizing: border-box;
}

.autohub-single-listing,
.autohub-discover {
	font-family: var(--ah-font);
	color: var(--ah-gray-800);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.header-dash-dropdown a {
    color: #222;
}
/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.autohub-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	font-size: 0.875rem;
	font-weight: 600;
	font-family: var(--ah-font);
	border-radius: var(--ah-radius);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition:
		background-color var(--ah-transition),
		border-color var(--ah-transition),
		color var(--ah-transition),
		box-shadow var(--ah-transition),
		transform var(--ah-transition);
	white-space: nowrap;
	vertical-align: middle;
	line-height: 1;
	letter-spacing: 0.01em;
}
.autohub-btn:focus-visible {
	outline: 2px solid var(--ah-primary);
	outline-offset: 3px;
	box-shadow: 0 0 0 4px var(--ah-primary-soft);
}
.autohub-review-form .autohub-btn.autohub-btn-primary {
    color: #fff;
}
/* Primary */
.autohub-btn--primary {
	background-color: var(--ah-primary);
	border-color: var(--ah-primary);
	color: var(--ah-white);
}
.autohub-btn--primary:hover {
	background-color: var(--ah-primary-dark);
	border-color: var(--ah-primary-dark);
	color: var(--ah-white);
}

/* Outline */
.autohub-btn--outline {
	background-color: transparent;
	border-color: var(--ah-primary);
	color: var(--ah-primary);
}
.autohub-btn--outline:hover {
	background-color: var(--ah-primary-50);
	border-color: var(--ah-primary-dark);
}

/* Ghost */
.autohub-btn--ghost {
	background-color: transparent;
	border-color: var(--ah-gray-200);
	color: var(--ah-gray-700);
}
.autohub-btn--ghost:hover {
	background-color: var(--ah-gray-50);
	border-color: var(--ah-gray-300);
	color: var(--ah-gray-900);
}

/* Small */
.autohub-btn--sm {
	padding: 6px 12px;
	font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Badges — pill style
   -------------------------------------------------------------------------- */
.autohub-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 999px;
	line-height: 1.4;
	white-space: nowrap;
}

/* Featured: amber pill with star icon */
.autohub-badge--featured {
	background-color: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}
.autohub-badge--featured::before {
	content: '★';
	font-size: 0.65rem;
}

/* Condition: frosted/subtle pill */
.autohub-badge--condition {
	background-color: rgba(255,255,255,0.85);
	color: var(--ah-gray-700);
	border: 1px solid var(--ah-gray-200);
	backdrop-filter: blur(4px);
}

/* Sold: red */
.autohub-badge--sold {
	background-color: var(--ah-danger);
	color: var(--ah-white);
}

/* Negotiable: green */
.autohub-badge--negotiable {
	background-color: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

/* New: blue */
.autohub-badge--new {
	background-color: #dbeafe;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

/* --------------------------------------------------------------------------
   Listing Card
   -------------------------------------------------------------------------- */
.autohub-card {
	background: var(--ah-white);
	border-radius: 16px;
	border: 1px solid var(--ah-gray-200);
	overflow: hidden;
	box-shadow: var(--ah-shadow-sm);
	transition: transform var(--ah-transition), box-shadow var(--ah-transition);
	display: flex;
	flex-direction: column;
	position: relative;
}
.autohub-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ah-shadow-md);
}
.autohub-card--featured {
	border-color: #fde68a;
	box-shadow: var(--ah-shadow-sm), 0 0 0 1px #fde68a;
}

/* Media — 4:3 aspect with zoom on hover */
.autohub-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ah-gray-100);
}
.autohub-card__media-link {
	display: block;
	width: 100%;
	height: 100%;
}
.autohub-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.autohub-card:hover .autohub-card__img {
	transform: scale(1.04);
}

/* Placeholder */
.autohub-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--ah-gray-100);
	color: var(--ah-gray-400);
	gap: 8px;
}
.autohub-card__placeholder-icon {
	width: 64px;
	height: 40px;
	opacity: 0.45;
}
.autohub-card__placeholder-text {
	font-size: 0.78rem;
	font-weight: 500;
}

/* Badges overlay — above the gradient */
.autohub-card__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	z-index: 2;
}

/* Sold overlay */
.autohub-card__sold-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
}
.autohub-card__sold-text {
	font-size: 1.8rem;
	font-weight: 900;
	color: var(--ah-white);
	letter-spacing: 0.12em;
	border: 4px solid var(--ah-white);
	padding: 6px 22px;
	transform: rotate(-12deg);
	opacity: 0.94;
	text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* Body */
.autohub-card__body {
	padding: 15px 17px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
}

.autohub-card__title {
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0;
}
.autohub-card__title-link {
	color: var(--ah-gray-900);
	text-decoration: none;
	transition: color var(--ah-transition);
}
.autohub-card__title-link:hover {
	color: var(--ah-primary);
}

/* Price — dark and prominent (matches homepage cards) */
.autohub-card__price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 1.18rem;
	font-weight: 800;
	color: var(--ah-gray-900);
	letter-spacing: -0.02em;
	margin-top: -2px;
}
.autohub-card__price--contact {
	color: var(--ah-gray-500);
	font-size: 1rem;
	font-weight: 700;
}
.autohub-card__negotiable {
	font-size: 0.68rem;
	font-weight: 700;
	color: #166534;
	background: #dcfce7;
	border: 1px solid #bbf7d0;
	padding: 2px 8px;
	border-radius: 999px;
}

/* Spec chips */
.autohub-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.autohub-card__chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--ah-gray-100);
	color: var(--ah-gray-700);
	border-radius: 9px;
	padding: 5px 10px;
	font-size: 0.75rem;
	font-weight: 600;
}
.autohub-card__chip svg {
	width: 14px;
	height: 14px;
	color: var(--ah-gray-500);
	flex-shrink: 0;
}

/* Location */
.autohub-card__location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	color: var(--ah-gray-500);
	margin-top: 2px;
}
.autohub-meta-icon {
	flex-shrink: 0;
	color: var(--ah-gray-400);
	width: 14px;
	height: 14px;
}

/* Dealer */
.autohub-card__dealer {
	font-size: 0.78rem;
	color: var(--ah-gray-500);
}
.autohub-card__dealer-label {
	color: var(--ah-gray-400);
}
.autohub-card__dealer-name {
	color: var(--ah-gray-700);
	font-weight: 600;
}

/* Rating (kept for other contexts) */
.autohub-card__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.78rem;
	color: var(--ah-gray-500);
}
.autohub-card__rating-count {
	font-size: 0.72rem;
}

/* Actions — favorite + compare as white circle icon buttons, top-right. */
.autohub-card__actions {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 4;
	display: flex;
	gap: 8px;
}
/* Compare shows only its icon on the cards (hide its text label). */
.autohub-card__actions .autohub-compare-btn span {
	display: none;
}
.autohub-card__actions .autohub-btn,
.autohub-card__actions .autohub-fav-btn {
	width: 40px;
	height: 40px;
	min-width: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--ah-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ah-gray-900);
	cursor: pointer;
	transition: color var(--ah-transition), transform var(--ah-transition);
}
.autohub-card__actions .autohub-btn:hover {
	color: var(--ah-primary);
	transform: scale(1.05);
}
.autohub-card__actions .autohub-fav-btn.autohub-fav-active,
.autohub-card__actions .autohub-compare-btn.autohub-compare-active {
	color: var(--ah-primary);
}
.autohub-card__actions .autohub-fav-count {
	display: none;
}
button.autohub-btn.autohub-compare-btn,
button.autohub-btn.autohub-fav-btn {
    border: 2px solid #e8e7e7;
}
/* --------------------------------------------------------------------------
   Star Ratings
   -------------------------------------------------------------------------- */
.autohub-stars {
	display: inline-flex;
	gap: 2px;
	color: #f59e0b;
	font-size: 1rem;
}
.autohub-stars__empty {
	color: var(--ah-gray-200);
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.autohub-breadcrumbs {
	padding: 12px 0 16px;
}
.autohub-breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	font-weight: 500;
}
.autohub-breadcrumbs__link {
	color: var(--ah-gray-500);
	text-decoration: none;
	transition: color var(--ah-transition);
}
.autohub-breadcrumbs__link:hover {
	color: var(--ah-primary);
}
.autohub-breadcrumbs__sep {
	color: var(--ah-gray-300);
	user-select: none;
	font-size: 0.75rem;
}
.autohub-breadcrumbs__item--current {
	color: var(--ah-gray-700);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Single Listing Layout
   -------------------------------------------------------------------------- */
.autohub-single-listing {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 0px 60px;
}
.autohub-single-listing__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
	grid-template-areas:
		"gallery summary"
		"main    summary";
	gap: 20px 28px;
	align-items: start;
}
.autohub-gallery-col { grid-area: gallery; min-width: 0; }
.autohub-single-listing__main { grid-area: main; min-width: 0; }
@media (max-width: 900px) {
	.autohub-single-listing__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"gallery"
			"summary"
			"main";
	}
}

/* Listing header */
.autohub-listing-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	background: var(--ah-white);
	border: 1px solid var(--ah-gray-200);
	border-radius: var(--ah-radius-lg);
	padding: 20px 24px;
}
.autohub-listing-header__left {
	flex: 1;
	min-width: 0;
}
.autohub-listing-header__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}
.autohub-listing-header__title {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--ah-gray-900);
	margin: 0 0 6px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.autohub-listing-header__subtitle {
	font-size: 1rem;
	color: var(--ah-gray-500);
	margin: 0 0 6px;
	font-weight: 500;
}
.autohub-listing-header__location {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.85rem;
	color: var(--ah-gray-500);
	margin: 0;
}
.autohub-listing-header__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	flex-shrink: 0;
}
.autohub-listing-header__price-block {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.autohub-listing-header__price {
	font-size: 2.1rem;
	font-weight: 900;
	color: var(--ah-primary);
	letter-spacing: -0.03em;
	line-height: 1;
}
.autohub-listing-header__price--contact {
	color: var(--ah-gray-500);
	font-size: 1.2rem;
	font-weight: 600;
}
.autohub-listing-header__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
@media (max-width: 640px) {
	.autohub-listing-header {
		flex-direction: column;
	}
	.autohub-listing-header__right {
		align-items: flex-start;
	}
	.autohub-listing-header__title {
		font-size: 1.4rem;
	}
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.autohub-gallery {
	margin-bottom: 32px;
	position: relative;
}

/* SOLD ribbon — rotated, red, absolute over gallery */
.autohub-gallery__sold-ribbon {
	position: absolute;
	top: 22px;
	left: -8px;
	background: var(--ah-danger);
	color: var(--ah-white);
	font-size: 0.95rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 8px 28px;
	z-index: 10;
	box-shadow: 0 2px 10px rgba(220,38,38,.4);
	transform: rotate(-2deg);
}
.autohub-gallery__sold-ribbon::before {
	content: '';
	position: absolute;
	bottom: -6px;
	left: 0;
	border-left: 8px solid #991b1b;
	border-bottom: 6px solid transparent;
}

.autohub-gallery__main {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	border-radius: var(--ah-radius-lg);
	background: var(--ah-gray-100);
	margin-bottom: 10px;
}
.autohub-gallery__main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: zoom-in;
	transition: transform 0.28s ease;
}
.autohub-gallery__main-img:hover {
	transform: scale(1.02);
}

/* Circular prev/next navigation buttons */
.autohub-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.92);
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--ah-shadow);
	transition: background var(--ah-transition), transform var(--ah-transition), box-shadow var(--ah-transition);
	z-index: 5;
	color: var(--ah-gray-700);
}
.autohub-gallery__nav:hover {
	background: var(--ah-white);
	transform: translateY(-50%) scale(1.1);
	box-shadow: var(--ah-shadow-md);
}
.autohub-gallery__nav:focus-visible {
	outline: 2px solid var(--ah-primary);
	outline-offset: 2px;
}
.autohub-gallery__nav--prev { left: 12px; }
.autohub-gallery__nav--next { right: 12px; }

.autohub-gallery__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--ah-gray-300) transparent;
	padding-bottom: 4px;
}
.autohub-gallery__thumb {
	flex-shrink: 0;
	width: 80px;
	height: 56px;
	border-radius: var(--ah-radius);
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	padding: 0;
	transition: border-color var(--ah-transition), opacity var(--ah-transition);
	background: var(--ah-gray-100);
	opacity: 0.75;
}
.autohub-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.autohub-gallery__thumb:hover {
	border-color: var(--ah-gray-400);
	opacity: 1;
}
/* Active thumb ring in --ah-primary */
.autohub-gallery__thumb--active {
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.autohub-listing-section {
	background: var(--ah-white);
	border: 1px solid var(--ah-gray-200);
	border-radius: var(--ah-radius-lg);
	padding: 20px 24px;
	margin-bottom: 20px;
}
.autohub-listing-section__title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--ah-gray-900);
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ah-gray-200);
	letter-spacing: -0.01em;
}
/* Key facts strip has no heading — tighten padding */
.autohub-keyfacts { padding: 16px; }
/* Similar vehicles is a group of cards, not a card itself */
.autohub-similar-listings {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
}
.autohub-similar-listings .autohub-listing-section__title {
	border-bottom: 2px solid var(--ah-gray-100);
}

/* --------------------------------------------------------------------------
   Specs grid — bordered cells, label over value
   -------------------------------------------------------------------------- */
.autohub-specs__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 44px;
}
.autohub-specs__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 9px 2px;
	border-bottom: 1px solid var(--ah-gray-100);
	font-size: 0.9rem;
	margin: 0;
}
.autohub-specs__label {
	color: var(--ah-gray-500);
	flex-shrink: 0;
	margin: 0;
}
.autohub-specs__value {
	color: var(--ah-gray-900);
	font-weight: 600;
	text-align: right;
	margin: 0;
}
.autohub-vin-locked {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--ah-primary);
	font-weight: 600;
	text-decoration: none;
	transition: color var(--ah-transition);
}
.autohub-vin-locked svg { flex-shrink: 0; }
.autohub-vin-locked:hover {
	color: var(--ah-primary-dark);
	text-decoration: underline;
}
@media (max-width: 560px) {
	.autohub-specs__list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Key facts strip — mobile.de-style icon highlights
   -------------------------------------------------------------------------- */
.autohub-keyfacts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
@media (max-width: 560px) {
	.autohub-keyfacts__grid { grid-template-columns: repeat(2, 1fr); }
}
.autohub-keyfacts__item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 13px;
	background: #f6f6f6;
	border-radius: var(--ah-radius);
}
.autohub-keyfacts__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 9px;
	background: var(--ah-primary-soft);
	color: var(--ah-primary);
}
.autohub-keyfacts__icon svg { width: 19px; height: 19px; }
.autohub-keyfacts__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.autohub-keyfacts__label {
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--ah-gray-400);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.autohub-keyfacts__value {
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--ah-gray-900);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Features — gray pills with check icon
   -------------------------------------------------------------------------- */
/* Equipment — 2-column checklist (mobile.de "Ausstattung") */
.autohub-equipment__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 44px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.autohub-equipment__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 2px;
	border-bottom: 1px solid var(--ah-gray-100);
	font-size: 0.9rem;
	color: var(--ah-gray-800);
}
.autohub-equipment__check {
	color: var(--ah-success);
	flex-shrink: 0;
}
@media (max-width: 560px) {
	.autohub-equipment__list { grid-template-columns: 1fr; }
}

/* Gallery counter badge + empty placeholder */
.autohub-gallery__counter {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 6;
	background: rgba(17, 24, 39, .78);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}
.autohub-gallery--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background: var(--ah-gray-100);
	border: 1px solid var(--ah-gray-200);
	border-radius: var(--ah-radius-lg);
	color: var(--ah-gray-300);
}

/* --------------------------------------------------------------------------
   Description
   -------------------------------------------------------------------------- */
.autohub-listing-description__content {
	font-size: 0.95rem;
	line-height: 1.8;
	color: var(--ah-gray-700);
}
.autohub-listing-description__content p { margin: 0 0 1em; }

/* --------------------------------------------------------------------------
   Video
   -------------------------------------------------------------------------- */
.autohub-video-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--ah-radius-lg);
	background: var(--ah-gray-900);
}
.autohub-video-embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */
.autohub-map {
	height: 320px;
	border-radius: var(--ah-radius-lg);
	overflow: hidden;
	border: 1px solid var(--ah-gray-200);
}
.autohub-listing-address__text {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	color: var(--ah-gray-600);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Similar vehicles
   -------------------------------------------------------------------------- */
.autohub-similar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

/* Full-width "Similar Listings" row below the two-column layout */
.autohub-similar-row {
	margin-top: 44px;
	padding-top: 32px;
	border-top: 1px solid var(--ah-gray-100);
}
.autohub-similar-row__title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ah-gray-900);
	margin: 0 0 22px;
}
.autohub-similar-row .autohub-similar-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1024px) {
	.autohub-similar-row .autohub-similar-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.autohub-similar-row .autohub-similar-grid {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Sidebar — sticky on desktop
   -------------------------------------------------------------------------- */
.autohub-single-listing__sidebar {
	grid-area: summary;
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
@media (max-width: 900px) {
	.autohub-single-listing__sidebar {
		position: static;
	}
}

/* The theme forces `overflow-x: hidden` on wrapper ancestors, which turns them
   into scroll containers and breaks `position: sticky`. On the single-listing
   page, switch those to `overflow-x: clip` — same horizontal clipping, but it
   does NOT create a scroll container, so the sticky sidebar works. */
body.single-autohub-listing,
body.single-autohub-listing #page,
body.single-autohub-listing .site,
body.single-autohub-listing .site-main,
body.single-autohub-listing .content-area,
body.single-autohub-listing article,
body.single-autohub-listing .entry-content {
	overflow-x: clip !important;
}

/* --------------------------------------------------------------------------
   Summary / hero card (mobile.de-style) — title, price, dealer, CTA
   -------------------------------------------------------------------------- */
.autohub-summary-card {
	background: var(--ah-white);
	border: 1px solid var(--ah-gray-200);
	border-radius: var(--ah-radius-lg);
	padding: 18px 20px;
}
.autohub-summary-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}
.autohub-summary-card__title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--ah-gray-900);
	line-height: 1.25;
	letter-spacing: -0.02em;
	margin: 0 0 4px;
}
.autohub-summary-card__subtitle {
	font-size: 0.9rem;
	color: var(--ah-gray-500);
	font-weight: 500;
	margin: 0 0 14px;
	line-height: 1.4;
}
.autohub-summary-card__price-block {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.autohub-summary-card__price {
	font-size: 1.9rem;
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1;
}
.autohub-summary-card__price--contact {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ah-gray-500);
}
.autohub-summary-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.autohub-summary-card__divider {
	height: 1px;
	background: var(--ah-gray-200);
	margin: 16px 0;
}
.autohub-summary-card__dealer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.autohub-summary-card__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid var(--ah-gray-200);
}
.autohub-summary-card__dealer-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.autohub-summary-card__dealer-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ah-gray-900);
}
.autohub-summary-card__dealer-avatar-link { display: inline-flex; flex-shrink: 0; border-radius: 50%; }
.autohub-summary-card__dealer-name-link { color: inherit; text-decoration: none; }
.autohub-summary-card__dealer-name-link:hover { color: var(--ah-primary); text-decoration: underline; }
.autohub-summary-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.8rem;
}
.autohub-summary-card__rating-count {
	color: var(--ah-gray-500);
	font-weight: 600;
}
.autohub-summary-card__dealer-loc {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	color: var(--ah-gray-500);
}
.autohub-summary-card__phone { margin-bottom: 8px; }
.autohub-summary-card__phone .autohub-phone-reveal-btn {
	width: 100%;
	justify-content: center;
	padding: 15px 20px;
}
.autohub-summary-card__phone-number {
	display: block;
	text-align: center;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--ah-gray-900);
	margin-top: 8px;
}
.autohub-summary-card__cta {
	width: 100%;
	justify-content: center;
	margin-bottom: 12px;
	font-size: 0.95rem;
    padding-top: 15px;
    padding-bottom: 15px;
}
.autohub-summary-card__more-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ah-primary);
	text-decoration: none;
}
.autohub-summary-card__more-link:hover { text-decoration: underline; }

/* Secondary actions below the summary card (Report / Claim listing) */
.autohub-sidebar-footer {
	margin-top: 12px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--ah-border, #e5e7eb);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.autohub-sidebar-footer .autohub-report-wrap,
.autohub-sidebar-footer .autohub-claim-wrap {
	margin-top: 0;
}
.autohub-sidebar-footer .autohub-report-link,
.autohub-sidebar-footer .autohub-claim-link {
	padding: 4px 0;
}

/* --------------------------------------------------------------------------
   Dealer card — avatar ring + rating + member-since
   -------------------------------------------------------------------------- */
.autohub-dealer-card {
	background: var(--ah-white);
	border: 1px solid var(--ah-gray-200);
	border-radius: var(--ah-radius-lg);
	padding: 20px;
	box-shadow: var(--ah-shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.autohub-dealer-card__header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
/* Avatar with ring */
.autohub-dealer-card__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 3px solid var(--ah-white);
	box-shadow: 0 0 0 2px var(--ah-primary);
}
.autohub-dealer-card__info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.autohub-dealer-card__name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--ah-gray-900);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.autohub-dealer-card__since {
	font-size: 0.75rem;
	color: var(--ah-gray-400);
	font-weight: 500;
}
.autohub-dealer-card__rating {
	margin-top: 2px;
}
.autohub-dealer-card__address {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	font-size: 0.8rem;
	color: var(--ah-gray-500);
	margin: 0;
	line-height: 1.5;
}
.autohub-dealer-card__phone-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.autohub-phone-reveal-btn {
	width: 100%;
	justify-content: center;
}
.autohub-dealer-card__phone-number {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ah-gray-800);
	text-align: center;
	padding: 10px 12px;
	background: var(--ah-gray-50);
	border: 1px solid var(--ah-gray-200);
	border-radius: var(--ah-radius);
	letter-spacing: 0.06em;
}
.autohub-dealer-card__listings-link {
	width: 100%;
	justify-content: center;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.autohub-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: autohubFadeIn 0.15s ease;
	backdrop-filter: blur(2px);
}
.autohub-modal__body .autohub-lead-form-wrap button.autohub-btn.autohub-btn-primary.autohub-lead-submit {
    color: #fff;
    padding: 15px;
}
.autohub-modal {
	background: var(--ah-white);
	border-radius: var(--ah-radius-xl);
	box-shadow: var(--ah-shadow-lg);
	width: 100%;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	animation: autohubSlideUp 0.2s ease;
	position: relative;
	padding: 28px;
}
.autohub-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.autohub-modal__title {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--ah-gray-900);
	margin: 0;
	letter-spacing: -0.01em;
}
.autohub-modal__close {
	background: var(--ah-gray-100);
	border: none;
	font-size: 1.2rem;
	color: var(--ah-gray-500);
	cursor: pointer;
	padding: 0;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--ah-transition), color var(--ah-transition);
	line-height: 1;
	flex-shrink: 0;
}
.autohub-modal__close:hover {
	background: var(--ah-gray-200);
	color: var(--ah-gray-900);
}

@keyframes autohubFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes autohubSlideUp {
	from { transform: translateY(20px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
#autohub-toast-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}
.autohub-toast {
	background: var(--ah-gray-900);
	color: var(--ah-white);
	padding: 12px 18px;
	border-radius: var(--ah-radius);
	font-size: 0.875rem;
	font-weight: 600;
	font-family: var(--ah-font);
	box-shadow: var(--ah-shadow-lg);
	pointer-events: auto;
	max-width: 320px;
	animation: autohubToastIn 0.25s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}
.autohub-toast--success { background: var(--ah-success); }
.autohub-toast--error   { background: var(--ah-danger); }
.autohub-toast--warning { background: var(--ah-warning); }
.autohub-toast--info    { background: var(--ah-info); }
.autohub-toast.autohub-toast--hiding {
	animation: autohubToastOut 0.25s ease forwards;
}

/* Favorites toast (#autohub-toast) — fixed, bottom-center, slide up on show.
   Class names match favorites.js: .autohub-toast-visible / -success / -error. */
#autohub-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%) translateY(16px);
	z-index: 100000;
	max-width: min(90vw, 360px);
	justify-content: center;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	animation: none;
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
#autohub-toast.autohub-toast-visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}
#autohub-toast.autohub-toast-success { background: var(--ah-success); }
#autohub-toast.autohub-toast-error   { background: var(--ah-danger); }
@keyframes autohubToastIn {
	from { opacity: 0; transform: translateX(20px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes autohubToastOut {
	from { opacity: 1; transform: translateX(0); }
	to   { opacity: 0; transform: translateX(20px); }
}

/* --------------------------------------------------------------------------
   Form basics
   -------------------------------------------------------------------------- */
.autohub-form-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 16px;
}
.autohub-form-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ah-gray-700);
}
.autohub-form-input,
.autohub-form-select,
.autohub-form-textarea {
	padding: 9px 12px;
	border: 1.5px solid var(--ah-gray-300);
	border-radius: var(--ah-radius);
	font-size: 0.9rem;
	font-family: var(--ah-font);
	color: var(--ah-gray-800);
	background: var(--ah-white);
	transition: border-color var(--ah-transition), box-shadow var(--ah-transition);
	width: 100%;
}
.autohub-form-input:focus,
.autohub-form-select:focus,
.autohub-form-textarea:focus {
	outline: none;
	border-color: var(--ah-primary);
	box-shadow: 0 0 0 3px var(--ah-primary-soft);
}
.autohub-form-textarea {
	resize: vertical;
	min-height: 100px;
}
.autohub-form-error {
	font-size: 0.8rem;
	color: var(--ah-danger);
}

/* --------------------------------------------------------------------------
   No results
   -------------------------------------------------------------------------- */
.autohub-no-results {
	text-align: center;
	padding: 60px 20px;
	color: var(--ah-gray-500);
	grid-column: 1 / -1;
}
.autohub-no-results p {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Contact modal (Send Inquiry + chat / upgrade)
   -------------------------------------------------------------------------- */
.autohub-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: autohubModalFade 0.18s ease;
}
@keyframes autohubModalFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.autohub-modal[hidden] { display: none; }
.autohub-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.62);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
/* Centered dialog */
.autohub-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	max-height: 88vh;
	overflow-y: auto;
	background: var(--ah-white);
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	animation: autohubModalIn 0.18s ease;
}
@keyframes autohubModalIn {
	from { transform: translateY(10px) scale(0.98); }
	to   { transform: none; }
}
.autohub-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 20px;
	border-bottom: 1px solid var(--ah-gray-200);
	position: sticky;
	top: 0;
	background: var(--ah-white);
}
.autohub-modal__title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--ah-gray-900);
	margin: 0;
	letter-spacing: -0.01em;
}
.autohub-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: var(--ah-gray-500);
	cursor: pointer;
	border-radius: 8px;
	flex-shrink: 0;
	transition: background 0.15s, color 0.15s;
}
.autohub-modal__close:hover { background: var(--ah-gray-100); color: var(--ah-gray-900); }
.autohub-modal__body {
	padding: 20px;
}
.autohub-modal__body .autohub-lead-form-wrap { margin: 0; }
.autohub-modal__body .autohub-chat-btn-wrap { margin-top: 16px; }
.autohub-modal__body .autohub-chat-btn { width: 100%; justify-content: center; }
body.autohub-modal-open { overflow: hidden; }

/* Honeypot spam-trap field (ported from inline style). */
.autohub-honeypot { display: none !important; }
