/* =============================================================================
   Home section "rezervacija" (#rezervacija) – intro column + the booking widget [dzb_booking].
   Owned by the Sections 2 agent. Loaded on the home template only, after site.css and the booking widget CSS
   (dzb-booking), so the widget overrides below win at equal specificity.
   Every rule is scoped to .dz-sec--rezervacija. The widget is themed through its own custom properties
   (--dzb-*); only its title block is hidden because the section heading already says the same.
   ============================================================================= */

/* Layout ------------------------------------------------------------------------------ */
/* <picture> is display:contents inside .dz-scope, so its <source> would become an (empty) flex/grid item. */
.dz-sec--rezervacija .dz-rez__widget source { display: none; }

.dz-sec--rezervacija .dz-rez__grid {
	display: grid;
	grid-template-columns: minmax(0, .74fr) minmax(0, 1.46fr);
	gap: 56px;
	align-items: start;
}

/* Intro column. Top-aligned with a fixed offset that centres it against the first widget step (the design's look):
   a centred column would move down whenever the widget grows (next steps) and the browser's scroll anchoring
   would then scroll the page, pushing the widget under the header. */
.dz-sec--rezervacija .dz-rez__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	min-width: 0;
	padding-top: 168px; /* the design's position of the eyebrow: 56 px below the card's top edge */
	overflow-anchor: none;
}
.dz-sec--rezervacija .dz-eyebrow { line-height: 1.55; } /* as in the design (22 px line) */
.dz-sec--rezervacija .dz-rez__title { color: var(--dz-jungle); }
.dz-sec--rezervacija .dz-rez__lead { color: var(--dz-text); }
.dz-sec--rezervacija .dz-rez__checks { display: flex; flex-direction: column; gap: 12px; }
.dz-sec--rezervacija .dz-rez__check {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.55;
	color: var(--dz-text);
	text-wrap: pretty; /* no lone last word when a line wraps */
}
.dz-sec--rezervacija .dz-rez__check-ico {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--dz-jungle);
	color: var(--dz-sun);
}
.dz-sec--rezervacija .dz-rez__ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 10px;
	padding-top: 6px;
	font-size: 16px;
	color: var(--dz-muted);
}

/* Widget column: the monkey peeks over the card (its lower half is behind the card). */
.dz-sec--rezervacija .dz-rez__widget { position: relative; min-width: 0; padding-top: 112px; }
.dz-sec--rezervacija .dz-rez__monkey { position: absolute; right: 56px; top: 0; width: 156px; pointer-events: none; }
/* The leaf on the image's right edge is cut straight by the picture border (rows 39–77 %). Trim it to a pointed tip
   with a curved edge down to 80 % of the height (the card covers the monkey from ~54–58 % down, also while it ducks),
   so it reads as a leaf rather than a cropped picture. Only leaf pixels are removed; the hand and the tail stay whole. */
.dz-sec--rezervacija .dz-rez__monkey img {
	clip-path: polygon(0 0, 100% 0, 100% 39.4%, 96.5% 46%, 93.5% 52%, 91.5% 57%, 90% 62%, 88.5% 68%, 87.5% 74%, 87% 80%, 87% 100%, 0 100%);
}
.dz-sec--rezervacija .dz-rez__app { position: relative; } /* no z-index: the widget's floating dock stays above the page */

/* Invisible, fixed box as tall as the floating header: booking.js scrolls its card below it on step changes. */
.dz-sec--rezervacija .dz-rez__inset {
	position: fixed;
	top: 0;
	left: 0;
	width: 1px;
	height: var(--dz-hdr-bottom, 92px);
	visibility: hidden;
	pointer-events: none;
}

/* Booking by phone / e-mail when the booking plugin is switched off: the short contact card stands in for the widget,
   centred against the intro. */
.dz-sec--rezervacija.dz-rez--offline .dz-rez__grid { align-items: center; }
.dz-sec--rezervacija.dz-rez--offline .dz-rez__intro { padding-top: 0; }
.dz-sec--rezervacija .dz-rez__fallback {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	border-radius: 28px;
	background: var(--dz-white);
	box-shadow: 0 10px 30px rgba(36, 70, 35, .18), 0 40px 80px -40px rgba(36, 70, 35, .35);
}
.dz-sec--rezervacija .dz-rez__fallback-title { font-size: 28px; line-height: 1.1; color: var(--dz-jungle); }

/* Booking widget theme ------------------------------------------------------------------- */
.dz-sec--rezervacija .dzb-app {
	--dzb-shadow: 0 10px 30px rgba(36, 70, 35, .18), 0 40px 80px -40px rgba(36, 70, 35, .35);
	--dzb-focus: var(--dz-focus-light); /* the widget sits on white: dark blue ring (3:1+) */
}
.dz-sec--rezervacija .dzb-app[data-size="md"],
.dz-sec--rezervacija .dzb-app[data-size="lg"] { --dzb-pad: 28px; }

/* The section heading replaces the widget's own title ("Šventės rezervacija") and subtitle. */
.dz-sec--rezervacija .dzb-app .dzb-head__titles { display: none; }

/* Month name in the display face, as in the design ("Spalis 2026"). */
.dz-sec--rezervacija .dzb-app .dzb-cal__month {
	font-family: var(--dzb-font-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
}

/* Responsive ------------------------------------------------------------------------------- */
@media (max-width: 1240px) {
	.dz-sec--rezervacija .dz-rez__grid { gap: 40px; }
}
@media (max-width: 999.98px) {
	.dz-sec--rezervacija .dz-rez__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	/* Stacked: the calendar first, the intro (heading, steps, payment lines) under the widget. */
	.dz-sec--rezervacija .dz-rez__intro { order: 2; max-width: 640px; padding-top: 32px; }
	.dz-sec--rezervacija .dz-rez__widget { padding-top: 104px; }
	.dz-sec--rezervacija .dz-rez__monkey { right: 40px; width: 140px; }
}
@media (max-width: 640px) {
	.dz-sec--rezervacija .dz-rez__intro { gap: 18px; }
	.dz-sec--rezervacija .dz-rez__check { align-items: flex-start; }
	.dz-sec--rezervacija .dz-rez__check > span:last-child { padding-top: 2px; } /* first line centred on the 32 px tick */
	.dz-sec--rezervacija .dz-rez__widget { padding-top: 92px; }
	.dz-sec--rezervacija .dz-rez__monkey { right: 20px; width: 120px; }
}
