/**
 * PilotBooker interface polish.
 *
 * Small, scoped presentation corrections only. No page template, listing
 * template, dashboard template or Directorist plugin file is replaced.
 */

/* ==============================================================
   PUBLIC HEADER
   ============================================================== */

.pb-header .pb-nav {
	min-height: 68px;
}

.pb-header .pb-nav-cta {
	gap: 10px;
}

.pb-header .pb-nav-cta > .pb-btn,
.pb-header .pb-account-menu,
.pb-header .ptm-header-currency__button {
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	border-radius: 8px !important;
	font-family: "Inter", Arial, sans-serif !important;
	font-size: 0.9rem !important;
	font-weight: 650 !important;
	line-height: 1 !important;
}

.pb-header .pb-nav-cta > .pb-btn {
	padding: 0 15px !important;
}

.pb-header .pb-btn--ghost {
	border-color: rgba(255, 255, 255, 0.25) !important;
	background: transparent !important;
	color: #FFFFFF !important;
}

.pb-header .pb-btn--ghost:hover,
.pb-header .pb-btn--ghost:focus-visible {
	border-color: rgba(242, 169, 59, 0.88) !important;
	background: rgba(242, 169, 59, 0.10) !important;
	color: #FFFFFF !important;
	outline: none !important;
}

.pb-header .pb-btn--amber {
	border-color: #F2A93B !important;
	background: #F2A93B !important;
	color: #0B1E33 !important;
}

.pb-header .pb-btn--amber:hover,
.pb-header .pb-btn--amber:focus-visible {
	border-color: #FFBF5C !important;
	background: #FFBF5C !important;
	color: #0B1E33 !important;
	outline: none !important;
}

/* One compound Dashboard control with a small account-menu arrow. */
.pb-account-menu {
	position: relative;
	display: inline-flex;
	align-items: stretch;
	flex: 0 0 auto;
	overflow: visible;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
}

.pb-account-menu:focus-within,
.pb-account-menu:hover {
	border-color: rgba(242, 169, 59, 0.88);
	background: rgba(242, 169, 59, 0.10);
}

.pb-account-menu__dashboard,
.pb-account-menu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	min-height: 42px;
	margin: 0;
	color: #FFFFFF !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	font-family: "Inter", Arial, sans-serif !important;
	font-size: 0.9rem !important;
	font-weight: 650 !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.pb-account-menu__dashboard {
	padding: 0 12px 0 14px;
}

.pb-account-menu__toggle {
	flex: 0 0 34px;
	width: 34px;
	padding: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
	cursor: pointer;
}

.pb-account-menu__dashboard:hover,
.pb-account-menu__dashboard:focus-visible,
.pb-account-menu__toggle:hover,
.pb-account-menu__toggle:focus-visible {
	color: #FFFFFF !important;
	background: rgba(255, 255, 255, 0.05) !important;
	outline: none !important;
}

.pb-account-menu__arrow {
	display: block;
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition:
		transform 0.16s ease,
		margin-top 0.16s ease;
}

.pb-account-menu__toggle[aria-expanded="true"]
.pb-account-menu__arrow {
	margin-top: 3px;
	transform: rotate(225deg);
}

.pb-account-menu__panel {
	position: absolute;
	z-index: 1000000;
	top: calc(100% + 6px);
	right: 0;
	width: 124px;
	padding: 4px;
	background: #FFF8EC;
	border: 1px solid rgba(242, 169, 59, 0.62);
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(11, 30, 51, 0.18);
}

.pb-account-menu__panel[hidden] {
	display: none !important;
}

.pb-account-menu__panel a {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 34px;
	padding: 7px 9px;
	color: #0B1E33 !important;
	background: transparent;
	border-radius: 6px;
	font-family: "Inter", Arial, sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.15;
	white-space: nowrap;
	text-decoration: none !important;
}

.pb-account-menu__panel a:hover,
.pb-account-menu__panel a:focus-visible {
	color: #0B1E33 !important;
	background: #F2A93B;
	outline: none;
}

.pb-account-menu__logout::before {
	display: inline-block;
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
	margin-right: 7px;
	content: "";
	background-color: #C27A14;
	-webkit-mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M10 5H5v14h5M14 8l4 4-4 4M18 12H9'/%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'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M10 5H5v14h5M14 8l4 4-4 4M18 12H9'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

/* Keep the desktop navigation comfortable before the mobile breakpoint. */
@media (min-width: 901px) and (max-width: 1180px) {
	.pb-header .pb-nav {
		gap: 14px;
	}

	.pb-header .pb-navlinks {
		gap: 14px !important;
		font-size: 0.82rem !important;
	}

	.pb-header .pb-nav-cta {
		gap: 7px !important;
	}

	.pb-header .pb-nav-cta > .pb-btn {
		padding-right: 11px !important;
		padding-left: 11px !important;
		font-size: 0.82rem !important;
	}

	.pb-account-menu__dashboard {
		padding-right: 9px;
		padding-left: 11px;
		font-size: 0.82rem !important;
	}
}

/* ==============================================================
   HOMEPAGE HERO TYPOGRAPHY
   ============================================================== */

.pilotbooker-home-v2 .pb-hero h1 {
	max-width: 900px !important;
	margin: 0 0 24px !important;
	padding: 0 !important;
	color: #FFFFFF !important;
	font-family:
		"Space Grotesk",
		"Inter",
		Arial,
		sans-serif !important;
	font-size: clamp(2.8rem, 3.15vw, 3.45rem) !important;
	font-weight: 700 !important;
	line-height: 0.99 !important;
	letter-spacing: -0.035em !important;
}

.pilotbooker-home-v2
.pb-hero-title__line {
	display: block !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0.99 !important;
}

.pilotbooker-home-v2
.pb-hero-title__line
+
.pb-hero-title__line {
	margin-top: 0.08em !important;
}

.pilotbooker-home-v2
.pb-hero-title__line--gap {
	margin-top: 0.38em !important;
}

.pilotbooker-home-v2 .pb-lead {
	max-width: 640px !important;
	margin-bottom: 30px !important;
	font-family: "Inter", Arial, sans-serif !important;
	font-size: 1.02rem !important;
	line-height: 1.58 !important;
}

@media (min-width: 981px) {
	.pilotbooker-home-v2 .pb-hero {
		padding-top: 48px !important;
		padding-bottom: 72px !important;
	}
}

@media (max-width: 700px) {
	.pilotbooker-home-v2 .pb-hero h1 {
		font-size: clamp(2.15rem, 10vw, 3rem) !important;
		line-height: 1.03 !important;
	}

	.pilotbooker-home-v2
	.pb-hero-title__line {
		line-height: 1.03 !important;
	}
}

/* ==============================================================
   PROVIDER DASHBOARD
   ============================================================== */

/*
 * The dashboard shell, sticky header, fixed desktop sidebar, logo order,
 * menu spacing and icons are already controlled by site-features.php.
 *
 * Do not override their positioning here. This file only styles the
 * additional logout controls and removes the duplicate footer actions.
 */

body.theme-dir-dashboard
.pb-provider-dashboard-header__actions {
	flex-wrap: nowrap !important;
}

body.theme-dir-dashboard
.pb-provider-dashboard-header__link,
body.theme-dir-dashboard
.pb-provider-dashboard-logout {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	min-height: 38px !important;
	padding: 8px 13px !important;
	border-radius: 7px !important;
	font-family: "Inter", Arial, sans-serif !important;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	text-decoration: none !important;
}

body.theme-dir-dashboard
.pb-provider-dashboard-header__link {
	color: #0B1E33 !important;
	background: #FFFFFF !important;
	border: 1px solid #DCE4EA !important;
}

body.theme-dir-dashboard
.pb-provider-dashboard-logout {
	color: #0B1E33 !important;
	background: rgba(242, 169, 59, 0.16) !important;
	border: 1px solid rgba(242, 169, 59, 0.72) !important;
}

body.theme-dir-dashboard
.pb-provider-dashboard-header__link:hover,
body.theme-dir-dashboard
.pb-provider-dashboard-header__link:focus-visible,
body.theme-dir-dashboard
.pb-provider-dashboard-logout:hover,
body.theme-dir-dashboard
.pb-provider-dashboard-logout:focus-visible {
	color: #0B1E33 !important;
	background: #F2A93B !important;
	border-color: #F2A93B !important;
	outline: none !important;
}

/* The header actions replace the duplicate dashboard-footer actions. */
body.theme-dir-dashboard
.pb-provider-dashboard-footer__links {
	display: none !important;
}

/* Pilot dashboard logout uses the same PilotBooker palette. */
.pb-student-logout {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	min-height: 36px !important;
	padding: 7px 11px !important;
	color: #F2A93B !important;
	background: transparent !important;
	border: 1px solid rgba(242, 169, 59, 0.62) !important;
	border-radius: 7px !important;
	font-family: "Inter", Arial, sans-serif !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	text-decoration: none !important;
}

.pb-student-logout:hover,
.pb-student-logout:focus-visible {
	color: #0B1E33 !important;
	background: #F2A93B !important;
	border-color: #F2A93B !important;
	outline: none !important;
}

@media (max-width: 820px) {
	body.theme-dir-dashboard
	.pb-provider-dashboard-logout {
		min-height: 36px !important;
		padding: 7px 10px !important;
		font-size: 0.76rem !important;
	}
}
