/* Compact fixed header + drawer navigation, active below 992px.
   Desktop (min-width: 992px) keeps the original stacked header untouched. */

.m-header,
.m-header-spacer,
.m-drawer {
	display: none;
}

@media only screen and (max-width: 991px) {

	/* Hide the stacked desktop header bars (and the jQuery sticky wrapper around the nav bar) */
	.wrapp-header .info-block-01,
	.wrapp-header .header-box-01,
	.wrapp-header .header-box-02,
	.wrapp-header .sticky-wrapper {
		display: none;
	}

	/* Top bar */
	.m-header {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 60px;
		padding: 0 10px 0 4px;
		background-color: #fff;
		border-bottom: 1px solid #eceff1;
		/* Above the third-party financing widget (z-index 9999) */
		z-index: 10001;
	}

	.m-header--landing {
		padding-left: 14px;
	}

	.m-header-spacer {
		display: block;
		height: 60px;
	}

	.m-header__toggle {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		-ms-flex-negative: 0;
		flex-shrink: 0;
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
	}

	.m-header__toggle-icon {
		position: relative;
		display: block;
		width: 22px;
		height: 16px;
	}

	.m-header__toggle-icon span {
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background-color: #42474c;
		border-radius: 2px;
		transition: top 0.25s, transform 0.25s, opacity 0.2s;
	}

	.m-header__toggle-icon span:nth-child(1) { top: 0; }
	.m-header__toggle-icon span:nth-child(2) { top: 7px; }
	.m-header__toggle-icon span:nth-child(3) { top: 14px; }

	.m-header__toggle.open .m-header__toggle-icon span:nth-child(1) {
		top: 7px;
		transform: rotate(45deg);
	}

	.m-header__toggle.open .m-header__toggle-icon span:nth-child(2) {
		opacity: 0;
	}

	.m-header__toggle.open .m-header__toggle-icon span:nth-child(3) {
		top: 7px;
		transform: rotate(-45deg);
	}

	.m-header__logo {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-box-flex: 1;
		-ms-flex: 1;
		flex: 1;
		min-width: 0;
		margin-right: 8px;
	}

	.m-header__logo img {
		height: 38px;
		width: auto;
		max-width: 100%;
	}

	.m-header__actions {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		gap: 8px;
		-ms-flex-negative: 0;
		flex-shrink: 0;
		margin-left: auto;
	}

	.m-header__call {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		gap: 7px;
		min-width: 40px;
		height: 40px;
		border: 1px solid #5ba944;
		border-radius: 20px;
		color: #5ba944;
	}

	.m-header__call:hover,
	.m-header__call:focus {
		color: #5ba944;
		background-color: #f2f7ef;
	}

	.m-header__call-label {
		display: none;
		font-size: 14px;
		font-weight: 600;
		white-space: nowrap;
	}

	.m-header__book {
		display: inline-block;
		background-color: #5ba944;
		color: #fff;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.7px;
		text-transform: uppercase;
		line-height: 1;
		padding: 14px 16px;
		border-radius: 20px;
		white-space: nowrap;
		transition: background-color 0.3s;
	}

	.m-header__book:hover,
	.m-header__book:focus {
		color: #fff;
		background-color: #4c9038;
	}

	.m-header__toggle:focus-visible,
	.m-header__call:focus-visible,
	.m-header__book:focus-visible,
	.m-drawer__expand:focus-visible {
		outline: 2px solid #82c2d7;
		outline-offset: 2px;
	}

	/* Keep in-page anchor targets clear of the fixed bar */
	[id] {
		scroll-margin-top: 72px;
	}

	/* Drawer */
	body.m-drawer-open {
		overflow: hidden;
	}

	.m-drawer {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		position: fixed;
		top: 60px;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: #fff;
		/* Above the third-party financing widget (z-index 9999) */
		z-index: 10000;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

	.m-drawer.open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.m-drawer__nav {
		-webkit-box-flex: 1;
		-ms-flex: 1 0 auto;
		flex: 1 0 auto;
	}

	.m-drawer__list {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.m-drawer__item {
		border-bottom: 1px solid #eceff1;
	}

	.m-drawer__row {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
	}

	.m-drawer__item > a,
	.m-drawer__row > a {
		display: block;
		-webkit-box-flex: 1;
		-ms-flex: 1;
		flex: 1;
		min-width: 0;
		padding: 15px 20px;
		font-size: 16px;
		color: #42474c;
	}

	.m-drawer__item > a:hover,
	.m-drawer__item > a:focus,
	.m-drawer__row > a:hover,
	.m-drawer__row > a:focus {
		color: #82c2d7;
	}

	.m-drawer__expand {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-right: 12px;
		-ms-flex-negative: 0;
		flex-shrink: 0;
		background: none;
		border: 1px solid #d9e0e4;
		border-radius: 8px;
		color: #42474c;
		cursor: pointer;
		padding: 0;
	}

	.m-drawer__expand svg {
		transition: transform 0.2s;
	}

	.m-drawer__expand[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	.m-drawer__sub {
		display: none;
		margin: 0;
		padding: 0 0 6px;
		list-style: none;
		background-color: #f7f9f6;
		border-top: 1px solid #eceff1;
	}

	.m-drawer__item.open .m-drawer__sub {
		display: block;
	}

	.m-drawer__sub a {
		display: block;
		padding: 12px 20px 12px 34px;
		font-size: 15px;
		color: #5f6b76;
	}

	.m-drawer__sub a:hover,
	.m-drawer__sub a:focus {
		color: #82c2d7;
	}

	.m-drawer__sub .m-drawer__viewall {
		color: #5ba944;
		font-weight: 600;
	}

	/* Drawer footer: conversion block */
	.m-drawer__footer {
		background-color: #f2f7ef;
		border-top: 1px solid #e0e8dc;
		padding: 16px 20px 22px;
	}

	.m-drawer__cta-row {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		gap: 10px;
		margin-bottom: 14px;
	}

	.m-drawer__cta {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		gap: 8px;
		-webkit-box-flex: 1;
		-ms-flex: 1;
		flex: 1;
		height: 48px;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 700;
		white-space: nowrap;
	}

	.m-drawer__cta--call {
		border: 1px solid #5ba944;
		background-color: #fff;
		color: #5ba944;
	}

	.m-drawer__cta--call:hover,
	.m-drawer__cta--call:focus {
		color: #5ba944;
		background-color: #eaf3e4;
	}

	.m-drawer__cta--book {
		background-color: #5ba944;
		color: #fff;
	}

	.m-drawer__cta--book:hover,
	.m-drawer__cta--book:focus {
		color: #fff;
		background-color: #4c9038;
	}

	.m-drawer__meta {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: start;
		-ms-flex-align: start;
		align-items: flex-start;
		gap: 8px;
		font-size: 14px;
		line-height: 20px;
		color: #5f6b76;
		margin: 0 0 8px;
	}

	.m-drawer__meta svg {
		-ms-flex-negative: 0;
		flex-shrink: 0;
		margin-top: 2px;
		color: #5ba944;
	}

	a.m-drawer__meta:hover,
	a.m-drawer__meta:focus {
		color: #42474c;
	}

	.m-drawer__directions-label {
		text-decoration: underline;
	}
}

/* Wider phones and tablets: show the number next to the call icon, larger logo */
@media only screen and (min-width: 600px) and (max-width: 991px) {
	.m-header {
		padding: 0 16px 0 8px;
	}

	.m-header__call {
		padding: 0 14px;
	}

	.m-header__call-label {
		display: inline;
	}

	.m-header__logo img {
		height: 42px;
	}
}
