/*
 * Proadign Dealer Engine — Shared Frontend Styles
 *
 * Contains shared single-listing navigation, details,
 * pricing, badges, specifications, and responsive styles.
 */


/* ==================================================
   Listing Navigation
================================================== */

.pde-listing-navigation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	margin: 0 0 24px;
	padding: 0;
}

.pde-listing-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;

	font-size: 0.9rem;
	line-height: 1.4;
}

.pde-listing-breadcrumb-link {
	color: var(--pde-color-heading);
	font-weight: 400;
	text-decoration: none;

	transition: color 0.2s ease;
}

.pde-listing-breadcrumb-link:hover,
.pde-listing-breadcrumb-link:focus-visible {
	color: var(--pde-color-link);
}

.pde-listing-home-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	font-size: 15px;
	line-height: 1;
	text-decoration: none;
}

.pde-listing-breadcrumb-separator {
	margin: 0 4px;

	color: var(--pde-color-text-light);
	font-weight: 400;
}

.pde-listing-breadcrumb-current {
	color: var(--pde-color-heading);
	font-weight: 600;
}

.pde-listing-back-link {
	margin-left: auto;

	color: var(--pde-color-heading);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.pde-listing-back-link:hover,
.pde-listing-back-link:focus-visible {
	color: var(--pde-color-link);
}


/* ==================================================
   Listing Details — Base
================================================== */

.pde-listing-details,
.pde-listing-details * {
	box-sizing: border-box;
}

.pde-listing-details {
	width: 100%;
	margin: 0;
	padding: 0;

	text-align: left;
}


/* ==================================================
   Listing Details — Manufacturer Logo
================================================== */

.pde-listing-details-logo {
	width: 100%;
	margin: 0;
	padding: 0;

	text-align: left;
}

.pde-listing-details-logo img {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 72px;
	margin: 0;
	padding: 0;

	object-fit: contain;
	object-position: left center;
}


/* ==================================================
   Listing Details — Title
================================================== */

.pde-listing-details-title {
	margin: 8px 0 0;

	color: var(--pde-color-heading);
	font-size: clamp(2rem, 3vw, 2.5rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
}

.pde-listing-title-main {
	display: block;
	white-space: nowrap;
}

.pde-listing-title-model {
	display: block;
	white-space: nowrap;
}

/* ==================================================
   Listing Status
================================================== */

.pde-listing-status {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;

	margin-top: 12px;

	font-size: 0.78rem;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.pde-status-type {
	color: var(--pde-color-heading);
	font-weight: 800;
}

.pde-status-divider {
	color: var(--pde-color-primary);
	font-weight: 800;
}

.pde-status-availability {
	color: var(--pde-color-text-muted);
	font-weight: 700;
}


/* ==================================================
   Listing Price Panel
================================================== */

.pde-listing-price-panel {
	margin: 24px 0 28px;
}

.pde-listing-price-label {
	margin-bottom: 4px;

	color: var(--pde-color-text-light);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pde-listing-price-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 18px;

	margin-bottom: 10px;
}

.pde-listing-price {
	color: var(--pde-color-price);
	font-size: clamp(1.2rem, 1.6vw, 1.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

/*
 * Reduce the visual weight of "Call for Price"
 * while keeping actual prices prominent.
 */
.pde-listing-price.is-call-for-price {
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.15;
}

.pde-listing-price-message {
	margin: 0;

	color: var(--pde-color-text-muted);
	font-size: 16px;
	line-height: 1.7;
}

.pde-listing-financing-link {
	color: var(--pde-color-text-muted);
	font-weight: 700;
	text-decoration: none;

	transition: color 0.2s ease;
}

.pde-listing-financing-link:hover,
.pde-listing-financing-link:focus-visible {
	color: var(--pde-color-link);
	text-decoration: underline;
}


/* ==================================================
   Price Summary
================================================== */

.pde-price-summary {
	margin: 0 0 12px;
}

.pde-price-summary-label {
	color: var(--pde-color-text-muted);

	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.10em;
	line-height: 1;
	text-transform: uppercase;
}

.pde-price-summary-accent {
	width: 42px;
	height: 3px;
	margin-top: 8px;

	border-radius: var(--pde-radius-pill);
	background: var(--pde-color-section-accent);
}


/* ==================================================
   Listing Phone
================================================== */

.pde-listing-phone {
	margin-top: 18px;
	padding-top: 4px;
}

.pde-listing-phone a {
	display: inline-flex;
	align-items: center;
	gap: 8px;

	color: var(--pde-color-link);
	font-size: 2rem;
	font-weight: 700;
	text-decoration: none;

	transition: color 0.2s ease;
}

.pde-listing-phone a:hover,
.pde-listing-phone a:focus-visible {
	color: var(--pde-color-link-hover);
	text-decoration: none;
}

.pde-listing-phone-icon {
	font-size: 1rem;
	line-height: 1;
}


/* ==================================================
   Listing Badges
================================================== */

.pde-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 3px 10px;

	border: 2px solid var(--pde-badge-default-border);
	border-radius: var(--pde-radius-small);

	background: var(--pde-badge-default-bg);

	color: var(--pde-badge-default-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.pde-badge-available {
	background: var(--pde-badge-default-bg);
	border-color: var(--pde-badge-default-border);
	color: var(--pde-badge-default-text);
}

.pde-badge-new-arrival {
	background: var(--pde-badge-new-bg);
	border-color: var(--pde-badge-new-border);
	color: var(--pde-badge-new-text);
}

.pde-badge-sale-pending {
	background: var(--pde-badge-pending-bg);
	border-color: var(--pde-badge-pending-border);
	color: var(--pde-badge-pending-text);
}

.pde-badge-just-reduced {
	background: var(--pde-badge-reduced-bg);
	border-color: var(--pde-badge-reduced-border);
	color: var(--pde-badge-reduced-text);
}

.pde-badge-catalog {
	background: var(--pde-badge-catalog-bg);
	border-color: var(--pde-badge-catalog-border);
	color: var(--pde-badge-catalog-text);
}

.pde-badge-spokane {
	background: var(--pde-badge-spokane-bg);
	border-color: var(--pde-badge-spokane-border);
	color: var(--pde-badge-spokane-text);
}

.pde-badge-sold {
	background: var(--pde-badge-sold-bg);
	border-color: var(--pde-badge-sold-border);
	color: var(--pde-badge-sold-text);
}


/* ==================================================
   Listing Specifications
================================================== */

.pde-listing-specifications {
	width: 100%;
	margin: 28px 0;

	overflow: hidden;

	border: 1px solid var(--pde-color-border);
	border-radius: var(--pde-radius-medium);

	background: var(--pde-color-background);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pde-listing-specifications-title {
	margin: 0;
	padding: 11px 16px;

	background: var(--pde-color-primary);

	color: var(--pde-color-white);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
	text-transform: uppercase;
}

.pde-listing-specifications-list {
	margin: 0;
	padding: 0;
}

.pde-listing-specification-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	min-height: 48px;
	padding: 11px 16px;

	border-bottom: 1px solid var(--pde-color-border-light);
}

.pde-listing-specification-row:last-child {
	border-bottom: 0;
}

.pde-listing-specification-label {
	flex: 0 0 42%;

	color: var(--pde-color-text-muted);
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.35;
}

.pde-listing-specification-value {
	flex: 1;

	color: var(--pde-color-text);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: right;
}


/* ==================================================
   Responsive — Large Tablet / Small Laptop
================================================== */

@media (max-width: 1150px) {

	.pde-listing-hero-row {
		display: block !important;
	}

	.pde-listing-hero-row > .et_pb_column {
		width: 100% !important;
		margin-right: 0 !important;
	}

	.pde-listing-details {
		margin-top: 20px;
	}

	.pde-listing-title-main,
	.pde-listing-title-model {
		display: inline;
		white-space: normal;
	}

	.pde-listing-title-main {
		font-size: 1.75rem;
		font-weight: 800;
	}

	.pde-listing-title-model {
		font-size: 1.35rem;
		font-weight: 700;
	}

	.pde-listing-title-main::after {
		content: " ";
	}

	.pde-listing-details-title {
		white-space: nowrap;
		font-size: clamp(1.4rem, 4vw, 2rem);
		line-height: 1.1;
	}

	.pde-listing-navigation {
		display: block;
	}

	.pde-listing-breadcrumbs {
		margin-bottom: 10px;
	}

	.pde-listing-back-link {
		display: inline-block;
		margin-left: 0;

		font-weight: 700;
	}

}


/* ==================================================
   Responsive — Mobile
================================================== */

@media (max-width: 767px) {

	.pde-listing-details-logo img {
		max-height: 72px;
	}

	.pde-listing-details-title {
		font-size: clamp(1.2rem, 5vw, 1.75rem);
	}

	.pde-listing-specification-row {
		gap: 12px;
		padding: 11px 14px;
	}

	.pde-listing-specification-label {
		flex-basis: 44%;
	}

	.pde-listing-specification-value {
		font-size: 0.88rem;
	}

}