/* Self Drive Tanzania - page elements (fleet, vehicle, itinerary, guide pages).
   Built as WPBakery elements by includes/page-elements.php. Look follows the
   Chauffeur theme: red #CC4452, near-black #1C1C1C, Montserrat / Source Sans Pro.
   Uses the --sdt-* tokens from sdt.css. */

/* Full-width bands break out of the WPBakery column. body.sdt-has-elements
   clips the 100vw scrollbar overflow (clip keeps sticky elements working). */
body.sdt-has-elements { overflow-x: clip; }
.sdt-t-full { position: relative; width: 100vw; left: 50%; margin-left: -50vw; }
.sdt-t-block { margin: 0 0 56px; }
.sdt-t-hero, .sdt-t-band, .sdt-t-cta, .sdt-t-jump { margin-bottom: 48px; }
.sdt-t-kicker--light { color: #fff; opacity: .85; }
.sdt-t-hero--short { min-height: 340px; }
.sdt-t-sidelink { margin: 14px 0 0; }

.sdt-t * { box-sizing: border-box; }
.sdt-t { color: var(--sdt-ink); font-size: 16px; line-height: 1.7; }
.sdt-t h1, .sdt-t h2, .sdt-t h3, .sdt-t h4 { font-family: 'Montserrat', sans-serif; color: var(--sdt-dark); line-height: 1.25; margin: 0 0 14px; }
.sdt-t h2 { font-size: 30px; }
.sdt-t h3 { font-size: 21px; }
.sdt-t p { margin: 0 0 14px; }
.sdt-t a { color: var(--sdt-accent); }
.sdt-t-wrap { max-width: 1110px; margin: 0 auto; padding: 0 20px; }
.sdt-t-section { padding: 64px 0; }
.sdt-t-section--soft { background: var(--sdt-soft); }
.sdt-t-section--tight { padding: 40px 0; }

/* ---------- Hero ---------- */
.sdt-t-hero {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	background: var(--sdt-dark) center / cover no-repeat;
	color: #fff;
}
.sdt-t-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,20,20,.85) 0%, rgba(20,20,20,.35) 55%, rgba(20,20,20,.15) 100%); }
.sdt-t-hero .sdt-t-wrap { position: relative; width: 100%; padding-top: 80px; padding-bottom: 56px; }
.sdt-t-crumbs { font-size: 14px; margin: 0 0 14px; color: #ddd; }
.sdt-t-crumbs a { color: #fff; text-decoration: none; }
.sdt-t-crumbs a:hover { text-decoration: underline; }
.sdt-t-crumbs span { margin: 0 8px; opacity: .6; }
.sdt-t-hero h1 { color: #fff; font-size: 44px; margin: 0 0 12px; max-width: 760px; }
.sdt-t-hero p.sdt-t-lede { font-size: 19px; color: #eee; max-width: 640px; margin: 0 0 22px; }
.sdt-t-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.sdt-t-facts li { margin: 0; padding: 7px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 14px; color: #fff; background: rgba(0,0,0,.25); }
.sdt-t-facts li:before { display: none !important; }
.sdt-t-facts strong { font-family: 'Montserrat', sans-serif; }
.sdt-t-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sticky jump menu ---------- */
.sdt-t-jump {
	position: sticky;
	top: 62px; /* below the theme's fixed menu bar */
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--sdt-line);
	box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.sdt-t-jump .sdt-t-wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sdt-t-jump .sdt-t-wrap::-webkit-scrollbar { display: none; }
.sdt-t-jump a {
	flex: none;
	padding: 18px 14px 15px;
	border-bottom: 3px solid transparent;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--sdt-ink);
	text-decoration: none;
	white-space: nowrap;
}
.sdt-t-jump a:hover, .sdt-t-jump a.is-active { color: var(--sdt-accent); border-bottom-color: var(--sdt-accent); }
.sdt-t-jump .sdt-btn { margin-left: auto; padding: 10px 20px; font-size: 14px; border-bottom: 0; color: #fff; }
.sdt-t [id] { scroll-margin-top: 140px; }

/* ---------- Intro + highlight box ---------- */
.sdt-t-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.sdt-t-box {
	background: var(--sdt-dark);
	color: #e6e6e6;
	border-radius: var(--sdt-radius);
	padding: 30px 30px 26px;
	border-top: 4px solid var(--sdt-accent);
}
.sdt-t-box h3 { color: #fff; font-size: 19px; }
.sdt-t-ticks { list-style: none; margin: 0; padding: 0; }
.sdt-t-ticks li { position: relative; margin: 0 0 10px; padding: 0 0 0 28px; }
.sdt-t-ticks li:before {
	content: "" !important;
	position: absolute; left: 0; top: 6px;
	width: 16px; height: 16px;
	background: var(--sdt-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
	font-family: inherit !important;
}
.sdt-t-ticks--plus li:before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	background: var(--sdt-muted);
}
.sdt-t-ticks--x li:before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
	background: #999;
}

/* ---------- Section heading band ---------- */
.sdt-t-band { background: var(--sdt-soft); border-top: 1px solid var(--sdt-line); border-bottom: 1px solid var(--sdt-line); padding: 34px 0; text-align: center; }
.sdt-t-band h2 { margin: 0 0 6px; }
.sdt-t-band p { margin: 0; color: var(--sdt-muted); }
.sdt-t-kicker { display: block; font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sdt-accent); margin: 0 0 8px; }

/* ---------- Vehicle rows (alternating) ---------- */
.sdt-t-vehicle { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--sdt-line); }
.sdt-t-vehicle--flip .sdt-t-vehicle__media { order: 2; }
.sdt-t-vehicle__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sdt-radius); }
.sdt-t-specs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.sdt-t-specs li { margin: 0; padding: 5px 12px; background: var(--sdt-soft); border: 1px solid var(--sdt-line); border-radius: 6px; font-size: 14px; }
.sdt-t-specs li:before { display: none !important; }
.sdt-t-price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 18px; }
.sdt-t-price strong { font-family: 'Montserrat', sans-serif; font-size: 26px; color: var(--sdt-dark); }
.sdt-t-price span { color: var(--sdt-muted); font-size: 14px; }
.sdt-t-link { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* outline button on light backgrounds */
.sdt-btn--line, .sdt-btn--line:visited { border: 2px solid var(--sdt-dark); color: var(--sdt-dark) !important; padding: 11px 24px; background: transparent; }
.sdt-btn--line:hover { background: var(--sdt-dark); color: #fff !important; }

/* ---------- Included / optional ---------- */
.sdt-t-incl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sdt-t-card { background: #fff; border: 1px solid var(--sdt-line); border-radius: var(--sdt-radius); padding: 26px 28px; }
.sdt-t-card h3 { display: flex; align-items: center; gap: 10px; }
.sdt-t-card h3:before { content: ""; width: 4px; height: 20px; background: var(--sdt-accent); border-radius: 2px; }
.sdt-t-card--muted h3:before { background: #bbb; }
.sdt-t-cols2 { columns: 2; column-gap: 24px; }
.sdt-t-cols2 li { break-inside: avoid; }

/* ---------- Extras (3 cards) ---------- */
.sdt-t-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sdt-t-extra { background: #fff; border: 1px solid var(--sdt-line); border-radius: var(--sdt-radius); overflow: hidden; display: flex; flex-direction: column; }
.sdt-t-extra img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sdt-t-extra > div { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.sdt-t-extra p { font-size: 15px; }
.sdt-t-extra .sdt-t-link { margin-top: auto; }

/* ---------- Dark CTA band ---------- */
.sdt-t-cta { background: var(--sdt-dark); color: #ddd; text-align: center; padding: 60px 0; }
.sdt-t-cta h2 { color: #fff; }
.sdt-t-cta p { max-width: 620px; margin: 0 auto 22px; }
.sdt-t-cta .sdt-t-actions { justify-content: center; }

/* ---------- Vehicle spec sheet ---------- */
.sdt-t-factbar { display: grid; grid-template-columns: repeat(var(--sdt-cells, 5), 1fr); background: #fff; border: 1px solid var(--sdt-line); border-radius: var(--sdt-radius); margin: 0 0 56px; box-shadow: var(--sdt-shadow); }
.sdt-t-factbar div { padding: 18px 20px; border-right: 1px solid var(--sdt-line); }
.sdt-t-factbar div:last-child { border-right: 0; }
.sdt-t-factbar span { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--sdt-muted); }
.sdt-t-factbar strong { font-family: 'Montserrat', sans-serif; font-size: 18px; color: var(--sdt-dark); }
.sdt-t-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.sdt-t-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--sdt-radius); }
.sdt-t-gallery img:first-child { grid-row: 1 / 3; aspect-ratio: 4 / 3; }
.sdt-t-table { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.sdt-t-table th, .sdt-t-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--sdt-line); font-size: 15.5px; vertical-align: top; }
.sdt-t-table th { width: 42%; font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--sdt-dark); background: var(--sdt-soft); }
.sdt-t-todo { color: #a0a0a0; font-style: italic; }
.sdt-t-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

/* ---------- Cards row (other vehicles / similar trips) ---------- */
.sdt-t-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sdt-t-mini { display: block; border: 1px solid var(--sdt-line); border-radius: var(--sdt-radius); overflow: hidden; background: #fff; text-decoration: none !important; transition: box-shadow .2s; }
.sdt-t-mini:hover { box-shadow: var(--sdt-shadow); }
.sdt-t-mini img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sdt-t-mini span { display: block; padding: 12px 14px 2px; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--sdt-dark); font-size: 15px; }
.sdt-t-mini small { display: block; padding: 0 14px 14px; color: var(--sdt-muted); font-size: 14px; }

/* ---------- Itinerary ---------- */
.sdt-t-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.sdt-t-route li { margin: 0; padding: 6px 12px; background: #fff; border: 1px solid var(--sdt-line); border-radius: 999px; font-size: 14px; font-weight: 600; }
.sdt-t-route li:before { display: none !important; }
.sdt-t-route li + li { position: relative; margin-left: 18px; }
.sdt-t-route li + li:after { content: ""; position: absolute; left: -20px; top: 50%; width: 14px; border-top: 2px dotted var(--sdt-accent); }
.sdt-t-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sdt-t-fit .sdt-t-card { border-top: 4px solid var(--sdt-accent); }
.sdt-t-days { position: relative; margin: 0; padding: 0; list-style: none; }
.sdt-t-days:before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; border-left: 2px dashed #d6d6d6; }
.sdt-t-day { position: relative; display: grid; grid-template-columns: 56px 1fr 280px; gap: 24px; margin: 0 0 28px; padding: 0; }
.sdt-t-day:before { display: none !important; }
.sdt-t-day__num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: var(--sdt-accent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; line-height: 1; }
.sdt-t-day__num small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.sdt-t-day__num b { font-size: 17px; }
.sdt-t-day__body { background: #fff; border: 1px solid var(--sdt-line); border-radius: var(--sdt-radius); padding: 22px 24px; }
.sdt-t-day__body h3 { font-size: 19px; margin-bottom: 8px; }
.sdt-t-day__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--sdt-line); font-size: 14px; color: var(--sdt-muted); }
.sdt-t-day__meta b { color: var(--sdt-dark); font-weight: 600; }
.sdt-t-day--noimg { grid-template-columns: 56px 1fr; }
.sdt-t-day__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sdt-radius); }
.sdt-t-pricebox { background: #fff; border: 1px solid var(--sdt-line); border-left: 4px solid var(--sdt-accent); border-radius: var(--sdt-radius); padding: 26px 28px; }
.sdt-t-pricebox .sdt-t-price strong { font-size: 32px; }

/* ---------- Guide layout ---------- */
.sdt-t-guide { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.sdt-t-guidenav { position: sticky; top: 90px; background: var(--sdt-soft); border: 1px solid var(--sdt-line); border-radius: var(--sdt-radius); padding: 18px 0; }
.sdt-t-guidenav p { margin: 0 20px 10px; font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sdt-muted); }
.sdt-t-guidenav ul { list-style: none; margin: 0; padding: 0; }
.sdt-t-guidenav li { margin: 0; padding: 0; }
.sdt-t-guidenav li:before { display: none !important; }
.sdt-t-guidenav a { display: block; padding: 9px 20px; border-left: 3px solid transparent; color: var(--sdt-ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.sdt-t-guidenav a:hover { color: var(--sdt-accent); }
.sdt-t-guidenav a.is-current { border-left-color: var(--sdt-accent); background: #fff; color: var(--sdt-dark); font-weight: 600; }
.sdt-t-toc { background: #fff; border: 1px solid var(--sdt-line); border-left: 4px solid var(--sdt-accent); border-radius: var(--sdt-radius); padding: 22px 26px; margin: 0 0 36px; }
.sdt-t-toc h2 { font-size: 17px; margin: 0 0 10px; }
.sdt-t-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.sdt-t-toc li { margin: 0 0 6px; break-inside: avoid; font-size: 15px; }
.sdt-t-toc li:before { display: none !important; }
.sdt-t-article h2 { font-size: 25px; margin-top: 34px; padding-top: 6px; }
.sdt-t-article ul li, .sdt-t-article ol li { margin-bottom: 8px; }
.sdt-t-note { background: var(--sdt-soft); border-radius: var(--sdt-radius); padding: 18px 22px; margin: 18px 0; border-left: 4px solid var(--sdt-dark); }

/* theme adds chevrons to every content list; ours have their own markers */
.main-content .sdt-t ul li:before { content: none; }
.main-content .sdt-t ul.sdt-t-ticks li:before { content: "" !important; }
.main-content .sdt-t-route li:before, .main-content .sdt-t-facts li:before, .main-content .sdt-t-specs li:before { content: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.sdt-t-jump { top: 0; }
	.sdt-t-intro, .sdt-t-two { grid-template-columns: 1fr; gap: 32px; }
	.sdt-t-cards { grid-template-columns: repeat(2, 1fr); }
	.sdt-t-day { grid-template-columns: 56px 1fr; }
	.sdt-t-day__img { grid-column: 2; }
	.sdt-t-guide { grid-template-columns: 1fr; }
	.sdt-t-guidenav { position: static; }
	.sdt-t-factbar { grid-template-columns: repeat(3, 1fr); }
	.sdt-t-factbar div:nth-child(3) { border-right: 0; }
	.sdt-t-factbar div:nth-child(n+4) { border-top: 1px solid var(--sdt-line); }
}
@media (max-width: 767px) {
	.sdt-t-section { padding: 44px 0; }
	.sdt-t h2 { font-size: 24px; }
	.sdt-t-hero { min-height: 360px; }
	.sdt-t-hero h1 { font-size: 30px; }
	.sdt-t-hero p.sdt-t-lede { font-size: 17px; }
	.sdt-t-jump .sdt-btn { display: none; }
	.sdt-t-vehicle { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; }
	.sdt-t-vehicle--flip .sdt-t-vehicle__media { order: 0; }
	.sdt-t-incl, .sdt-t-grid3, .sdt-t-fit { grid-template-columns: 1fr; }
	.sdt-t-cols2, .sdt-t-toc ol { columns: 1; }
	.sdt-t-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
	.sdt-t-factbar { grid-template-columns: 1fr 1fr; }
	.sdt-t-factbar div { border-right: 0; border-top: 1px solid var(--sdt-line); }
	.sdt-t-factbar div:nth-child(-n+2) { border-top: 0; }
	.sdt-t-factbar div:nth-child(odd) { border-right: 1px solid var(--sdt-line); }
	.sdt-t-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.sdt-t-gallery img:first-child { grid-column: 1 / 3; grid-row: auto; }
	.sdt-t-days:before { left: 21px; }
	.sdt-t-day { grid-template-columns: 44px 1fr; gap: 14px; }
	.sdt-t-day__num { width: 44px; height: 44px; }
	.sdt-t-day__body { padding: 18px; }
	.sdt-t-table th { width: 46%; }
	.sdt-t-actions .sdt-btn { flex: 1 1 100%; justify-content: center; }
}
