/* ==========================================================================
   Dubrovnik Outdoor — main.css
   Same look as the old BeTheme site (adventure3): dark green page, white text,
   Unbounded headings, Poppins text, cyan accents. No WordPress block CSS is
   loaded on the front end — every core block we use is styled here.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-italic-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/unbounded-700-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
	--green: #385538;
	--green-deep: #2c452c;
	--cyan: #5bdbdc;
	--teal: #00bcd4;
	--blue: #0089f7;
	--sand: #ecdeca;
	--lime: #8bc34a;
	--rust: #a63d11;
	--brown: #3b3634;
	--white: #fff;
	--ink: #161922;

	--font-text: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-display: "Unbounded", "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

	--wrap: 1220px;
	--gutter: clamp(20px, 4vw, 40px);
	--section-y-top: clamp(64px, 9vw, 120px);
	--section-y-bottom: clamp(48px, 6vw, 80px);
	--header-h: 90px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	overflow-x: clip; /* full-bleed tour scroller */
	background: var(--green);
	color: var(--white);
	font: 400 16px/1.625 var(--font-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sand); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
figure { margin: 0; }
hr { border: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--cyan); color: var(--ink); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--white); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0 0 .5em; text-wrap: balance; }
h5, h6 { font-family: var(--font-text); margin: 0 0 .75em; }
h1 { font-size: clamp(34px, 5.2vw, 57.6px); line-height: 1.1; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: clamp(24px, 3vw, 36px); line-height: 1.22; }
h4 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; }
h5 { font-size: 18px; line-height: 26px; font-weight: 600; }
h6 { font-size: 14px; line-height: 22px; font-weight: 700; }
strong, b { font-weight: 700; }
mark.has-inline-color { background: none; }

/* Palette (editor colour slugs) */
.has-green-color { color: var(--green) !important; }
.has-cyan-color { color: var(--cyan) !important; }
.has-teal-color { color: var(--teal) !important; }
.has-blue-color { color: var(--blue) !important; }
.has-sand-color { color: var(--sand) !important; }
.has-lime-color { color: var(--lime) !important; }
.has-white-color { color: var(--white) !important; }
.has-green-background-color { background-color: var(--green) !important; }
.has-cyan-background-color { background-color: var(--cyan) !important; }
.has-teal-background-color { background-color: var(--teal) !important; }
.has-blue-background-color { background-color: var(--blue) !important; }
.has-sand-background-color { background-color: var(--sand) !important; }
.has-lime-background-color { background-color: var(--lime) !important; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header__inner {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
	max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
	padding: 20px var(--gutter);
}
.site-header .menu { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-header__nav--right .menu { justify-content: flex-end; }
.site-header .menu a {
	display: block; padding: 8px 0;
	color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.site-header .menu a:hover, .site-header .menu a[aria-current] { color: var(--cyan); }
.site-header__logo { display: block; color: inherit; }
.logo--mark { display: block; width: 110px; height: 110px; }
.logo--wide { display: none; width: 150px; height: 60px; }

/* Solid header: after scrolling, and on pages without a hero */
.site-header.is-solid, .no-hero .site-header { background: var(--white); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.site-header.is-solid .site-header__inner, .no-hero .site-header .site-header__inner { padding-top: 10px; padding-bottom: 10px; }
.site-header.is-solid .logo--mark, .no-hero .site-header .logo--mark { width: 60px; height: 60px; }
.site-header.is-solid .menu a, .no-hero .site-header .menu a { color: var(--teal); }
.site-header.is-solid .menu a:hover, .no-hero .site-header .menu a:hover,
.site-header.is-solid .menu a[aria-current], .no-hero .site-header .menu a[aria-current] { color: var(--brown); }
.no-hero .site-main { padding-top: 80px; }

.burger { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--teal); }
.burger__lines, .burger__lines::before, .burger__lines::after {
	position: absolute; left: 7px; right: 7px; height: 2px; background: currentColor; border-radius: 2px;
	transition: transform .25s var(--ease), opacity .2s;
}
.burger__lines { top: 21px; }
.burger__lines::before, .burger__lines::after { content: ""; left: 0; right: 0; }
.burger__lines::before { top: -9px; }
.burger__lines::after { top: 9px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
	position: fixed; inset: 0 0 0 auto; z-index: 99; width: min(320px, 85vw);
	padding: 100px 32px 32px; background: var(--green-deep);
	box-shadow: -20px 0 40px rgba(0, 0, 0, .25);
	transform: translateX(100%); transition: transform .3s var(--ease);
}
.mobile-menu.is-open { transform: none; }
.mobile-menu__list { margin: 0; padding: 0; list-style: none; }
.mobile-menu__list a { display: block; padding: 12px 0; color: var(--white); font: 700 20px/1.3 var(--font-display); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mobile-menu__list a:hover, .mobile-menu__list a[aria-current] { color: var(--cyan); }

/* Below 1240px: white bar, wide logo, burger (old site's mobile header) */
@media (max-width: 1239px) {
	.site-header { background: var(--white); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
	.site-header__inner { grid-template-columns: 1fr auto; padding-top: 10px; padding-bottom: 10px; }
	.site-header__nav { display: none; }
	.site-header .logo--mark { display: none; }
	.site-header .logo--wide { display: block; }
	.burger { display: block; }
	.has-hero .site-main, .no-hero .site-main { padding-top: 80px; }
	.has-hero .site-main > .entry:first-child .hero:first-child { min-height: calc(100svh - 80px); }
}

/* ---------- Layout ---------- */
.entry-content > *, .section, .archive { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.entry-content > :where(:not(.alignfull):not(.wp-block-cover):not(.wp-block-group)) { padding-left: var(--gutter); padding-right: var(--gutter); }
.entry-content > .wp-block-group, .entry-content > .wp-block-cover { max-width: none; }
.section, .wp-block-group.section {
	padding: var(--section-y-top) var(--gutter) var(--section-y-bottom);
}
.wp-block-group.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.wp-block-group.has-background { padding-top: 50px; padding-bottom: 50px; }
.section--narrow { max-width: 760px; }
.entry--tour .wp-block-group.section { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(40px, 5vw, 70px); }
/* ---------- Blog post ---------- */
.entry--post { --read: 760px; }
.post-meta { max-width: var(--read); margin: 32px auto 0; padding: 0 var(--gutter); color: var(--sand); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-meta a { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
.toc { max-width: var(--read); margin: 24px auto 0; padding: 0 var(--gutter); }
.toc details { border: 1px solid rgba(255, 255, 255, .18); background: var(--green-deep); }
.toc summary { padding: 14px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "–"; float: right; color: var(--cyan); }
.toc details:not([open]) summary::after { content: "+"; }
.toc ol { margin: 0; padding: 0 20px 16px; list-style: none; }
.toc li { margin: 4px 0; }
.toc a { color: var(--white); }
.toc a:hover { color: var(--cyan); }
.entry--post .entry-content { padding: 40px 0 var(--section-y-bottom); font-size: 17px; line-height: 1.75; }
.entry--post .entry-content > * { max-width: var(--read); }
.entry--post .entry-content > .wp-block-gallery, .entry--post .entry-content > .wp-block-image.alignwide { max-width: 1000px; }
.entry--post .entry-content > .wp-block-group, .entry--post .entry-content > .wp-block-gallery { width: calc(100% - 2 * var(--gutter)); }
.entry--post .entry-content h2 { margin-top: 2em; font-size: clamp(26px, 3vw, 36px); scroll-margin-top: 110px; }
.entry--post .entry-content h3 { margin-top: 1.6em; font-size: clamp(20px, 2.2vw, 24px); }
.entry--post .entry-content a:not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: 3px; }
.entry--post .entry-content ul, .entry--post .entry-content ol { padding-left: 1.4em; }
.entry--post .entry-content li { margin: .35em 0; }
.entry--post .entry-content li::marker { color: var(--cyan); }
.entry--post .wp-block-image img { width: 100%; }
.entry--post .entry-content > .wp-block-image { width: calc(100% - 2 * var(--gutter)); margin: 32px auto; }
.entry--post figcaption, .wp-element-caption { margin-top: 8px; color: var(--sand); font-size: 14px; text-align: center; }
.entry--post .wp-block-gallery { margin: 32px auto; }
.entry--post .wp-block-gallery .wp-block-image { transform: none; box-shadow: none; }
.wp-block-quote { position: relative; margin: 40px auto; padding: 28px 0 0; font-size: 20px; line-height: 1.6; font-style: italic; }
.wp-block-quote::before { content: "\201C"; position: absolute; top: -14px; left: -2px; color: var(--cyan); font: 700 64px/1 var(--font-display); font-style: normal; }
.wp-block-quote cite { display: block; margin-top: 8px; color: var(--sand); font-size: 14px; font-style: normal; }

/* Trail facts table */
.wp-block-table { margin: 28px auto; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.wp-block-table th, .wp-block-table td { padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .15); text-align: left; vertical-align: top; }
.wp-block-table thead th { color: var(--cyan); border-bottom: 2px solid var(--teal); }
.trail-facts tbody th { width: 38%; color: var(--sand); font-weight: 600; }

/* Boxes for posts (block patterns) */
.tour-cta { margin: 36px auto; padding: 28px 28px 30px; background: var(--green-deep); border: 1px solid rgba(91, 219, 220, .35); }
.tour-cta > * { max-width: none; margin-left: 0; }
.tour-cta__eyebrow { margin: 0 0 6px; color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tour-cta h3 { margin: 0 0 8px !important; }
.tour-cta .wp-block-buttons { margin-top: 18px; }
.local-tip { margin: 28px auto; padding: 18px 22px; background: rgba(91, 219, 220, .1); border: 1px dashed var(--teal); }
.local-tip > * { margin: 0; max-width: none; }

/* Tours mentioned in the post + author */
.related-tours { border-top: 1px dashed rgba(0, 188, 212, .5); }
.related-tours__title { margin-bottom: 32px; }
.author-box { display: flex; gap: 22px; align-items: flex-start; max-width: var(--read); margin: 0 auto 40px; padding: 28px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.author-box__img { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 62% 32%; }
.author-box__name { margin: 0 0 6px; font: 700 20px/1.3 var(--font-display); }
.author-box__name span { display: block; margin-top: 4px; color: var(--sand); font: 400 14px/1.4 var(--font-text); }
.author-box__bio { margin: 0 0 10px; }
.author-box__links { display: flex; align-items: center; gap: 16px; margin: 0; }
.social--inline { gap: 10px; }
.social--inline .social__link { color: var(--white); }
.social--inline .social__link:hover { color: var(--cyan); }
@media (max-width: 560px) { .author-box { flex-direction: column; } }
.entry-back { max-width: var(--read); margin: 0 auto var(--section-y-bottom); padding: 0 var(--gutter); }

/* ---------- Hero (core/cover + page hero) ---------- */
.hero, .wp-block-cover {
	position: relative; display: grid; place-items: center; overflow: hidden;
	min-height: min(100svh, 873px);
	padding: calc(var(--header-h) + 60px) var(--gutter) clamp(80px, 12vw, 160px);
	text-align: center; color: var(--white);
	isolation: isolate;
}
.wp-block-cover__image-background, .page-hero__img {
	position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.wp-block-cover__background { position: absolute; inset: 0; z-index: -1; background: #000; opacity: .5; }
.has-background-dim-0 { opacity: 0; }
.has-background-dim-10 { opacity: .1; }
.has-background-dim-20 { opacity: .2; }
.has-background-dim-30 { opacity: .3; }
.has-background-dim-40 { opacity: .4; }
.has-background-dim-60 { opacity: .6; }
.has-background-dim-70 { opacity: .7; }
.has-background-dim-80 { opacity: .8; }
.wp-block-cover__background.has-background-dim-0 { opacity: .25; } /* old site darkened photos via CSS */
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .45); }
.wp-block-cover__inner-container, .page-hero__inner { width: 100%; max-width: 980px; }
.hero h1, .page-hero__title { margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero__text, .page-hero__eyebrow { font: 600 18px/26px var(--font-text); margin: 0 0 14px; text-wrap: balance; }
.hero h1 ~ .hero__text { max-width: 760px; margin: 0 auto 8px; }
.hero .wp-block-buttons { justify-content: center; }
.page-hero { min-height: clamp(380px, 55vh, 560px); }

/* ---------- Buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.wp-block-button__link, .button, .ff-btn-submit {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 20px 24px; border: 0; border-radius: 0;
	background: var(--cyan); color: var(--white) !important;
	font: 700 14px/1.2 var(--font-text); text-align: center; cursor: pointer;
	transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.wp-block-button__link:hover, .button:hover, .ff-btn-submit:hover { background: var(--rust) !important; color: var(--white) !important; }
.wp-block-button__link:active { transform: translateY(1px); }

/* ---------- Columns, images, lists ---------- */
.wp-block-columns { display: flex; flex-wrap: nowrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column[style*="flex-basis"] { flex-grow: 0; }
.wp-block-column > :last-child { margin-bottom: 0; }
@media (max-width: 781px) {
	.wp-block-columns { flex-direction: column; align-items: stretch; }
	.wp-block-column { flex-basis: auto !important; }
}
.wp-block-image { margin: 0 0 1em; }
.wp-block-image img { width: auto; }
.wp-block-column > .wp-block-image img { width: 100%; }
.entry--tour .wp-block-columns { align-items: flex-start; }
.wp-block-separator { height: 0; margin: 28px 0; border-top: 1px dashed var(--teal); }

/* "Included" / "Tour information": two columns with a cyan marker */
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; padding: 0; list-style: none; }
.wp-block-column .feature-list { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { position: relative; padding-left: 44px; min-height: 30px; display: flex; align-items: center; }
.feature-list li::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px;
	background: var(--teal);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.entry--tour .section:has(> .feature-list) > h2:first-child { text-align: center; margin-bottom: 48px; }

/* Gallery: "fancy" polaroid tilt like the old site */
.wp-block-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 560px; margin-left: auto; }
.wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.wp-block-gallery .wp-block-image { margin: 0; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.wp-block-gallery .wp-block-image:nth-child(odd) { transform: rotate(-2.5deg); }
.wp-block-gallery .wp-block-image:nth-child(even) { transform: rotate(2.5deg); }
.wp-block-gallery .wp-block-image:hover { transform: rotate(0) scale(1.03); z-index: 1; }
.wp-block-gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 600px) { .wp-block-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Icon boxes (home: guide / small groups / hidden places) */
.wp-block-group.section:has(> .icon-box) { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.wp-block-group.section:has(> .icon-box) > * { max-width: none; margin: 0; }
.icon-box { text-align: center; }
.icon-box .wp-block-image img { margin: 0 auto; width: 60px; height: 60px; object-fit: contain; }
.icon-box h5 { color: var(--cyan); }

/* CTA band ("Ready to Explore Hidden Dubrovnik?") */
.wp-block-group.section.has-background { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.wp-block-group.section.has-background > * { margin: 0; max-width: none; }
.wp-block-group.section.has-background .wp-block-button__link { background: var(--green); }

/* FAQ (core/details) */
.wp-block-details.faq { counter-increment: faq; margin-bottom: 10px; background: var(--white); color: #000; }
.entry-content { counter-reset: faq; }
.wp-block-details.faq summary {
	display: flex; align-items: center; gap: 18px; padding: 14px 52px 14px 0; position: relative;
	cursor: pointer; list-style: none; font-weight: 500;
}
.wp-block-details.faq summary::-webkit-details-marker { display: none; }
.wp-block-details.faq summary::before {
	content: counter(faq); flex: 0 0 48px; align-self: stretch; display: grid; place-items: center;
	margin: -14px 0; border-right: 1px solid rgba(0, 0, 0, .1); font-weight: 600;
}
.wp-block-details.faq summary::after { content: "+"; position: absolute; right: 20px; font-size: 22px; line-height: 1; transition: transform .2s; }
.wp-block-details.faq[open] summary { color: var(--teal); }
.wp-block-details.faq[open] summary::after { transform: rotate(45deg); }
.wp-block-details.faq > :not(summary) { margin: 0; padding: 0 24px 18px 66px; }

/* ---------- Tour cards ---------- */
.tours { position: relative; }
.entry-content > .tours { padding-top: var(--section-y-top); padding-bottom: var(--section-y-bottom); }
.tours__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .tours__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tours__list { grid-template-columns: 1fr; } }
.tour-card__link { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 2 / 3; color: var(--sand); isolation: isolate; }
.tour-card__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tour-card__link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .39); transition: background-color .3s var(--ease); }
.tour-card__title { margin: 0; padding: 24px; color: var(--sand); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.22; text-align: center; }
/* "View tour": always visible, underline grows on hover — says the card is a link */
.tour-card__cta {
	position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
	padding-bottom: 6px; color: var(--sand); white-space: nowrap;
	font: 600 13px/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase;
	background: linear-gradient(var(--cyan), var(--cyan)) left bottom / 32px 2px no-repeat;
	transition: background-size .35s var(--ease), color .2s;
}
.tour-card__link:hover { color: var(--sand); }
.tour-card__link:hover .tour-card__img, .tour-card__link:focus-visible .tour-card__img { transform: scale(1.06); }
.tour-card__link:hover::after { background: rgba(59, 54, 52, .75); }
.tour-card__link:hover .tour-card__cta, .tour-card__link:focus-visible .tour-card__cta { background-size: 100% 2px; color: var(--white); }

/* Home: horizontal scroller (old site: slider, ~3 cards visible) */
.tours--slider .tours__list {
	display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	overscroll-behavior-x: contain;
	/* bleed to the right edge of the screen, so the next card visibly slides in */
	margin-right: calc((100% - 100vw) / 2); padding-right: var(--gutter); scroll-padding-left: 0;
}
.tours--slider .tours__list.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }
.tours--slider .tours__list.is-dragging .tour-card__link { pointer-events: none; }
.tours--slider img, .tours--slider a { -webkit-user-drag: none; user-select: none; }
@media (pointer: fine) {
	.tours--slider .tours__list.has-cursor, .tours--slider .tours__list.has-cursor a { cursor: none; }
}
/* Custom cursor over the scroller: "Drag" circle instead of the arrow */
.drag-cursor {
	position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
	display: grid; place-items: center; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
	background: var(--cyan); color: var(--green-deep);
	font: 700 13px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase;
	opacity: 0; transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(.4);
	transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.drag-cursor::before, .drag-cursor::after { content: "‹"; position: absolute; top: 50%; left: 14px; margin-top: -9px; font-size: 18px; }
.drag-cursor::after { content: "›"; left: auto; right: 14px; }
.drag-cursor.is-visible { opacity: 1; transform: translate3d(var(--x), var(--y), 0) scale(1); }
.drag-cursor.is-pressed { transform: translate3d(var(--x), var(--y), 0) scale(.8); }
.tours--slider .tours__list::-webkit-scrollbar { display: none; }
.tours--slider .tour-card { flex: 0 0 clamp(260px, 30%, 367px); scroll-snap-align: start; }

/* ---------- Previous / next tour ---------- */
.tour-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .12); }
.tour-nav__link { display: block; padding: 36px var(--gutter); color: var(--white); transition: background-color .2s; }
.tour-nav__link:hover { background: var(--green-deep); color: var(--white); }
.tour-nav__link--next { text-align: right; border-left: 1px solid rgba(255, 255, 255, .12); }
.tour-nav__label { display: block; color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tour-nav__title { display: block; margin-top: 6px; font: 700 clamp(16px, 2vw, 22px)/1.3 var(--font-display); }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 24px; margin: 0; padding: 0; list-style: none; }
.post-card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 16px; background: var(--green-deep); }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card__media:hover .post-card__img { transform: scale(1.05); }
.post-card__date { display: block; margin-bottom: 6px; color: var(--sand); font-size: 13px; }
.post-card__title { font-size: 22px; line-height: 1.3; letter-spacing: 0; }
.post-card__title a { color: var(--white); }
.post-card__title a:hover { color: var(--cyan); }
.post-card__excerpt { font-size: 15px; opacity: .85; }
.nav-links { display: flex; gap: 8px; margin-top: 48px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--teal); color: var(--white); }
.page-numbers.current, .page-numbers:hover { background: var(--teal); color: var(--white); }

/* ---------- Fluent Forms on dark green ---------- */
.fluentform { max-width: var(--wrap); margin: 0 auto; padding: var(--section-y-top) var(--gutter) var(--section-y-bottom); }
.fluentform .ff-el-input--label label, .fluentform .ff-el-section-title { color: var(--white) !important; font-weight: 600; }
.fluentform .ff-el-section-title { font-size: clamp(20px, 2vw, 24px) !important; margin-top: 12px; }
.fluentform .ff-el-form-control {
	border: 1px solid rgba(255, 255, 255, .25) !important; border-radius: 0 !important;
	background: rgba(255, 255, 255, .06) !important; color: var(--white) !important;
	font: 16px/1.5 var(--font-text) !important; padding: 14px 16px !important;
}
.fluentform .ff-el-form-control:focus { border-color: var(--cyan) !important; }
.fluentform select.ff-el-form-control option { color: var(--ink); }
.fluentform .ff-el-section-break hr { border-top: 1px dashed var(--teal) !important; }
.ff-message-success { border: 0 !important; background: var(--teal) !important; color: var(--white) !important; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 60px var(--gutter) 20px; background: var(--green-deep); color: var(--white); }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: var(--wrap); margin: 0 auto; }
.site-footer__logo { display: block; width: 76px; margin-bottom: 20px; }
.site-footer__about p { max-width: 460px; }
.site-footer__title { margin: 0 0 12px; font: 700 14px/22px var(--font-text); letter-spacing: 0; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--cyan); }
.site-footer__divider { display: flex; align-items: center; gap: 20px; max-width: var(--wrap); margin: 40px auto 16px; color: var(--teal); font-size: 13px; font-weight: 600; white-space: nowrap; }
.site-footer__divider::before, .site-footer__divider::after { content: ""; flex: 1; border-top: 1px dashed var(--teal); }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: var(--wrap); margin: 0 auto; font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.to-top { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--sand); color: var(--sand) !important; text-decoration: none !important; transition: transform .2s var(--ease); }
.to-top:hover { transform: translateY(-3px); }
@media (max-width: 900px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.site-footer__inner { grid-template-columns: 1fr; }
	.site-footer__bottom { flex-direction: column-reverse; text-align: center; }
}

/* Jovanka's photo on desktop: text in a left column, she stays visible on the right */
@media (min-width: 782px) {
	.wp-block-cover.hero:has(.wp-image-133) {
		place-items: center start; text-align: left;
		padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
	}
	.wp-block-cover.hero:has(.wp-image-133) .wp-block-cover__inner-container { max-width: min(600px, 48vw); }
	.wp-block-cover.hero:has(.wp-image-133) .wp-block-buttons { justify-content: flex-start; }
	.wp-block-cover.hero:has(.wp-image-133)::before {
		content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
		background: linear-gradient(to right, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, 0) 75%);
	}
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 781px) {
	.hero, .wp-block-cover { padding-top: 80px; }
	/* Hero text sits at the bottom, so the people in the photo stay visible above it */
	.wp-block-cover.hero { place-items: end center; padding-bottom: clamp(56px, 12svh, 110px); }
	.wp-block-cover.hero::before {
		content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
		background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .4) 40%, rgba(0, 0, 0, 0) 65%);
	}
	.wp-block-cover.hero h1 { font-size: 32px; margin-bottom: 12px; }
	.wp-block-cover.hero .hero__text { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
	.wp-block-cover.hero .wp-block-buttons { margin-top: 18px; }
	/* Jovanka's photo (Home, Activities): image a bit higher, her face above the text */
	.wp-block-cover.hero .wp-image-133 { top: -16%; height: 116%; object-position: 62% center; }
	.tour-nav { grid-template-columns: 1fr; }
	.tour-nav__link--next { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* Logged-in: keep the fixed header below the admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } } /* admin bar scrolls away on phones */

/* ---------- Social links ---------- */
.social { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.social__link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none !important; transition: color .2s, background-color .2s, border-color .2s; }
.social__icon { flex: none; }
.social--footer { margin-top: 20px; flex-direction: column; gap: 8px; }
.social--footer .social__link { color: var(--white); }
.social--footer .social__link:hover { color: var(--cyan); }
.social--menu { gap: 8px; margin-top: 28px; }
.social--menu .social__link { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); color: var(--white); }
.social--menu .social__link:hover { border-color: var(--cyan); color: var(--cyan); }
.social--buttons { gap: 10px; margin-top: 28px; }
.social--buttons .social__link { padding: 14px 20px; border: 2px solid var(--teal); color: var(--white); font-weight: 600; font-size: 15px; }
.social--buttons .social__link:hover { background: var(--teal); color: var(--white); }

/* ---------- Follow us (front page) ---------- */
.follow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; border-top: 1px dashed rgba(0, 188, 212, .5); }
.follow:not(:has(.follow__feed)) { grid-template-columns: 1fr; text-align: center; }
.follow:not(:has(.follow__feed)) .social { justify-content: center; }
.follow:not(:has(.follow__feed)) .follow__text { margin-left: auto; margin-right: auto; }
.follow__eyebrow { margin: 0 0 10px; color: var(--cyan); font-weight: 600; font-size: 18px; }
.follow__title { margin-bottom: 16px; }
.follow__text { max-width: 460px; }
.follow__feed { min-width: 0; }
@media (max-width: 900px) { .follow { grid-template-columns: 1fr; } }

/* ---------- From the blog (tours, Activities) ---------- */
.blog-strip { border-top: 1px dashed rgba(0, 188, 212, .5); }
.blog-strip__eyebrow { margin: 0 0 8px; color: var(--cyan); font-weight: 600; font-size: 18px; }
.blog-strip__title { margin-bottom: 32px; }
.blog-strip .post-card__title { font-size: 20px; }
