/* Taxi Hengelo — header, language switcher and mobile menu */

/* ---------- Address suggestions (Google Places) + fare calculator typography ---------- */
.pac-container {
	z-index: 100000 !important;
	margin-top: 4px;
	border: 1px solid #d9dee4;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(14, 20, 28, .18);
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
	overflow: hidden;
}
.pac-item {
	padding: 10px 14px;
	border-top: 1px solid #eef0f3;
	color: #55606b;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
}
.pac-item:first-child { border-top: 0; }
.pac-item:hover, .pac-item-selected { background: #fff7de; }
.pac-item-query { color: #111418; font-size: 15px; font-weight: 600; }
.pac-icon { margin-top: 1px; }
.pac-logo:after { padding: 6px 12px 8px; }

.taxi-site .ritcalc,
.taxi-site .ritcalc input,
.taxi-site .ritcalc select,
.taxi-site .ritcalc button { font-family: "Source Sans 3", "Segoe UI", sans-serif; }
.taxi-site .ritcalc h1,
.taxi-site .ritcalc h2,
.taxi-site .ritcalc h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: 0; }
.taxi-site .ritcalc-card h2 { font-size: 34px; line-height: 1.15; margin: 0 0 20px; color: #111418; }
.taxi-site .ritcalc-side h3 { font-size: 30px; line-height: 1.15; }
.taxi-site .ritcalc-fields { gap: 18px 16px; }
.taxi-site .ritcalc-field { margin: 0; }
.taxi-site .ritcalc-field span { font-size: 15px; font-weight: 700; color: #2f3740; }
.taxi-site .ritcalc input, .taxi-site .ritcalc select { margin: 0; }

/* ---------- Header, language switcher and mobile menu ---------- */

/* ---------- Desktop ---------- */
.taxi-site .taxi-header-main { background: #000; }
.taxi-site .taxi-brand-premium img { display: block; width: 100%; height: auto; object-fit: contain; }
.taxi-site .taxi-calc-bar-inner { flex-wrap: wrap; gap: 12px; }
.taxi-site .taxi-calc-bar-btn { background: #f5b81a; color: #111; }
.taxi-site .taxi-nav-bar { background: #061b2e; }
.taxi-site .taxi-nav-bar .taxi-primary-nav { display: flex; width: 100%; overflow: visible; }
.taxi-site .taxi-nav-bar .taxi-menu { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; }
.taxi-site .taxi-nav-bar .taxi-menu > li > a { display: flex; align-items: center; min-height: 54px; padding: 0 11px; color: #fff; }
.taxi-site .taxi-language-switcher a { display: inline-flex; align-items: center; gap: 5px; }
.taxi-site .taxi-language-switcher .taxi-flag { display: inline-block; width: 22px; height: 14px; min-width: 22px; flex: 0 0 22px; border-radius: 1px; overflow: hidden; }
.taxi-site .taxi-language-switcher a.is-current { box-shadow: inset 0 -2px 0 #f5b81a; }
.taxi-site .thx-toggle,
.taxi-site .thx-sub-btn,
.taxi-site .thx-drawer-cta { display: none; }

/* Footer logo: the logo file has a pure black background; blend it into the dark footer colour */
.taxi-site .taxi-premium-logo-footer { mix-blend-mode: lighten; background: transparent; }

/* Desktop: smaller logo, tighter header */
@media (min-width: 981px) {
	.taxi-site .taxi-header .taxi-brand-premium { width: 170px !important; flex: 0 0 170px !important; }
	.taxi-site .taxi-header .taxi-brand-premium img { width: 170px; height: auto; max-height: 116px; object-fit: contain; }
	.taxi-site .taxi-header .taxi-header-main-inner { padding-top: 6px; padding-bottom: 6px; min-height: 0; }
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 980px) {
	.taxi-site .taxi-header { position: relative; top: auto; height: auto; min-height: 0; z-index: 1000; }
	.taxi-site .taxi-header-main { display: block; height: auto; min-height: 0; overflow: visible; }

	.taxi-site .taxi-header-main-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 52px;
		grid-template-areas: "brand menu" "langs langs";
		align-items: center;
		gap: 10px;
		width: calc(100% - 32px);
		min-height: 0;
		padding: 12px 0;
	}
	.taxi-site .taxi-brand-premium {
		grid-area: brand;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		width: 190px;
		max-width: 100%;
		height: 76px;
		overflow: hidden;
	}
	.taxi-site .taxi-brand-premium img {
		width: 190px;
		max-width: 100%;
		height: 76px;
		object-fit: contain;
		object-position: left center;
		margin: 0;
	}
	.taxi-site .taxi-header-actions { display: none; }

	/* Language switcher: three equal buttons under the logo */
	.taxi-site .taxi-language-switcher {
		grid-area: langs;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
		margin: 0;
		position: static;
		transform: none;
	}
	.taxi-site .taxi-language-switcher a {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 7px;
		height: 44px;
		padding: 0 6px;
		border: 1px solid #555;
		border-radius: 8px;
		background: #0b0b0b;
		color: #fff;
		font-size: 15px;
		font-weight: 800;
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
	}
	.taxi-site .taxi-language-switcher a.is-current { border-color: #f5b81a; box-shadow: none; color: #f5b81a; }
	.taxi-site .taxi-language-switcher .taxi-flag { width: 20px; height: 13px; min-width: 20px; flex-basis: 20px; }

	/* One hamburger button */
	.taxi-site .thx-toggle {
		grid-area: menu;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		width: 52px;
		height: 52px;
		padding: 0;
		border: 0;
		border-radius: 10px;
		background: #f5b81a;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.taxi-site .thx-toggle .thx-bar {
		display: block;
		width: 26px;
		height: 3px;
		border-radius: 2px;
		background: #111;
		transition: transform .2s ease, opacity .2s ease;
	}
	.taxi-site .thx-toggle[aria-expanded="true"] .thx-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.taxi-site .thx-toggle[aria-expanded="true"] .thx-bar:nth-child(2) { opacity: 0; }
	.taxi-site .thx-toggle[aria-expanded="true"] .thx-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.taxi-site .thx-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

	/* Drawer */
	.taxi-site .taxi-nav-bar { display: none; position: relative; z-index: 999; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
	.taxi-site .taxi-nav-bar.thx-open { display: block; }
	.taxi-site .taxi-nav-bar .taxi-container { padding-left: 16px; padding-right: 16px; }
	.taxi-site .taxi-nav-bar .taxi-primary-nav { display: block; padding: 8px 0 16px; }
	.taxi-site .taxi-nav-bar .taxi-menu { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; }
	.taxi-site .taxi-nav-bar .taxi-menu > li { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .12); }
	.taxi-site .taxi-nav-bar .taxi-menu > li > a { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 50px; padding: 0 4px; font-size: 17px; font-weight: 700; color: #fff; text-decoration: none; }

	/* Submenus (NL megamenu): collapsed until opened with the arrow button */
	.taxi-site .taxi-nav-bar .sub-menu,
	.taxi-site .taxi-nav-bar .taxi-mega,
	.taxi-site .taxi-nav-bar .mega-menu {
		display: none;
		position: static;
		width: 100%;
		margin: 0;
		padding: 0 0 8px 14px;
		list-style: none;
		background: transparent;
		box-shadow: none;
		border: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.taxi-site .taxi-nav-bar li.thx-sub-open > .sub-menu,
	.taxi-site .taxi-nav-bar li.thx-sub-open > .taxi-mega,
	.taxi-site .taxi-nav-bar li.thx-sub-open > .mega-menu { display: block; }
	.taxi-site .taxi-nav-bar .sub-menu a { display: block; min-height: 42px; padding: 10px 4px; color: #d8e1ea; font-size: 15px; font-weight: 600; text-decoration: none; }
	.taxi-site .taxi-nav-bar .thx-sub-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 4px;
		right: 0;
		width: 42px;
		height: 42px;
		border: 0;
		border-radius: 8px;
		background: rgba(255, 255, 255, .1);
		color: #fff;
		font-size: 18px;
		line-height: 1;
		cursor: pointer;
	}
	.taxi-site .taxi-nav-bar li.thx-sub-open > .thx-sub-btn { background: #f5b81a; color: #111; transform: rotate(180deg); }

	/* Override the theme.css rules that force every submenu open and make the drawer absolute */
	.taxi-site .taxi-nav-bar .taxi-primary-nav { position: static; max-height: none; overflow: visible; box-shadow: none; background: transparent; }
	.taxi-site .taxi-nav-bar .taxi-menu { width: 100%; padding: 0; margin: 0; }
	.taxi-site .taxi-nav-bar .taxi-menu .sub-menu,
	.taxi-site .taxi-nav-bar .taxi-menu .sub-menu .sub-menu,
	.taxi-site .taxi-nav-bar #menu-item-420 > .sub-menu { display: none; position: static; width: 100%; background: rgba(255, 255, 255, .05); padding: 0 0 6px 14px; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible; }
	.taxi-site .taxi-nav-bar .taxi-menu li.thx-sub-open > .sub-menu,
	.taxi-site .taxi-nav-bar #menu-item-420.thx-sub-open > .sub-menu { display: block; }
	.taxi-site .taxi-nav-bar .taxi-menu .sub-menu a,
	.taxi-site .taxi-nav-bar #menu-item-420 > .sub-menu > li > a { display: flex; align-items: center; min-height: 44px; padding: 8px 6px; color: #e8edf1; font-size: 15px; font-weight: 600; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); text-decoration: none; }
	.taxi-site .taxi-nav-bar #menu-item-420 > .sub-menu > li > a::before { display: none; }

	/* Every item with a submenu is the positioning context for its own toggle button
	   (theme.css makes #menu-item-420 static, which put its button on top of the first row) */
	.taxi-site .taxi-nav-bar .taxi-menu li,
	.taxi-site .taxi-nav-bar #menu-item-420 { position: relative; }
	.taxi-site .taxi-nav-bar .taxi-menu li.menu-item-has-children > a { padding-right: 54px; }

	/* CTA block inside the drawer */
	.taxi-site .thx-drawer-cta { display: grid; gap: 10px; margin-top: 16px; }
	.taxi-site .thx-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; font-size: 16px; font-weight: 800; text-decoration: none; }
	.taxi-site .thx-cta-book { background: #f5b81a; color: #111; }
	.taxi-site .thx-cta-call { background: #fff; color: #111; }
	.taxi-site .thx-cta-wa { background: #25d366; color: #fff; }

	.taxi-site .taxi-calc-bar-inner { align-items: stretch; }
	.taxi-site .taxi-calc-bar-btn { flex: 1 1 140px; text-align: center; }

	/* Compact header: smaller logo */
	.taxi-site .taxi-header-main-inner { padding: 8px 0; gap: 8px; }
	.taxi-site .taxi-brand-premium { width: 150px !important; flex: 0 0 150px !important; max-width: 150px !important; height: 60px !important; }
	.taxi-site .taxi-brand-premium img { width: 150px !important; max-width: 150px !important; height: 60px !important; object-fit: contain; object-position: left center; }
	.taxi-site .thx-toggle { width: 46px; height: 46px; }
	.taxi-site .taxi-language-switcher a { height: 38px; font-size: 14px; }

	body.thx-menu-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.taxi-site .thx-toggle .thx-bar { transition: none; }
}
