/* Inter — self-hosted variable font (GDPR-clean, no external font CDN).
   Two subsets: latin + latin-extended so Slovak diacritics (č š ž ľ ô …) render. */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* e-travel Core — shared base styles.
   Child themes override the CSS variables below to rebrand per site. */

:root {
	--brand: #2264d1;      /* overridden by each child theme */
	--ink:   #14181f;
	--bg:    #ffffff;
	--muted: #667085;
	--line:  #eef0f3;
	--wrap:  1080px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.55;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 24px;
}
.site-title {
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.01em;
	color: var(--brand);
	text-decoration: none;
}
.site-nav ul {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--brand); }

/* Hero */
.hero {
	padding: 96px 24px;
	text-align: center;
	background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, #fff), #fff);
}
.hero h1 {
	margin: 0 0 8px;
	font-size: clamp(32px, 5vw, 48px);
	color: var(--brand);
	letter-spacing: -0.02em;
}
.hero .tagline {
	margin: 0 0 24px;
	font-size: 18px;
	color: var(--muted);
}
.badge {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	font-size: 13px;
	color: var(--muted);
}
.badge code { color: var(--brand); }

/* Content — the homepage sections own their vertical rhythm; other templates
   (index/page) add their own .wrap padding. */
.site-main { padding: 0; }
.entry-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }

/* Hide the scrollbar on swipe sliders (scroll-snap still works). */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* CONTENT links — one rule everywhere prose/rich text renders (post bodies,
   prose sections, FAQ answers): underline + INHERITED colour, inherited weight,
   nothing else. We are fighting a decade of hand-styled links in the legacy
   content (colours, highlights, bold) — the sanitiser strips the decoration and
   this rule is the single source of what remains. Brand-coloured "Learn more →"
   affordances are COMPONENT links, not content, and keep their own styling. */
/* :where() keeps specificity at the utility level and honours not-prose, so
   sanitiser-dressed buttons (.not-prose .bg-brand .text-white) keep their look. */
.prose :where(a):not(:where([class~="not-prose"], [class~="not-prose"] *)),
.etravel-richtext :where(a):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
	color: inherit;
	font-weight: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}
.prose :where(a:hover):not(:where([class~="not-prose"], [class~="not-prose"] *)),
.etravel-richtext :where(a:hover):not(:where([class~="not-prose"], [class~="not-prose"] *)) { color: var(--brand); }

/* In-content FAQs (<details>/<summary> pasted into posts — their own styling is
   stripped by the content sanitiser, this puts them on-design). The shared `faq`
   SECTION component styles itself with utilities; this covers prose content. */
.prose details {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	margin: 10px 0;
	padding: 0;
}
.prose summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	font-weight: 600;
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; flex-shrink: 0; }
.prose details[open] summary::after { content: '−'; }
.prose details > *:not(summary) { padding: 0 18px; }
.prose details > *:not(summary):last-child { padding-bottom: 14px; }

/* Anchor navigation, site-wide: smooth scroll (unless reduced motion) and
   clearance for the sticky header above EVERY in-page #target. Tour-detail
   sections need more — the sticky micro-nav stacks under the main header. */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
[id] {
	scroll-margin-top: 6.5rem;
}
#overview, #gallery, #itinerary, #map, #video, #enquiry {
	scroll-margin-top: 16.5rem;
}

/* Hero background rotator — a plain cross-fade (no sliding, no zoom), softly
   blurred behind the copy. Images are lazy-loaded by assets/js/hero-rotator.js;
   only the first ships with a src. The blur + overflow:hidden live on the WRAPPER
   (one filter, cheaper than blurring each image); the slight scale pushes the
   blur's soft edge outside the clip so it never bleeds past the container. */
[data-hero-rotator] {
	overflow: hidden;
}
.hero-rotator__slide {
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.8s ease-in-out;
	will-change: opacity;
}
.hero-rotator__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.hero-rotator__slide { transition: opacity .4s linear; }
}

/* Footer */
.site-footer {
	margin-top: 64px;
	padding: 32px 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}

/* ------------------------------------------------------------------ *
 * Forms — ONE control style, ours (not the plugin's), applied to both
 * our `.etravel-form` shell and Contact Form 7 output (`.wpcf7-form`),
 * so inputs / selects / radios / checkboxes look identical everywhere.
 * Plain CSS on purpose: CF7 owns the markup, we own the look.
 * ------------------------------------------------------------------ */
.etravel-form,
.wpcf7-form { color: #222222; }

/* Optional responsive grid rows (e.g. first/last name, single/double rooms). */
.etravel-form .etr-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) { .etravel-form .etr-grid { grid-template-columns: 1fr; } }

/* Field block + label. */
.etravel-form .etr-field { margin-bottom: 18px; }
.etravel-form label,
.wpcf7-form label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #222222;
	margin-bottom: 6px;
}

/* Text-like controls + select + textarea. */
.etravel-form input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.etravel-form select,
.etravel-form textarea,
.wpcf7-form input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	background: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 10px;
	padding: 11px 14px;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: #222222;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.etravel-form textarea,
.wpcf7-form textarea { min-height: 120px; resize: vertical; }

.etravel-form input::placeholder,
.etravel-form textarea::placeholder,
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: #b0b0b0; }

/* Custom select chevron. */
.etravel-form select,
.wpcf7-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 40px;
}

/* Focus ring in the site brand. */
.etravel-form input:focus,
.etravel-form select:focus,
.etravel-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

/* Radios & checkboxes — brand accent, laid out as chips of options. */
.etravel-form input[type="radio"],
.etravel-form input[type="checkbox"],
.wpcf7-form input[type="radio"],
.wpcf7-form input[type="checkbox"] {
	appearance: auto;
	-webkit-appearance: auto;
	width: 1.05em;
	height: 1.05em;
	accent-color: var(--brand);
	margin: 0;
	vertical-align: -2px;
}
.wpcf7-form .wpcf7-radio,
.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-acceptance { display: inline-flex; flex-wrap: wrap; gap: 10px 18px; }
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form .wpcf7-list-item label,
.etravel-form .etr-option label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 400;
	color: #222222;
	cursor: pointer;
}
.wpcf7-form .wpcf7-acceptance label { align-items: flex-start; font-size: 14px; color: #717171; }

/* Submit button — matches our primary button. */
.etravel-form input[type="submit"],
.etravel-form button[type="submit"],
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
	appearance: none;
	-webkit-appearance: none;
	background: var(--brand);
	color: #ffffff;
	border: 0;
	border-radius: 8px;
	padding: 12px 22px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s ease;
	min-height: 44px;
}
.etravel-form input[type="submit"]:hover,
.wpcf7-form input[type="submit"]:hover { filter: brightness(1.08); }

/* CF7 validation + response messaging. */
.wpcf7-form .wpcf7-not-valid-tip { color: #b3261e; font-size: 12.5px; margin-top: 5px; }
.wpcf7-not-valid { border-color: #b3261e !important; }
.wpcf7-form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 16px;
	border: 1px solid #dddddd;
	border-radius: 10px;
	font-size: 14px;
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output { border-color: #f0c36d; background: #fff8ea; }
.wpcf7-form.sent .wpcf7-response-output { border-color: #8ed0a9; background: #f0faf4; color: #0f7a4f; }
