/* Island Life Jeeps — base + components */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-body-md);
	line-height: var(--lh-body-md);
	color: var(--on-surface);
	background: var(--background);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }

h1, h2, h3, h4 { font-weight: 600; color: var(--on-surface); margin: 0 0 var(--sp-md); letter-spacing: var(--ls-headline-lg); }
h1 { font-size: var(--fs-headline-lg); line-height: var(--lh-headline-lg); }
h2 { font-size: var(--fs-headline-lg); line-height: var(--lh-headline-lg); }
h3 { font-size: var(--fs-headline-md); line-height: var(--lh-headline-md); letter-spacing: 0; }
p { margin: 0 0 var(--sp-md); }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--margin-desktop); }
.section { padding: var(--sp-xxl) 0; }
.section--tight { padding: var(--sp-xl) 0; }
.text-center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-label-sm); font-weight: 700; color: var(--primary); margin-bottom: var(--sp-sm); }
.lead { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); color: var(--on-surface-variant); }
.muted { color: var(--on-surface-variant); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-sm);
	font-family: inherit; font-weight: 500; font-size: var(--fs-body-md);
	padding: 12px 24px; border-radius: var(--radius); border: 1.5px solid transparent;
	cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
	line-height: 1; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary-container); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-2); color: #fff; box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary-2); color: #fff; }
.btn-secondary:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: rgba(1,44,109,.06); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { box-shadow: var(--shadow); }
.btn-outline-light { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; backdrop-filter: blur(2px); }
.btn-outline-light:hover { background: #fff; color: var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: var(--fs-body-lg); }
.btn-sm { padding: 8px 16px; font-size: var(--fs-label-md); }

/* ---------- Chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-full);
	font-size: var(--fs-label-sm); font-weight: 600; background: rgba(110,193,228,.18); color: var(--primary); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff;
	font-size: var(--fs-label-sm); font-weight: 700; padding: 6px 12px; border-radius: var(--radius-full); }
.price-badge { position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff;
	font-weight: 700; padding: 6px 12px; border-radius: var(--radius-full); font-size: var(--fs-label-md); }

/* ---------- Cards ---------- */
.card { background: var(--surface-container-lowest); border: 1px solid var(--outline-variant); border-radius: var(--radius-lg);
	overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 16/10; background: var(--surface-container); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--sp-lg); }

/* ---------- Inputs ---------- */
.field { display: block; margin-bottom: var(--sp-md); min-width: 0; }
.field > label { display: block; font-size: var(--fs-label-md); font-weight: 600; color: var(--on-surface-variant); margin-bottom: 6px; }
.input, input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; font-family: inherit; font-size: var(--fs-body-md);
	color: var(--on-surface); background: #fff; border: 1.5px solid var(--outline-variant); border-radius: var(--radius);
	transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(110,193,228,.3); }
input[type=date] { min-width: 0; max-width: 100%; display: block; -webkit-appearance: none; appearance: none; }
textarea { min-height: 90px; }

/* ---------- Header: top bar ---------- */
.site-header { position: relative; z-index: 50; background: var(--header-bg); }
.topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-lg); padding: 10px 0; }
.brand { display: inline-flex; align-items: center; font-size: 22px; font-weight: 700; color: var(--primary); }
.brand .custom-logo, .brand img { max-height: 110px; width: auto; height: auto; max-width: 240px; }
.brand .custom-logo-link { display: inline-flex; align-items: center; }
.topbar__mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: 18px; white-space: nowrap; }
.topbar__phone svg { color: var(--secondary); }
.topbar__search { display: flex; width: min(380px, 100%); }
.topbar__search input { min-height: 36px; padding: 6px 12px; font-size: var(--fs-label-md); border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.topbar__search button { min-height: 36px; width: 40px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--on-surface-variant); color: #fff; cursor: pointer; display: grid; place-items: center; }
.topbar__search button:hover { background: var(--primary); }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.social { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); color: #fff; transition: transform .12s, opacity .12s; }
.social:hover { transform: translateY(-2px); color: #fff; opacity: .9; }
.social--facebook { background: #1877f2; }
.social--instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.social--whatsapp { background: #25d366; }
.social--tripadvisor { background: #34e0a1; color: #000; }
.social--tripadvisor:hover { color: #000; }

/* ---------- Header: nav bar ---------- */
.navbar { background: var(--nav-bg); }
.nav { display: flex; align-items: center; justify-content: center; min-height: 44px; gap: var(--sp-md); }
.nav__links { display: flex; align-items: center; justify-content: center; gap: 0; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav__links li { margin: 0; }
.nav__links a { display: block; padding: 13px 18px; color: var(--nav-text); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; transition: background .15s; }
.nav__links a:hover, .nav__links .current-menu-item > a, .nav__links .current_page_item > a, .nav__links .current-menu-ancestor > a { background: var(--nav-active); color: #fff; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }
.nav__scrim, .nav__close { display: none; }
body.nav-open { overflow: hidden; }

/* ---------- Page head (inner pages) ---------- */
.page-head { background: var(--surface-container-low); border-bottom: 1px solid var(--outline-variant); padding: var(--sp-xl) 0; }
.page-head h1 { margin: 0; color: var(--primary); }

/* ---------- Search widget (booking pages) ---------- */
.search-card { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-radius: var(--radius-lg); padding: var(--sp-lg); box-shadow: var(--shadow-lg); color: var(--on-surface); }
.search-card__title { margin: 0 0 var(--sp-md); padding-bottom: var(--sp-md); font-size: var(--fs-headline-md); font-weight: 700; color: var(--on-surface); border-bottom: 1px solid var(--outline-variant); }
.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.search-row--full { grid-template-columns: 1fr; }

/* ---------- Feature grid / fleet / deals (used by inner templates) ---------- */
.feature-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-md); }
.feature-grid--row2 { grid-template-columns: 1fr 1.4fr; }
.feature { border-radius: var(--radius-lg); padding: var(--sp-lg); }
.feature--primary { background: var(--primary); color: #fff; }
.feature--soft { background: var(--surface-container); }
.feature--media { position: relative; min-height: 200px; background-size: cover; background-position: center; color: #fff; }
.feature__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(255,255,255,.18); margin-bottom: var(--sp-md); }
.feature--soft .feature__icon { background: #fff; color: var(--primary); }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.vehicle-card .specs { display: flex; flex-wrap: wrap; gap: var(--sp-md); margin: var(--sp-md) 0; color: var(--on-surface-variant); font-size: var(--fs-label-md); }
.vehicle-card .specs span { display: inline-flex; align-items: center; gap: 6px; }
.vehicle-card .price { font-size: var(--fs-headline-md); font-weight: 800; color: var(--primary); }
.vehicle-card .price small { font-size: var(--fs-label-md); font-weight: 600; color: var(--on-surface-variant); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: var(--sp-lg); gap: var(--sp-md); flex-wrap: wrap; }
.deals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.deal { border-radius: var(--radius-lg); padding: var(--sp-lg); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.deal--coral { background: var(--secondary); color: #fff; }
.deal--soft { background: var(--surface-container); }
.deal--teal { background: var(--primary-container); color: #fff; }
.deal h4 { color: inherit; }
.cta-band { background: var(--primary); color: #fff; border-radius: var(--radius-xl); padding: var(--sp-xxl) var(--sp-xl); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto var(--sp-lg); }
.cta-actions { display: flex; gap: var(--sp-md); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #fff; padding: var(--sp-lg) 0; margin-top: 0; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0 0 var(--sp-sm); padding: 0; }
.footer-nav li { margin: 0; }
.footer-nav a { display: block; padding: 6px 14px; color: #fff; font-family: var(--font-footer); font-size: 20px; font-weight: 300; }
.footer-nav a:hover { color: var(--nav-active); }
.footer-bottom { text-align: center; color: rgba(255,255,255,.85); font-family: var(--font-footer); font-size: 16px; font-weight: 300; }
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--on-primary); }

/* ---------- Booking flow ---------- */
.steps { display: flex; gap: var(--sp-sm); align-items: center; margin-bottom: var(--sp-lg); flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; color: var(--on-surface-variant); font-weight: 600; font-size: var(--fs-label-md); }
.step .num { width: 26px; height: 26px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--surface-container-high); color: var(--on-surface-variant); font-size: 13px; }
.step.active .num { background: var(--primary); color: #fff; }
.step.active { color: var(--primary); }
.search-summary-bar { background: var(--surface-container); border-radius: var(--radius); padding: 12px var(--sp-lg); display: flex; gap: var(--sp-lg); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-lg); font-size: var(--fs-label-md); font-weight: 600; }
.search-summary-bar .sep { color: var(--outline); }
.results-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-lg); align-items: start; }
.filters { background: #fff; border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); padding: var(--sp-lg); position: sticky; top: 16px; }
.filters h4 { font-size: var(--fs-body-md); }
.result-row { display: grid; grid-template-columns: 280px 1fr; gap: 0; background: #fff; border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--sp-md); }
.result-row .media { position: relative; min-height: 200px; background: var(--surface-container); }
.result-row .media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.result-row .body { padding: var(--sp-lg); display: flex; flex-direction: column; }
.result-row .row-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--surface-container); padding-top: var(--sp-md); }
.avail-pill { font-size: var(--fs-label-sm); font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); background: rgba(110,193,228,.25); color: var(--primary); }
.avail-pill--low { background: var(--error-container); color: #93000a; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-lg); align-items: start; }
.summary-card { background: #fff; border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); padding: var(--sp-lg); position: sticky; top: 16px; }
.summary-card .total-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-card .grand { border-top: 2px solid var(--surface-container-high); margin-top: 8px; padding-top: 12px; font-size: var(--fs-headline-md); font-weight: 800; color: var(--primary); }
.addon-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.addon { border: 1px solid var(--outline-variant); border-radius: var(--radius); padding: var(--sp-md); display: flex; gap: var(--sp-md); align-items: center; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.addon:hover { border-color: var(--primary); }
.addon.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(110,193,228,.4); }
.addon input { width: auto; min-height: 0; }
.notice-box { background: var(--surface-container); border-radius: var(--radius); padding: var(--sp-md); font-size: var(--fs-label-md); color: var(--on-surface-variant); }
.error-text { color: var(--error); font-weight: 600; }
.confirm-hero { text-align: center; padding: var(--sp-xxl) 0; }
.confirm-code { font-size: var(--fs-headline-lg); font-weight: 800; color: var(--primary); letter-spacing: 0.04em; }

/* ---------- Locations ---------- */
.ilr-map { width: 100%; height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--outline-variant); margin-bottom: var(--sp-xl); z-index: 0; }
.ilr-loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-lg); }
.ilr-loc-card .card__body svg { vertical-align: middle; color: var(--primary); }

/* ---------- FAQ accordion ---------- */
.ilr-faq { display: flex; flex-direction: column; gap: var(--sp-sm); }
.ilr-faq-item { background: var(--surface-container-lowest); border: 1px solid var(--outline-variant); border-radius: var(--radius-lg); padding: 0 var(--sp-lg); }
.ilr-faq-q { cursor: pointer; list-style: none; padding: var(--sp-lg) 0; font-weight: 700; font-size: var(--fs-body-lg); color: var(--on-surface); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-md); }
.ilr-faq-q::-webkit-details-marker { display: none; }
.ilr-faq-q::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--primary); line-height: 1; flex: none; }
.ilr-faq-item[open] .ilr-faq-q::after { content: "\2212"; }
.ilr-faq-a { padding: 0 0 var(--sp-lg); color: var(--on-surface-variant); line-height: var(--lh-body-lg); }
.ilr-faq-a p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.container { padding: 0 var(--margin-mobile); }
	.feature-grid, .feature-grid--row2 { grid-template-columns: 1fr; }
	.fleet-grid { grid-template-columns: 1fr; }
	.deals-grid { grid-template-columns: 1fr 1fr; }
	.results-layout { grid-template-columns: 1fr; }
	.filters { position: static; }
	.checkout-layout { grid-template-columns: 1fr; }
	.summary-card { position: static; }
	.result-row { grid-template-columns: 1fr; }
	.addon-list { grid-template-columns: 1fr; }

	.topbar { grid-template-columns: 1fr auto; }
	.topbar__mid { grid-column: 1 / -1; order: 3; align-items: stretch; }
	.topbar__phone { justify-content: center; }
	.topbar__search { width: 100%; }
	.brand .custom-logo, .brand img { max-height: 80px; max-width: min(200px, 100%); }
	.nav { justify-content: space-between; }
	.nav__toggle { display: block; }
	/* Slide-in menu drawer */
	.nav__links {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
		flex-direction: column; align-items: flex-start; gap: 0; margin: 0;
		background: var(--nav-bg); padding: 72px var(--sp-lg) var(--sp-lg);
		box-shadow: -12px 0 32px rgba(0, 0, 0, .25); overflow-y: auto; z-index: 70;
		transform: translateX(100%); visibility: hidden;
		transition: transform .28s ease, visibility 0s linear .28s;
	}
	.site-header.open .nav__links { transform: none; visibility: visible; transition: transform .28s ease; }
	.nav__links li { width: 100%; }
	.nav__links a { display: block; padding: var(--sp-md) 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: var(--fs-body-md); }
	.nav__links a:hover, .nav__links .current-menu-item > a { background: transparent; color: var(--nav-active); }
	.nav__scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 60; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
	.site-header.open .nav__scrim { opacity: 1; visibility: visible; transition: opacity .28s ease; }
	.nav__close { display: block; position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; z-index: 80; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
	.site-header.open .nav__close { opacity: 1; visibility: visible; transition: opacity .28s ease; }
	.nav__close span { position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: #fff; }
	.nav__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
	.nav__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
	:root { --fs-display: 34px; --lh-display: 42px; --fs-headline-lg: 28px; --lh-headline-lg: 36px; }
}
@media (max-width: 560px) {
	.deals-grid { grid-template-columns: 1fr; }
	.search-row { grid-template-columns: 1fr; }
	input[type=date] { padding: 10px 10px; }
	.footer-nav a { font-size: 17px; padding: 6px 10px; }
}

/* ---------- Content pages (block editor output) ---------- */
.entry-content > * + * { margin-top: var(--sp-lg); }
.entry-content p { line-height: 1.75; }
.entry-content .is-style-lead { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); color: var(--primary); margin-bottom: var(--sp-md); }
.entry-content .wp-block-media-text { margin: var(--sp-xxl) 0; gap: 0; grid-template-columns: 45% 1fr; }
.entry-content .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 45%; }
.entry-content .wp-block-media-text__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; }
.entry-content .wp-block-media-text__content { padding: 0 0 0 var(--sp-xl); }
.entry-content .has-media-on-the-right .wp-block-media-text__content { padding: 0 var(--sp-xl) 0 0; }
.entry-content .wp-block-media-text h3 { color: var(--primary); margin-bottom: var(--sp-md); }
@media (max-width: 600px) {
	.entry-content .wp-block-media-text, .entry-content .wp-block-media-text.has-media-on-the-right { grid-template-columns: 100% !important; margin: var(--sp-xl) 0; }
	.entry-content .wp-block-media-text__content, .entry-content .has-media-on-the-right .wp-block-media-text__content { padding: var(--sp-md) 0 0 !important; }
}
.ilr-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
