/* Nicks Rejsetilbud – styling til kortkoderne i rejsetilbud-skabelonen.
   Farver falder tilbage på Kadence-paletten. */

:root {
	--nk-accent: var(--global-palette1, #cc3239);
	--nk-accent-hover: var(--global-palette2, #ae2930);
	--nk-ink: var(--global-palette3, #1d1d1f);
	--nk-grey: var(--global-palette7, #e8e8e8);
}

/* Tomme kortkode-widgets fylder ikke noget */
.elementor-widget-shortcode:has(> .elementor-widget-container > .elementor-shortcode:empty),
.elementor-widget-shortcode:has(> .elementor-shortcode:empty) { display: none; }

/* ---------- Mærker ---------- */
.nk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nk-tag {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	background: #fff;
	color: var(--nk-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}
.nk-tag--accent { background: var(--nk-accent); color: #fff; }
.nk-tag--dark { background: var(--nk-ink); color: #fff; }

/* ---------- Brødtekst-blokke ---------- */
.nk-intro { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.55; color: var(--nk-ink); }

.nk-block { margin: 0; }
.nk-block__title { margin: 0 0 12px; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--nk-ink); }
.nk-block p { margin: 0 0 8px; }
.nk-block p:last-child { margin-bottom: 0; }

.nk-list { margin: 0; padding: 0; list-style: none; }
.nk-list li { position: relative; margin: 0 0 8px; padding-left: 28px; line-height: 1.5; }
.nk-list li:last-child { margin-bottom: 0; }
.nk-list--check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--nk-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
/* Oplevelser i to spalter på større skærme */
@media (min-width: 768px) {
	.nk-oplevelser .nk-list { columns: 2; column-gap: 32px; }
	.nk-oplevelser .nk-list li { break-inside: avoid; }
}

.nk-vidste-du { padding: 20px 24px; border-left: 4px solid var(--nk-accent); border-radius: 0 8px 8px 0; background: #fff; }

.nk-link { color: var(--nk-accent); font-weight: 600; text-decoration: none; }
.nk-link:hover { color: var(--nk-accent-hover); }

/* ---------- Infoboks ---------- */
.nk-box { font-size: 15px; line-height: 1.55; color: var(--nk-ink); }
.nk-price { display: flex; flex-direction: column; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--nk-grey); }
.nk-price__from { font-size: 13px; font-weight: 500; opacity: .7; }
.nk-price__value { font-size: 34px; font-weight: 800; line-height: 1.15; color: var(--nk-accent); }
.nk-price__note { font-size: 13px; opacity: .7; }
.nk-box__title { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.nk-box__extra, .nk-box__note { margin-top: 16px; }
.nk-box__extra p:last-child { margin-bottom: 0; }
.nk-legacy p { margin: 0 0 14px; }
.nk-legacy p:last-child { margin-bottom: 0; }
.nk-legacy a { color: var(--nk-accent); }

/* ---------- Rejsebreve ---------- */
.nk-letters { margin: 0; padding: 0; list-style: none; }
.nk-letter { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--nk-grey); }
.nk-letter:first-child { border-top: 0; padding-top: 0; }
.nk-letter__img { flex: 0 0 56px; width: 56px; height: 56px; overflow: hidden; border-radius: 8px; background: var(--nk-grey); }
.nk-letter__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nk-letter__title { display: block; color: var(--nk-ink); font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.nk-letter__title:hover { color: var(--nk-accent); }
.nk-letter__date { display: block; margin-top: 2px; font-size: 12.5px; opacity: .65; }
.nk-rejsebreve .nk-block__title { font-size: 20px; }

/* ---------- Hotel og guide ---------- */
.nk-stars { margin-right: 6px; color: #f5b400; letter-spacing: 1px; }
.nk-price__text { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--nk-accent); }
.nk-box__section + .nk-box__section { margin-top: 16px; }
.nk-box__section p { margin: 0; }

/* ---------- Kategorisider ---------- */
.nk-cat-intro { max-width: 720px; font-size: 18px; line-height: 1.6; }
.nk-cat-intro p { margin: 0 0 10px; }
.nk-cat-intro p:last-child { margin-bottom: 0; }
.nk-subcats { display: flex; flex-wrap: wrap; gap: 8px; }
.nk-subcat {
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
}
.nk-subcat:hover, .nk-subcat:focus-visible { border-color: var(--nk-accent); background: var(--nk-accent); color: #fff; }
.nk-cat-hero { background-color: var(--nk-ink); background-position: center; background-size: cover; }
.elementor-widget.nk-style-only { position: absolute; width: 0; height: 0; margin: 0 !important; overflow: hidden; }

/* ---------- Landingsside: kort med kategoriens indlæg ---------- */
.nk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 1024px) { .nk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .nk-grid { grid-template-columns: 1fr; } }
.nk-card { margin: 0; }
.nk-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--nk-grey); }
.nk-card__img img { display: block; width: 100%; height: 100% !important; max-width: none; object-fit: cover; transition: transform .4s ease; }
.nk-card:hover .nk-card__img img { transform: scale(1.04); }
.nk-card__title { margin: 12px 0 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.nk-card__title a { color: var(--nk-ink); text-decoration: none; }
.nk-card__title a:hover { color: var(--nk-accent); }
.nk-card__price { margin: 4px 0 0; color: var(--nk-accent); font-size: 14px; font-weight: 700; }
.nk-kategori-indlaeg .nk-block__title { margin-bottom: 20px; font-size: 26px; }
/* Rækker uden kort (fx før der er tags) – sektionen fylder ikke noget */
.nk-rows:not(:has(.svrk)) { display: none; }

/* =========================================================
   Indlægsskabelon (design 28. okt.): billedheader, fast venstre kolonne,
   indlæggets egen tekst og "Nyttig information"-kort
   ========================================================= */

/* Brødkrummer i billedheaderen */
.nk-crumbs { font-size: 13px; line-height: 1.4; color: #fff; }
.nk-crumbs a, .nk-crumbs span { color: #fff; }
.nk-crumbs a:hover { color: #fff; text-decoration: underline; }

/* Venstre kolonne bliver stående, mens man scroller (kun når kolonnerne står side om side) */
@media (min-width: 1025px) {
	.nk-side > .elementor-widget-wrap,
	.nk-side > .elementor-column-wrap > .elementor-widget-wrap { position: sticky; top: 16px; align-self: flex-start; }
}

/* Indlæggets egen tekst – vises ordret, kun typografien styres her */
.nk-prose { max-width: 68ch; font-size: 16.5px; line-height: 1.75; color: var(--nk-ink); }
.nk-prose p { margin: 0 0 1.1em; }
.nk-prose strong { font-weight: 700; }
.nk-prose a { color: var(--nk-accent); text-decoration: underline; text-underline-offset: 3px; }
.nk-prose a:hover { color: var(--nk-accent-hover); }
.nk-prose img { display: inline-block; vertical-align: middle; margin-right: 6px; }
/* Afsnitsskift fra Joomla-indholdet – gælder alle skabeloner */
.nicks-paraspacer { display: block; height: 1.1em; }

/* "Nyttig information"-kortet */
.nk-infokort .nk-box { font-size: 14.5px; line-height: 1.6; }
.nk-infokort .nk-legacy p { margin: 0 0 14px; }

/* Rejsebreve som hvide kort på grå bund */
.nk-letter { padding: 8px; margin-bottom: 8px; border: 0; border-radius: 8px; background: #fff; }
.nk-letter:first-child { padding-top: 8px; }
.nk-letter:last-child { margin-bottom: 0; }
.nk-letter__img { flex-basis: 48px; width: 48px; height: 48px; border-radius: 6px; }
.nk-letter__title { font-size: 13.5px; }
.nk-letter__date { font-size: 12px; }
.nk-rejsebreve .nk-block__title { font-size: 16px; margin-bottom: 10px; }


/* Oversigtssider (teasers): knapper øverst, kort og tekst */
.nk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px 7px 8px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.nk-chip:hover { border-color: #fff; background: #fff; color: var(--nk-ink); }
.nk-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.nk-tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nk-tcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3e3e3; border-radius: 10px; background: #fff; scroll-margin-top: 16px; }
.nk-tcard__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px; color: var(--nk-ink); text-decoration: none; }
.nk-tcard__head img { flex: none; width: 80px; height: 56px; border-radius: 6px; object-fit: cover; }
.nk-tcard__head b { font-size: 17px; line-height: 1.2; }
a.nk-tcard__head:hover b { color: var(--nk-accent); }
.nk-tcard ul { flex: 1; margin: 0; padding: 0 6px; list-style: none; }
.nk-tcard li { margin: 0; }
.nk-tcard li a { display: flex; align-items: baseline; gap: 10px; padding: 9px 8px; border-top: 1px solid #efefef; color: var(--nk-ink); font-size: 14px; text-decoration: none; }
.nk-tcard li a:hover { background: #f6f6f6; }
.nk-tcard li a:hover .nk-tcard__name { color: var(--nk-accent); }
.nk-tcard__name { flex: 1; min-width: 0; }
.nk-tcard__price { color: #5f6166; font-size: 12.5px; white-space: nowrap; }
.nk-tcard__price b { color: var(--nk-ink); font-size: 14px; }
.nk-tcard__more { color: var(--nk-accent); font-weight: 700; }
.nk-tcard__all { display: flex; justify-content: space-between; align-items: center; margin: 6px 14px 14px; padding: 10px 12px; border-radius: 6px; background: var(--nk-grey); color: var(--nk-ink); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.nk-tcard__all:hover { background: var(--nk-ink); color: #fff; }
@media (max-width: 1180px) { .nk-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nk-tgrid { grid-template-columns: 1fr; } }

.nk-teaser-tekst { max-width: 68ch; color: var(--nk-ink); font-size: 16.5px; line-height: 1.75; }
.nk-teaser-tekst p { margin: 0 0 1.1em; }
.nk-teaser-tekst h2, .nk-teaser-tekst h3 { margin: 0 0 .6em; font-size: 26px; line-height: 1.2; }
.nk-teaser-tekst a { color: var(--nk-accent); text-decoration: underline; text-underline-offset: 3px; }
.nk-teaser-tekst img { max-width: 100%; height: auto; }

/* Oversigtslinje (JetEngine-listen "Oversigtslinje"): navn til venstre, pris på én linje til højre */
.nk-tline > .elementor-container { display: flex; align-items: center; gap: 10px; }
.nk-tline > .elementor-container > .elementor-column { width: auto !important; }
.nk-tline > .elementor-container > .elementor-column:first-child { flex: 1; min-width: 0; }
.nk-tline__price, .nk-tline__price * { white-space: nowrap; }
.nk-tline__price b { color: var(--nk-ink); font-size: 14px; }

/* ---------- "Nyttig information"-boksen ([nk_nyttig] og rejsetilbud) ---------- */
.nk-of { color: #102A3B; font-size: 16px; line-height: 1.65; }
.nk-of p { margin: 0 0 15px; }
.nk-of h2 { margin: 0 0 10px; color: #051E32; font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.nk-of-sum { margin: 22px 0 0; padding: 22px; border: 1px solid #DFE4E5; border-radius: 8px; background: #fff; }
.nk-of-sum h2 { margin-bottom: 12px; line-height: 1.45; letter-spacing: -.02em; }
.nk-of-sum h3 { margin: 0 0 10px; color: #051E32; font-size: 16px; font-weight: 700; line-height: 1.3; }
.nk-of-check { margin: 0; padding: 0; list-style: none; }
.nk-of-check li { position: relative; margin: 0; padding: 4px 0 4px 23px; font-size: 14px; line-height: 1.45; }
.nk-of-check li:before { content: "✓"; position: absolute; left: 0; top: 4px; color: #C90000; font-weight: 700; }
.nk-of-simpel h3 { margin: 18px 0 6px; }
.nk-of-simpel h2 + h3 { margin-top: 0; }
.nk-of-simpel p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.nk-of-simpel img { display: inline-block; vertical-align: middle; margin-right: 6px; }
@media (max-width: 767px) {
	.nk-of h2 { font-size: 20px; }
	.nk-of-sum { padding: 18px; }
}

/* Nyttig information: "Pris", "Priser" og "Pris-eksempel" ved siden af "Rejsen inkluderer" (kun når de står lige efter hinanden). */
.nk-of-simpel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 28px; }
.nk-of-simpel > * { grid-column: 1 / -1; }
.nk-of-simpel > .nk-ny-rejsen-inkluderer:has(+ [class*="nk-ny-pris"]) { grid-column: 1; }
.nk-of-simpel > .nk-ny-rejsen-inkluderer + [class*="nk-ny-pris"] { grid-column: 2; padding-left: 24px; border-left: 1px solid #E4E9E9; }
.nk-of-simpel > .nk-ny > h3:first-child { margin-top: 18px; }
.nk-of-simpel > h2 + .nk-ny > h3:first-child,
.nk-of-simpel > .nk-ny-rejsen-inkluderer + [class*="nk-ny-pris"] > h3:first-child { margin-top: 0; }
@media (max-width: 767px) {
	.nk-of-simpel { display: block; }
	.nk-of-simpel > .nk-ny-rejsen-inkluderer + [class*="nk-ny-pris"] { padding: 0; border: 0; }
	.nk-of-simpel > .nk-ny-rejsen-inkluderer + [class*="nk-ny-pris"] > h3:first-child { margin-top: 18px; }
}
