/* ==========================================================================
   Malaysia Tour & Holiday — main stylesheet
   Palette: white + vibrant metallic blue + metallic grey
   ========================================================================== */

:root {
	--mth-navy: #124a80;        /* deep vibrant metallic blue — headings, gradients, overlays */
	--mth-steel: #1c72b8;       /* primary vibrant blue — buttons, links, price */
	--mth-steel-light: #4fa0e0; /* light vibrant blue — gradient ends, hover */
	--mth-grey-dark: #3f4a58;   /* metallic grey dark — footer, dark grounding */
	--mth-grey-mid: #7c8ca0;    /* metallic grey mid — muted accents, badges */
	--mth-grey-light: #d7dee6;  /* metallic grey light — borders, chips */
	--mth-highlight: #eaf3fb;   /* pale blue-white tint */
	--mth-accent: #5fa8e5;      /* bright accent blue — eyebrows, stats */
	--mth-bg: #ffffff;
	--mth-bg-alt: #f4f8fb;
	--mth-white: #ffffff;
	--mth-text: #1e2a38;
	--mth-text-muted: #5b6b7c;
	--mth-border: #e1e8ee;
	--mth-success: #1c6b3e;
	--mth-success-bg: #e6f4ea;
	--mth-error: #9b2c2c;
	--mth-error-bg: #fbeaea;
	--mth-radius: 12px;
	--mth-radius-sm: 8px;
	--mth-shadow: 0 8px 24px rgba(18, 74, 128, 0.10);
	--mth-shadow-lg: 0 16px 40px rgba(18, 74, 128, 0.16);
	--mth-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--mth-font-display: 'Poppins', var(--mth-font);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--mth-font);
	color: var(--mth-text);
	background: var(--mth-bg);
	line-height: 1.6;
	font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--mth-font-display); font-weight: 600; line-height: 1.25; margin: 0 0 0.5em; color: var(--mth-navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.screen-reader-text { position: absolute; left: -9999px; }
.mth-skip-link:focus { left: 10px; top: 10px; position: fixed; background: #fff; padding: 10px; z-index: 9999; }

.mth-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.mth-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	cursor: pointer;
}
.mth-btn-primary {
	background: linear-gradient(135deg, var(--mth-steel), var(--mth-navy));
	color: #fff;
	box-shadow: var(--mth-shadow);
}
.mth-btn-primary:hover { background: linear-gradient(135deg, var(--mth-steel-light), var(--mth-steel)); transform: translateY(-1px); }
.mth-btn-outline { background: transparent; border-color: var(--mth-steel); color: var(--mth-steel); }
.mth-btn-outline:hover { background: var(--mth-steel); color: #fff; }
.mth-btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); color: #fff; }
.mth-btn-ghost:hover { background: rgba(255,255,255,0.24); }
.mth-btn-lg { padding: 15px 30px; font-size: 16px; }
.mth-btn-block { width: 100%; }
.mth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Top bar ---- */
.mth-topbar { background: var(--mth-bg-alt); color: var(--mth-text-muted); font-size: 13px; border-bottom: 1px solid var(--mth-border); }
.mth-topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 6px; }
.mth-topbar-contact a { margin-right: 18px; color: var(--mth-steel); font-weight: 500; }
.mth-topbar-links a { color: var(--mth-steel); font-weight: 700; }

/* ---- Header ---- */
.mth-header { background: #fff; box-shadow: 0 2px 10px rgba(26,38,51,0.06); position: relative; z-index: 100; }
.mth-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 24px; }
.mth-logo { display: flex; align-items: center; gap: 10px; }
.mth-logo-mark { font-size: 26px; color: var(--mth-steel); }
.mth-logo-text { font-family: var(--mth-font-display); font-weight: 700; font-size: 20px; color: var(--mth-navy); letter-spacing: -0.01em; }
.mth-primary-nav { flex: 1; display: flex; justify-content: center; }
.mth-menu { display: flex; gap: 32px; }
.mth-menu a { font-weight: 500; color: var(--mth-text); padding: 8px 0; position: relative; }
.mth-menu a:hover { color: var(--mth-steel); }
.mth-header-cta { display: flex; align-items: center; gap: 12px; }
.mth-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.mth-menu-toggle span { width: 24px; height: 2px; background: var(--mth-navy); border-radius: 2px; }
.mth-mobile-menu { display: none; flex-direction: column; padding: 16px 24px 24px; border-top: 1px solid var(--mth-border); background: #fff; }
.mth-mobile-menu-list { display: flex; flex-direction: column; gap: 4px; }
.mth-mobile-menu-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--mth-border); font-weight: 500; }
.mth-mobile-book { margin-top: 16px; }
body.mth-menu-open .mth-mobile-menu { display: flex; }

@media (max-width: 900px) {
	.mth-primary-nav, .mth-header-cta .mth-btn { display: none; }
	.mth-menu-toggle { display: flex; }
}

/* ---- Hero ---- */
.mth-hero { background: linear-gradient(135deg, var(--mth-navy) 0%, var(--mth-steel) 55%, var(--mth-steel-light) 100%); color: #fff; padding: 90px 0 70px; text-align: center; }
.mth-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--mth-accent); margin-bottom: 10px; }
.mth-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); max-width: 780px; margin: 0 auto 18px; }
.mth-hero-subtitle { max-width: 620px; margin: 0 auto 32px; color: var(--mth-grey-light); font-size: 17px; }
.mth-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.mth-hero-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.mth-hero-stats strong { display: block; font-family: var(--mth-font-display); font-size: 28px; color: #fff; }
.mth-hero-stats span { color: var(--mth-grey-light); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Homepage moving banner ---- */
.mth-banner {
	position: relative;
	height: clamp(440px, 60vw, 640px);
	overflow: hidden;
	color: #fff;
	background: var(--mth-navy);
}
.mth-banner-track { position: absolute; inset: 0; }
.mth-banner-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	background-color: var(--mth-navy);
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.1s ease;
}
.mth-banner-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.mth-banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(18,74,128,0.90) 0%, rgba(18,74,128,0.62) 42%, rgba(18,74,128,0.18) 78%);
}
.mth-banner-content { position: relative; z-index: 2; max-width: 640px; }
.mth-banner-content h1 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 14px; }
.mth-banner-subtitle { color: var(--mth-grey-light); font-size: 17px; max-width: 540px; margin-bottom: 28px; }
.mth-banner .mth-eyebrow { color: var(--mth-accent); }
.mth-banner-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.18);
	color: #fff;
	backdrop-filter: blur(4px);
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}
.mth-banner-arrow:hover { background: var(--mth-steel); }
.mth-banner-prev { left: 20px; }
.mth-banner-next { right: 20px; }
.mth-banner-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.mth-banner-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7); background: transparent; padding: 0; transition: all 0.2s ease; }
.mth-banner-dot.is-active { background: #fff; width: 26px; border-radius: 6px; }
.mth-stats-strip { background: var(--mth-bg-alt); border-bottom: 1px solid var(--mth-border); }
.mth-stats-strip .mth-hero-stats { padding: 22px 24px; justify-content: center; gap: 56px; }
.mth-stats-strip .mth-hero-stats strong { color: var(--mth-navy); }
.mth-stats-strip .mth-hero-stats span { color: var(--mth-text-muted); }
.mth-hero-hint { margin-top: 22px; font-size: 12px; color: var(--mth-grey-light); }
@media (max-width: 640px) {
	.mth-banner-arrow { width: 36px; height: 36px; }
	.mth-banner-content { max-width: 90%; }
}

/* ---- Page hero (interior pages) ---- */
.mth-page-hero { background: linear-gradient(120deg, var(--mth-navy), var(--mth-steel)); color: #fff; padding: 64px 0; text-align: center; }
.mth-page-hero h1 { color: #fff; margin-bottom: 8px; }
.mth-page-hero-subtitle { color: var(--mth-grey-light); }
.mth-page-hero-compact { padding: 44px 0; }

/* ---- Sections ---- */
.mth-section { padding: 72px 0; }
.mth-section-alt { background: var(--mth-bg-alt); }
.mth-section-heading { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.mth-section-cta { text-align: center; margin-top: 36px; }

.mth-quick-booking-section { padding: 0; margin-top: -46px; position: relative; z-index: 5; }
.mth-quick-booking-card { background: #fff; border-radius: var(--mth-radius); box-shadow: var(--mth-shadow-lg); padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mth-quick-booking-card h2, .mth-quick-booking-card p { margin: 0; }
.mth-quick-booking-card p { color: var(--mth-text-muted); }

/* ---- Cards ---- */
.mth-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.mth-card { background: #fff; border-radius: var(--mth-radius); overflow: hidden; box-shadow: var(--mth-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.mth-card:hover { transform: translateY(-4px); box-shadow: var(--mth-shadow-lg); }
.mth-card-media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--mth-grey-light); }
.mth-card-media img { width: 100%; height: 100%; object-fit: cover; }
.mth-card-badge { position: absolute; top: 12px; left: 12px; background: rgba(26,38,51,0.85); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.mth-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mth-card-body h3 { font-size: 18px; margin: 0; }
.mth-card-body p { color: var(--mth-text-muted); font-size: 14px; margin: 0; flex: 1; }
.mth-card-specs { display: flex; gap: 14px; color: var(--mth-text-muted); font-size: 13px; }
.mth-card-meta { display: flex; align-items: center; justify-content: space-between; }
.mth-price { font-weight: 700; color: var(--mth-navy); font-size: 17px; }
.mth-price small { font-weight: 400; color: var(--mth-text-muted); font-size: 12px; }
.mth-meta-chip { background: var(--mth-bg-alt); color: var(--mth-text-muted); padding: 4px 10px; border-radius: 999px; font-size: 12px; }

/* ---- Feature grid ---- */
.mth-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.mth-feature { text-align: center; padding: 24px; }
.mth-feature-icon { font-size: 34px; display: block; margin-bottom: 14px; }
.mth-feature h3 { font-size: 17px; }
.mth-feature p { color: var(--mth-text-muted); font-size: 14px; }

/* ---- CTA band ---- */
.mth-cta-band { background: linear-gradient(120deg, var(--mth-navy), var(--mth-steel) 60%, var(--mth-steel-light)); color: #fff; padding: 56px 0; }
.mth-cta-band h2 { color: #fff; margin-bottom: 6px; }
.mth-cta-band p { color: var(--mth-grey-light); margin: 0; }
.mth-cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mth-cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Tabs ---- */
.mth-tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--mth-border); margin-bottom: 32px; }
.mth-tab { background: none; border: none; padding: 12px 22px; font-weight: 600; color: var(--mth-text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: 15px; }
.mth-tab.is-active { color: var(--mth-navy); border-color: var(--mth-steel); }
.mth-tab-panel, .mth-booking-panel, .mth-auth-panel { display: none; }
.mth-tab-panel.is-active, .mth-booking-panel.is-active, .mth-auth-panel.is-active { display: block; }

/* ---- Forms ---- */
.mth-form-row { margin-bottom: 18px; }
.mth-form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--mth-navy); }
.mth-form-row label .req { color: var(--mth-error); }
.mth-form-row input, .mth-form-row select, .mth-form-row textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--mth-border);
	border-radius: var(--mth-radius-sm);
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: var(--mth-text);
	transition: border-color 0.15s ease;
}
.mth-form-row input:focus, .mth-form-row select:focus, .mth-form-row textarea:focus { outline: none; border-color: var(--mth-steel-light); box-shadow: 0 0 0 3px rgba(109,138,168,0.2); }
.mth-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mth-form-divider { border: none; border-top: 1px solid var(--mth-border); margin: 28px 0; }
.mth-form-note { font-size: 13px; color: var(--mth-text-muted); margin-top: 12px; }
.mth-form-feedback { padding: 14px 18px; border-radius: var(--mth-radius-sm); margin-bottom: 20px; font-size: 14px; }
.mth-feedback-success, .mth-form-feedback.success { background: var(--mth-success-bg); color: var(--mth-success); }
.mth-feedback-error, .mth-form-feedback.error { background: var(--mth-error-bg); color: var(--mth-error); }

@media (max-width: 640px) {
	.mth-form-grid-2 { grid-template-columns: 1fr; }
}

/* ---- Booking page layout ---- */
.mth-booking-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.mth-booking-form-wrap, .mth-aside-card { background: #fff; border-radius: var(--mth-radius); box-shadow: var(--mth-shadow); padding: 32px; }
.mth-booking-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.mth-aside-card h3 { font-size: 16px; }
.mth-aside-steps ol { list-style: decimal; padding-left: 20px; }
.mth-aside-steps li { margin-bottom: 8px; color: var(--mth-text-muted); font-size: 14px; }
@media (max-width: 900px) {
	.mth-booking-layout { grid-template-columns: 1fr; }
	.mth-booking-aside { position: static; }
}

.mth-submit-btn { position: relative; }
.mth-submit-btn.is-loading .mth-btn-label { opacity: 0.5; }

/* ---- About page ---- */
.mth-about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.mth-about-media-frame { aspect-ratio: 4/3; border-radius: var(--mth-radius); background: linear-gradient(135deg, var(--mth-steel-light), var(--mth-grey-mid)); }
@media (max-width: 860px) { .mth-about-grid { grid-template-columns: 1fr; } }

/* ---- Gallery ---- */
.mth-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mth-gallery-item { display: block; border-radius: var(--mth-radius-sm); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--mth-shadow); }
.mth-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.mth-gallery-item:hover img { transform: scale(1.06); }
.mth-lightbox { position: fixed; inset: 0; background: rgba(26,38,51,0.92); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 24px; }
.mth-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.mth-lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; }

/* ---- Contact page ---- */
.mth-contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.mth-contact-list li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.mth-contact-icon { font-size: 18px; }
.mth-contact-map-frame { margin-top: 24px; aspect-ratio: 16/9; border-radius: var(--mth-radius); background: linear-gradient(135deg, var(--mth-grey-mid), var(--mth-steel)); }
.mth-contact-form-wrap { background: #fff; border-radius: var(--mth-radius); box-shadow: var(--mth-shadow); padding: 32px; }
@media (max-width: 900px) { .mth-contact-grid { grid-template-columns: 1fr; } }

/* ---- Agent auth page ---- */
.mth-auth-layout { display: flex; justify-content: center; }
.mth-auth-card { background: #fff; border-radius: var(--mth-radius); box-shadow: var(--mth-shadow); padding: 36px; max-width: 460px; width: 100%; }

/* ---- Single tour / vehicle ---- */
.mth-single-hero { position: relative; background: var(--mth-navy); color: #fff; padding: 60px 0 40px; }
.mth-single-hero-media { position: absolute; inset: 0; }
.mth-single-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.mth-single-hero .mth-container { position: relative; z-index: 1; }
.mth-single-hero h1 { color: #fff; }
.mth-single-hero-meta { color: var(--mth-grey-light); }
.mth-single-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.mth-highlight-list li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--mth-border); position: relative; }
.mth-highlight-list li::before { content: "✓"; position: absolute; left: 0; color: var(--mth-steel); font-weight: 700; }
.mth-booking-summary-card { background: #fff; border-radius: var(--mth-radius); box-shadow: var(--mth-shadow); padding: 28px; position: sticky; top: 24px; }
.mth-summary-price { font-family: var(--mth-font-display); font-size: 28px; font-weight: 700; color: var(--mth-navy); margin-bottom: 16px; }
.mth-summary-price span { font-size: 13px; color: var(--mth-text-muted); font-weight: 400; }
.mth-summary-list li { padding: 8px 0; border-bottom: 1px solid var(--mth-border); font-size: 14px; }
.mth-summary-list li:last-child { border-bottom: none; }
.mth-booking-summary-card .mth-btn { margin-top: 16px; }
@media (max-width: 900px) { .mth-single-layout { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.mth-footer { background: var(--mth-grey-dark); color: var(--mth-grey-light); margin-top: 40px; }
.mth-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 24px 40px; }
.mth-footer-logo { margin-bottom: 14px; }
.mth-footer h4, .footer-widget-title { color: #fff; font-size: 15px; margin-bottom: 16px; }
.mth-footer-menu li, .mth-footer-links ul li { margin-bottom: 10px; }
.mth-footer-menu a, .mth-footer-links a { color: var(--mth-grey-light); font-size: 14px; }
.mth-footer-menu a:hover, .mth-footer-links a:hover { color: #fff; }
.mth-footer-contact ul li { margin-bottom: 10px; font-size: 14px; }
.mth-social-links { display: flex; gap: 14px; margin-top: 16px; }
.mth-social-links a { color: var(--mth-accent); font-size: 13px; font-weight: 600; }
.mth-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; }
.mth-footer-bottom .mth-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.mth-footer-bottom p { margin: 0; }
.mth-footer-agent a { color: var(--mth-accent); font-weight: 600; }
@media (max-width: 900px) { .mth-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mth-footer-grid { grid-template-columns: 1fr; } }

/* ---- Generic content (index fallback) ---- */
.mth-generic-content { padding: 60px 0; }
.mth-entry-content h2 { margin-top: 1.4em; }
