/* Travel Business Core - site header and footer layout. Styling only. */

/* ---------- Header (v1.1.3) ----------
   Real DOM (Elementor boxed containers):
   .tbc-topbar-wrap.e-con-boxed > .e-con-inner > .elementor-widget-shortcode (.tbc-topbar)
                                               + .elementor-widget-text-editor.tbc-topbar-city > p
   .tbc-main-header.e-con-boxed > .e-con-inner > .tbc-brand.e-con-full
                                               + .elementor-widget-navigation-menu.tbc-header-nav
                                               + .elementor-widget-button.tbc-book-btn
   Elementor gives row children width:100% + flex-shrink:1, so widths are reset here. */

/* ----- Top bar: contacts left, city right, one line, white on dark ----- */
.tbc-topbar-wrap.e-con {
	justify-content: center;
	color: #fff;
}
.tbc-topbar-wrap.e-con > .e-con-inner {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	min-height: 40px;
}
.tbc-topbar-wrap.e-con > .e-con-inner > .elementor-widget {
	width: auto;
	flex: 0 0 auto;
	align-self: center;
	margin: 0;
	padding: 0;
}
.tbc-topbar-wrap .elementor-shortcode {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}
.tbc-topbar-wrap .tbc-topbar {
	justify-content: flex-start;
	align-items: center;
	font-size: 13px;
	line-height: 1;
}
.tbc-topbar-wrap .tbc-topbar-city {
	margin-left: auto;
	text-align: right;
}
.tbc-topbar-wrap .tbc-topbar-city p {
	margin: 0;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	text-align: right;
}
/* White text and icons on the dark bar (beats the kit's text colour). */
.tbc-topbar-wrap,
.tbc-topbar-wrap .tbc-topbar,
.tbc-topbar-wrap .tbc-topbar__item,
.tbc-topbar-wrap .tbc-topbar__item span,
.tbc-topbar-wrap .tbc-topbar-city,
.tbc-topbar-wrap .tbc-topbar-city p { color: #fff !important; }
.tbc-topbar-wrap .tbc-topbar__icon { fill: currentColor; }
.tbc-topbar-wrap a.tbc-topbar__item:hover,
.tbc-topbar-wrap a.tbc-topbar__item:focus-visible { color: var(--e-global-color-secondary, #f28c1b) !important; }

/* ----- Main header: shared ----- */
.tbc-main-header { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.tbc-main-header.e-con > .e-con-inner { width: 100%; }

.tbc-brand img { max-height: 64px; width: auto; height: auto; object-fit: contain; }
.tbc-main-header .tbc-brand.e-con {
	width: auto;
	max-width: 100%;
	flex: 0 0 auto;
	min-width: 0;
	align-items: center;
}
.tbc-main-header .tbc-brand .elementor-widget {
	width: auto;
	flex: 0 0 auto;
	margin: 0;
}
.tbc-main-header .tbc-brand .hfe-site-logo img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 64px;
	display: block;
}
.tbc-main-header .tbc-book-btn.elementor-widget {
	width: auto;
	flex: 0 0 auto;
	margin: 0;
}
.tbc-main-header .tbc-book-btn .elementor-button { white-space: nowrap; }

/* ----- Desktop (above the 1024px hamburger breakpoint):
         logo left | menu truly centred on ONE line | Book Now right ----- */
@media (min-width: 1025px) {
	.tbc-main-header.e-con > .e-con-inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		column-gap: 24px;
		row-gap: 0;
	}
	.tbc-main-header.e-con > .e-con-inner > .tbc-brand { justify-self: start; }
	.tbc-main-header.e-con > .e-con-inner > .tbc-header-nav { justify-self: center; }
	.tbc-main-header.e-con > .e-con-inner > .tbc-book-btn { justify-self: end; }

	.tbc-main-header .tbc-header-nav.elementor-widget {
		width: auto;
		min-width: 0;
		margin: 0;
	}
	.tbc-main-header .tbc-header-nav .elementor-widget-container,
	.tbc-main-header .tbc-header-nav .hfe-nav-menu.hfe-layout-horizontal,
	.tbc-main-header .tbc-header-nav nav.hfe-nav-menu__layout-horizontal { width: auto; }
	.tbc-main-header .tbc-header-nav ul.hfe-nav-menu {
		display: flex;
		flex-flow: row nowrap;
		align-items: center;
		justify-content: center;
		width: auto;
	}
	.tbc-main-header .tbc-header-nav ul.hfe-nav-menu > li {
		flex: 0 0 auto;
		width: auto;
		white-space: nowrap;
	}
	.tbc-main-header .tbc-header-nav ul.hfe-nav-menu > li > a.hfe-menu-item {
		white-space: nowrap;
		font-weight: 600;
	}
}

/* ----- Tablet and mobile: one row, logo left, Book Now, then hamburger.
         The UAE nav widget owns the toggle and dropdown, so nothing here
         sets display on the nav or its list. ----- */
@media (max-width: 1024px) {
	.tbc-brand img { max-height: 52px; }
	.tbc-main-header .tbc-brand .hfe-site-logo img { max-height: 52px; }
	.tbc-main-header.e-con > .e-con-inner {
		display: flex;
		flex-flow: row nowrap;
		align-items: center;
		justify-content: flex-start;
		gap: 10px;
	}
	.tbc-main-header .tbc-brand.e-con { flex: 0 1 auto; margin-right: auto; }
	.tbc-main-header .tbc-book-btn.elementor-widget { order: 2; }
	.tbc-main-header .tbc-header-nav.elementor-widget {
		order: 3;
		width: auto;
		flex: 0 0 auto;
		margin: 0;
	}
	.tbc-topbar-wrap.e-con > .e-con-inner { gap: 12px; }
	.tbc-topbar-wrap .tbc-topbar { gap: 14px; font-size: 12px; }
	.tbc-topbar-wrap .tbc-topbar-city p { font-size: 12px; }
}
@media (max-width: 767px) {
	.tbc-brand img { max-height: 44px; }
	.tbc-main-header .tbc-brand .hfe-site-logo img { max-height: 44px; }
	.tbc-main-header.e-con > .e-con-inner { gap: 8px; }
	.tbc-main-header .tbc-book-btn .elementor-button { padding: 9px 14px; font-size: 13px; }
}

/* ---------- Footer ---------- */
.tbc-footer { color: rgba(255, 255, 255, .85); }
.tbc-footer .tbc-brand img { max-height: 70px; }
.tbc-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .2s ease; }
.tbc-footer a:hover,
.tbc-footer a:focus-visible { color: var(--e-global-color-secondary, #f28c1b); }
.tbc-footer h1, .tbc-footer h2, .tbc-footer h3, .tbc-footer h4, .tbc-footer h5, .tbc-footer h6 { color: #fff; }
.tbc-footer-col { min-width: 0; }
.tbc-footer-col p { margin: 0 0 10px; line-height: 1.6; }
.tbc-footer-col ul { list-style: none; margin: 0; padding: 0; }
.tbc-footer-col li { margin: 0 0 8px; }
.tbc-footer-contact p { word-break: break-word; }

.tbc-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .15);
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, .7);
}
@media (max-width: 767px) {
	.tbc-footer-col { width: 100%; }
}

/* ---------- v1.1.4 additions (appended; rules above are unchanged) ---------- */

/* Footer logo only: white tile behind the logo image.
   content-box keeps the logo at its existing 70px height (the theme sets border-box). */
.tbc-footer .tbc-brand img {
	background: #fff;
	border-radius: 10px;
	padding: 8px 12px;
	display: inline-block;
	box-sizing: content-box;
	max-width: calc(100% - 24px);
}

/* The "Book Now" menu item exists only for the hamburger dropdown; hide it on desktop. */
@media (min-width: 1025px) {
	li.menu-item.tbc-menu-book { display: none !important; }
}

/* Tablet and mobile header (<=1024px): logo left, hamburger right, one centred row.
   Logo fix: the brand container was flex-shrink:1 / min-width:0 and the logo image sized by
   percentage (max-width:100%, auto width), so in the narrow row it resolved to ~0 width.
   The brand is now non-shrinking and the logo has an explicit height (width follows the ratio). */
@media (max-width: 1024px) {
	.tbc-main-header .tbc-brand.e-con {
		flex: 0 0 auto;
		width: auto;
		min-width: 0;
		max-width: calc(100% - 64px);
		margin-right: auto;
	}
	.tbc-main-header .tbc-brand .elementor-widget {
		flex: 0 0 auto;
		width: auto;
		max-width: 100%;
	}
	.tbc-main-header .tbc-brand .hfe-site-logo img {
		height: 52px;
		width: auto;
		max-width: none;
		max-height: none;
		display: block;
	}

	/* Header Book Now button is not shown in the bar; it lives inside the dropdown instead. */
	.tbc-main-header .tbc-book-btn.elementor-widget { display: none !important; }

	/* Hamburger on the right, vertically centred. */
	.tbc-main-header .tbc-header-nav.elementor-widget {
		margin-left: auto;
		align-self: center;
	}

	/* Book Now as the last item of the opened dropdown: orange, full width. */
	.tbc-main-header .tbc-header-nav li.menu-item.tbc-menu-book {
		width: 100%;
		margin: 0;
		padding: 0;
		border: 0;
	}
	.tbc-main-header .tbc-header-nav li.menu-item.tbc-menu-book > a.hfe-menu-item {
		display: block;
		width: 100%;
		box-sizing: border-box;
		margin: 0;
		padding: 14px 12px !important;
		text-align: center;
		font-weight: 700;
		border-radius: 0;
		background-color: var(--e-global-color-secondary, #f28c1b) !important;
		color: var(--e-global-color-ttwhite, #fff) !important;
	}
	.tbc-main-header .tbc-header-nav li.menu-item.tbc-menu-book > a.hfe-menu-item:hover,
	.tbc-main-header .tbc-header-nav li.menu-item.tbc-menu-book > a.hfe-menu-item:focus-visible {
		background-color: var(--e-global-color-primary, #0b3d66) !important;
		color: var(--e-global-color-ttwhite, #fff) !important;
	}
}
@media (max-width: 767px) {
	.tbc-main-header .tbc-brand .hfe-site-logo img { height: 44px; }
}

/* Home hero on mobile (<=767px): keep the image block aligned with the text margin and the
   "Starting from" card fully inside the image. Scoped to .tbc-hero only. */
@media (max-width: 767px) {
	.tbc-hero .tbc-hero-inner.e-con > .e-con-inner {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	.tbc-hero .tbc-hero-text.e-con,
	.tbc-hero .tbc-hero-media.e-con {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		align-self: stretch;
		box-sizing: border-box;
		margin-left: 0;
		margin-right: 0;
	}
	.tbc-hero .tbc-hero-media.e-con {
		position: relative;
		padding-left: 0;
		padding-right: 0;
	}
	.tbc-hero .tbc-hero-media .tbc-hero-img.elementor-widget {
		width: 100%;
		max-width: 100%;
		margin: 0;
	}
	.tbc-hero .tbc-hero-media .tbc-hero-img img {
		display: block;
		width: 100%;
		max-width: 100%;
		height: auto;
	}
	.tbc-hero .tbc-hero-media .tbc-hero-badge.e-con {
		left: 12px !important;
		right: 12px !important;
		bottom: 12px !important;
		width: fit-content !important;
		max-width: calc(100% - 24px) !important;
		box-sizing: border-box;
		margin: 0;
	}
}

/* ---------- v1.1.5 additions (appended; rules above are unchanged) ---------- */

/* 1) Header toggle at the far right (<=1024px).
   Cause: the HFE nav widget has resp_align=left, which Elementor prints as
   `.elementor-39 .elementor-element-c82c124 .hfe-nav-menu__toggle { margin-right: auto }`,
   so the toggle hugs the LEFT edge of its widget. The closed (hidden) dropdown <nav> also stays
   in flow and gives the widget the full width of the menu items, so that left edge sits next to
   the logo. Fix: toggle margin-left:auto (higher specificity than the inline rule), and take the
   closed dropdown out of flow so the widget shrinks to the toggle. The open state is untouched. */
@media (max-width: 1024px) {
	.tbc-main-header.e-con > .e-con-inner {
		display: flex;
		flex-flow: row nowrap;
		align-items: center;
		justify-content: space-between;
	}
	.tbc-main-header.e-con > .e-con-inner > .tbc-header-nav.elementor-widget {
		margin-left: auto;
		margin-right: 0;
		align-self: center;
		text-align: right;
	}
	.tbc-main-header.e-con .tbc-header-nav.elementor-widget .hfe-nav-menu__toggle {
		margin-left: auto;
		margin-right: 0;
		justify-content: flex-end;
		align-items: center;
	}
	.tbc-main-header.e-con .tbc-header-nav.elementor-widget .hfe-nav-menu__toggle:not(.hfe-active-menu) + nav.hfe-nav-menu__layout-horizontal {
		position: absolute;
		left: 0;
		top: 100%;
		pointer-events: none;
	}
}

/* 2) Home feature strip (.tbc-trust, 4 .tbc-trust-item): one item per row on mobile (<=767px).
   Scoped to .tbc-trust-wrap only. Tablet (2 columns) and desktop (4 columns) are not touched. */
@media (max-width: 767px) {
	.tbc-trust-wrap .tbc-trust.e-con {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		row-gap: 16px;
		--row-gap: 16px;
		--gap: 16px 0px;
	}
	.tbc-trust-wrap .tbc-trust.e-con > .tbc-trust-item.e-con {
		--width: 100%;
		width: 100%;
		max-width: 100%;
		flex: 0 0 auto;
		align-items: center;
		text-align: center;
		padding-top: 0;
		padding-bottom: 0;
		--padding-top: 0px;
		--padding-bottom: 0px;
	}
	.tbc-trust-wrap .tbc-trust-item .elementor-icon-box-wrapper {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.tbc-trust-wrap .tbc-trust-item .elementor-icon-box-icon,
	.tbc-trust-wrap .tbc-trust-item .elementor-icon-box-content {
		margin: 0;
		text-align: center;
	}
}

/* ---------- v1.1.6 additions (appended; rules above are unchanged) ---------- */

/* A) Sideways scroll fix (<=1024px).
   Cause: my v1.1.5 rule took the CLOSED dropdown <nav> out of flow, but on page load it has no
   width, so it was as wide as all menu items (~600px) and stuck out past the right edge.
   Fix: while the menu is closed the dropdown has zero size and sits at the right edge.
   (!important is needed because the HFE script writes inline width/left after the first open.)
   Once the toggle gets .hfe-active-menu this rule stops applying and the open dropdown is unchanged. */
@media (max-width: 1024px) {
	.tbc-main-header.e-con .tbc-header-nav.elementor-widget .hfe-nav-menu__toggle:not(.hfe-active-menu) + nav.hfe-nav-menu__layout-horizontal {
		width: 0 !important;
		max-width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		left: auto !important;
		right: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}
}

/* B) Feature strip: nicer mobile layout (<=767px), scoped to .tbc-trust-wrap only.
   Each item becomes a soft card with more air between cards and around the strip. */
@media (max-width: 767px) {
	.tbc-trust-wrap.e-con {
		--padding-top: 28px;
		--padding-bottom: 28px;
		--padding-left: 16px;
		--padding-right: 16px;
		box-sizing: border-box;
		max-width: 100%;
	}
	.tbc-trust-wrap .tbc-trust-inner.e-con,
	.tbc-trust-wrap .tbc-trust-inner.e-con > .e-con-inner,
	.tbc-trust-wrap .tbc-trust.e-con {
		box-sizing: border-box;
		max-width: 100%;
		min-width: 0;
	}
	.tbc-trust-wrap .tbc-trust.e-con {
		row-gap: 14px;
		--row-gap: 14px;
		--gap: 14px 0px;
	}
	.tbc-trust-wrap .tbc-trust.e-con > .tbc-trust-item.e-con {
		box-sizing: border-box;
		background: #f4f8f9;
		border: 1px solid rgba(0, 0, 0, .06);
		border-radius: 14px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
		padding-top: 20px;
		padding-bottom: 20px;
		padding-left: 16px;
		padding-right: 16px;
		--padding-top: 20px;
		--padding-bottom: 20px;
		--padding-left: 16px;
		--padding-right: 16px;
	}
	.tbc-trust-wrap .tbc-trust-item .elementor-icon-box-wrapper {
		gap: 10px;
	}
	.tbc-trust-wrap .tbc-trust-item .elementor-icon-box-description {
		margin: 0;
		overflow-wrap: anywhere;
	}
}

/* ---------- v1.1.7 additions (appended; rules above are unchanged) ---------- */

/* A) Sticky header (all screen sizes).
   The whole <header id="masthead"> (top bar + main bar) is sticky: its parent #page spans the
   full page, so it stays at the top while scrolling. A sticky element needs a tall parent, which
   is why .tbc-main-header alone would not work. z-index keeps it above page content and the
   opened menu dropdown. scroll-padding keeps #anchor jumps from hiding under the header. */
#masthead {
	position: sticky;
	top: 0;
	z-index: 9999;
	width: 100%;
}
@media (max-width: 1024px) {
	html { scroll-padding-top: 72px; }
}
@media (min-width: 1025px) {
	html { scroll-padding-top: 128px; }
}

/* B) Fleet vehicle card photo: show the FULL image on mobile (<=767px).
   Cause: the photo box is a fixed 4/3 ratio with object-fit:cover, but the vehicle photo is nearly
   square (703x670), so the top and bottom were cropped. Now the box follows the photo's own ratio
   and the image is never cropped. Scoped to vehicle cards only; packages/other cards are unchanged. */
@media (max-width: 767px) {
	.tbc-card--vehicle .tbc-card__media {
		aspect-ratio: auto;
	}
	.tbc-card--vehicle .tbc-card__img {
		width: 100%;
		height: auto;
		object-fit: contain;
	}
}
