/*
 * Delight Kennel – elrendezés. Színek, betűk a kit változóiból (var(--dl-*)) jönnek.
 * Az Elementor V4 a global class CSS-t csak akkor teszi ki, ha az oldalon egy V4 elem
 * használja az osztályt, ezért a plugin saját blokkjain belül a kártya-osztályokat
 * itt önállóan is definiáljuk (:where = alacsony specificitás, a kit felülírhatja).
 */

/* --- Önálló kártya-alapok a plugin blokkjain belül ------------------- */
:where(.dl-grid, .dl-gallery, .dl-hero, .dl-litters) .dl-pic {
	position: relative;
	overflow: hidden;
	background: var(--dl-bg-2);
	min-width: 0;
}
:where(.dl-grid, .dl-gallery, .dl-hero) .dl-pic-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
:where(.dl-grid, .dl-gallery) .dl-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 20px 24px;
	background: rgba(18, 19, 20, .72);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--dl-fg);
}
:where(.dl-grid, .dl-gallery, .dl-hero, .dl-litters) :is(.dl-display, .dl-h3) {
	font-family: var(--dl-font-display);
	font-weight: 300;
	line-height: 1.1;
	margin: 0;
}
:where(.dl-grid, .dl-litters) .dl-h3 { font-size: var(--dl-h3); }
:where(.dl-grid, .dl-gallery) .dl-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: var(--dl-font-text);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dl-accent);
}
:where(.dl-grid, .dl-gallery) .dl-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
:where(.dl-grid, .dl-gallery, .dl-hero, .dl-litters, .dl-inquiry) .dl-cap {
	margin: 0;
	font-family: var(--dl-font-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--dl-accent);
}
@media (max-width: 767px) {
	:where(.dl-grid, .dl-gallery) .dl-caption { padding: 14px 16px; }
	:where(.dl-grid, .dl-gallery, .dl-hero, .dl-litters, .dl-inquiry) .dl-cap { font-size: 14px; }
}

/* --- Hero ------------------------------------------------------------ */
.dl-hero {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.dl-hero__slide {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, transform .9s ease, visibility 0s linear .9s;
}
.dl-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .9s ease, transform .9s ease, visibility 0s;
}
.dl-hero__slide:only-of-type,
.dl-hero:not([aria-roledescription]) .dl-hero__slide {
	position: relative;
	flex: 1 1 auto;
	opacity: 1;
	visibility: visible;
}
.dl-hero__slide picture { display: contents; }
.dl-hero__slide .dl-fade { z-index: 1; }
.dl-hero__content {
	position: relative;
	z-index: 2;
	max-width: 980px;
	padding: 0 var(--dl-gutter) 72px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}
.dl-hero__content .dl-text-soft { max-width: 46ch; font-size: 17px; }
.dl-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Csúsztatás */
.dl-hero--slide .dl-hero__slide { transform: translateX(6%); }
.dl-hero--slide .dl-hero__slide.is-active { transform: none; }
.dl-hero--slide .dl-hero__slide.is-leaving { transform: translateX(-6%); }

/* Lassú zoom */
.dl-hero--kenburns .dl-hero__slide .dl-pic-img { transform: scale(1); transition: transform 0s; }
.dl-hero--kenburns .dl-hero__slide.is-active .dl-pic-img {
	transform: scale(1.08);
	transition: transform var(--dl-hero-duration, 7s) linear;
}

.dl-hero__dots {
	position: absolute;
	z-index: 3;
	left: 0;
	bottom: 28px;
	display: flex;
	gap: 8px;
	padding-inline: var(--dl-gutter);
}
.dl-hero__dot {
	width: 28px;
	height: 3px;
	padding: 0;
	border: 0;
	background: var(--dl-fg-2);
	opacity: .5;
	cursor: pointer;
}
.dl-hero__dot.is-active { background: var(--dl-accent); opacity: 1; }
.dl-hero__dot:focus-visible { outline: 2px solid var(--dl-accent); outline-offset: 4px; }

@media (max-width: 767px) {
	.dl-hero { min-height: 92vh; min-height: 92svh; }
	.dl-hero__content { padding-bottom: 32px; gap: 14px; }
	.dl-hero__content .dl-text-soft,
	.dl-hero__ctas .dl-btn-outline { display: none; }
	.dl-hero__dots { bottom: 12px; }
	.dl-hero[aria-roledescription] .dl-hero__content { padding-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	.dl-hero__slide,
	.dl-hero--kenburns .dl-hero__slide.is-active .dl-pic-img { transition: none; transform: none; }
}

/* --- Rácsok ---------------------------------------------------------- */
.dl-grid {
	display: grid;
	grid-template-columns: repeat(var(--dl-grid-cols, 3), minmax(0, 1fr));
	gap: var(--dl-img-gap);
}
.dl-grid__item { position: relative; }
.dl-grid__item[hidden] { display: none; }
.dl-grid__link { display: block; color: inherit; text-decoration: none; }
.dl-grid .dl-pic { aspect-ratio: 4 / 5; }
.dl-grid__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin-bottom: 18px;
}
.dl-grid__filter {
	background: none;
	border: 0;
	padding: 6px 0;
	cursor: pointer;
	color: var(--dl-fg-2);
	border-bottom: 1px solid transparent;
}
.dl-grid__filter.is-active { color: var(--dl-fg); border-bottom-color: var(--dl-accent); }

@media (max-width: 1024px) { .dl-grid { --dl-grid-cols: 2; } }
@media (max-width: 560px) { .dl-grid--dogs { --dl-grid-cols: 1; } }

/* --- Galéria --------------------------------------------------------- */
.dl-gallery {
	display: grid;
	grid-template-columns: repeat(var(--dl-grid-cols, 3), minmax(0, 1fr));
	gap: var(--dl-img-gap);
}
.dl-gallery__item { display: block; aspect-ratio: 1; }
@media (max-width: 767px) { .dl-gallery { --dl-grid-cols: 2; } }

/* --- Almok lista ----------------------------------------------------- */
.dl-litters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dl-line); }
.dl-litters__item a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--dl-line);
	color: inherit;
	text-decoration: none;
}
.dl-litters__item a:hover .dl-display { color: var(--dl-accent); }

/* --- Érdeklődő űrlap ------------------------------------------------- */
.dl-inquiry { display: grid; gap: 16px; max-width: 640px; }
.dl-inquiry__field { display: grid; gap: 6px; }
.dl-inquiry input[type="text"],
.dl-inquiry input[type="email"],
.dl-inquiry input[type="tel"],
.dl-inquiry textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	background: var(--dl-bg-2);
	color: var(--dl-fg);
	border: 1px solid var(--dl-line);
	border-radius: 0;
	font: inherit;
	font-size: 16px; /* iOS ne nagyítson rá */
}
.dl-inquiry input:focus,
.dl-inquiry textarea:focus { outline: none; border-color: var(--dl-accent); }
.dl-inquiry [aria-invalid="true"] { border-color: var(--dl-accent-2); }
.dl-inquiry__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.dl-inquiry__consent input { margin-top: 4px; accent-color: var(--dl-accent); }
.dl-inquiry__consent a { color: inherit; }
.dl-inquiry__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dl-inquiry button[disabled] { opacity: .6; cursor: wait; }
.dl-inquiry__msg:empty { display: none; }
.dl-inquiry.is-sent .dl-inquiry__field,
.dl-inquiry.is-sent .dl-inquiry__consent,
.dl-inquiry.is-sent button,
.dl-inquiry.is-sent .cf-turnstile { display: none; }

/* --- Szekciócím a plugin blokkjai előtt ------------------------------ */
.dl-block-title { margin: 0 0 20px; }

/* --- Adatok tábla (dl_kv) -------------------------------------------- */
.dl-kv { display: flex; flex-direction: column; }
.dl-kv__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--dl-line);
	font-family: var(--dl-font-text);
	font-size: 15px;
}
.dl-kv__k { color: var(--dl-fg-2); flex: 0 0 auto; }
.dl-kv__v { color: var(--dl-fg); font-weight: 600; text-align: right; }
.dl-kv__row--long .dl-kv__v { max-width: 60%; }

/* --- Eredmények (dl_eredmenyek) -------------------------------------- */
.dl-results { display: flex; flex-direction: column; gap: 28px; }
.dl-titles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
:where(.dl-results) .dl-cap-chip { display: inline-block; padding: 6px 10px; border: 1px solid var(--dl-accent); color: var(--dl-accent); }
.dl-results__title:empty { display: none; }
.dl-results__title { margin: 0 0 10px; }
.dl-table-wrap { overflow-x: auto; }
.dl-table { width: 100%; border-collapse: collapse; font-family: var(--dl-font-text); font-size: 15px; color: var(--dl-fg); }
.dl-table th { text-align: left; font-weight: 600; color: var(--dl-fg-2); font-size: 13px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--dl-fg-2); }
.dl-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--dl-line); vertical-align: top; }
.dl-table td:first-child { white-space: nowrap; color: var(--dl-fg-2); }
@media (max-width: 767px) {
	.dl-table thead { display: none; }
	.dl-table, .dl-table tbody, .dl-table tr, .dl-table td { display: block; width: 100%; }
	.dl-table tr { padding: 12px 0; border-bottom: 1px solid var(--dl-line); }
	.dl-table td { border: 0; padding: 2px 0; }
	.dl-table td:last-child { font-weight: 600; }
}

/* --- Családfa (dl_csaladfa) ------------------------------------------ */
.dl-ped-wrap { overflow-x: auto; }
.dl-ped {
	display: grid;
	grid-template-columns: repeat(3, minmax(180px, 1fr));
	grid-template-rows: repeat(8, auto);
	gap: 6px;
	min-width: 560px;
	font-family: var(--dl-font-text);
}
.dl-ped__cell {
	display: flex; flex-direction: column; justify-content: center; gap: 2px;
	padding: 8px 12px;
	background: var(--dl-bg-2);
	border-left: 3px solid var(--dl-line);
}
.dl-ped__cell--sire { border-left-color: var(--dl-accent); }
.dl-ped__cell--dam { border-left-color: var(--dl-accent-2, var(--dl-fg-2)); }
.dl-ped__name { color: var(--dl-fg); font-weight: 600; font-size: 14px; }
.dl-ped__meta { color: var(--dl-fg-2); font-size: 13px; }
@media (max-width: 767px) {
	.dl-ped { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 4px; }
	.dl-ped__cell { padding: 6px 8px; border-left-width: 2px; }
	.dl-ped__name { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
	.dl-ped__meta { font-size: 11px; }
}
