/*!
Theme Name: Zeen Child
Theme URI: https://citynomads.com
Description: Child theme for Zeen — custom slider and layout tweaks.
Author: Citynomads
Template: zeen
Version: 1.0.0
Requires at least: 5.4
Text Domain: zeen-child
*/
/* Parent `zeen` stylesheet loads first; overrides and additions follow. */

:root {
	/* Citynomads palette — canonical tokens for child CSS, blocks, and future PHP/customizer hooks. */
	--zeen-child-color-cream: #fffdf2;
	--zeen-child-color-sand-light: #f2efe2;
	--zeen-child-color-sand-mid: #d9d6ca;
	--zeen-child-color-text-soft: #6b6a64;
	--zeen-child-color-text-body: #444444;
	--zeen-child-color-logo-dark: #2d2d2d;
	--zeen-child-color-ink: #202020;

	/*
	 * Usage (design intent):
	 *   --zeen-child-color-cream      — site background; logo (light on dark)
	 *   --zeen-child-color-sand-light — hovers; light surfaces
	 *   --zeen-child-color-sand-mid   — mid neutrals (borders, dividers, subtle bands)
	 *   --zeen-child-color-text-soft  — tags; muted / secondary text
	 *   --zeen-child-color-text-body  — main article body copy
	 *   --zeen-child-color-logo-dark  — logo (dark on light)
	 *   --zeen-child-color-ink        — headlines; nav; CTAs; dark backgrounds
	 */

	/* Breadcrumbs: space around `>` via flex gap (separator has no extra spaces in HTML) */
	--zeen-child-breadcrumb-sep-gap: 0.4em;

	/* Megamenu post grid: thumb `citynomads_mm_square`; font sizes from Customizer → section “Megamenu post grid” (functions.php). */
	--zeen-child-mm-thumb: 120px;
	--zeen-child-mm-font-title: 13px;
	--zeen-child-mm-font-body: 12px;

	/* Convenience aliases used in this stylesheet */
	--zeen-child-page-bg: var(--zeen-child-color-cream);
	--zeen-child-cta-bg: var(--zeen-child-color-ink);
	--zeen-child-cta-sand: var(--zeen-child-color-sand-light);
	--zeen-child-arrow-border: var(--zeen-child-color-cream);

	/* Subscribe modal (Brevo / organic stacked fields — visual reference) */
	--zeen-child-form-field-gap: 0.45rem;
	--zeen-child-form-group-gap: 1.75rem;

	/* Brevo subscribe form — flash messages (override plugin inline alert CSS) */
	--zeen-child-form-alert-error-bg: #f0e8e8;
	--zeen-child-form-alert-error-text: #5c2f2f;
	--zeen-child-form-alert-error-accent: #8b4545;
	--zeen-child-form-alert-success-bg: #e8ece8;
	--zeen-child-form-alert-success-text: #2a3d30;
	--zeen-child-form-alert-success-accent: #4a6b52;
	--zeen-child-form-alert-warning-bg: #f2efe6;
	--zeen-child-form-alert-warning-text: #5c5340;
	--zeen-child-form-alert-warning-accent: #8a7a5a;

	/*
	 * Full-width Slider A/B: `--zeen-child-site-width` may be set in child `functions.php`
	 * to mirror Theme Options → Site Width.
	 */
}

/*
 * Global
 */
body {
	background-color: var(--zeen-child-page-bg);
}

/*
 * Byline: soft text + sand chip (byline only — not breadcrumbs) on default single/page hero meta.
 * Zeen’s Customizer `color_byline` is inlined on `zeen-style` — use !important only in this scoped block.
 * Skip chip / forced color when `.meta-with-color` (hero text color) or on image-overlay meta.
 */
.byline,
.byline a {
	color: var(--zeen-child-color-text-soft);
}

.hero-meta .meta:not(.meta-with-color) .byline,
.hero-meta .meta:not(.meta-with-color) .byline a {
	color: var(--zeen-child-color-text-soft) !important;
}

/*
 * Sand highlight on each byline segment (not the wrapper), so multi-line text wraps like a marker
 * and does not form one full-width block. Omit avatar + separators.
 */
.hero-meta .meta:not(.meta-with-color) .byline > .byline-part:not(.author-avatar):not(.separator) {
	background-color: var(--zeen-child-color-sand-light);
	padding: 0.08em 0.35em;
	border-radius: 3px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	vertical-align: baseline;
}

.hero-meta .meta:not(.meta-with-color) .byline > .byline-part.cats {
	display: inline;
	max-width: 100%;
}

.hero-meta .meta.meta-with-color .byline > .byline-part,
.meta-overlay-base .with-fi .meta .byline > .byline-part,
.meta-overlaid article .meta .byline > .byline-part,
.classic-to-grid .meta .byline > .byline-part {
	background-color: transparent;
	padding: 0;
	border-radius: 0;
	box-decoration-break: unset;
	-webkit-box-decoration-break: unset;
}

.hero-meta .meta.meta-with-color .byline > .byline-part.cats,
.meta-overlay-base .with-fi .meta .byline > .byline-part.cats,
.meta-overlaid article .meta .byline > .byline-part.cats,
.classic-to-grid .meta .byline > .byline-part.cats {
	display: revert;
}

/* Zeen: hover rotate misaligns the icon in several layouts (e.g. modal close in a flex box). */
.tipi-x-wrap:hover {
	transform: none;
}

/*
 * Single post: hero featured-image caption — width + ellipsis; mobile placement
 * Parent `.hero-wrap .caption` is bottom-aligned; with title-middle (and similar) the overlay title
 * covers it. Pin the credit to the top on small screens (same idea as Zeen’s `title-middle-cut` desktop rule).
 */
.single-post .hero-wrap .caption {
	background-color: color-mix(
		in srgb,
		var(--zeen-child-color-sand-light) 50%,
		transparent
	);
	border-radius: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media only screen and (max-width: 859px) {
	.single-post .hero-wrap .caption {
		bottom: auto;
		top: 2em;
		right: 0;
		font-family: 'Sora', sans-serif;
		font-size: 12px;
	}
}

/*
 * Zeen injects `skin_17` (darkened Theme Options → Skin) on this bundle when skin ≠ #fff.
 * Align with Citynomads cream (`!important` wins over `wp_add_inline_style` on `zeen-style`).
 * Exclude `.background.mask` — Zeen uses that in the footer (and elsewhere); bare `.mask` was
 * painting the footer scrim cream and hiding the dark `#272727` footer widgets area.
 */
.wpcf7-form p {
	margin: 0;
}

.wpcf7-form-control-wrap {
	margin: 0;
}

.wpcf7 label {
	font-family: 'Sora', sans-serif;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item label,
.wpcf7 .wpcf7-acceptance label {
	display: inline-flex;
	align-items: baseline;
	gap: 0.5em;
	cursor: pointer;
}

.wpcf7 .wpcf7-checkbox input[type="checkbox"],
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
	width: 1.5em;
	height: 1.5em;
	margin: 0;
	border: 2px solid var(--zeen-child-color-sand-mid);
	border-radius: 2px;
	background-color: var(--zeen-child-color-sand-light);
	cursor: pointer;
	position: relative;
	top: 0.15em;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wpcf7 .wpcf7-checkbox input[type="checkbox"]:hover,
.wpcf7 .wpcf7-acceptance input[type="checkbox"]:hover {
	border-color: var(--zeen-child-color-text-soft);
}

.wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked,
.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked {
	background-color: var(--zeen-child-color-sand-light) !important;
	border-color: var(--zeen-child-color-ink) !important;
	top: 0.4em;
}

.wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked::after,
.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
    left: 5px;
    top: -2px;
    width: 4px;
    height: 11px;
	border: solid var(--zeen-child-color-ink);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.wpcf7 .wpcf7-checkbox input[type="checkbox"]:focus-visible,
.wpcf7 .wpcf7-acceptance input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--zeen-child-color-text-soft);
	outline-offset: 2px;
}

.wpcf7 input[type="submit"] {
	margin-top: 1.5em;
}

.wpcf7 input[type="submit"]:hover {
	box-shadow: none !important;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-text[type="text"],
.wpcf7-form-control.wpcf7-text[type="email"],
.wpcf7-form-control.wpcf7-textarea {
	background-color: var(--zeen-child-color-sand-light) !important;
	font-weight: 400;
	color: var(--zeen-child-color-ink) !important;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-text[type="text"]:focus,
.wpcf7-form-control.wpcf7-text[type="email"]:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
	background-color: var(--zeen-child-color-sand-light) !important;
}

.wpcf7 select.wpcf7-form-control {
	-webkit-appearance: none;
	appearance: none;
	border: 2px solid var(--zeen-child-color-sand-light);
	padding-right: 2.5em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236b6a64' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75em center;
	background-size: 12px 8px;
}

span.wpcf7-not-valid-tip {
	font-family: 'Sora', sans-serif;
	font-size: inherit !important;
	color: var(--zeen-child-form-alert-error-accent) !important;
	margin-top: 0.5em;
}

.wpcf7-response-output {
	font-family: 'Sora', sans-serif;
	font-size: inherit;
	border-color: var(--zeen-child-form-alert-error-accent) !important;
	color: var(--zeen-child-form-alert-error-text);
	background-color: var(--zeen-child-form-alert-error-bg);
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--zeen-child-form-alert-success-accent) !important;
	color: var(--zeen-child-form-alert-success-text);
	background-color: var(--zeen-child-form-alert-success-bg);
}

.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: var(--zeen-child-form-alert-warning-accent) !important;
	color: var(--zeen-child-form-alert-warning-text);
	background-color: var(--zeen-child-form-alert-warning-bg);
}

.hero,
.mask:not(.background),
.preview-grid .mask,
.preview-slider .mask,
.user-page-box {
	background-color: var(--zeen-child-color-cream) !important;
}

/* Block section titles — hide Zeen / Customizer “classic title line” on :before/:after (flex spacers stay). */
.block-title-wrap-style .block-title::after,
.block-title-wrap-style .block-title::before {
	border-top: none !important;
	margin-top: 0 !important;
}

/*
 * Header: main menu flex order
 */
.site-header .main-navigation .logo-l-padding {
	order: 1;
}
.site-header .main-navigation #menu-main-menu {
	order: 2;
}
.site-header .main-navigation .tipi-button-cta-wrap-header {
	order: 3;
}

/*
 * Header: CTA — disable arrow animation
 */
.site-header .tipi-button-cta {
	padding: 0 20px;
}
.site-header .tipi-button-cta.button-arrow-r {
	transform: none;
}
.site-header .tipi-button-cta.button-arrow-r:hover .button-title {
	transform: none;
}
.site-header .tipi-button-cta .tipi-i-arrow-right {
	display: none;
}

/*
 * Megamenu preview tiles (image + caption): Zeen centers `.preview-classic` titles in `.drop-it`
 * under `@media (min-width: 860px)` with higher specificity than `.mm-art .preview-classic …`;
 * `mm-art` and `drop-it` are on the same `li`, so `.mm-art.drop-it .block-wrap…` wins the cascade.
 */
.mm-art.drop-it .block-wrap:not(.tile-design-4) .preview-classic .title-wrap,
.mm-art .preview-thumbnail .meta,
.mm-art .stack-design-2 .meta,
.mm-art .block-78 article .meta {
	text-align: left;
}

.mm-art .stack-design-2 .meta {
	margin-left: 0;
	margin-right: auto;
}

.mm-art.drop-it .block-wrap:not(.tile-design-4) .preview-classic .title-wrap .variations > tbody {
	justify-content: flex-start;
}

.mm-art article .title,
.mm-art article .title a,
.mm-art .preview-thumbnail .meta .title,
.mm-art .preview-thumbnail .meta .title a {
	font-weight: 400;
}

/*
 * Megamenu design 51 (small thumbnails + submenus): parent CSS only defines .mm-51-ppp-2 … -5.
 * Child theme limits “Number Of Items” to 3 / 6 / 9; extra column widths for 6 and 9 only.
 */
.mm-51-ppp-6 .menu-wrap > .sub-menu > li {
	width: 16.666667%;
	box-sizing: border-box;
}
.mm-51-ppp-9 .menu-wrap > .sub-menu > li {
	width: 11.111111%;
	box-sizing: border-box;
}

/*
 * Megamenu post grid (ZeenBlockClassic in `.menu-wrap-more-10`): square thumb, title/meta to the right.
 * Overrides stack layout and “title on image” overlay so copy sits beside the image.
 */
.mm-art .menu-wrap-more-10 .block.tipi-flex {
	row-gap: 1.25rem;
}

.mm-art .menu-wrap-more-10 article.preview-classic .preview-mini-wrap,
.mm-art .menu-wrap-more-10 article.preview-thumbnail .preview-mini-wrap {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.mm-art .menu-wrap-more-10 article.preview-classic .preview-mini-wrap::after,
.mm-art .menu-wrap-more-10 article.preview-thumbnail .preview-mini-wrap::after {
	display: none;
}

.mm-art .menu-wrap-more-10 article .mask {
	flex: 0 0 var(--zeen-child-mm-thumb);
	width: var(--zeen-child-mm-thumb);
	max-width: 32%;
	margin: 0;
}

.mm-art .menu-wrap-more-10 article .mask img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.mm-art .menu-wrap-more-10 article.split-1 .mask {
	flex-basis: var(--zeen-child-mm-thumb);
}

.mm-art .menu-wrap-more-10 article .meta {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
	padding-left: 0 !important;
	padding-top: 0 !important;
	padding-right: 0 !important;
}

.mm-art .menu-wrap-more-10 article.stack-design-2 .meta {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.mm-art .menu-wrap-more-10 .meta-overlay-base .with-fi .meta,
.mm-art .menu-wrap-more-10 .tile-design-4 .meta {
	position: static !important;
	transform: none !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	padding: 0 !important;
	color: inherit !important;
	pointer-events: auto !important;
	text-align: left !important;
}

.mm-art .menu-wrap-more-10 .meta-overlay-base .with-fi .meta .title a,
.mm-art .menu-wrap-more-10 .meta-overlay-base .with-fi .meta .byline a,
.mm-art .menu-wrap-more-10 .meta-overlay-base .with-fi .meta .byline {
	color: inherit !important;
}

.mm-art .menu-wrap-more-10 .tile-design-4 .mask:before,
.mm-art .menu-wrap-more-10 .meta-overlay-base.with-fi .mask:before {
	display: none !important;
}

/*
 * Long titles: 4 lines + ellipsis. Line-clamp must apply to the element that directly
 * contains the text — Zeen uses `<h3 class="title"><a>…</a></h3>`, so clamp the `<a>`.
 */
.mm-art .menu-wrap-more-10 article .meta .title-wrap {
	min-width: 0;
	max-width: 100%;
}

.mm-art .menu-wrap-more-10 article .meta .title {
	display: block;
	margin: 0;
	overflow: hidden;
}

/* Zeen (desktop) adds padding-top on `.drop-it … .title`; reset in megamenu row layout. */
.mm-art.drop-it .menu-wrap-more-10 .preview-classic .title-wrap > .title {
	padding-top: 0 !important;
}

.mm-art .menu-wrap-more-10 article .meta .title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	word-break: break-word;
	overflow-wrap: break-word;
	min-width: 0;
	max-width: 100%;
}

/* Smaller type inside megamenu post tiles (overrides Zeen `.drop-it` / `.tipi-m-typo` defaults). */
.mm-art .menu-wrap-more-10 article .meta {
	font-size: var(--zeen-child-mm-font-body);
	line-height: 1.4;
}

.mm-art .menu-wrap-more-10 article .meta .title,
.mm-art .menu-wrap-more-10 article .meta .title a {
	font-size: var(--zeen-child-mm-font-title) !important;
	line-height: 1.5;
	font-weight: 500 !important;
}

.mm-art .menu-wrap-more-10 article .meta .subtitle,
.mm-art .menu-wrap-more-10 article .meta .excerpt,
.mm-art .menu-wrap-more-10 article .meta .price {
	font-size: var(--zeen-child-mm-font-body) !important;
}

.mm-art .menu-wrap-more-10 article .meta .byline,
.mm-art .menu-wrap-more-10 article .meta .byline a {
	font-size: var(--zeen-child-mm-font-body) !important;
}

/*
 * Homepage slider
 */
#featured-slider {
	width: 100%;
	max-width: 2100px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

@media only screen and (max-width: 1520px) {
	#featured-slider {
		padding-right: 0;
		padding-left: 0;
		min-height: var(--zeen-child-slider-viewport-h) !important;
	}
}

/*
 * Sidebar
 */
.content-area .sidebar-wrap .sidebar .sidebar-padded {
	padding: 20px;
}

.content-area .sidebar-wrap .sidebar .zeen-widget {
	padding: 0;
}

.content-area .sidebar-wrap .sidebar .zeen-widget iframe {
	margin: 0;
}

.mailing-list-subscribe-cta {
	background-color: var(--zeen-child-cta-bg);
	padding: 20px 20px 30px 20px;
}
.mailing-list-subscribe-cta .title {
	font-size: 26px;
	line-height: 34px;
	font-family: Sora;
	font-weight: bold;
	color: var(--zeen-child-cta-sand);
}
.mailing-list-subscribe-cta .subscribe-button {
	font-family: Sora;
	font-weight: bold;
	font-size: 12px;
	background-color: var(--zeen-child-cta-sand);
	padding: 8px 16px;
}
.mailing-list-subscribe-cta .subscribe-button:link,
.mailing-list-subscribe-cta .subscribe-button:visited {
	color: var(--zeen-child-cta-bg);
}

/*
 * Main modal scrim (`#modal` — search, subscribe, etc.)
 */
/* Win over `.modal-wrap .tipi-overlay { background-color: #fff }` in parent style.css */
#modal.modal-wrap .tipi-overlay.tipi-overlay-modal {
	background-color: var(--zeen-child-color-text-soft) !important;
}

/*
 * Subscribe modal — Brevo (Mailin) form
 * Reference: labels above fields, left-aligned, filled rectangular inputs, no radii/borders.
 */
.modal-wrap .content-subscribe.content-subscribe-2 .tipi-modal-bg.bg-area {
	background-color: var(--zeen-child-page-bg); /* #fffdf2 */
	position: relative;
}

/*
 * Close control — subscribe panel only (moved into `.tipi-modal-bg` via
 * citynomads-subscribe-modal-close.js). Position + hit area + fill colors; Zeen `.tipi-i-close` unchanged.
 */
.modal-wrap.active-4 .subscribe-wrap .tipi-modal-bg.bg-area > a.close.tipi-x-outer {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	z-index: 5;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2em;
	margin: 0;
	box-sizing: border-box;
	background-color: var(--zeen-child-color-sand-light);
	border: 0;
	border-radius: 0;
	line-height: 0;
	transition: background-color 0.2s ease;
}

.modal-wrap.active-4
	.subscribe-wrap
	.tipi-modal-bg.bg-area
	> a.close.tipi-x-outer.tipi-x-wrap:hover {
	background-color: var(--zeen-child-color-sand-light);
}

.modal-wrap .content-subscribe .content-subscribe-inner {
	text-align: left;
}

.modal-wrap .content-subscribe.content-subscribe-style .title {
	text-align: left;
	font-size: clamp(2.125rem, 4vw, 2.875rem);
	line-height: 1.12;
	font-weight: 700;
	margin-bottom: 1.25rem;
	color: var(--zeen-child-color-ink);
}

.modal-wrap .content-subscribe.content-subscribe-style .subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}

.modal-wrap .content-subscribe .subscribe-form {
	text-align: left;
}

.modal-wrap .content-subscribe form.sib_signup_form .sib_signup_box_inside_1 {
	display: flex;
	flex-direction: column;
	gap: var(--zeen-child-form-group-gap);
}

.modal-wrap .content-subscribe form.sib_signup_form .sib_signup_box_inside_1 > p {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--zeen-child-form-field-gap);
	margin: 0;
	padding: 0;
	border: 0;
	font-family: Sora, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--zeen-child-color-text-soft);
	text-align: left;
}

.modal-wrap .content-subscribe form.sib_signup_form .sib_signup_box_inside_1 > p:has(input[type="submit"]) {
	align-items: flex-start;
}

.modal-wrap .content-subscribe form.sib_signup_form input[type="email"],
.modal-wrap .content-subscribe form.sib_signup_form input[type="text"] {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 14px 16px;
	border: 0;
	border-radius: 0;
	background-color: var(--zeen-child-color-sand-light);
	color: var(--zeen-child-color-ink);
	font-family: Sora, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
}

.modal-wrap .content-subscribe form.sib_signup_form input[type="email"]::placeholder,
.modal-wrap .content-subscribe form.sib_signup_form input[type="text"]::placeholder {
	color: var(--zeen-child-color-text-soft);
	opacity: 1;
}

.modal-wrap .content-subscribe form.sib_signup_form input[type="email"]:focus,
.modal-wrap .content-subscribe form.sib_signup_form input[type="text"]:focus {
	outline: 2px solid var(--zeen-child-color-text-soft);
	outline-offset: 2px;
}

.modal-wrap .content-subscribe form.sib_signup_form input[type="submit"].sib-default-btn {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 62px;
	margin: 0;
	margin-top: 1.5rem;
	padding: 0 36px;
	border: 0;
	border-radius: 0;
	background-color: var(--zeen-child-color-ink);
	color: var(--zeen-child-page-bg);
	font-family: Sora, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.modal-wrap .content-subscribe form.sib_signup_form input[type="submit"].sib-default-btn:hover {
	background-color: #2d2d2d;
}

/*
 * Brevo (Mailin) AJAX messages — plugin prints a <style> block on the form; these rules
 * match Citynomads subscribe modal (Sora, left, square corners, muted fills like form fields).
 */
.modal-wrap .content-subscribe form.sib_signup_form .sib_signup_box_inside_1 > p.sib-alert-message,
.modal-wrap .content-subscribe form.sib_signup_form .sib_msg_disp .sib-alert-message {
	box-sizing: border-box;
	display: block !important;
	width: 100%;
	margin: 0 0 var(--zeen-child-form-group-gap) !important;
	padding: 14px 16px !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-family: Sora, sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	text-align: left !important;
}

.modal-wrap .content-subscribe form.sib_signup_form .sib_signup_box_inside_1 > p.sib-alert-message-error,
.modal-wrap .content-subscribe form.sib_signup_form .sib_msg_disp .sib-alert-message-error {
	background-color: var(--zeen-child-form-alert-error-bg) !important;
	color: var(--zeen-child-form-alert-error-text) !important;
	border-left: 3px solid var(--zeen-child-form-alert-error-accent) !important;
}

.modal-wrap .content-subscribe form.sib_signup_form .sib_signup_box_inside_1 > p.sib-alert-message-success,
.modal-wrap .content-subscribe form.sib_signup_form .sib_msg_disp .sib-alert-message-success {
	background-color: var(--zeen-child-form-alert-success-bg) !important;
	color: var(--zeen-child-form-alert-success-text) !important;
	border-left: 3px solid var(--zeen-child-form-alert-success-accent) !important;
}

.modal-wrap .content-subscribe form.sib_signup_form .sib_signup_box_inside_1 > p.sib-alert-message-warning,
.modal-wrap .content-subscribe form.sib_signup_form .sib_msg_disp .sib-alert-message-warning {
	background-color: var(--zeen-child-form-alert-warning-bg) !important;
	color: var(--zeen-child-form-alert-warning-text) !important;
	border-left: 3px solid var(--zeen-child-form-alert-warning-accent) !important;
}

@media only screen and (min-width: 860px) {
	.modal-wrap .content-subscribe.content-subscribe-2 .tipi-modal-bg.bg-area {
		padding: 5rem 4.5rem;
	}
}

/*
 * Full-width Tipi sliders (Slider A/B): hide carousel UI below 1350px.
 * Zeen adds .tipi-fs when the block uses full width (see class-zeen-blocks.php opening_wrap).
 */
@media (max-width: 1349px) {
	:is(.block-wrap-51, .block-wrap-55).tipi-fs .slider-arrow {
		display: none !important;
	}

	/* Fade effect uses dots instead of arrows */
	:is(.block-wrap-51, .block-wrap-55).tipi-fs .flickity-page-dots {
		display: none !important;
	}
}

/*
 * Full-width Slider A/B: align `.meta` with `.tipi-row` blocks (e.g. #block-wrap-78745).
 * Fixes: (1) `.tipi-fs .tile-design.meta-edge-0 .meta` uses width:80% / left:10% — higher specificity than the old rule, so overrides never applied.
 * (2) `100vw` + margin centering skipped Zeen’s tipi-row horizontal padding (20px / 30px), so title text didn’t line up with the grid.
 * (3) With `.tipi-builder-on .tipi-fs`, slides are inset (80px from 860px+); `left: max(0, 50% - siteWidth/2)` matches because `50%` is the slide’s center, same as the main column.
 */
:is(.block-wrap-51, .block-wrap-55).tipi-fs .tile-design .meta,
:is(.block-wrap-51, .block-wrap-55).tipi-fs .tile-design.meta-edge-0 .meta {
	left: max(0px, calc(50% - var(--zeen-child-site-width, 1230px) / 2));
	right: auto;
	width: min(100%, var(--zeen-child-site-width, 1230px)) !important;
	max-width: var(--zeen-child-site-width, 1230px);
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
	padding-left: 20px;
	padding-right: 20px;
}

@media only screen and (min-width: 860px) {
	:is(.block-wrap-51, .block-wrap-55).tipi-fs .tile-design .meta,
	:is(.block-wrap-51, .block-wrap-55).tipi-fs .tile-design.meta-edge-0 .meta {
		padding-left: 30px;
		padding-right: 30px;
	}
}

/*
 * Slider A (block 51): parent `style.css` sets `padding: 20px 60px !important` on `.meta`
 * at max-width 480px (no Customizer control). Ease horizontal inset to match mob-fs / tipi-row (20px).
 */
@media only screen and (max-width: 480px) {
	.block-wrap-51 .meta,
	.block-wrap-51.tile-design-wrap-3 .meta,
	.block-wrap-51.tile-design-wrap-4 .meta {
		padding: 20px 20px !important;
	}
}

/* Slider title centered vertically (tile-design-4): keep translateY(-50%), fix horizontal like tipi-row */
:is(.block-wrap-51, .block-wrap-55).tipi-fs .tile-design-4 .meta {
	left: 50% !important;
	right: auto !important;
	transform: translate(-50%, -50%) !important;
	width: min(100%, var(--zeen-child-site-width, 1230px)) !important;
}

:is(.block-wrap-51, .block-wrap-55).tipi-fs .tile-design:not(.tile-design-4) .meta {
	transform: none;
}

:is(.block-wrap-51, .block-wrap-55).tipi-fs .meta .title-wrap {
	text-wrap: balance;
	max-width: 75%;
}

:is(.block-wrap-51, .block-wrap-55) .slider-art .tipi-arrow {
	border-radius: 0;
	border-color: var(--zeen-child-arrow-border);
	border-width: 2px;
}

/* Site-wide Tipi arrow size (sliders and other blocks) */
.tipi-arrow.tipi-arrow-m {
	height: 40px;
	width: 40px;
	line-height: 40px;
}

/*
 * Slider A/B: gradient on `article.preview-slider-overlay::before` (above image, below meta).
 * Hidden until images are ready: Flickity uses Zeen’s `.slider-rdy` (first slide imagesLoaded).
 */
:is(.block-wrap-51, .block-wrap-55) article.preview-slider-overlay::before,
#featured-slider article.preview-slider-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.35s ease;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.6) 20%,
		transparent 70%
	);
}

:is(.block-wrap-51, .block-wrap-55) .slider-art.slider-rdy article.preview-slider-overlay::before,
#featured-slider .slider-art.slider-rdy article.preview-slider-overlay::before {
	opacity: 1;
}

/*
 * Zeen slide tile is `article.preview-slider-overlay` (see Theme helper preview-slider). Parent ties gray to
 * `.slider article` (#f2f2f2); during Flickity adaptiveHeight / resize the article box can peek past the image.
 * Make the article shell transparent so the page background reads through (same goal as viewport/slider fixes below).
 */
#featured-slider article.preview-slider-overlay,
:is(.block-wrap-51, .block-wrap-55) .slider-art article.preview-slider-overlay {
	background: transparent !important;
}

/* Dark stack under featured image + gradient so white titles stay readable if media is missing. */
#featured-slider article.preview-slider-overlay,
:is(.block-wrap-51, .block-wrap-55) .slider-art article.preview-slider-overlay {
	background-color: var(--zeen-child-color-ink) !important;
}

#featured-slider article.preview-slider-overlay .mask,
:is(.block-wrap-51, .block-wrap-55) .slider-art article.preview-slider-overlay .mask {
	background-color: var(--zeen-child-color-ink);
}

/*
 * Zeen sliders: `.flickity-viewport { background: #fff }` and `.slider` / `.slider article { background: #f2f2f2 }`
 * (parent style.css). On resize / adaptiveHeight, those show through under the slides — clear so `body` shows.
 * Slide content surface is `article.preview-slider-overlay` (see rule above).
 */
/*
 * Breadcrumbs: one line only; truncate the current page title with ellipsis.
 * flex + min-width:0 on the last segment is required for text-overflow in flex layouts.
 */
.breadcrumbs-wrap {
	min-width: 0;
}

.breadcrumbs-wrap .breadcrumbs {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--zeen-child-breadcrumb-sep-gap);
	min-width: 0;
	overflow: hidden;
	text-align: start;
}

.breadcrumbs-wrap .breadcrumbs .crumb,
.breadcrumbs-wrap .breadcrumbs > i {
	margin-inline: 0;
}

.breadcrumbs-wrap .breadcrumbs .crumb:not(:last-child) {
	flex-shrink: 0;
}

.breadcrumbs-wrap .breadcrumbs .crumb:last-child {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
}

.breadcrumbs-wrap .breadcrumbs .crumb:last-child span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.breadcrumbs-wrap .breadcrumbs .crumb a,
.widget_breadcrumb_navxt .breadcrumbs a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

/* Breadcrumb NavXT — ellipsis on .current-item */
.widget_breadcrumb_navxt .breadcrumbs {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--zeen-child-breadcrumb-sep-gap);
	min-width: 0;
	overflow: hidden;
	text-align: start;
}

.widget_breadcrumb_navxt .breadcrumbs > span:not(.current-item) {
	flex-shrink: 0;
}

.widget_breadcrumb_navxt .breadcrumbs .current-item {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#featured-slider .flickity-viewport,
:is(.block-wrap-51, .block-wrap-55) .flickity-viewport {
	background-color: transparent;
}

#featured-slider .slider,
#featured-slider .slider article,
:is(.block-wrap-51, .block-wrap-55) .slider,
:is(.block-wrap-51, .block-wrap-55) .slider article {
	background: transparent;
}

/*
 * Slider A/B (Flickity): remaining viewport below mobile header on small screens.
 * Parent uses adaptiveHeight — inline height on .flickity-viewport — so we use !important.
 * Tune --zeen-child-slider-mobile-header-offset if the header height changes (logo bar, promo, etc.).
 */
@media (max-width: 767px) {
	:root {
		--zeen-child-slider-mobile-header-offset: 90px;
		--zeen-child-slider-viewport-h: calc(
			100vh - var(--zeen-child-slider-mobile-header-offset)
		);
		--zeen-child-slider-viewport-d: calc(
			100dvh - var(--zeen-child-slider-mobile-header-offset)
		);
	}

	body.admin-bar {
		--zeen-child-slider-viewport-h: calc(
			100vh - var(--zeen-child-slider-mobile-header-offset) -
				var(--wp-admin--admin-bar--height, 46px)
		);
		--zeen-child-slider-viewport-d: calc(
			100dvh - var(--zeen-child-slider-mobile-header-offset) -
				var(--wp-admin--admin-bar--height, 46px)
		);
	}

	:is(.block-wrap-51, .block-wrap-55) .flickity-viewport {
		height: var(--zeen-child-slider-viewport-h) !important;
		height: var(--zeen-child-slider-viewport-d) !important;
		min-height: var(--zeen-child-slider-viewport-h) !important;
		min-height: var(--zeen-child-slider-viewport-d) !important;
	}

	:is(.block-wrap-51, .block-wrap-55) .flickity-slider > .slide,
	:is(.block-wrap-51, .block-wrap-55) .flickity-enabled.slider-art article {
		min-height: var(--zeen-child-slider-viewport-h) !important;
		min-height: var(--zeen-child-slider-viewport-d) !important;
	}

	:is(.block-wrap-51, .block-wrap-55) .flickity-enabled .mask {
		height: 100% !important;
	}

	:is(.block-wrap-51, .block-wrap-55) .flickity-enabled .mask img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center center;
	}
}

/*
 * Footer: 14px for all text (Zeen footer styles + Customizer copyright / menu / widget sizes).
 */
.site-footer,
.site-footer .footer-area {
	font-size: 14px !important;
}

.site-footer .copyright,
.site-footer .footer-navigation,
.site-footer .footer-navigation a,
.site-footer .footer-widget-area,
.site-footer .footer-widget-area .widget,
.site-footer .footer-widget-area .widget a,
.site-footer .footer-widget-area li,
.site-footer .footer-widget-area p,
.site-footer .footer-block-links,
.site-footer .footer-block-links a,
.site-footer .to-top,
.site-footer .to-top span,
.site-footer .to-top a,
.site-footer .menu-icons,
.site-footer .menu-icons a,
.site-footer .widget-title,
.site-footer .widget .widget-title,
.site-footer .footer-widget-wrap .title,
.site-footer .logo-footer,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer label,
.site-footer input,
.site-footer textarea,
.site-footer select,
.site-footer button {
	font-size: 14px !important;
}

/*
 * Footer lower strip — `.zeen-child-footer-lower-wrap` (copyright, nav slot, to-top).
 * Desktop: flex row … copyright, inline nav, to-top (margin-inline-start: auto).
 * Mobile: CSS grid — row1 copyright | to-top, row2 full-width stacked nav.
 */
.site-footer-1 .footer-lower-area > .tipi-row,
.site-footer-3 .footer-lower-area > .tipi-row,
.site-footer-4 .footer-lower-area > .tipi-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	row-gap: 0.5rem;
}

.site-footer-1 .footer-lower-area > .tipi-row > .logo-footer {
	flex: 1 0 100%;
	text-align: center;
}

.site-footer-1 .footer-lower-area > .tipi-row > .menu-icons {
	flex: 1 0 100%;
	justify-content: center;
}

.site-footer-1 .footer-lower-area > .tipi-row > .zeen-child-footer-lower-wrap,
.site-footer-3 .footer-lower-area > .tipi-row > .zeen-child-footer-lower-wrap,
.site-footer-4 .footer-lower-area > .tipi-row > .zeen-child-footer-lower-wrap {
	width: 100%;
	min-width: 0;
}

.site-footer-1 .footer-lower-area > .tipi-row > .zeen-child-footer-lower-wrap {
	flex: 1 0 100%;
}

.zeen-child-footer-lower-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	column-gap: 1.25rem;
	row-gap: 0.35rem;
	box-sizing: border-box;
}

.zeen-child-footer-lower-wrap > .copyright {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
	margin-top: 0;
	margin-bottom: 0;
}

.zeen-child-footer-nav-slot {
	flex: 0 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
}

.zeen-child-footer-lower-wrap .footer-navigation {
	display: flex;
	align-items: center;
	margin-top: 0;
	width: auto;
}

.zeen-child-footer-lower-wrap > .to-top {
	flex: 0 0 auto;
	margin-inline-start: auto;
	padding-top: 0;
	padding-bottom: 0;
}

@media only screen and (min-width: 860px) {
	.zeen-child-footer-lower-wrap .footer-navigation .horizontal-menu {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 1.25rem;
		row-gap: 0.35rem;
	}

	.zeen-child-footer-lower-wrap .footer-navigation .horizontal-menu > li {
		display: flex;
		align-items: center;
	}

	.zeen-child-footer-lower-wrap .footer-navigation .horizontal-menu > li > a {
		height: auto;
		min-height: 0;
	}
}

.site-footer .footer-lower-area .footer-navigation {
	padding-bottom: 0;
}

.site-footer .footer-navigation li,
.site-footer .footer-navigation .menu-item {
	padding: 0 !important;
}

.site-footer .footer-navigation a:is(:link, :visited, :hover, :focus-visible) {
	color: var(--zeen-child-color-text-soft);
}

/* Lower strip: match copyright to body stack (Zeen `font-*` on copyright is often serif/italic). */
.site-footer .footer-lower-area .copyright,
.site-footer .footer-lower-area .footer-navigation a {
	font-family: inherit !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
}

/* Footer 3: `zeen_footer_lower_area_end` — own row under strip on desktop. */
.site-footer-3 .footer-lower-area .zeen-child-footer-lower-wrap > .zeen-child-footer-lower-after {
	flex: 1 0 100%;
	width: 100%;
	min-width: 0;
}

.site-footer-3 .footer-lower-area .zeen-child-footer-lower-wrap > .zeen-child-footer-lower-after:empty {
	display: none;
}

@media only screen and (max-width: 859px) {
	.zeen-child-footer-lower-wrap {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 0.75rem;
		row-gap: 0.75rem;
		align-items: start;
		width: 100%;
	}

	.zeen-child-footer-lower-wrap > .copyright {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
		text-align: left;
		justify-self: start;
	}

	.zeen-child-footer-lower-wrap > .to-top {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: start;
		margin-inline-start: 0 !important;
	}

	.zeen-child-footer-lower-wrap > .zeen-child-footer-nav-slot {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		min-width: 0;
	}

	.zeen-child-footer-lower-wrap > .zeen-child-footer-lower-after {
		grid-column: 1 / -1;
		grid-row: 3;
	}

	.zeen-child-footer-lower-wrap .footer-navigation {
		width: 100%;
		text-align: left;
	}

	.zeen-child-footer-lower-wrap .footer-navigation .horizontal-menu {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		width: 100%;
	}

	.footer-lower-area .footer-menu.horizontal-menu > li {
		display: block;
		width: 100%;
	}
}

/* Back to top: square, 2px border; icon/stem track link color (`currentColor`). */
#to-top-a {
	border-radius: 0 !important;
	border: 2px solid currentColor !important;
	color: var(--zeen-child-color-text-soft);
	background-color: transparent;
	box-sizing: border-box;
}

#to-top-a span {
	color: inherit;
}

#to-top-a i {
	border-radius: 0 !important;
	color: inherit;
}

#to-top-a i:after {
	background: currentColor !important;
}

/* Reinforce stem color if parent `.tipi-arrow:hover` rules alter the shaft. */
#to-top-a.tipi-arrow:is(:hover, :focus-visible) i:after {
	background: currentColor !important;
}
