/* ============================================================
   Tixaway — modern design system. Lightweight, no framework.
   ============================================================ */

:root {
	--tx-ink: #0f172a;
	--tx-ink-2: #334155;
	--tx-muted: #4b5563; /* AA-contrast on white AND on the soft card backgrounds */
	--tx-bg: #ffffff;
	--tx-soft: #f7f8fc;
	--tx-line: #e7e9f2;
	--tx-primary: #1668e3;
	--tx-primary-2: #0a4fd0;
	--tx-primary-ink: #ffffff;
	--tx-best: #166534; /* AA-contrast green: passes as text on white AND as badge bg w/ white text */
	--tx-best-bg: #ecfdf5;
	--tx-radius: 16px;
	--tx-radius-sm: 10px;
	--tx-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .07);
	--tx-shadow-lg: 0 16px 44px rgba(22, 104, 227, .22);
	--tx-grad: linear-gradient(135deg, #1f74ff 0%, #0a52d6 100%);
	--tx-maxw: 1160px;
}

/* ---------- base typography ---------- */
body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--tx-ink);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--tx-ink); }
a { color: var(--tx-primary); text-underline-offset: 2px; }

/* ---------- header ---------- */
/* The template-part renders <header class="wp-block-template-part"> as the OUTER
   wrapper whose parent (.wp-site-blocks) is full-height — so stickiness must live
   here, not on the inner header (whose parent is only header-height). The footer
   template part uses <footer>, so this selector only catches the header. */
header.wp-block-template-part {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 999;
}
/* NOTE: no backdrop-filter / transform / filter here — any of those would make
   the fixed mobile menu (a descendant) attach to the header box instead of the
   viewport, trapping it at header height. */
.tx-site-header {
	background: #fff;
	border-bottom: 1px solid var(--tx-line);
	padding-block: .35rem !important;
	margin-block: 0 !important;
}
.tx-header-inner { align-items: center; gap: 1rem; min-height: 0; }
.tx-site-header .wp-block-site-logo { margin: 0; }
.tx-site-header .wp-block-site-logo img { height: auto; max-height: 38px; width: auto; }
/* primary navigation (custom, fully controlled) */
.tx-nav2 { display: flex; align-items: center; }
.tx-nav2__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.tx-nav2__list a { display: block; color: var(--tx-ink-2); text-decoration: none; padding: .45rem .8rem; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.tx-nav2__list a:hover { background: var(--tx-soft); color: var(--tx-primary); }
.tx-nav2__toggle { display: none; }

@media (max-width: 820px) {
	/* hamburger button */
	.tx-nav2__toggle {
		display: flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 44px; height: 44px; padding: 10px; margin: 0; background: none; border: 0;
		cursor: pointer; border-radius: 10px;
	}
	.tx-nav2__toggle span { display: block; width: 100%; height: 2.5px; background: var(--tx-ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
	.tx-nav2.is-open .tx-nav2__toggle { position: fixed; top: .55rem; right: .8rem; z-index: 100001; }
	.tx-nav2.is-open .tx-nav2__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	.tx-nav2.is-open .tx-nav2__toggle span:nth-child(2) { opacity: 0; }
	.tx-nav2.is-open .tx-nav2__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

	/* full-screen menu (vertical stack). Fade in/out — NO translateX, which would
	   park a full-width element off-screen and cause horizontal scroll. */
	.tx-nav2__list {
		position: fixed; inset: 0; z-index: 100000;
		flex-direction: column; align-items: flex-start; justify-content: flex-start;
		gap: .25rem; background: #fff; padding: 4.5rem 1.5rem 2rem;
		width: 100%; max-width: 100%; box-sizing: border-box; overflow-y: auto;
		opacity: 0; visibility: hidden; pointer-events: none;
		transition: opacity .2s ease, visibility .2s ease;
	}
	.tx-nav2.is-open .tx-nav2__list { opacity: 1; visibility: visible; pointer-events: auto; }
	.tx-nav2__list li { width: 100%; }
	.tx-nav2__list a { font-size: 1.4rem; font-weight: 700; padding: .7rem 0; border-radius: 0; }
}

/* ---------- buttons (block + ours) ---------- */
.wp-block-button__link, .tx-btn {
	border-radius: 999px;
	font-weight: 700;
	padding: .7rem 1.35rem;
	transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.tx-btn {
	background: var(--tx-grad);
	color: #fff;
	box-shadow: var(--tx-shadow);
}
.wp-block-button__link:hover, .tx-btn:hover { transform: translateY(-1px); box-shadow: var(--tx-shadow-lg); filter: saturate(1.05); }

/* ---------- hero ---------- */
.tx-hero {
	text-align: center;
	padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem clamp(2rem, 5vw, 3rem);
	background: linear-gradient(180deg, #eaf2ff 0%, #f5f9ff 60%, #ffffff 100%);
	border-bottom: 1px solid var(--tx-line);
	margin-bottom: 2.5rem;
}
.tx-eyebrow {
	text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
	color: var(--tx-primary); margin: 0 0 .6rem;
}
.tx-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 auto .7rem; max-width: 16ch; color: var(--tx-ink); }
.tx-hero__sub { font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--tx-ink-2); max-width: 58ch; margin: 0 auto 1.5rem; }

/* ---------- search ---------- */
.tx-search { position: relative; display: flex; align-items: center; gap: .4rem;
	background: #fff; border: 1px solid var(--tx-line); border-radius: 999px;
	padding: .3rem .3rem .3rem 1rem; box-shadow: var(--tx-shadow); }
.tx-search__icon { width: 22px; height: 22px; color: var(--tx-muted); flex: 0 0 auto; }
.tx-search__input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--tx-ink); min-width: 0; padding: .55rem .2rem; }
.tx-search__btn { flex: 0 0 auto; border: 0; cursor: pointer; background: var(--tx-grad); color: #fff; font-weight: 700; border-radius: 999px; padding: .6rem 1.3rem; transition: filter .15s ease; }
.tx-search__btn:hover { filter: brightness(1.07); }
.tx-search--lg { max-width: 640px; margin: 0 auto; }
.tx-search--lg .tx-search__input { font-size: 1.08rem; padding: .7rem .2rem; }
.tx-search--sm { max-width: 320px; padding: .15rem .15rem .15rem .8rem; }
.tx-search--sm .tx-search__btn { padding: .45rem 1rem; }
.tx-search__results {
	position: absolute; top: calc(100% + .5rem); left: 0; right: 0; z-index: 200;
	background: #fff; border: 1px solid var(--tx-line); border-radius: 16px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .16); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.tx-search__item { display: flex; flex-direction: column; gap: .1rem; padding: .7rem 1rem; text-decoration: none; color: var(--tx-ink); border-bottom: 1px solid var(--tx-line); }
.tx-search__item:last-child { border-bottom: 0; }
.tx-search__item:hover, .tx-search__item.is-active { background: #eef4ff; }
.tx-search__t { font-weight: 700; }
.tx-search__m { font-size: .82rem; color: var(--tx-muted); }
.tx-search__m strong { color: var(--tx-best); }
.tx-search__empty { padding: .9rem 1rem; color: var(--tx-muted); font-size: .9rem; }
.tx-site-header .tx-search { flex: 1; max-width: 420px; }
@media (max-width: 720px) { .tx-site-header .tx-search { display: none; } }
.tx-hero__cta { gap: .6rem; flex-wrap: wrap; }
.tx-hero__cta .wp-block-button:not(.is-style-fill) .wp-block-button__link {
	background: #fff; color: var(--tx-ink); border: 1px solid var(--tx-line); box-shadow: var(--tx-shadow);
}

/* ---------- value props ---------- */
.tx-props { gap: 1.1rem; max-width: var(--tx-maxw); margin: 0 auto 3rem; padding-inline: 1.25rem; }
.tx-prop { background: var(--tx-bg); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); padding: 1.4rem; box-shadow: var(--tx-shadow); }
.tx-prop h3 { font-size: 1.12rem; margin: 0 0 .4rem; }
.tx-prop p { margin: 0; color: var(--tx-muted); font-size: .96rem; }

/* ---------- event page scaffold ---------- */
.tx-event, .tx-venue, .tx-performer { max-width: var(--tx-maxw); margin-inline: auto; }
.tx-crumbs { font-size: .85rem; color: var(--tx-muted); margin: 0 0 1.1rem; }
.tx-crumbs a { color: var(--tx-muted); text-decoration: none; }
.tx-crumbs a:hover { color: var(--tx-primary); }
.tx-crumbs__sep { opacity: .45; margin: 0 .15rem; }

.tx-disclosure {
	font-size: .82rem; color: var(--tx-ink-2);
	background: var(--tx-best-bg); border: 1px solid #c7f0d8; border-radius: var(--tx-radius-sm);
	padding: .7rem .9rem; margin: 0 0 1.25rem;
}

/* facts */
.tx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin: 0 0 1.75rem; padding: 0; }
.tx-fact { background: var(--tx-soft); border: 1px solid var(--tx-line); border-radius: var(--tx-radius-sm); padding: .85rem 1rem; }
.tx-fact dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-muted); margin: 0 0 .25rem; font-weight: 700; }
.tx-fact dd { margin: 0; font-weight: 700; }

/* comparison */
.tx-compare { margin: 0 0 2.25rem; }
.tx-compare__title { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 1.1rem; }
.tx-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.tx-offer {
	position: relative; background: var(--tx-bg);
	border: 1px solid var(--tx-line); border-radius: var(--tx-radius);
	padding: 1.35rem; display: flex; flex-direction: column; gap: .7rem;
	box-shadow: var(--tx-shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.tx-offer:hover { transform: translateY(-3px); box-shadow: var(--tx-shadow-lg); }
.tx-offer--best { border-color: var(--tx-best); box-shadow: 0 0 0 2px rgba(22, 163, 74, .25), var(--tx-shadow); }
.tx-offer__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tx-offer__market { font-weight: 800; font-size: 1.12rem; }
.tx-offer__region { font-weight: 600; font-size: .8rem; color: var(--tx-muted); white-space: nowrap; }
.tx-badge { background: var(--tx-best); color: #fff; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 999px; }
.tx-offer__price { display: flex; align-items: baseline; gap: .4rem; }
.tx-price { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; }
.tx-price--check { font-size: 1.05rem; font-weight: 700; color: var(--tx-ink-2); }
.tx-price-from { font-size: .8rem; color: var(--tx-muted); }
.tx-offer__avail { font-size: .85rem; color: var(--tx-muted); }
.tx-compare__note { font-size: .8rem; color: var(--tx-muted); margin: .9rem 0 0; }

/* price history */
.tx-history { margin: 0 0 2.25rem; padding: 1.3rem; background: var(--tx-soft); border: 1px solid var(--tx-line); border-radius: var(--tx-radius); }
.tx-history__title { font-size: 1.2rem; margin: 0 0 .7rem; }
.tx-spark { width: 100%; height: 120px; display: block; color: var(--tx-primary); }
.tx-history__legend { font-size: .82rem; color: var(--tx-muted); margin: .5rem 0 0; }

/* faq */
.tx-faq { margin: 0 0 2.25rem; }
.tx-faq h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 .9rem; }
.tx-faq__item { border: 1px solid var(--tx-line); border-radius: var(--tx-radius-sm); padding: .9rem 1.1rem; margin-bottom: .6rem; background: var(--tx-bg); }
.tx-faq__item summary { cursor: pointer; font-weight: 700; list-style: none; }
.tx-faq__item summary::-webkit-details-marker { display: none; }
.tx-faq__item summary::after { content: "+"; float: right; color: var(--tx-primary); font-weight: 800; }
.tx-faq__item[open] summary::after { content: "–"; }
.tx-faq__a { margin: .6rem 0 0; color: var(--tx-ink-2); }

/* related cards */
.tx-related { margin: 0 0 2.25rem; }
.tx-related h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 .9rem; }
.tx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.tx-card {
	display: flex; flex-direction: column; gap: .3rem;
	background: var(--tx-bg); border: 1px solid var(--tx-line); border-radius: var(--tx-radius-sm);
	padding: 1rem; text-decoration: none; color: inherit; box-shadow: var(--tx-shadow);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tx-card:hover { transform: translateY(-3px); border-color: var(--tx-primary); box-shadow: var(--tx-shadow-lg); }
.tx-card__title { font-weight: 700; }
.tx-card__when { font-size: .8rem; color: var(--tx-muted); }
.tx-card__price { font-size: .85rem; font-weight: 800; color: var(--tx-best); }

/* homepage event sections */
.tx-home-events-wrap { margin: 0 auto 1.5rem; }
.tx-home-events { margin-bottom: 2.5rem; }
.tx-home-events > h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 0 0 1.1rem; }

/* remove the theme's large empty top margin on <main>; sections set their own spacing */
main.wp-block-group { margin-top: 1.5rem !important; }
.tx-front-main { margin-top: 0 !important; }
.tx-single-main { margin-top: 1.25rem !important; }

/* value-props section heading */
.tx-props-title { margin: 2.75rem 0 1.3rem !important; font-size: clamp(1.4rem, 3vw, 1.9rem); }

/* hub pages (city / genre archives) */
.tx-archive-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .25rem 0 .6rem; }
.tx-archive-desc { color: var(--tx-muted); margin: 0 0 1.5rem; max-width: 70ch; }
.tx-archive-cards { margin-top: .5rem; }
.tx-empty { color: var(--tx-muted); padding: 1.5rem 0; }

/* footer */
.tx-site-footer { background: var(--tx-ink); color: #cbd5e1; margin-top: 3rem; }
.tx-site-footer p { color: #cbd5e1; }
.tx-site-footer strong { color: #fff; }
.tx-site-footer .wp-block-navigation { justify-content: center; gap: .25rem 1rem; margin: .4rem 0; }
.tx-site-footer .wp-block-navigation a { color: #cbd5e1; text-decoration: none; font-weight: 600; }
.tx-site-footer .wp-block-navigation a:hover { color: #fff; }

/* ---------- mobile menu (core navigation overlay) ---------- */
/* hamburger + close buttons: visible, ink-coloured, comfortable tap target */
.tx-site-header .wp-block-navigation__responsive-container-open,
.tx-site-header .wp-block-navigation__responsive-container-close {
	color: var(--tx-ink);
	padding: .4rem;
}
.tx-site-header .wp-block-navigation__responsive-container-open svg,
.tx-site-header .wp-block-navigation__responsive-container-close svg {
	width: 28px; height: 28px; fill: currentColor;
}
/* the opened overlay: full-screen white sheet ABOVE everything (incl. sticky header) */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	z-index: 100000 !important;
	background: #fff;
	padding: clamp(1.5rem, 6vw, 3rem) 1.25rem;
	overflow-y: auto;
	display: flex !important;
	flex-direction: column;
}
/* Force the opened overlay to STACK vertically (our header nav is a horizontal
   flex row, which otherwise leaves the links overflowing off-screen). */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	width: 100%;
	gap: .25rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open a,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--tx-ink) !important;
	background: transparent !important;
	font-size: 1.35rem;
	font-weight: 700;
	padding: .55rem 0 !important;
	border-radius: 0;
}
.wp-block-navigation__responsive-container.is-menu-open a:hover { color: var(--tx-primary) !important; }

/* responsive */
@media (max-width: 720px) {
	.tx-header-inner { gap: .5rem; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.tx-props { grid-template-columns: 1fr; }
	.tx-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.tx-offers { grid-template-columns: 1fr; }
}
