/*
Theme Name: MauDrive
Description: A Mauritius car rental theme with reusable shortcode sections and Localrent car search.
Version: 1.3.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mauridrive
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root{--ink:#102e2d;--dim:#476360;--green:#00695d;--mint:#e9f4ef;--cream:#faf9f4;--line:#d9e5df}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:system-ui,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,summary{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #139981;outline-offset:3px}.wrap{width:min(1200px,calc(100% - 64px));margin-inline:auto}.nav,.foot{display:flex;justify-content:space-between;align-items:center;gap:25px;padding-block:20px}.nav nav{display:flex;gap:32px;font-size:.92rem;color:var(--dim)}.logo{font-size:1.45rem;letter-spacing:-.06em;font-weight:800;white-space:nowrap}.logo b{color:var(--green)}.logo span{display:inline-grid;place-items:center;width:34px;height:34px;margin-right:8px;border-radius:11px;background:var(--green);color:white}.outline,.primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:10px;padding:13px 19px;font-weight:700;border:1px solid var(--green)}.outline{color:var(--green)}.primary{background:var(--green);color:white}.primary:hover{background:#004e45}.hero{display:grid;grid-template-columns: .84fr 1.16fr;align-items:center;margin-top:16px}.hero-copy{padding:24px 12px 87px 0}.eyebrow{color:var(--green);font-weight:800;letter-spacing:.13em;font-size:.72rem;margin:0 0 14px}.eyebrow span{display:inline-block;width:8px;height:8px;border-radius:50%;background:#1b9c80;margin-right:5px}h1,h2,h3,p,figure{margin-top:0}h1,h2{font-family:Georgia,serif;font-weight:500;letter-spacing:-.045em}h1{font-size:clamp(3rem,6.7vw,6.1rem);line-height:.95;margin-bottom:22px}h1 em{color:var(--green);font-weight:400}h2{font-size:clamp(2.1rem,4.2vw,3.65rem);line-height:1.03;margin-bottom:18px}h3{margin-bottom:7px;font-size:1.15rem}p:not(.eyebrow){color:var(--dim);line-height:1.55}.intro,.lede{max-width:42ch}.hero-photo{height:480px;border-radius:28px;margin:0;position:relative;background:#78bfb6 url(assets/hero.webp) center 56%/cover no-repeat;overflow:hidden}.hero-photo figcaption{position:absolute;bottom:85px;right:17px;background:#123c37;color:white;padding:7px 12px;border-radius:20px;font-size:.72rem}.booking{grid-column:1/-1;z-index:1;margin:-72px 25px 0;background:white;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 14px 44px #103c2d14}.modes{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}.modes button{border:0;border-radius:8px;padding:9px 12px;background:white;color:var(--dim);font-weight:650;font-size:.88rem}.modes button[aria-pressed=true]{background:var(--mint);color:var(--green)}.fields{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:8px}.fields label,.extra label{display:grid;gap:5px;color:var(--dim);font-size:.82rem;font-weight:650}.fields label{border:1px solid var(--line);border-radius:9px;padding:8px 10px;min-width:0}.fields input,.fields select{border:0;background:white;color:var(--ink);padding:2px;min-width:0;font-size:.98rem}.options{margin-top:10px;color:var(--green);font-size:.82rem}.extra{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding-top:10px}.extra label:has([type=checkbox]){display:flex}.section{padding-block:64px;scroll-margin-top:15px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:24px}.grid article{padding:23px;border-radius:17px;background:white;border:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-start}.icon{border-radius:11px;background:var(--mint);color:var(--green);display:grid;place-items:center;width:42px;height:42px;font-size:1.25rem;margin-bottom:16px}.link{color:var(--green);font-weight:750;background:none;border:0;padding:0;text-align:left;margin-top:auto}.link:hover{text-decoration:underline}.tint{background:var(--mint)}.trip,.faq{display:grid;grid-template-columns:1fr 1fr;gap:32px}.route{border-left:2px solid #8ac9b6;padding-left:23px}.route>div{position:relative}.route>div:before{content:"";position:absolute;left:-30px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--green);border:2px solid var(--cream)}small{color:var(--green);font-weight:750;letter-spacing:.08em}.terms>div{border-top:1px solid #9dc6ba;padding-top:16px}.faq details{border-bottom:1px solid var(--line);padding:15px 0}.faq summary{font-weight:700}.faq p{margin:9px 0 0}footer{background:#e2efe8}.foot p{font-size:.85rem;margin:0}.price{margin-bottom:7px;font-weight:700}.spec{font-size:.9rem}.chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 13px}.chip{background:var(--mint);color:var(--green);border-radius:20px;padding:4px 8px;font-size:.74rem;font-weight:700}@media(max-width:800px){.wrap{width:calc(100% - 36px)}.nav nav{display:none}.hero{grid-template-columns:1fr}.hero-copy{padding:15px 0}.hero-photo{grid-row:3;height:260px;margin-top:20px}.hero-photo figcaption{bottom:12px}.booking{margin:0;grid-row:2}.fields{grid-template-columns:1fr 1fr}.fields label:first-child,.fields button{grid-column:1/-1}.section{padding-block:42px}.grid{grid-template-columns:1fr}.trip,.faq{grid-template-columns:1fr;gap:18px}.foot{flex-wrap:wrap}}@media(max-width:360px){.wrap{width:calc(100% - 24px)}.modes button{padding:7px}.outline{padding:9px}}

.page-content{min-height:50vh}.post-body{width:min(780px,calc(100% - 36px));margin-inline:auto;padding-block:42px}.post-body img{height:auto;max-width:100%}.post-body a{text-decoration:underline}.results:focus{outline:none}
.rental-options{margin-top:28px}.options-row{display:flex;flex-wrap:wrap;gap:8px}.options-row span{border:1px solid var(--line);border-radius:100px;padding:8px 13px;background:white;color:var(--green);font-size:.88rem;font-weight:700}.rental-options p{margin:9px 0 0;font-size:.86rem}.booking-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:0;list-style:none;counter-reset:booking}.booking-steps li{counter-increment:booking;border-top:1px solid var(--line);padding-top:14px}.booking-steps li:before{content:counter(booking);display:grid;place-items:center;color:var(--green);background:var(--mint);font-weight:800;width:34px;height:34px;border-radius:9px;margin-bottom:12px}.closing{background:var(--mint);border:1px solid var(--line);border-radius:24px;padding:clamp(22px,5vw,56px)}.review-content{max-width:68ch}@media(max-width:800px){.booking-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.booking-steps{grid-template-columns:1fr}}
@media(min-width:801px){.terms:has(> :nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}}
.business-contact{border-top:1px solid var(--line);padding-block:24px 32px}.business-contact h2{font-size:clamp(1.45rem,3vw,2rem);margin-bottom:15px}.business-contact-grid{display:flex;flex-wrap:wrap;gap:16px 40px;color:var(--dim)}.business-contact address{font-style:normal}.business-contact p{margin:6px 0}.business-contact a{color:var(--green);text-decoration:underline;text-underline-offset:3px}.business-contact h3{font-size:.95rem}.business-contact ul{padding:0;margin:0;list-style:none}.business-contact li{margin-bottom:4px}

/* Full-width hero with the copy and search card aligned to the site grid. */
.hero-wide {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding: clamp(12px, 2vw, 26px) max(32px, calc((100% - 1200px) / 2)) 16px;
}
.hero-wide .hero-photo {
	position: absolute;
	inset: 0;
	height: auto;
	z-index: -1;
	border-radius: 0;
	background-position: center 57%;
}
.hero-wide .hero-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(8, 32, 30, .88), rgba(8, 32, 30, .60) 42%, rgba(8, 32, 30, .12) 80%);
}
.hero-wide .hero-copy { padding: 0; }
.hero-wide .hero-copy h1, .hero-wide .hero-copy .intro { color: #fff; }
.hero-wide .hero-copy h1 em, .hero-wide .hero-copy .eyebrow { color: #bff5e6; }
.hero-wide .hero-copy .eyebrow span { background: #bff5e6; }
.hero-wide .booking { margin: 0; min-width: 0; }
@media (max-width: 800px) {
	.hero-wide { padding: 12px 18px 14px; }
	.hero-wide .hero-photo { grid-row: auto; margin: 0; background-position: 64% center; }
	.hero-wide .hero-photo::before { background: rgba(8, 32, 30, .58); }
}
.hero-wide .hero-copy h1 { max-width: 23ch; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.02; }

/* Pull the first hero behind the navigation while keeping its content below it. */
body:has(> .nav + .page-content > .hero-wide:first-child) {
	--mauri-nav-height: 84px;
}
.nav:has(+ .page-content > .hero-wide:first-child) {
	position: relative;
	z-index: 2;
	height: var(--mauri-nav-height);
	padding-block: 0;
	color: #fff;
}
.nav:has(+ .page-content > .hero-wide:first-child) :is(nav, .logo b) {
	color: inherit;
}
.nav:has(+ .page-content > .hero-wide:first-child) .outline {
	color: #fff;
	border-color: #fff;
	background: rgba(8, 32, 30, .5);
}
.nav + .page-content > .hero-wide:first-child {
	margin-top: calc(-1 * var(--mauri-nav-height));
	padding-top: calc(var(--mauri-nav-height) + clamp(12px, 2vw, 26px));
}
.nav + .page-content > .hero-wide:first-child .hero-photo::before {
	box-shadow: inset 0 110px 75px -75px rgba(8, 32, 30, .95);
}

@media (max-width: 800px) {
	body:has(> .nav + .page-content > .hero-wide:first-child) {
		--mauri-nav-height: 72px;
	}
	.nav + .page-content > .hero-wide:first-child {
		padding-top: calc(var(--mauri-nav-height) + 12px);
	}

}

.footer-links {
	border-top: 1px solid var(--line);
	padding-block: 18px 24px;
}
.footer-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.footer-links a {
	color: var(--green);
	font-weight: 650;
}
.footer-links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hero-copy .rental-options {
	width: auto;
	margin-inline: 0;
}
.hero-copy .rental-options p {
	color: #f1fbf8;
}

.options-row span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.options-row svg {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hero-wide .hero-copy .eyebrow { margin-bottom: 8px; }
.hero-wide .hero-copy h1 { margin-bottom: 10px; }
.hero-wide .hero-copy .intro { margin-bottom: 0; }
.hero-wide .rental-options { margin-top: 10px; }

.language-switcher {
	position: relative;
	flex: none;
}
.language-switcher summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: .875rem;
	font-weight: 700;
	list-style: none;
}
.language-switcher summary::-webkit-details-marker {
	display: none;
}
.language-switcher summary::after {
	content: "";
	width: 6px;
	height: 6px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: translateY(-2px) rotate(45deg);
}
.language-switcher[open] summary::after {
	transform: translateY(2px) rotate(225deg);
}
.language-flags {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 3;
	min-width: 148px;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	list-style: none;
	box-shadow: 0 8px 24px rgba(8, 32, 30, .2);
}
.language-flags li {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 8px;
	font-size: .875rem;
}
.language-flags svg {
	display: block;
	flex: none;
	width: 24px;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 0 0 1px var(--line);
}

/* Keep the benefit badges readable over the hero photo. */
.hero-wide .options-row {
	gap: 8px;
}
.hero-wide .options-row span {
	gap: 8px;
	min-height: 36px;
	padding: 6px 11px;
	border: 1px solid rgba(208, 255, 241, .34);
	border-radius: 10px;
	background: rgba(8, 40, 36, .87);
	color: #fff;
	font-size: .83rem;
	line-height: 1.25;
}
.hero-wide .options-row svg {
	width: 17px;
	height: 17px;
	color: #93efd5;
}
@media (max-width: 480px) {
	.hero-wide .options-row {
		gap: 6px;
	}
	.hero-wide .options-row span {
		min-height: 32px;
		padding-inline: 8px;
		font-size: .78rem;
	}
}

.logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 34px;
}
.logo img.logo-on-hero,
.nav:has(+ .page-content > .hero-wide:first-child) .logo img:not(.logo-on-hero) {
	display: none;
}
.nav:has(+ .page-content > .hero-wide:first-child) .logo img.logo-on-hero {
	display: block;
}

.hero-wide .hero-copy .intro {
	max-width: 1040px;
	line-height: 1.45;
}
@media (min-width: 1100px) {
	.hero-intro-second-line {
		display: block;
	}
}
