/* Digital library model page — layout-only custom rules.
 * Colors/spacing/typography: prefer Bootstrap + theme utilities
 * (text-green, bg-green, bg-dark-green, bg-light-gray, bg-mid-gray, text-muted, etc.).
 */

/* Same idea as single-offers `.custom-container`: full width on large
 * laptops, capped Bootstrap container max-width on xl+/4K. */
@media (min-width: 768px) and (max-width: 1399px) {
	.nk-dl-page.custom-container {
		max-width: none !important;
		padding-left: 2.2rem !important;
		padding-right: 2.2rem !important;
	}
}

/* Clear sticky header + anchor bar when jumping to in-page links. */
.nk-dl-page [id^='nk-dl-'] {
	scroll-margin-top: 10rem;
}

/*
 * Extra space before section titles/blocks on top of the column gap.
 * Keep it modest so title ↔ following content stay close.
 */
.nk-dl-main-col > .nk-dl-section-title,
.nk-dl-main-col > .nk-dl-section-block {
	padding-top: 1.25rem;
}

.nk-dl-main-col > .nk-dl-section-title {
	margin-bottom: 0;
}

.nk-dl-main-col > .nk-dl-section-title + *,
.nk-dl-main-col > .nk-dl-section-title + .table-responsive {
	margin-top: 0;
}

.nk-dl-main-col > :first-child.nk-dl-section-title,
.nk-dl-main-col > :first-child.nk-dl-section-block {
	padding-top: 0;
}

.nk-dl-hero {
	position: relative;
	border-radius: 1.25rem;
	overflow: hidden;
	min-height: 420px;
}

.nk-dl-hero__image {
	min-height: 420px;
	background: #fff;
	border: 1px solid #eee;
}

.nk-dl-hero__image--has-image {
	background-size: cover;
	background-position: center;
	border: 0;
}

.nk-dl-hero--has-image .nk-dl-hero__overlay {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.nk-dl-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.nk-dl-hero__content {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.nk-dl-hero__subtitle {
	letter-spacing: 0.14em;
}

.nk-dl-hero-cards {
	margin-top: -4.5rem;
	position: relative;
	z-index: 1;
}

.nk-dl-hero-card {
	border-radius: 1rem;
	overflow: auto;
}

.nk-dl-specs-text::after {
	content: '';
	display: table;
	clear: both;
}

/*
 * Theme header inline CSS sets p { font-size: 1.2rem } (and 1.1rem !important under 991px).
 * Parent utility classes do not win — target nested paragraphs explicitly.
 * Body copy matches single-offers: fw-light (AcariSans 300).
 */
.nk-dl-page .fs-6b p,
.nk-dl-page p.fs-6b {
	font-size: 1.15rem !important;
}

.nk-dl-page .fs-7b p,
.nk-dl-page p.fs-7b {
	font-size: 0.95rem !important;
}

.nk-dl-page .fs-7 p,
.nk-dl-page p.fs-7 {
	font-size: 0.9rem !important;
}

.nk-dl-page .fw-light,
.nk-dl-page .fw-light p {
	font-weight: 300;
}

/* Theme sets p { margin-bottom: 0 !important }; restore spacing in multi-paragraph blocks. */
.nk-dl-page .fs-6b > p + p,
.nk-dl-page .fs-7b > p + p,
.nk-dl-specs-text > p + p {
	margin-top: 1rem !important;
}

.nk-dl-specs-shape-image {
	float: right;
	width: min(380px, 480px);
	max-width: 100%;
	height: auto;
	margin: 0 0 1rem 2rem;
	margin-top: 20%;
	border-radius: 0.75rem;
	shape-margin: 1.25rem;
	shape-image-threshold: 0.5;
	shape-outside: inset(0 round 0.75rem);
}

.nk-dl-specs-text .nk-dl-image-placeholder {
	float: right;
	width: min(380px, 480px);
	max-width: 100%;
	min-height: 220px;
	margin: 0 0 1rem 2rem;
	margin-top: 20%;
}

.nk-dl-image-placeholder {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 0.75rem;
}

.nk-dl-brand-logo {
	min-width: 150px;
	width: 100%;
	max-width: 200px;
	max-height: 120px;
	overflow: hidden;
	background: transparent;
}

.nk-dl-brand-logo:empty {
	display: none;
}

.nk-dl-brand-logo .nk-dl-brand-intro__logo-img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 120px;
	object-fit: contain;
	object-position: left center;
}

.nk-dl-ai-input {
	background: rgba(255, 255, 255, 0.92);
	border: 0;
	border-radius: 2rem;
	padding: 0.85rem 3.25rem 0.85rem 1.35rem;
	color: #006b3f;
	font-size: 0.95rem;
}

.nk-dl-ai-input::placeholder {
	color: #4dbc4d;
	opacity: 0.85;
}

.nk-dl-ai-input:focus {
	background: #fff;
	box-shadow: none;
	color: #275e27;
}

.nk-dl-ai-box {
	border-radius: 1.75rem;
	background: linear-gradient(90deg, #4dbc4d 0%, #006b3f 100%);
}

.nk-dl-ai-box__stars {
	line-height: 0;
}

.nk-dl-ai-send-btn {
	position: absolute;
	top: 50%;
	right: 0.85rem;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.nk-dl-ai-send-btn svg {
	display: block;
	width: 22px;
	height: 22px;
}

.nk-dl-ai-send-btn:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.nk-dl-tags {
	gap: 0.65rem 1rem;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

.nk-dl-tag {
	display: inline-block;
	font-size: 0.95rem;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.nk-dl-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}

.nk-dl-gallery {
	border-radius: 1rem;
}

.nk-dl-gallery-grid .nk-dl-image-placeholder,
.nk-dl-gallery-grid .nk-dl-gallery-item {
	aspect-ratio: 4 / 3;
	border-radius: 0.75rem;
}

.nk-dl-gallery-grid .nk-dl-gallery-item img {
	display: block;
	object-fit: cover;
}

.nk-dl-data-speaks {
	border-radius: 1rem;
}

.nk-dl-sidebar-ad {
	border-radius: 1rem;
}

.nk-dl-latest-news__item-title {
	color: #000;
}

.nk-dl-latest-news__item:hover .nk-dl-latest-news__item-title {
	color: #4DBC4D;
}

.nk-dl-latest-news__thumb {
	width: 72px;
	height: 72px;
	border-radius: 0.65rem;
}

.nk-dl-latest-news__thumb img {
	display: block;
	object-fit: cover;
}

/* Offer cards in the main column — same typography as /offers/ listings. */
.nk-dl-model-offers__image {
	width: 100%;
	height: 320px;
	position: relative;
}

.nk-dl-model-offers__image img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

@media (min-width: 992px) {
	.nk-dl-model-offers__image {
		height: 380px;
	}
}

.nk-dl-model-offers .newOffers {
	font-size: 1rem;
	font-weight: 400;
}

.nk-dl-model-offers .newOffers .specs-list span {
	font-weight: 400;
}

.nk-dl-model-offers .newOffers .offer-card-title h5 {
	font-weight: 500;
}

.nk-dl-specs-table {
	border-collapse: separate;
	border-spacing: 0;
}

.nk-dl-specs-table thead th {
	background-color: #e8f5e9;
	color: #4dbc4d;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 0;
	padding: 0.8rem 1rem;
	white-space: nowrap;
}

.nk-dl-specs-table thead th:first-child {
	border-radius: 15px 0 0 15px;
}

.nk-dl-specs-table thead th:last-child {
	border-radius: 0 15px 15px 0;
}

.nk-dl-specs-table tbody td {
	border-bottom: 1px solid #eee;
	padding: 0.95rem 1.15rem;
	vertical-align: middle;
}

.nk-dl-specs-table tbody tr:last-child td {
	border-bottom: 0;
}

.nk-dl-specs-detail__row {
	border-bottom: 1px solid #eee;
	padding: 0.75rem 0;
	font-size: 0.95rem;
}

.nk-dl-specs-detail__row:last-child {
	border-bottom: 0;
}

.nk-dl-prices-market__body p,
.nk-dl-prices-market__body {
	font-size: 1.2rem !important;
	line-height: 1.65;
}

.nk-dl-pros-cons__box--pros {
	background-color: #e8f5e9;
}

.nk-dl-pros-cons__box--cons {
	background-color: #fde8e0;
}

.nk-dl-pros-cons__box {
	border-radius: 1rem;
}

.nk-dl-pros-cons__heading--cons {
	color: #fd7e14;
}

.nk-dl-pros-cons__icon,
.nk-dl-prices-market__icon {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.2rem;
	display: block;
	object-fit: contain;
}

.nk-dl-brand-dealers__list {
	padding-left: 35px !important;
}

.nk-dl-brand-dealers__more {
	padding-left: 35px;
}

.nk-dl-brand-dealers__link {
	color: #000;
}

.nk-dl-brand-dealers__link:hover {
	color: #4DBC4D !important;
	text-decoration: underline;
}

.nk-dl-generations__item {
	border-bottom: 1px solid #eee;
	padding-bottom: 1.75rem;
	margin-bottom: 1.75rem;
}

.nk-dl-generations__item:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.nk-dl-generations__item .row > [class*='col-'] {
	min-width: 0;
}

.nk-dl-generations__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 991.98px) {
	.nk-dl-hero-cards {
		margin-top: 1.5rem;
	}
}

@media (max-width: 767.98px) {
	.nk-dl-specs-shape-image,
	.nk-dl-specs-text .nk-dl-image-placeholder {
		float: none;
		width: 100%;
		margin: 0 0 1rem;
		shape-outside: none;
		shape-margin: 0;
	}
}
