/* =========================================================================
   MoroccoSandsTours Ultimate — Design System
   Palette: Marrakech Red / Sahara Gold / Majorelle Blue / Sand / Ink
   Display: Playfair Display · Body: Poppins
   Signature: 8-point zellige-star divider motif used at section seams
   ========================================================================= */

:root {
	--mst-primary: #C1272D;      /* Marrakech red clay — overridden by Customizer */
	--mst-secondary: #D4A017;    /* Sahara gold */
	--mst-majorelle: #2A4E8C;    /* Majorelle blue accent */
	--mst-sand: #FAF6EE;
	--mst-ink: #221F1B;
	--mst-ink-soft: #55504A;
	--mst-header-bg: #FFFFFF;
	--mst-body-bg: #FFFFFF;
	--mst-footer-bg: #1A1A1A;
	--mst-footer-text: #EDEDED;
	--mst-border: #E8E1D3;
	--mst-radius: 6px;
	--mst-shadow: 0 10px 30px rgba(34, 31, 27, .08);
	--font-display: 'Playfair Display', Georgia, serif;
	--font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--mst-ink);
	background-color: var(--mst-body-bg);
	line-height: 1.65;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s ease; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--mst-ink); }
p { margin: 0 0 1em; }
button { font-family: var(--font-body); cursor: pointer; }
:focus-visible { outline: 3px solid var(--mst-majorelle); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.mst-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---- Signature zellige-star divider -------------------------------- */
.mst-section-heading { text-align: center; margin-bottom: 48px; position: relative; }
.mst-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
	color: var(--mst-secondary); font-weight: 600; margin-bottom: 10px;
}
.mst-eyebrow::before, .mst-eyebrow::after {
	content: ''; width: 22px; height: 12px;
	background: conic-gradient(from 45deg, var(--mst-secondary) 0 90deg, transparent 0 100%);
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
	opacity: .8;
}
.mst-section-title { font-size: clamp(28px, 3.4vw, 42px); margin: 0; }
.mst-section-title span { color: var(--mst-primary); }
.mst-section-cta { text-align: center; margin-top: 40px; }
.mst-section { padding: 88px 0; }

/* ---- Buttons ---------------------------------------------------------- */
.mst-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 30px; border-radius: var(--mst-radius); font-weight: 600;
	font-size: 15px; border: 2px solid transparent; cursor: pointer;
	transition: all .25s ease; white-space: nowrap;
}
.mst-btn-primary { background: var(--mst-primary); border-color: var(--mst-primary); color: #fff; }
.mst-btn-primary:hover { background: var(--mst-secondary); border-color: var(--mst-secondary); color: #fff; }
.mst-btn-outline { background: transparent; border-color: var(--mst-primary); color: var(--mst-primary); }
.mst-btn-outline:hover { background: var(--mst-primary); color: #fff; }
.mst-btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.mst-btn-whatsapp:hover { filter: brightness(.92); }
.mst-btn-block { display: flex; width: 100%; }

/* ---- Top bar ------------------------------------------------------ */
.mst-topbar { background: var(--mst-ink); color: #ddd; font-size: 13px; }
.mst-topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 8px; }
.mst-topbar-contact { display: flex; gap: 18px; }
.mst-topbar-contact a { color: #ddd; }
.mst-topbar-contact a:hover { color: var(--mst-secondary); }

/* ---- Header --------------------------------------------------------- */
.mst-header { background-color: var(--mst-header-bg); border-bottom: 1px solid var(--mst-border); z-index: 999; }
.mst-sticky-header-enabled .mst-header.mst-sticky { position: sticky; top: 0; }
.mst-header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.mst-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 24px; }
.mst-logo-text { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--mst-primary); }
.mst-logo img { max-height: 60px; width: auto; }
.mst-nav-menu, .mst-nav-menu-mobile { display: flex; gap: 30px; }
.mst-nav-menu > li > a { font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.mst-nav-menu > li > a:hover { color: var(--mst-secondary); }
.mst-header-actions { display: flex; align-items: center; gap: 16px; }
.mst-mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.mst-mobile-toggle span { width: 24px; height: 2px; background: var(--mst-ink); }
.mst-mobile-menu { display: none; flex-direction: column; gap: 18px; padding: 20px 24px 28px; border-top: 1px solid var(--mst-border); }
.mst-mobile-menu.is-open { display: flex; }
.mst-mobile-menu .mst-nav-menu-mobile { flex-direction: column; gap: 14px; }

@media (max-width: 900px) {
	.mst-nav-menu { display: none; }
	.mst-mobile-toggle { display: flex; }
	.mst-header-actions .mst-btn-primary { display: none; }
}

/* ---- Page header (non-front pages) --------------------------------- */
.mst-page-header { background: var(--mst-sand); padding: 40px 0; border-bottom: 1px solid var(--mst-border); }
.mst-page-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.mst-breadcrumbs { font-size: 14px; color: var(--mst-ink-soft); }
.mst-breadcrumbs a { color: var(--mst-ink-soft); }
.mst-breadcrumbs a:hover { color: var(--mst-primary); }

/* ---- Hero ------------------------------------------------------------ */
.mst-hero {
	position: relative; min-height: 640px; display: flex; align-items: center;
	background: linear-gradient(160deg, var(--mst-ink) 0%, #3a2b28 100%);
	background-size: cover; background-position: center; overflow: hidden;
}
.mst-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mst-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,10,.55) 0%, rgba(20,15,10,.75) 100%); }
.mst-hero-inner { position: relative; z-index: 2; text-align: center; color: #fff; padding: 60px 24px; }
.mst-hero-title { font-size: clamp(34px, 6vw, 62px); color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.35); margin-bottom: 16px; }
.mst-hero-subtitle { font-size: clamp(16px, 2vw, 20px); max-width: 640px; margin: 0 auto 40px; opacity: .92; }

.mst-hero-search {
	display: flex; flex-wrap: wrap; gap: 0; background: #fff; border-radius: var(--mst-radius);
	max-width: 780px; margin: 0 auto; box-shadow: var(--mst-shadow); overflow: hidden;
}
.mst-search-field { flex: 1; min-width: 200px; padding: 14px 20px; text-align: left; border-right: 1px solid var(--mst-border); }
.mst-search-field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mst-ink-soft); margin-bottom: 4px; }
.mst-search-field input, .mst-search-field select { width: 100%; border: none; font-family: var(--font-body); font-size: 15px; color: var(--mst-ink); background: transparent; }
.mst-search-field input:focus, .mst-search-field select:focus { outline: none; }
.mst-search-btn { border: none; background: var(--mst-primary); color: #fff; padding: 0 34px; font-weight: 600; font-size: 15px; }
.mst-search-btn:hover { background: var(--mst-secondary); }
@media (max-width: 700px) {
	.mst-hero-search { flex-direction: column; }
	.mst-search-field { border-right: none; border-bottom: 1px solid var(--mst-border); }
}

/* ---- Categories grid -------------------------------------------------- */
.mst-categories-section { background: var(--mst-sand); }
.mst-categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.mst-category-card { position: relative; border-radius: var(--mst-radius); overflow: hidden; aspect-ratio: 4/3; display: block; }
.mst-category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mst-category-card:hover img { transform: scale(1.08); }
.mst-category-overlay {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
	padding: 20px; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%); color: #fff;
}
.mst-category-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.mst-category-count { font-size: 13px; opacity: .85; }

/* ---- Tour cards & grids ------------------------------------------------ */
.mst-tours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.mst-tour-card {
	background: #fff; border: 1px solid var(--mst-border); border-radius: var(--mst-radius);
	overflow: hidden; transition: box-shadow .25s ease, transform .25s ease;
}
.mst-tour-card:hover { box-shadow: var(--mst-shadow); transform: translateY(-4px); }
.mst-tour-card-img { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.mst-tour-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mst-tour-card:hover .mst-tour-card-img img { transform: scale(1.06); }
.mst-tour-cat {
	position: absolute; top: 14px; left: 14px; background: var(--mst-primary); color: #fff;
	font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 4px;
}
.mst-tour-card-body { padding: 22px; }
.mst-tour-duration { font-size: 13px; color: var(--mst-ink-soft); }
.mst-tour-card-title { font-size: 19px; margin: 8px 0; }
.mst-tour-card-title a:hover { color: var(--mst-primary); }
.mst-tour-card-excerpt { font-size: 14px; color: var(--mst-ink-soft); }
.mst-tour-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mst-border); }

.mst-price-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.mst-price { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--mst-primary); }
.mst-price-old { font-size: 13px; text-decoration: line-through; color: var(--mst-ink-soft); }
.mst-price-suffix { font-size: 11px; color: var(--mst-ink-soft); text-transform: uppercase; }

/* ---- Why choose us ------------------------------------------------ */
.mst-why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px; }
.mst-why-us-item { text-align: center; padding: 20px; }
.mst-why-us-icon { width: 68px; height: 68px; margin: 0 auto 18px; padding: 16px; border-radius: 50%; background: var(--mst-sand); color: var(--mst-primary); }
.mst-why-us-icon svg { width: 100%; height: 100%; }
.mst-why-us-item h3 { font-size: 18px; }
.mst-why-us-item p { font-size: 14px; color: var(--mst-ink-soft); }

/* ---- Home story / about content ------------------------------------ */
.mst-home-story-section { background: var(--mst-sand); }
.mst-home-story-inner { text-align: center; max-width: 820px; }
.mst-home-story-content h2 { font-size: clamp(26px,3vw,36px); }

/* ---- CTA band --------------------------------------------------------- */
.mst-cta-band { background: linear-gradient(135deg, var(--mst-primary), #7d1418); padding: 70px 0; text-align: center; color: #fff; }
.mst-cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.mst-cta-band p { opacity: .9; max-width: 560px; margin: 0 auto 26px; }
.mst-cta-band-inner .mst-btn-primary { background: #fff; color: var(--mst-primary); border-color: #fff; }
.mst-cta-band-inner .mst-btn-primary:hover { background: var(--mst-secondary); color: #fff; border-color: var(--mst-secondary); }

/* ---- Footer ----------------------------------------------------------- */
.mst-footer { background-color: var(--mst-footer-bg); color: var(--mst-footer-text); padding-top: 70px; }
.mst-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mst-footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.mst-footer-brand h3 { color: #fff; }
.mst-footer-menu li { margin-bottom: 10px; }
.mst-footer-menu a:hover { color: var(--mst-secondary); }
.mst-footer-social { margin-top: 18px; }
.mst-footer-bottom { padding: 22px 0; }
.mst-footer-bottom-inner { text-align: center; font-size: 13px; opacity: .75; }
@media (max-width: 900px) { .mst-footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mst-footer-top { grid-template-columns: 1fr; } }

/* ---- Social icons ------------------------------------------------------ */
.mst-social-icons { display: flex; gap: 12px; }
.mst-social-icons a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,0,0,.06); }
.mst-topbar-social a, .mst-footer-social a { background: rgba(255,255,255,.08); color: #fff; }
.mst-social-icons a svg { width: 16px; height: 16px; }
.mst-social-icons a:hover { background: var(--mst-primary); color: #fff; }

/* ---- Archive / taxonomy layouts --------------------------------------- */
.mst-archive-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.mst-archive-sidebar { position: sticky; top: 100px; }
.mst-widget { background: var(--mst-sand); border-radius: var(--mst-radius); padding: 24px; margin-bottom: 24px; }
.mst-widget-title { font-size: 16px; margin-bottom: 16px; }
.mst-filter-list li { padding: 8px 0; border-bottom: 1px solid var(--mst-border); }
.mst-filter-list li:last-child { border-bottom: none; }
.mst-filter-list li a { display: flex; justify-content: space-between; font-size: 14px; }
.mst-filter-list li.active a, .mst-filter-list li a:hover { color: var(--mst-primary); font-weight: 600; }
.mst-archive-toolbar { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; }
.mst-results-count { font-size: 14px; color: var(--mst-ink-soft); margin: 0; }
.mst-term-description { margin-bottom: 30px; color: var(--mst-ink-soft); }
@media (max-width: 900px) { .mst-archive-layout { grid-template-columns: 1fr; } .mst-archive-sidebar { position: static; } }

.navigation.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid var(--mst-border); border-radius: 4px; font-size: 14px; }
.page-numbers.current, .page-numbers:hover { background: var(--mst-primary); color: #fff; border-color: var(--mst-primary); }

/* ---- Single tour ---------------------------------------------------- */
.mst-tour-hero { position: relative; height: 460px; overflow: hidden; }
.mst-tour-hero-img { width: 100%; height: 100%; object-fit: cover; }
.mst-tour-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)); }

.mst-tour-banner { background: var(--mst-sand); border-bottom: 1px solid var(--mst-border); position: relative; z-index: 3; margin-top: -50px; }
.mst-tour-banner-inner {
	background: #fff; border-radius: var(--mst-radius); box-shadow: var(--mst-shadow);
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
	padding: 28px 32px; margin: 0 auto; transform: translateY(0);
}
.mst-tour-banner-facts { display: flex; flex-wrap: wrap; gap: 30px; }
.mst-fact { display: flex; flex-direction: column; }
.mst-fact-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mst-ink-soft); }
.mst-fact-value { font-weight: 600; font-size: 15px; }
.mst-tour-banner-price { display: flex; align-items: center; gap: 20px; }

.mst-tour-content-section { padding-top: 60px; }
.mst-tour-layout { display: grid; grid-template-columns: 1fr 360px; gap: 50px; align-items: start; }
.mst-tour-main > article { margin-bottom: 50px; }
.mst-tour-overview-content { color: var(--mst-ink-soft); }

.mst-timeline { position: relative; padding-left: 10px; }
.mst-timeline::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 24px; width: 2px; background: var(--mst-border); }
.mst-timeline-item { position: relative; display: flex; gap: 20px; margin-bottom: 28px; }
.mst-timeline-marker {
	flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--mst-primary); color: #fff;
	display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; z-index: 1;
}
.mst-timeline-content { flex: 1; background: var(--mst-sand); border-radius: var(--mst-radius); padding: 18px 22px; }
.mst-accordion-header { margin: 0; font-size: 17px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.mst-accordion-header::after { content: '+'; font-family: var(--font-body); font-size: 20px; color: var(--mst-primary); }
.mst-accordion-header.active::after { content: '−'; }
.mst-accordion-body { max-height: 500px; overflow: hidden; transition: max-height .3s ease; margin-top: 8px; color: var(--mst-ink-soft); font-size: 14px; }
.mst-accordion-body.collapsed { max-height: 0; margin-top: 0; }

.mst-includes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mst-includes-col ul li { padding: 6px 0; font-size: 14px; }
.mst-includes-yes li { color: #1e7e34; }
.mst-includes-no li { color: #b02a2a; }
@media (max-width: 600px) { .mst-includes-grid { grid-template-columns: 1fr; } }

.mst-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.mst-gallery-item { border-radius: var(--mst-radius); overflow: hidden; aspect-ratio: 1/1; }
.mst-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mst-gallery-item:hover img { transform: scale(1.1); }

.mst-tour-sidebar { position: sticky; top: 100px; }
.mst-booking-box { background: var(--mst-sand); border-radius: var(--mst-radius); padding: 28px; box-shadow: var(--mst-shadow); }
.mst-booking-form, .mst-contact-form { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.mst-booking-form label, .mst-contact-form label { font-size: 13px; font-weight: 600; margin-top: 10px; }
.mst-booking-form input, .mst-booking-form textarea, .mst-booking-form select,
.mst-contact-form input, .mst-contact-form textarea {
	padding: 11px 14px; border: 1px solid var(--mst-border); border-radius: 4px; font-family: var(--font-body); font-size: 14px;
	background: #fff;
}
.mst-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mst-booking-form button, .mst-contact-form button { margin-top: 18px; }
.mst-booking-whatsapp { margin-top: 14px; }
.mst-form-notice { padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 10px; }
.mst-form-success { background: #e5f6ea; color: #1e7e34; border: 1px solid #b7e4c5; }
.mst-form-error { background: #fdeaea; color: #b02a2a; border: 1px solid #f3bcbc; }
@media (max-width: 960px) { .mst-tour-layout { grid-template-columns: 1fr; } .mst-tour-sidebar { position: static; } }

/* ---- About page ----------------------------------------------------- */
.mst-about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mst-about-title { font-size: clamp(28px, 4vw, 42px); }
.mst-about-image img { border-radius: var(--mst-radius); box-shadow: var(--mst-shadow); }
.mst-about-stats { background: var(--mst-ink); color: #fff; padding: 60px 0; }
.mst-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.mst-stat-number { display: block; font-family: var(--font-display); font-size: 40px; color: var(--mst-secondary); font-weight: 700; }
.mst-stat-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
@media (max-width: 900px) { .mst-about-layout { grid-template-columns: 1fr; } .mst-stats-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Contact page ----------------------------------------------------- */
.mst-contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.mst-contact-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 16px; margin: 30px 0; }
.mst-contact-card { background: var(--mst-sand); border-radius: var(--mst-radius); padding: 18px; }
.mst-contact-card h4 { font-size: 14px; margin-bottom: 6px; }
.mst-contact-card p { font-size: 14px; color: var(--mst-ink-soft); margin: 0; }
.mst-contact-social-title { font-size: 15px; margin-top: 20px; }
.mst-map-placeholder { margin-top: 30px; height: 260px; background: var(--mst-sand); border: 2px dashed var(--mst-border); border-radius: var(--mst-radius); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--mst-ink-soft); font-size: 14px; }
.mst-contact-form-wrap { background: var(--mst-sand); padding: 34px; border-radius: var(--mst-radius); }
@media (max-width: 900px) { .mst-contact-layout { grid-template-columns: 1fr; } }

/* ---- Generic page / index ------------------------------------------- */
.mst-generic-page-inner { max-width: 860px; }
.mst-page-thumb { margin-bottom: 30px; border-radius: var(--mst-radius); overflow: hidden; }
.mst-entry-content h2, .mst-entry-content h3 { margin-top: 1.4em; }

/* ---- Comments ---------------------------------------------------------- */
.mst-comments-area { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--mst-border); }
.mst-comment-list li { margin-bottom: 20px; }

/* ---- Utility ------------------------------------------------------------ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
