/* Dalmatour 2026 — component layer (design tokens come from theme.json) */

:root {
	--dt-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--dt-header-h: 84px;
	--dt-nav-bp: 1200px; /* below this the primary nav collapses to the drawer */
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* The sticky header and the first content section must sit flush — kill the
   block-gap margin WP adds between .wp-site-blocks children. */
.wp-site-blocks > * { margin-block-start: 0; }
/* Same inside page content: full-width sections (hero, tinted bands) stack flush.
   The block gap otherwise left a white strip between a hero and a tinted section. */
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

/* clip on BOTH html and body: body-only clip doesn't contain the position:fixed
   mobile nav drawer (it's clipped by the viewport/root), which otherwise adds
   horizontal scroll when parked off-screen right. `clip` keeps sticky working. */
html, body { overflow-x: clip; }

/* Selection + focus in brand colours */
::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }
:where(a, button, input, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--secondary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------------------------------------------------------------- Header */
/* Sticky must sit on the template-part WRAPPER: the <header> is its only child, so
   a sticky header inside a wrapper of exactly its own height never sticks. */
.wp-site-blocks > .wp-block-template-part:has(> .dt-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
@media (max-width: 600px) {
	/* WP's admin bar stops being fixed at this width, so don't offset for it. */
	.wp-site-blocks > .wp-block-template-part:has(> .dt-header) { top: 0; }
}

/* The logo is already the "Dalmatour" wordmark — hide the redundant text title. */
.dt-header .wp-block-site-title { display: none; }

/* Slim vertical padding so the logo can use the bar's full height. */
.dt-header-inner { padding-top: 0.45rem !important; padding-bottom: 0.45rem !important; min-height: var(--dt-header-h); box-sizing: border-box; }
.dt-header .wp-block-site-logo img,
.dt-header .custom-logo { height: 70px; width: auto; }
@media (max-width: 1199px) {
	.dt-header .wp-block-site-logo img,
	.dt-header .custom-logo { height: 56px; }
}

/* Contact + language block inside the mobile drawer (hidden on desktop). */
.dt-nav-extra { display: none; }

/* Frosted glass. The blur lives on a ::before layer, NOT on .dt-header-inner:
   backdrop-filter on an element makes it the containing block for its
   position:fixed descendants, which would trap the mobile drawer inside the bar.
   A pseudo-element has no descendants, so the glass works at every width. */
.dt-header-inner { position: relative; isolation: isolate; background: transparent; }
.dt-header-inner::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: color-mix(in srgb, var(--wp--preset--color--base) 68%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(16px);
	backdrop-filter: saturate(1.6) blur(16px);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 70%, transparent);
	transition: background 0.3s var(--dt-ease), box-shadow 0.3s var(--dt-ease);
}
.dt-scrolled .dt-header-inner::before {
	background: color-mix(in srgb, var(--wp--preset--color--base) 76%, transparent);
	box-shadow: 0 8px 28px rgba(17, 36, 46, 0.08);
}

/* Header keeps a legible frosted-white bar on every page (dark text). */

/* Navigation (WPML classic menu) */
.dt-nav { display: flex; align-items: center; min-width: 0; }
.dt-nav-panel__head { display: none; }
.dt-menu {
	display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(0.6rem, 1.3vw, 1.2rem);
	list-style: none; margin: 0; padding: 0;
	font-weight: 600; font-size: 0.875rem; letter-spacing: -0.01em;
}
/* Italian labels run longest ("Appartamenti Omiš", "Trasporto di gruppo"); shave
   the menu a touch so the full bar clears the collapse breakpoint with margin
   instead of butting up against it (the cause of the cramped Book-now cluster). */
html[lang|="it"] .dt-menu { font-size: 0.9rem; gap: clamp(0.55rem, 1vw, 0.95rem); letter-spacing: -0.015em; }
.dt-menu li { position: relative; margin: 0; }
.dt-menu > li > a { white-space: nowrap; }
.dt-menu a { display: block; padding: 0.5rem 0; transition: color 0.2s var(--dt-ease); position: relative; }
.dt-menu > li > a::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
	background: var(--wp--preset--color--accent); border-radius: 2px;
	transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--dt-ease);
}
.dt-menu > li:hover > a::before,
.dt-menu > li.current-menu-item > a::before,
.dt-menu > li.current-menu-ancestor > a::before { transform: scaleX(1); }

/* Desktop dropdowns */
.dt-menu .sub-menu {
	/* The parent's gold underline is 2px, centred on the link's bottom edge
	   (bottom:-1px). Starting the panel 1px higher with a 2px gold top border
	   lays that border exactly over the underline, so the dropdown reads as an
	   extension of the active item. Square top corners keep the join clean. */
	position: absolute; top: calc(100% - 1px); left: 0; min-width: 220px;
	list-style: none; margin: 0; padding: 0.5rem;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line); border-top: 2px solid var(--wp--preset--color--accent);
	border-radius: 0 0 14px 14px;
	box-shadow: var(--wp--preset--shadow--lifted);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 20;
}
.dt-menu li:hover > .sub-menu,
.dt-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dt-menu .sub-menu a { padding: 0.5rem 0.75rem; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.dt-menu .sub-menu a:hover { background: var(--wp--preset--color--surface); }

/* Priority+ overflow: JS moves items that don't fit into a trailing "More" item
   whose dropdown opens right-aligned. Items pushed in keep their own submenu as a
   left flyout. The <li> is JS-injected, so it's absent (no styling) until needed. */
.dt-menu-more > .sub-menu { left: auto; right: 0; }
.dt-menu-more .sub-menu > li > a { display: block; white-space: nowrap; }
.dt-menu-more .sub-menu .menu-item-has-children > .sub-menu {
	top: -0.5rem; left: auto; right: calc(100% + 6px); min-width: 200px;
}
.dt-menu-more .sub-menu .menu-item-has-children > a::after {
	transform: translateY(-0.12em) rotate(135deg); margin-left: auto; padding-left: 0.6em;
}
.dt-menu-more[hidden] { display: none; }

/* The accordion toggle button is a mobile-only affordance (JS-inserted). */
.dt-sub-toggle { display: none; }
/* Parent items: keep label + chevron on one inline row, chevron vertically centred. */
.dt-menu > li.menu-item-has-children > a { display: inline-flex; align-items: center; }
.dt-menu .menu-item-has-children > a::after {
	content: ""; flex: none; display: inline-block; width: 0.46em; height: 0.46em; margin-left: 0.45em;
	border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; border-radius: 0 0 2px 0;
	transform: translateY(-0.18em) rotate(45deg); opacity: 0.6;
	transition: transform 0.25s var(--dt-ease), opacity 0.2s var(--dt-ease);
}
/* Chevron flips to point up while its dropdown is open (hover/focus) — live cue. */
.dt-menu > li.menu-item-has-children:hover > a::after,
.dt-menu > li.menu-item-has-children:focus-within > a::after { transform: translateY(0.06em) rotate(-135deg); opacity: 0.95; }

/* Mobile drawer (CSS-only, checkbox toggle) */
/* Crisp burger: fixed 24×18 box, 2px bars on integer offsets so they never land
   on a half-pixel (the old translateY(-50%) blurred them). The bars morph to an X. */
.dt-nav-burger { display: none; width: 24px; height: 18px; position: relative; cursor: pointer; z-index: 210; -webkit-tap-highlight-color: transparent; }
.dt-nav-burger span {
	position: absolute; left: 0; height: 2px; width: 100%; background: currentColor; border-radius: 2px;
	transform-origin: center; backface-visibility: hidden;
	transition: transform 0.3s var(--dt-ease), opacity 0.2s var(--dt-ease);
}
.dt-nav-burger span:nth-child(1) { top: 0; }
.dt-nav-burger span:nth-child(2) { top: 8px; }
.dt-nav-burger span:nth-child(3) { top: 16px; }
.dt-nav-cb:checked ~ .dt-nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.dt-nav-cb:checked ~ .dt-nav-burger span:nth-child(2) { opacity: 0; }
.dt-nav-cb:checked ~ .dt-nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Language switcher */
.dt-langs { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; align-items: center; font-size: 0.8rem; font-weight: 700; }
.dt-langs li { margin: 0; }
.dt-langs a {
	display: block; padding: 0.3rem 0.55rem; border-radius: 999px;
	color: var(--wp--preset--color--muted); letter-spacing: 0.03em;
	transition: color 0.2s, background 0.2s;
}
.dt-langs a:hover { color: var(--wp--preset--color--primary); background: var(--wp--preset--color--surface); }
.dt-langs .is-active a { color: var(--wp--preset--color--base); background: var(--wp--preset--color--primary); }

/* Header "Book now" — a compact gold pill that never wraps or shrinks. */
.dt-header .dt-book { margin: 0; flex: none; }
.dt-header .dt-book .wp-block-button { margin: 0; flex: none; }
.dt-header .dt-book .wp-block-button__link {
	display: inline-flex; align-items: center; white-space: nowrap; flex: none;
	padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; line-height: 1;
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--preset--shadow--sun); border: 0;
	transition: transform 0.2s var(--dt-ease), background 0.2s var(--dt-ease);
}
.dt-header .dt-book .wp-block-button__link:hover { background: var(--wp--preset--color--accent-dark); transform: translateY(-1px); }
/* Right-hand header cluster: lang + book stay on one row and never shrink/wrap. */
.dt-header-inner > .wp-block-group:last-child { flex: none; gap: 0.6rem; white-space: nowrap; }

/* ------------------------------------------------------------------ Hero */
.dt-hero { position: relative; isolation: isolate; }
.dt-hero .wp-block-cover__image-background { transform: scale(1.02); }
/* Scrim on the cover's own overlay layer (sits above image, below text) so it
   truly darkens the photo for WCAG contrast — not a z-index:-1 pseudo. */
.dt-hero .wp-block-cover__background {
	opacity: 1 !important;
	background:
		linear-gradient(180deg, rgba(6,34,50,0.58) 0%, rgba(6,34,50,0.46) 42%, rgba(6,34,50,0.74) 100%),
		linear-gradient(90deg, rgba(6,34,50,0.5) 0%, rgba(6,34,50,0.06) 62%) !important;
}
.dt-hero h1 { text-wrap: balance; }
.dt-eyebrow, .is-style-eyebrow {
	font-family: var(--wp--preset--font-family--body) !important;
	font-weight: 700 !important;
	font-size: 0.8rem !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase;
	color: #855400 !important; /* dark amber — passes WCAG AA on white AND sand */
	line-height: 1 !important;
}
/* On dark hero/cover backgrounds, restore the bright sun gold */
.dt-hero .is-style-eyebrow,
.wp-block-cover .is-style-eyebrow,
.dt-footer .is-style-eyebrow { color: var(--wp--preset--color--accent) !important; }

/* Search / booking bar that floats on the hero */
.dt-searchbar {
	background: color-mix(in srgb, var(--wp--preset--color--base) 96%, transparent);
	box-shadow: var(--wp--preset--shadow--lifted);
	border-radius: 18px;
}

/* ----------------------------------------------------------------- Cards */
.is-style-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	overflow: clip;
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform 0.35s var(--dt-ease), box-shadow 0.35s var(--dt-ease);
}
.is-style-card:hover { transform: translateY(-6px); box-shadow: var(--wp--preset--shadow--lifted); }
.is-style-card img { transition: transform 0.6s var(--dt-ease); }
.is-style-card:hover img { transform: scale(1.05); }

/* Media card with image + body */
.wp-block-columns:has(> .wp-block-column.is-style-card) { align-items: stretch; }
.is-style-card { display: flex; flex-direction: column; }
.dt-card-media { overflow: clip; }
.dt-card-media .wp-block-image,
.is-style-card .wp-block-image { margin: 0; }
.dt-card-media img,
.is-style-card .dt-card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
}
/* body fills remaining height so CTAs line up across the row */
.is-style-card > .wp-block-group:last-child { flex: 1; display: flex; flex-direction: column; }
.is-style-card > .wp-block-group:last-child > .wp-block-paragraph:last-child { margin-top: auto; }

/* Price / meta pill */
.dt-pill {
	display: inline-flex; align-items: center; gap: 0.4rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	font-weight: 700; font-size: 0.8rem;
	padding: 0.3rem 0.7rem; border-radius: 999px;
}

/* Check list variation */
.is-style-checks { list-style: none; padding-left: 0; }
.is-style-checks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.is-style-checks li::before {
	content: ""; position: absolute; left: 0; top: 0.15em;
	width: 1.25rem; height: 1.25rem; border-radius: 50%;
	background: var(--wp--preset--color--pine);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 66% no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 66% no-repeat;
}

/* Duotone sea image frame */
.is-style-duotone-sea img {
	border-radius: 18px;
	filter: saturate(1.05) contrast(1.02);
}

/* Section eyebrow + heading rhythm */
.dt-section-head { max-width: 640px; }

/* Stat / trust row */
.dt-stat .wp-block-heading { font-family: var(--wp--preset--font-family--display); color: var(--wp--preset--color--primary); }

/* Buttons: outline variant on dark */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; border: 2px solid currentColor; color: #fff;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff; color: var(--wp--preset--color--primary);
}

/* Ghost/text button */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--primary); padding-inline: 0.2rem;
}

/* ---------------------------------------------------------------- Footer */
.dt-footer { position: relative; background: var(--wp--preset--color--primary-dark); color: color-mix(in srgb, #fff 82%, transparent); }
.dt-footer :where(h1,h2,h3,h4,.wp-block-heading) { color: #fff; }
.dt-footer a { color: color-mix(in srgb, #fff 82%, transparent); }
.dt-footer a:hover { color: var(--wp--preset--color--accent); }
.dt-footer .dt-langs a { color: color-mix(in srgb,#fff 82%,transparent); }
.dt-footer-cols {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	max-width: 1200px; margin-inline: auto;
}
.dt-footer-col { min-width: 0; }
/* No white logo exists, and the full-colour one is illegible on deep blue. So it
   sits on a white tab that reads as a notch cut out of the top of the footer: the
   tab is pulled up to the footer's top edge, and ::before/::after draw the inverse
   (concave) corners where it meets the dark band. */
.dt-footer-brand {
	--dt-notch-r: 22px;
	position: relative; display: inline-flex;
	margin-top: calc(-1 * var(--wp--preset--spacing--60));
	padding: 1.1rem 1.6rem 1.2rem;
	background: var(--wp--preset--color--base);
	border-radius: 0 0 var(--dt-notch-r) var(--dt-notch-r);
}
.dt-footer-brand::before,
.dt-footer-brand::after {
	content: ""; position: absolute; top: 0; width: var(--dt-notch-r); height: var(--dt-notch-r);
}
.dt-footer-brand::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--dt-notch-r) - 0.5px), var(--wp--preset--color--base) var(--dt-notch-r)); }
.dt-footer-brand::after  { left: 100%;  background: radial-gradient(circle at 100% 100%, transparent calc(var(--dt-notch-r) - 0.5px), var(--wp--preset--color--base) var(--dt-notch-r)); }
.dt-footer-brand a { display: block; line-height: 0; }
.dt-footer-brand a:hover { opacity: 0.9; }
.dt-footer-brand img { display: block; width: 132px; height: auto; }
.dt-footer-intro { margin: 1.4rem 0 0; max-width: 36ch; line-height: 1.6; }
.dt-footer-h {
	color: #fff; font-family: var(--wp--preset--font-family--body);
	font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4;
	margin: 0 0 1.1rem;
}
.dt-footer-menu, .dt-footer-contact { list-style: none; padding-left: 0; margin: 0; }
.dt-footer-menu li { margin-bottom: 0.6rem; }
.dt-footer-contact li { margin-bottom: 0.7rem; }
.dt-footer-contact a, .dt-footer-addr { display: inline-flex; align-items: flex-start; gap: 0.55rem; line-height: 1.5; }
.dt-footer-contact span[aria-hidden], .dt-footer-addr > span[aria-hidden] { color: var(--wp--preset--color--accent); flex: none; }
.dt-footer-bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
	max-width: 1200px; margin: var(--wp--preset--spacing--50) auto 0;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid rgba(255,255,255,0.14);
}
.dt-footer-bottom p { margin: 0; }
.dt-footer-bottom__end { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.dt-footer-made { color: color-mix(in srgb, #fff 82%, transparent); }
.dt-footer-langs .dt-langs { gap: 0.1rem; }
.dt-footer-langs .dt-langs a { padding: 0.25rem 0.5rem; }
.dt-footer-langs .dt-langs .is-active a { color: var(--wp--preset--color--primary-dark); background: color-mix(in srgb, #fff 90%, transparent); }
@media (max-width: 860px) {
	.dt-footer-cols { grid-template-columns: 1fr 1fr; }
	.dt-footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.dt-footer-cols { grid-template-columns: 1fr; }
}

/* Converted tabs -> details accordion */
.dt-tabs { display: flex; flex-direction: column; gap: 0.75rem; }
.dt-tabs .wp-block-details {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	background: var(--wp--preset--color--base);
	padding: 0.35rem 1.25rem;
	box-shadow: var(--wp--preset--shadow--soft);
}
.dt-tabs .wp-block-details > summary {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	cursor: pointer;
	padding: 0.85rem 0;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.dt-tabs .wp-block-details > summary::after {
	content: "+"; font-size: 1.4em; color: var(--wp--preset--color--accent-dark); line-height: 1;
}
.dt-tabs .wp-block-details[open] > summary::after { content: "–"; }
.dt-tabs .wp-block-details > summary::-webkit-details-marker { display: none; }
.dt-tabs .wp-block-details > *:not(summary) { padding-bottom: 0.5rem; }

/* Excursion / project query-loop cards */
.wp-block-query .is-style-card { height: 100%; }
.wp-block-query .wp-block-post-featured-image img { border-radius: 0; }
.wp-block-query .wp-block-post-title { margin-top: 0; }
.wp-block-query .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: 0.95rem; }

/* ================================================================
   2026 refresh — top bar, hero slider, booking bar, rooms, features
   ================================================================ */

/* Custom buttons (used outside the block button system) */
.dt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.01em;
	padding: 0.95rem 1.9rem; border-radius: 999px; cursor: pointer;
	text-decoration: none; border: 2px solid transparent; line-height: 1;
	transition: transform 0.25s var(--dt-ease), background 0.25s var(--dt-ease), color 0.25s var(--dt-ease), box-shadow 0.25s var(--dt-ease);
}
.dt-btn--gold { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); box-shadow: var(--wp--preset--shadow--sun); }
.dt-btn--gold:hover { background: var(--wp--preset--color--accent-dark); color: var(--wp--preset--color--contrast); transform: translateY(-2px); }
.dt-btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.55); backdrop-filter: blur(4px); }
.dt-btn--ghost:hover { background: #fff; color: var(--wp--preset--color--primary); border-color: #fff; transform: translateY(-2px); }
.dt-btn--primary { background: var(--wp--preset--color--primary); color: #fff; }
.dt-btn--primary:hover { background: var(--wp--preset--color--primary-dark); color: #fff; transform: translateY(-2px); }
.dt-btn--outline { background: transparent; color: var(--wp--preset--color--primary); border-color: color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent); }
.dt-btn--outline:hover { background: var(--wp--preset--color--primary); color: #fff; border-color: var(--wp--preset--color--primary); transform: translateY(-2px); }
/* Landing-page CTA button row (localised [dalmatour_ctas]) */
.dt-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.dt-hero-ctas--band { margin-top: 0.4rem; }

/* ---------------------------------------------------------- Top bar */
.dt-topbar {
	background: var(--wp--preset--color--primary-dark);
	color: color-mix(in srgb, #fff 78%, transparent);
	font-size: 0.82rem; letter-spacing: 0.01em;
}
.dt-topbar__inner {
	max-width: 1200px; margin: 0 auto;
	padding: 0.5rem clamp(1.25rem, 5vw, 3rem);
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.dt-topbar__tag { font-weight: 500; }
.dt-topbar__contact { display: flex; gap: 1.4rem; }
.dt-topbar__contact a { color: color-mix(in srgb, #fff 82%, transparent); display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.dt-topbar__contact a:hover { color: var(--wp--preset--color--accent); }
.dt-topbar__ico { color: var(--wp--preset--color--accent); font-size: 0.9em; }
@media (max-width: 720px) { .dt-topbar__tag { display: none; } .dt-topbar__inner { justify-content: center; } .dt-topbar__contact { gap: 1rem; } }
@media (max-width: 420px) { .dt-topbar__contact a:last-child { display: none; } }

/* ------------------------------------------------------ Hero slider */
.dt-hero--slider {
	position: relative; isolation: isolate;
	min-height: min(88vh, 820px);
	display: flex; flex-direction: column; justify-content: center;
	padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 5vw, 3rem) clamp(7rem, 14vh, 10rem);
}
/* Clip only the slides layer (Ken-Burns overflow), so the booking bar can
   overhang the hero and float over the next section. */
.dt-hero__slides { position: absolute; inset: 0; z-index: -2; overflow: clip; }
.dt-hero__slide {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity 1.4s var(--dt-ease); transform: scale(1.06);
}
.dt-hero__slide.is-active { opacity: 1; animation: dt-kenburns 9s linear forwards; }
@keyframes dt-kenburns { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.dt-hero__scrim {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(6,34,50,0.42) 0%, rgba(6,34,50,0.30) 40%, rgba(6,34,50,0.72) 100%),
		linear-gradient(90deg, rgba(6,34,50,0.55) 0%, rgba(6,34,50,0.05) 60%);
}
/* Match the hero content box to the site content width so the headline's left
   and right margins line up with the page content below (both use the same
   clamp(1.25rem,5vw,3rem) side padding, so they align at every width). */
.dt-hero__inner { max-width: var(--wp--style--global--wide-size, 1200px); margin: 0 auto; width: 100%; }
.dt-hero__title {
	font-family: var(--wp--preset--font-family--display);
	color: #fff; font-weight: 560; line-height: 1.03; letter-spacing: -0.022em;
	font-size: clamp(2.8rem, 6.4vw, 5.4rem); text-wrap: balance; margin: 0 0 1.3rem;
}
.dt-hero__sub {
	color: rgba(255,255,255,0.92); font-size: clamp(1.1rem, 1.7vw, 1.4rem);
	line-height: 1.55; max-width: 46ch; margin: 0 0 2rem;
}
.dt-hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Inner-page landing hero — same immersive treatment as the home hero, single
   featured image instead of the slider. Shares all .dt-hero__* child styles. */
.dt-hero--page {
	position: relative; isolation: isolate;
	min-height: min(78vh, 720px);
	display: flex; flex-direction: column; justify-content: center;
	padding: clamp(4.5rem, 11vh, 8rem) clamp(1.25rem, 5vw, 3rem) clamp(4.5rem, 10vh, 7rem);
}
.dt-hero--page.dt-hero--has-booking { padding-bottom: clamp(6rem, 12vh, 9rem); margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }
@media (max-width: 860px) {
	.dt-hero--page.dt-hero--has-booking { margin-bottom: 0; }
}

/* Block-editor hero: the same immersive look built from a core Cover block
   (useFeaturedImage) so eyebrow / title / sub / buttons are all editable in the
   editor. Overrides core Cover's centring + forces the brand scrim on the
   overlay span regardless of the block's overlay setting. */
.dt-hero--page.wp-block-cover {
	min-height: min(78vh, 720px);
	justify-content: center; align-items: stretch;
	padding: clamp(4.5rem, 11vh, 8rem) clamp(1.25rem, 5vw, 3rem) clamp(4.5rem, 10vh, 7rem);
	color: #fff;
}
.dt-hero--page .wp-block-cover__inner-container { width: 100%; max-width: none; }
.dt-hero--page > .wp-block-cover__background {
	background:
		linear-gradient(180deg, rgba(6,34,50,0.42) 0%, rgba(6,34,50,0.30) 40%, rgba(6,34,50,0.72) 100%),
		linear-gradient(90deg, rgba(6,34,50,0.55) 0%, rgba(6,34,50,0.05) 60%) !important;
	opacity: 1 !important;
}
.dt-hero--page .wp-block-cover__image-background { object-fit: cover; }
/* Hero CTA buttons rendered as core Buttons (fill = gold, outline = ghost). */
.dt-hero__cta .wp-block-button { margin: 0; }
.dt-hero__cta .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.01em;
	padding: 0.95rem 1.9rem; border-radius: 999px; border: 2px solid transparent; line-height: 1;
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--preset--shadow--sun); text-decoration: none;
	transition: transform 0.25s var(--dt-ease), background 0.25s var(--dt-ease), color 0.25s var(--dt-ease);
}
.dt-hero__cta .wp-block-button__link:hover { background: var(--wp--preset--color--accent-dark); color: var(--wp--preset--color--contrast); transform: translateY(-2px); }
.dt-hero__cta .wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.55); backdrop-filter: blur(4px);
}
.dt-hero__cta .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--primary); border-color: #fff; }

/* ---------------------------------------------------- Booking bar */
.dt-hero__booking {
	position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
	width: min(1120px, calc(100% - clamp(1.5rem, 6vw, 4rem))); z-index: 3;
}
.dt-booking {
	position: relative;
	display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 0.85rem; align-items: end;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-top: 4px solid var(--wp--preset--color--primary);
	box-shadow: 0 2px 6px rgba(17,36,46,0.08), 0 30px 60px -18px rgba(10,77,110,0.42);
	border-radius: 18px; padding: 1.25rem 1.35rem;
}
.dt-booking__field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.dt-booking__field label {
	font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.dt-booking__field input,
.dt-booking__field select {
	font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 600;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line); border-radius: 12px;
	padding: 0.7rem 0.85rem; background: var(--wp--preset--color--base);
	/* border-box + min-width:0 stop the native date control from overflowing its
	   grid cell (and the card) on narrow viewports. */
	box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%;
	appearance: none; -webkit-appearance: none;
}
.dt-booking__field input[type="date"] { min-height: 46px; }
.dt-booking__field select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%235A6B74' d='M7 10l5 5 5-5z'/></svg>");
	background-repeat: no-repeat; background-position: right 0.6rem center; padding-right: 2.2rem;
}
.dt-booking__field input:focus,
.dt-booking__field select:focus { outline: none; border-color: var(--wp--preset--color--secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--secondary) 25%, transparent); }
.dt-booking__actions { display: flex; align-items: flex-end; min-width: 0; }
.dt-booking__submit {
	font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: 1rem;
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast);
	border: 0; border-radius: 12px; padding: 0.85rem 1.6rem; cursor: pointer; white-space: nowrap;
	transition: background 0.25s var(--dt-ease), transform 0.25s var(--dt-ease);
}
.dt-booking__submit:hover { background: var(--wp--preset--color--accent-dark); transform: translateY(-1px); }
@media (max-width: 860px) {
	.dt-hero__booking { position: static; transform: none; width: 100%; margin-top: 2rem; }
	.dt-booking { grid-template-columns: 1fr 1fr; }
	.dt-booking__field--apt, .dt-booking__actions { grid-column: 1 / -1; }
	.dt-booking__actions .dt-booking__submit { width: 100%; }
	/* Booking bar is in-flow on mobile, so drop the desktop overlap gap. */
	.dt-booking-offset { padding-top: clamp(3.5rem, 8vw, 7rem) !important; }
}

/* ------------------------------------- Inner-page branded header */
.dt-page-hero {
	position: relative; isolation: isolate; overflow: clip;
	background: var(--wp--preset--gradient--sea);
	margin-top: 0;
}
.dt-page-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(243,165,33,0.28), transparent 55%),
		radial-gradient(90% 120% at 0% 100%, rgba(28,164,212,0.35), transparent 50%);
}
.dt-page-hero .wp-block-post-title {
	color: #fff; margin: 0;
	font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em;
}

/* Excursion/project hero — featured image behind a brand scrim, title overlaid */
.dt-post-hero.wp-block-cover {
	justify-content: flex-start; align-items: center;
	min-height: clamp(240px, 34vw, 380px); overflow: clip;
}
.dt-post-hero .wp-block-cover__inner-container {
	width: 100%; max-width: 1200px; margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.dt-post-hero__title {
	color: #fff; margin: 0;
	font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em;
	text-shadow: 0 2px 18px rgba(7,55,81,0.35);
}

/* ----------------------------------------------- Section scaffolding */
.dt-section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.dt-section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
/* Tinted sections use ONE tint site-wide: the light Adriatic blue. The --sand
   modifier and the palette's Sand background are kept as class names (content
   uses them) but render in the same blue tint. */
.dt-section--sand,
.has-sand-background-color { background-color: var(--wp--preset--color--surface) !important; }
.dt-section--surface { background: var(--wp--preset--color--surface); }
.dt-section--deep { background: var(--wp--preset--color--primary-dark); color: rgba(255,255,255,0.9); }
.dt-secthead { max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.dt-secthead .dt-eyebrow { display: block; margin-bottom: 0.8rem; }
.dt-secthead h2 { margin: 0 0 0.6rem; font-size: clamp(2rem, 4vw, 2.9rem); }
.dt-secthead p { color: var(--wp--preset--color--muted); font-size: 1.1rem; margin: 0; }
.dt-section--deep .dt-secthead p { color: rgba(255,255,255,0.75); }
.dt-section--deep .dt-secthead h2 { color: #fff; }
/* In-content CTAs are now real core/buttons (converted from .dt-btn HTML).
   Core buttons are gold pills by default (theme.json) — perfect for the
   .dt-cta-band and .dt-feature gold CTAs, so those need no skin, only
   alignment. The centred "see all →" links stay primary (deep blue). */
.dt-center-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); justify-content: center; }
.dt-center-cta .wp-block-button__link { background: var(--wp--preset--color--primary); color: #fff; }
.dt-center-cta .wp-block-button__link:hover { background: var(--wp--preset--color--primary-dark); color: #fff; }
.dt-cta-band .wp-block-buttons { justify-content: center; }
.dt-feature__body .wp-block-buttons { align-self: flex-start; margin: 0; }
.dt-stat__num { margin: 0; }
.dt-booking-offset { padding-top: clamp(5rem, 9vw, 8rem) !important; }

/* ---------------------------------------------------- Room cards */
.dt-room-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem); max-width: 1200px; margin-inline: auto;
}
.dt-room-card {
	display: flex; flex-direction: column; background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line); border-radius: 20px; overflow: clip;
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform 0.35s var(--dt-ease), box-shadow 0.35s var(--dt-ease);
}
.dt-room-card:hover { transform: translateY(-6px); box-shadow: var(--wp--preset--shadow--lifted); }
.dt-room-card__media { position: relative; display: block; overflow: clip; aspect-ratio: 4 / 3; }
.dt-room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--dt-ease); }
.dt-room-card:hover .dt-room-card__media img { transform: scale(1.06); }

/* Excursion card facts (E2) + Tour details table (E1) */
.dt-exc-card__facts { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; margin: 0 0 0.7rem; }
.dt-exc-card__fact { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--wp--preset--color--primary); background: var(--wp--preset--color--surface); border-radius: 999px; padding: 0.2rem 0.7rem; }
/* Excursion body: description left, "Tour details" card right (E1a). */
.dt-exc-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 2.4rem; align-items: start; }
.dt-exc-layout--single { display: block; }
.dt-exc-layout__main { min-width: 0; }
.dt-exc-layout__side { position: sticky; top: calc(var(--dt-header-h, 60px) + 1.2rem); }
@media (max-width: 880px) {
	.dt-exc-layout { grid-template-columns: 1fr; gap: 1.6rem; }
	.dt-exc-layout__side { position: static; }
}
.dt-tourdetails { margin: 0 auto; max-width: 640px; background: var(--wp--preset--color--surface); border-radius: 16px; padding: 1.4rem 1.6rem; box-shadow: var(--wp--preset--shadow--soft); }
.dt-exc-layout__side .dt-tourdetails { max-width: none; margin: 0; }
.dt-tourdetails__title { font-size: 1.4rem; margin: 0 0 0.8rem; }
.dt-tourdetails__list { margin: 0; }
.dt-tourdetails__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(17,36,46,0.1); }
.dt-tourdetails__row:last-child { border-bottom: 0; }
.dt-tourdetails__row dt { font-weight: 600; color: var(--wp--preset--color--primary); margin: 0; }
.dt-tourdetails__row dd { margin: 0; text-align: right; }
.dt-room-card__loc {
	position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
	background: color-mix(in srgb, var(--wp--preset--color--primary-dark) 82%, transparent);
	color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	padding: 0.32rem 0.7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.dt-room-card__body { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.25rem 1.4rem 1.4rem; flex: 1; }
.dt-room-card__pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dt-pill--stars { background: transparent; color: var(--wp--preset--color--accent); padding-inline: 0; letter-spacing: 0.05em; }
.dt-room-card__title { font-size: 1.2rem; line-height: 1.2; margin: 0; }
.dt-room-card__title a { color: var(--wp--preset--color--contrast); }
.dt-room-card__title a:hover { color: var(--wp--preset--color--primary); }
.dt-room-card__foot {
	margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--wp--preset--color--line);
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
}
.dt-room-card__link { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

/* Excursion card variant (a touch more breathing room) */
.dt-exc-card .dt-room-card__body { padding: 1.5rem 1.6rem 1.6rem; gap: 0.55rem; }
.dt-exc-card__text { color: var(--wp--preset--color--muted); font-size: 0.97rem; line-height: 1.55; margin: 0; }
.dt-exc-card .dt-room-card__foot { border-top: 0; padding-top: 0.4rem; }

/* ----------------------------------------- Editorial feature band */
.dt-feature {
	display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch;
	max-width: 1200px; margin-inline: auto; border-radius: 24px; overflow: clip;
	box-shadow: var(--wp--preset--shadow--lifted);
}
.dt-feature--reverse { grid-template-columns: 0.95fr 1.05fr; }
/* Both halves must start flush at the top: WP's flow layout gives the second
   child a block-gap margin-top, which pushed the text panel below the photo. */
.dt-feature > .dt-feature__media,
.dt-feature > .dt-feature__body { margin-block: 0 !important; }
.dt-feature__media { position: relative; min-height: 340px; overflow: clip; }
/* Core gives .wp-block-image position:relative + img height:auto, which shrank the
   photo to its natural ratio inside the taller band. Stretch the figure over the
   whole media cell and let the image cover it. */
.dt-feature__media .wp-block-image { position: absolute; inset: 0; margin: 0; }
.dt-feature__media .wp-block-image img,
.dt-feature__media img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.dt-feature__body {
	background: var(--wp--preset--color--primary-dark); color: rgba(255,255,255,0.9);
	padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
}
.dt-feature--sun .dt-feature__body { background: var(--wp--preset--color--primary); }
.dt-feature__body .dt-eyebrow { color: var(--wp--preset--color--accent) !important; }
.dt-feature__body h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0; }
.dt-feature__body p { color: rgba(255,255,255,0.82); font-size: 1.08rem; line-height: 1.6; margin: 0; }
.dt-feature__body .dt-btn { align-self: flex-start; }
.dt-feature--reverse .dt-feature__media { order: 2; }
@media (max-width: 820px) {
	.dt-feature, .dt-feature--reverse { grid-template-columns: 1fr; }
	.dt-feature--reverse .dt-feature__media { order: 0; }
	.dt-feature__media { min-height: 260px; }
}

/* --------------------------------------------------- Locations */
/* Location cards on the accommodation landings — editable core columns + image
   (converted from the old hand-built wp:html in E7). */
.dt-locations { gap: clamp(1.25rem, 2.5vw, 2rem); max-width: 1200px; margin-inline: auto; }
.dt-loc-card .wp-block-image { margin: 0 0 1.1rem; }
.dt-loc-card .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--wp--preset--shadow--soft); transition: transform 0.6s var(--dt-ease); }
.dt-loc-card:hover .wp-block-image img { transform: scale(1.03); }
.dt-loc-card h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.4rem; }
.dt-loc-card h3 a { color: inherit; text-decoration: none; }
.dt-loc-card h3 a:hover { color: var(--wp--preset--color--accent); }
.dt-loc-card > p { color: var(--wp--preset--color--muted); margin: 0 0 0.7rem; font-size: 1.05rem; }
.dt-loc-card .dt-loc-more a { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--accent); }
.dt-loc-card .dt-loc-more a:hover { text-decoration: underline; }

/* -------------------------------------------------- Trust stats */
.dt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); max-width: 960px; margin: 0 auto; text-align: center; }
.dt-stat__num { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--wp--preset--color--accent); line-height: 1; }
.dt-stat__label { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-top: 0.5rem; }

/* ----------------------------------------- Single apartment */
.dt-apt { max-width: 1200px; margin-inline: auto; }
.dt-apt__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.dt-pill--loc { background: var(--wp--preset--color--primary); color: #fff; }
.dt-apt__grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.dt-apt__prose { font-size: 1.08rem; line-height: 1.7; }
.dt-apt__prose > :first-child { margin-top: 0; }

/* Table style (formerly the apartment rates table — prices were removed in
   September 2026). Kept as a reusable striped table: add the CSS class
   "dt-rates-table" to any Table block. */
.dt-rates-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.dt-rates-table th, .dt-rates-table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.dt-rates-table thead th { font-family: var(--wp--preset--font-family--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.dt-rates-table tbody td:last-child { font-family: var(--wp--preset--font-family--display); font-weight: 600; color: var(--wp--preset--color--primary); white-space: nowrap; }
.dt-rates-table tbody tr:nth-child(odd) { background: var(--wp--preset--color--surface); }

/* Booking on the apartment page */
.dt-apt__booking { margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.5rem, 3vw, 2rem); background: var(--wp--preset--color--surface); border-radius: 18px; }
.dt-apt__booking h2 { font-size: 1.4rem; margin: 0 0 1.1rem; }
.dt-booking--apt { box-shadow: var(--wp--preset--shadow--soft); border-top: 1px solid var(--wp--preset--color--line); }
/* The apartment (locked) bar always sits in a narrow single-column, so stack it:
   the two dates share a row, the fixed apartment name + submit span full width. */
.dt-booking--locked { grid-template-columns: 1fr 1fr; }
.dt-booking--locked .dt-booking__field--apt,
.dt-booking--locked .dt-booking__actions { grid-column: 1 / -1; }
.dt-booking--locked .dt-booking__actions .dt-booking__submit { width: 100%; }
.dt-booking__locked { display: flex; align-items: center; min-height: 46px; font-weight: 700; color: var(--wp--preset--color--primary); font-size: 0.98rem; }

/* Apartment photo grid — same look as the About gallery: cropped tiles, 16px
   gap, rounded outer corners; each tile opens the lightbox. The grid can be
   taller than the screen, so the aside no longer sticks. */
.dt-apt__aside:has(.dt-gallery--grid) { position: static; }
.dt-gallery--grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
	border-radius: 18px; overflow: clip;
}
.dt-gallery__tile {
	display: block; padding: 0; margin: 0; border: 0; background: var(--wp--preset--color--surface);
	aspect-ratio: 4 / 3; overflow: clip; cursor: zoom-in; line-height: 0;
}
.dt-gallery__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--dt-ease), filter 0.3s var(--dt-ease); }
.dt-gallery__tile:hover img, .dt-gallery__tile:focus-visible img { transform: scale(1.04); filter: brightness(1.04); }
.dt-gallery__tile:focus-visible { outline: 3px solid var(--wp--preset--color--secondary); outline-offset: -3px; }
/* Odd number of photos: the first one leads full-width so the grid ends evenly. */
@media (min-width: 881px) {
	.dt-gallery--grid .dt-gallery__tile:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 880px) {
	.dt-gallery--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; border-radius: 14px; }
}

/* Gallery (main + thumbnails, JS swap) — legacy markup */
.dt-apt__aside { position: sticky; top: calc(var(--dt-header-h) + 1.25rem); }
.dt-gallery__main { border-radius: 18px; overflow: clip; box-shadow: var(--wp--preset--shadow--soft); aspect-ratio: 4 / 3; background: var(--wp--preset--color--surface); }
.dt-gallery__main img, .dt-gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-gallery__main.is-portrait img, .dt-gallery__main.is-portrait .dt-gallery__img { object-fit: contain; }
.dt-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 0.7rem; }
.dt-gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: clip; cursor: pointer; background: none; aspect-ratio: 1; line-height: 0; }
.dt-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dt-gallery__thumb.is-active { border-color: var(--wp--preset--color--primary); }
@media (max-width: 880px) {
	.dt-apt__grid { grid-template-columns: 1fr; }
	.dt-apt__aside { position: static; order: -1; margin-bottom: 1.5rem; }
	.dt-booking--locked { grid-template-columns: 1fr 1fr; }
	.dt-booking--locked .dt-booking__field--apt, .dt-booking--locked .dt-booking__actions { grid-column: 1 / -1; }
}

/* --------------------------------------------------- Final CTA */
.dt-cta-band { position: relative; overflow: clip; border-radius: 24px; max-width: 1200px; margin-inline: auto; padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; isolation: isolate; }
.dt-cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wp--preset--gradient--sea); }
.dt-cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.8rem; }
.dt-cta-band p { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 52ch; margin: 0 auto 2rem; }

/* ================================================================
   Pagination (apartments archive)
   ================================================================ */
.dt-pagination { margin: 2.5rem auto 0; display: flex; justify-content: center; }
.dt-pagination .page-numbers { list-style: none; display: flex; gap: 0.4rem; margin: 0; padding: 0; flex-wrap: wrap; }
.dt-pagination .page-numbers li { margin: 0; }
.dt-pagination .page-numbers a,
.dt-pagination .page-numbers span {
	display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.6rem;
	border: 1px solid var(--wp--preset--color--line); border-radius: 999px;
	font-size: 0.95rem; font-weight: 600; text-decoration: none; color: var(--wp--preset--color--primary);
	transition: background 0.2s var(--dt-ease), border-color 0.2s var(--dt-ease), color 0.2s var(--dt-ease);
}
.dt-pagination .page-numbers a:hover { background: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--secondary); }
.dt-pagination .page-numbers .current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.dt-pagination .page-numbers .dots { border-color: transparent; }

/* ================================================================
   Scroll-reveal (added by app.js only when motion is allowed)
   ================================================================ */
.dt-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s var(--dt-ease), transform 0.7s var(--dt-ease);
	transition-delay: var(--dt-reveal-d, 0ms);
	will-change: opacity, transform;
}
.dt-reveal.is-in { opacity: 1; transform: none; }

/* ================================================================
   Lightbox
   ================================================================ */
.dt-zoomable { cursor: zoom-in; }
.dt-gallery__main.dt-zoomable { position: relative; }
.dt-gallery__main.dt-zoomable::after {
	content: ""; position: absolute; right: 0.9rem; bottom: 0.9rem; width: 2.4rem; height: 2.4rem;
	border-radius: 999px; background: color-mix(in srgb, var(--wp--preset--color--primary-dark) 78%, transparent);
	backdrop-filter: blur(4px);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14M9 6h1v2h2v1h-2v2H9V9H7V8h2z'/></svg>") center / 55% no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14M9 6h1v2h2v1h-2v2H9V9H7V8h2z'/></svg>") center / 55% no-repeat;
	opacity: 0; transition: opacity 0.3s var(--dt-ease); pointer-events: none; z-index: 3;
}
.dt-gallery__main.dt-zoomable:hover::after,
.dt-gallery__main.dt-zoomable:focus-visible::after { opacity: 1; }

html.dt-lb-open { overflow: hidden; }
.dt-lb {
	position: fixed; inset: 0; z-index: 9999;
	display: flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--wp--preset--color--primary-dark) 92%, #000);
	backdrop-filter: blur(6px);
	animation: dt-lb-in 0.25s var(--dt-ease);
	padding: clamp(1rem, 4vw, 3rem);
}
@keyframes dt-lb-in { from { opacity: 0; } to { opacity: 1; } }
.dt-lb[hidden] { display: none; }
.dt-lb__stage {
	margin: 0; max-width: min(1400px, 100%); max-height: 100%;
	display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
}
.dt-lb__img {
	max-width: 100%; max-height: 82vh; object-fit: contain;
	border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
	opacity: 0; transform: scale(0.985); transition: opacity 0.35s var(--dt-ease), transform 0.35s var(--dt-ease);
}
.dt-lb__img.is-ready { opacity: 1; transform: none; }
.dt-lb__cap { color: rgba(255,255,255,0.82); font-size: 0.95rem; text-align: center; max-width: 60ch; }
.dt-lb__counter {
	position: absolute; top: max(1rem, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
	color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
}
.dt-lb__close, .dt-lb__nav {
	position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, #fff 12%, transparent); color: #fff; border: 0; cursor: pointer;
	border-radius: 999px; transition: background 0.2s var(--dt-ease), transform 0.2s var(--dt-ease);
	backdrop-filter: blur(4px);
}
.dt-lb__close:hover, .dt-lb__nav:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }
.dt-lb__close {
	top: max(0.9rem, env(safe-area-inset-top)); right: max(0.9rem, env(safe-area-inset-right));
	width: 3rem; height: 3rem; font-size: 1.9rem; line-height: 1;
}
.dt-lb__nav { top: 50%; transform: translateY(-50%); width: 3.4rem; height: 3.4rem; font-size: 2.2rem; line-height: 1; }
.dt-lb__nav:hover { transform: translateY(-50%) scale(1.06); }
.dt-lb__prev { left: max(0.75rem, env(safe-area-inset-left)); }
.dt-lb__next { right: max(0.75rem, env(safe-area-inset-right)); }
.dt-lb :focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; }
@media (max-width: 620px) {
	.dt-lb__nav { width: 2.8rem; height: 2.8rem; font-size: 1.8rem; }
	.dt-lb__img { max-height: 74vh; }
}

/* ================================================================
   Gravity Forms — brand skin for the "Book now!" enquiry form
   ================================================================ */
.gform_wrapper { max-width: 760px; margin-inline: auto; --gf-color-primary: var(--wp--preset--color--accent); }
.gform_wrapper .gform_fields { gap: 1.15rem 1.25rem; }
.gform_wrapper .gfield_label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
	color: var(--wp--preset--color--muted); margin-bottom: 0.45rem;
}
.gform_wrapper .gfield_required { color: var(--wp--preset--color--accent-dark); margin-left: 0.15rem; }
.gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.gform_wrapper select,
.gform_wrapper textarea {
	font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 500;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line); border-radius: 12px;
	padding: 0.72rem 0.9rem; background: var(--wp--preset--color--base); width: 100%;
	transition: border-color 0.2s var(--dt-ease), box-shadow 0.2s var(--dt-ease);
	box-shadow: none;
}
.gform_wrapper select {
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%235A6B74' d='M7 10l5 5 5-5z'/></svg>");
	background-repeat: no-repeat; background-position: right 0.7rem center; padding-right: 2.4rem;
}
.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
	outline: none; border-color: var(--wp--preset--color--secondary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--secondary) 25%, transparent);
}
.gform_wrapper .ginput_container_date { display: block; }
.gform_wrapper .ginput_container_date input { max-width: none; width: 100%; }
/* Kill GF's datepicker trigger icon (it dropped onto its own line under the field).
   The field config also sets calendarIconType=none; this is the CSS backstop and
   also hides it should GF re-inject it. The picker still opens on focus. */
.gform_wrapper .ginput_container_date .ui-datepicker-trigger,
.gform_wrapper .gfield_date_dropdown_day img,
.gform_wrapper input.datepicker + img,
.gform_wrapper .ginput_container_date img { display: none !important; }
/* Contact page: keep the info column aligned to the top of the (taller) form
   rather than vertically centred against it. */
.wp-block-columns:has(.gform_wrapper) { align-items: flex-start; gap: clamp(1.5rem, 3vw, 3rem); }
.wp-block-columns:has(.gform_wrapper) .wp-block-column { align-self: flex-start; }

/* Contact page — form + static-details cards */
.dt-form-card, .dt-contact-card { border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.5rem); box-sizing: border-box; }
.dt-form-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 2px 6px rgba(17,36,46,0.05), 0 26px 55px -32px rgba(10,77,110,0.4);
}
.dt-form-card .gform_wrapper { max-width: none; }
.dt-contact-card {
	align-self: flex-start;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
}
.dt-contact-card h5 {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
	color: var(--wp--preset--color--primary); margin: 1.4rem 0 0.35rem;
}
.dt-contact-card h5:first-child { margin-top: 0; }
/* Contact lines: editable core paragraphs (.dt-contact-line), converted
   from the old <address> Custom-HTML blocks. */
.dt-contact-card .dt-contact-line {
	font-style: normal; line-height: 1.7; font-size: 1.02rem;
	color: var(--wp--preset--color--contrast);
	margin: 0 0 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--wp--preset--color--line);
}
.dt-contact-card .dt-contact-line:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.dt-contact-card .dt-contact-line em { font-style: normal; color: var(--wp--preset--color--muted); font-size: 0.85rem; }
@media (max-width: 781px) {
	.dt-form-card, .dt-contact-card { padding: clamp(1.25rem, 5vw, 1.75rem); }
}

/* Contact page (Contact + About merged, September 2026): a short image hero with
   just the title, and the question card + form pulled up over its lower edge so
   both are visible above the fold. About us follows below as a centred section. */
.dt-hero--contact.wp-block-cover {
	min-height: clamp(300px, 44vh, 440px);
	justify-content: flex-start;
	padding-top: clamp(3rem, 9vh, 5.5rem);
	padding-bottom: clamp(8rem, 19vh, 12rem);
}
.dt-hero--contact .dt-hero__title { margin: 0; }
.wp-block-post-content > .dt-contact-overlap {
	position: relative; z-index: 2;
	margin-top: calc(-1 * clamp(6.5rem, 16vh, 10rem)) !important;
	padding-inline: clamp(1.25rem, 5vw, 3rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}
.dt-contact-overlap > .wp-block-columns { max-width: 1200px; margin-inline: auto; }
.dt-contact-overlap .dt-contact-card { box-shadow: 0 2px 6px rgba(17,36,46,0.05), 0 26px 55px -32px rgba(10,77,110,0.4); }
.dt-contact-about .dt-secthead { margin-bottom: clamp(2.5rem, 5vw, 4rem) !important; }
.dt-contact-about .wp-block-columns { max-width: 1200px; margin-inline: auto; gap: clamp(2rem, 4vw, 3.5rem); }
.dt-contact-about .wp-block-column > p { font-size: 1.08rem; line-height: 1.7; }
.dt-contact-about .wp-block-gallery { border-radius: 18px; overflow: clip; }
@media (max-width: 781px) {
	.dt-hero--contact.wp-block-cover { min-height: 240px; padding-bottom: 6.5rem; }
	.wp-block-post-content > .dt-contact-overlap { margin-top: -4.5rem !important; }
}
.gform_wrapper .gfield_description { color: var(--wp--preset--color--muted); font-size: 0.85rem; }
.gform_wrapper .gform_required_legend { display: none; }
/* Consent checkbox */
.gform_wrapper .gfield--type-checkbox .gfield_label { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.gform_wrapper .gchoice { display: flex; align-items: flex-start; gap: 0.6rem; }
.gform_wrapper .gchoice input[type=checkbox] { width: 1.2rem; height: 1.2rem; accent-color: var(--wp--preset--color--accent); margin-top: 0.15rem; }
.gform_wrapper .gchoice label { font-size: 0.92rem; color: var(--wp--preset--color--contrast); line-height: 1.5; }
/* Submit button = gold pill */
.gform_wrapper .gform_footer { margin-top: 1.6rem; }
.gform_wrapper .gform_button {
	font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.01em;
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast);
	border: 2px solid transparent; border-radius: 999px; padding: 0.95rem 2.1rem; cursor: pointer; width: auto;
	box-shadow: var(--wp--preset--shadow--sun);
	transition: transform 0.25s var(--dt-ease), background 0.25s var(--dt-ease);
}
.gform_wrapper .gform_button:hover { background: var(--wp--preset--color--accent-dark); transform: translateY(-2px); }
/* Validation */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error select,
.gform_wrapper .gfield_error textarea { border-color: #c0392b; }
.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message { color: #c0392b; font-size: 0.85rem; margin-top: 0.4rem; }
.gform_wrapper .gform_validation_errors {
	border: 1px solid color-mix(in srgb, #c0392b 40%, transparent); background: color-mix(in srgb, #c0392b 8%, var(--wp--preset--color--base));
	border-radius: 14px; padding: 1rem 1.25rem;
}
.gform_wrapper .gform_validation_errors h2 { color: #c0392b; font-size: 1rem; }
/* Success confirmation */
.gform_confirmation_message {
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line);
	border-left: 4px solid var(--wp--preset--color--pine);
	border-radius: 14px; padding: 1.25rem 1.5rem; font-size: 1.05rem; color: var(--wp--preset--color--contrast);
}
/* AJAX spinner alignment */
.gform_wrapper .gform_ajax_spinner { margin-left: 0.75rem; vertical-align: middle; }

/* Legacy GF markup (ul/li, no-framework) — layout scaffolding */
.gform_wrapper form { margin: 0; }
.gform_wrapper ul.gform_fields { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.15rem 3%; }
.gform_wrapper ul.gform_fields > li.gfield { margin: 0; padding: 0; width: 100%; list-style: none; }
.gform_wrapper li.gf_left_half, .gform_wrapper li.gf_right_half { width: 48.5%; float: none; clear: none; }
.gform_wrapper .gfield_label { display: block; }
.gform_wrapper .gform_validation_container,
.gform_wrapper .gfield_visibility_hidden { display: none !important; }
.gform_wrapper .ginput_complex { display: flex; flex-wrap: wrap; gap: 0.6rem 3%; }
.gform_wrapper .ginput_complex > span { flex: 1 1 0; min-width: 0; }
.gform_wrapper ul.gfield_checkbox, .gform_wrapper ul.gfield_radio { list-style: none; margin: 0; padding: 0; }
.gform_wrapper ul.gfield_checkbox li, .gform_wrapper ul.gfield_radio li { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; }
.gform_wrapper ul.gfield_checkbox input, .gform_wrapper ul.gfield_radio input { width: 1.2rem; height: 1.2rem; accent-color: var(--wp--preset--color--accent); margin-top: 0.15rem; flex: none; }
.gform_wrapper ul.gfield_checkbox label { font-size: 0.92rem; color: var(--wp--preset--color--contrast); line-height: 1.5; }
.gform_wrapper .gform_footer.top_label { padding-top: 0; }
@media (max-width: 560px) {
	.gform_wrapper li.gf_left_half, .gform_wrapper li.gf_right_half { width: 100%; }
}

/* Override Gravity Forms' legacy formsmain.css (its .gform_wrapper.gform_legacy_markup_wrapper
   rules carry higher specificity and load after this sheet). */
.gform_wrapper.gform_legacy_markup_wrapper ul.gform_fields { display: flex; flex-wrap: wrap; gap: 1.15rem 3%; }
.gform_wrapper.gform_legacy_markup_wrapper ul.gform_fields > li.gfield { margin: 0; padding: 0; width: 100%; }
.gform_wrapper.gform_legacy_markup_wrapper li.gf_left_half, .gform_wrapper.gform_legacy_markup_wrapper li.gf_right_half { width: 48.5%; float: none; padding: 0; }
.gform_wrapper.gform_legacy_markup_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
.gform_wrapper.gform_legacy_markup_wrapper select,
.gform_wrapper.gform_legacy_markup_wrapper textarea {
	padding: 0.72rem 0.9rem; border: 1px solid var(--wp--preset--color--line); border-radius: 12px;
	font-size: 1rem; line-height: 1.3; background: var(--wp--preset--color--base);
}
/* The <select> needs 0,3,1 specificity to beat GF's browsers.min.css
   (.gform_legacy_markup_wrapper.gf_browser_chrome select, 0,2,1) which loads
   after this sheet and otherwise collapses it to a tiny native control. */
.gform_wrapper.gform_legacy_markup_wrapper select.gfield_select,
.gform_wrapper.gform_legacy_markup_wrapper select.medium,
.gform_wrapper.gform_legacy_markup_wrapper.gf_browser_chrome select,
.gform_wrapper.gform_legacy_markup_wrapper.gf_browser_gecko select {
	appearance: none; -webkit-appearance: none;
	box-sizing: border-box; width: 100% !important; height: auto; line-height: 1.4;
	padding: 0.72rem 2.5rem 0.72rem 0.9rem;
	border: 1px solid var(--wp--preset--color--line); border-radius: 12px;
	font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 500;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%235A6B74' d='M7 10l5 5 5-5z'/></svg>");
	background-repeat: no-repeat; background-position: right 0.8rem center;
}
/* Field labels match the contact card's small headings ("CONTACT DETAILS", "OMIŠ")
   exactly, so both columns of the Contact page use one label style. GF's legacy
   sheet sets 17px and loads after this one, hence the compound selector. */
.gform_wrapper.gform_legacy_markup_wrapper .gfield_label,
.gform_wrapper.gform_legacy_markup_wrapper .gfield_label .gfield_required {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; line-height: 1.3; text-transform: uppercase;
}
.gform_wrapper.gform_legacy_markup_wrapper .gfield_label { color: var(--wp--preset--color--primary); margin-bottom: 0.45rem; }
.gform_wrapper.gform_legacy_markup_wrapper .gform_footer { padding: 0; margin-top: 1.6rem; }
@media (max-width: 560px) {
	.gform_wrapper.gform_legacy_markup_wrapper li.gf_left_half, .gform_wrapper.gform_legacy_markup_wrapper li.gf_right_half { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
	.is-style-card:hover { transform: none; }
	.dt-hero__slide.is-active { animation: none; transform: scale(1); }
	.dt-reveal { opacity: 1 !important; transform: none !important; }
}

/* Body scroll-lock while the drawer is open (JS toggles .dt-nav-open on <html>). */
.dt-nav-open { overflow: hidden; }

/* ------------------------------------------ Mobile drawer (≤1199px / <1200px) */
@media (max-width: 1199px) {
	.dt-nav-burger { display: block; color: var(--wp--preset--color--primary); }
	/* Burger hides while the panel is open — the panel carries its own close (×). */
	.dt-nav-cb:checked ~ .dt-nav-burger { opacity: 0; pointer-events: none; }

	/* Dim backdrop that also closes the drawer on tap (it's a <label>). */
	.dt-nav-overlay {
		display: block; position: fixed; inset: 0; z-index: 200; cursor: pointer;
		background: rgba(7, 40, 58, 0.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
		opacity: 0; visibility: hidden; transition: opacity 0.3s var(--dt-ease), visibility 0.3s var(--dt-ease);
	}
	.dt-nav-cb:checked ~ .dt-nav-overlay { opacity: 1; visibility: visible; }

	/* Sliding panel */
	.dt-nav-panel {
		position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px);
		display: flex; flex-direction: column;
		background: var(--wp--preset--color--primary-dark);
		padding: 0 0 max(1.5rem, env(safe-area-inset-bottom));
		transform: translateX(100%); transition: transform 0.4s var(--dt-ease);
		box-shadow: -24px 0 70px rgba(7,55,81,0.4); overflow-y: auto; overscroll-behavior: contain;
		z-index: 205; -webkit-overflow-scrolling: touch;
	}
	.dt-nav-cb:checked ~ .dt-nav-panel { transform: translateX(0); }
	/* On open, focus moves to the panel itself (not the first link) so no menu
	   item lights up with a focus ring — the panel is a silent focus target. */
	.dt-nav-panel:focus { outline: none; }

	/* Panel header: title + close, sticky so × stays reachable while scrolling. */
	.dt-nav-panel__head {
		display: flex; align-items: center; justify-content: space-between;
		min-height: var(--dt-header-h); padding: 0.75rem 1.4rem;
		border-bottom: 1px solid rgba(255,255,255,0.14);
		position: sticky; top: 0; background: var(--wp--preset--color--primary-dark); z-index: 3;
	}
	.dt-nav-panel__title {
		font-family: var(--wp--preset--font-family--display); font-size: 1.2rem; font-weight: 600; color: #fff;
	}
	.dt-nav-close {
		position: relative; width: 42px; height: 42px; border-radius: 999px; cursor: pointer; flex: none;
		display: inline-flex; align-items: center; justify-content: center;
		background: rgba(255,255,255,0.09); transition: background 0.2s var(--dt-ease);
	}
	.dt-nav-close:hover { background: rgba(255,255,255,0.18); }
	.dt-nav-close span { position: absolute; width: 18px; height: 2.5px; background: #fff; border-radius: 2px; }
	.dt-nav-close span:nth-child(1) { transform: rotate(45deg); }
	.dt-nav-close span:nth-child(2) { transform: rotate(-45deg); }

	/* Menu list */
	.dt-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0.75rem; }
	.dt-menu > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
	.dt-menu > li:last-child { border-bottom: 0; }
	.dt-menu a { color: #fff; padding: 0.9rem 0.75rem; font-size: 1.08rem; font-weight: 600; white-space: normal; }
	.dt-menu > li > a::before { display: none; }
	.dt-menu > li.menu-item-has-children > a { display: block; padding-right: 3.5rem; }
	.dt-menu .menu-item-has-children > a::after { display: none; }

	/* Chevron toggle (JS-inserted button, overlays the parent row's right edge). */
	.dt-sub-toggle {
		position: absolute; top: 0; right: 0; width: 56px; height: 56px;
		display: flex; align-items: center; justify-content: center;
		background: none; border: 0; cursor: pointer; color: #fff; z-index: 1;
	}
	.dt-sub-toggle::after {
		content: ""; width: 0.5em; height: 0.5em; margin-top: -0.15em;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
		transform: rotate(45deg); opacity: 0.75; transition: transform 0.25s var(--dt-ease);
	}
	.dt-menu .menu-item-has-children.is-open > .dt-sub-toggle::after { transform: rotate(-135deg); margin-top: 0.1em; }
	.dt-sub-toggle:hover::after, .dt-sub-toggle:focus-visible::after { opacity: 1; }

	/* Submenu: expanded by default (no-JS fallback); JS collapses it into an accordion. */
	.dt-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		background: transparent; border: 0; box-shadow: none; margin: 0; padding: 0 0 0.6rem 0.75rem;
	}
	.dt-menu .sub-menu a { color: rgba(255,255,255,0.82); font-size: 1rem; font-weight: 500; padding: 0.6rem 0.75rem; }
	/* Drawer submenu links are white text — the desktop hover (light surface bg)
	   would render white-on-white. Use a translucent white wash instead. */
	.dt-menu .sub-menu a:hover, .dt-menu .sub-menu a:focus { background: rgba(255,255,255,0.10); color: #fff; }
	.js-nav .dt-menu .menu-item-has-children > .sub-menu {
		max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0;
		transition: max-height 0.32s var(--dt-ease);
	}
	.js-nav .dt-menu .menu-item-has-children.is-open > .sub-menu { max-height: 65vh; overflow-y: auto; padding-bottom: 0.6rem; }

	/* Declutter the mobile header bar: logo + hamburger only. */
	.dt-header .wp-block-site-title { display: none; }
	.dt-header > .dt-header-inner > .wp-block-group:last-child { display: none; }
	/* The glass is on .dt-header-inner::before (see Header above), so the fixed
	   drawer is never trapped inside the bar — no need to drop the blur here. */
	.dt-header-inner { gap: 0.75rem; }

	/* Contact + language, at the foot of the drawer. */
	.dt-nav-extra {
		display: flex; flex-direction: column; gap: 0.4rem;
		margin: 0.75rem 0.75rem 0; padding: 1.25rem 0.75rem 0;
	}
	.dt-nav-extra__item {
		display: inline-flex; align-items: center; gap: 0.6rem;
		color: rgba(255,255,255,0.9) !important; font-weight: 600; font-size: 1.05rem;
	}
	.dt-nav-extra__item span { color: var(--wp--preset--color--accent); }
	.dt-nav-extra__langs { margin-top: 0.9rem; }
	.dt-nav-extra .dt-langs { justify-content: flex-start; gap: 0.4rem; }
	.dt-nav-extra .dt-langs a { color: rgba(255,255,255,0.75); font-size: 0.95rem; padding: 0.4rem 0.7rem; }
	.dt-nav-extra .dt-langs .is-active a { color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--accent); }
}

/* Destination galleries (Vis, Omiš): uniform 4:3 tiles so a portrait photo
   does not make its row taller than the rest; rounded like the feature cards. */
.dt-section .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: clip;
}
.dt-section .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}
.dt-section .wp-block-gallery { margin-top: var(--wp--preset--spacing--40, 2rem); }
@media (max-width: 600px) {
	.dt-section .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
		width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) / 2);
	}
}
