/* marrakechcasablanca — built to the approved mockup:
   logo blue (#3333F5), terracotta CTA orange, warm sand/cream bands,
   near-black ink, Space Grotesk throughout. */
:root {
  --blue: #3333F5;
  --blue-deep: #2525C9;
  --orange: #E0693B;
  --orange-deep: #C9552A;
  --rust: #B5502C;
  --cream: #F8F7F2;
  --sand: #F1EEE6;
  --ink: #111111;
  --ink-2: #3F3F3F;
  --muted: #6B6B6B;
  --line: #E7E4DC;
  --white: #FFFFFF;
  --footer: #121212;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.wrap { width: min(1270px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--orange); color: #fff; text-decoration: none;
  font-weight: 700; letter-spacing: .01em;
  border-radius: 3px; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--orange-deep); }
.btn-sm { padding: 12px 24px; font-size: 16px; }
.btn-lg { padding: 15px 26px; font-size: 17px; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 32px; min-height: 84px;
}
.logo img { width: 338px; height: auto; }
.main-nav { display: flex; justify-content: flex-end; gap: 48px; margin-right: 84px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 400; }
.main-nav a:hover { color: var(--blue); }
.header-cta { padding: 13px 24px; }
.nav-toggle { display: none; }
.main-nav .nav-cta { display: none; }

/* ---------- Hero (compact video banner — widget stays above the fold) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 44px 0 40px; background: #3a2418 url("images/main-banner-poster.jpg") center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,12,8,.62) 0%, rgba(17,12,8,.48) 55%, rgba(17,12,8,.66) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.2; letter-spacing: -.02em; max-width: 1120px; margin: 0 auto 16px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-intro { max-width: 760px; margin: 0 auto; color: rgba(255,255,255,.92); font-size: 15.5px; line-height: 1.65; }
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li {
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 16px;
  font-size: 14.5px; color: #fff; background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chips b { color: #fff; font-weight: 700; }
.book-intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0 0 28px; }
.book-intro p { margin: 0; max-width: 900px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.book-intro .btn { flex-shrink: 0; text-transform: uppercase; font-size: 14px; }

/* ---------- Book band: widget + bento ---------- */
.book-band { background: var(--cream); padding: 0 0 38px; }
.widget-wrap { min-height: 96px; margin-bottom: 8px; }
.bento {
  display: grid; grid-template-columns: 306px 1fr 252px; gap: 30px; align-items: stretch;
}
.route-card { background: #fff; padding: 30px 44px 24px; }
.route-card-title { font-size: 21px; font-weight: 500; text-align: center; margin-bottom: 26px; }
.route-card ul { list-style: none; margin: 0; padding: 0; }
.route-card li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.4; }
.route-card li:first-child { border-top: 0; padding-top: 4px; }

.bento-mid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 18px; }
.tile { margin: 0; background: #fff; min-height: 144px; }
.tile-photo { overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-text { padding: 24px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.tile-text h3 { font-size: 21px; font-weight: 500; margin-bottom: 4px; }
.tile-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  background: #fff; color: var(--ink); text-decoration: none; font-size: 14px;
  padding: 8px 20px; border-radius: 999px; box-shadow: 0 1px 6px rgba(0,0,0,.12);
}
.pill svg { width: 18px; height: 13px; color: var(--blue); }
.pill:hover { box-shadow: 0 2px 12px rgba(51,51,245,.25); }

.tile-video { position: relative; overflow: hidden; border-radius: 4px; min-height: 300px; background: #b0663f; }
.tile-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loc-chip {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 12px; font-size: 13px;
}
.loc-chip svg { width: 10px; height: 13px; }
.glass {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 10px; text-align: center; display: grid; gap: 2px;
}
.glass strong { font-size: 14px; font-weight: 500; }
.glass span { font-size: 11.5px; color: var(--ink-2); }
.glass a { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 86px 0 0; }
.section:last-of-type { padding-bottom: 96px; }
#faq { padding-bottom: 96px; }
.sec-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: start; margin-bottom: 48px;
}
.sec-head h2 { font-size: clamp(1.9rem, 3.3vw, 2.95rem); line-height: 1.28; max-width: 600px; }
.sec-intro { color: var(--ink-2); font-size: 15.5px; line-height: 1.78; padding-top: 6px; }
.sec-intro p:last-child { margin-bottom: 0; }
.after-note { color: var(--ink-2); font-size: 15px; line-height: 1.75; margin: 26px 0 0; max-width: 900px; }

/* Route */
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.route-map { margin: 0; }
.route-map img { width: 100%; }
.eyebrow { color: var(--rust); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.stop-list { list-style: none; margin: 0; padding: 0; position: relative; }
.stop-list::before {
  content: ""; position: absolute; left: 12px; top: 14px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--blue) var(--fill, 100%), #cfd0f5 var(--fill, 100%));
}
.stop-list li {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 0 0 18px 38px;
}
.stop-list li::before {
  content: ""; position: absolute; left: 3px; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 2px var(--blue), inset 0 0 0 5px #fff, inset 0 0 0 12px var(--blue);
}
.stop-list li.major::before { width: 24px; height: 24px; left: 1px; top: 3px; box-shadow: inset 0 0 0 2px var(--blue), inset 0 0 0 4px #fff, inset 0 0 0 14px var(--blue); }
.stop-list li.optional::before { box-shadow: inset 0 0 0 1.5px var(--blue); }
.stop-list h3 { font-size: 19px; font-weight: 500; margin-bottom: 2px; }
.stop-list p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.stop-list .t { font-size: 13.5px; color: var(--ink-2); padding-top: 3px; white-space: nowrap; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.two-col h3 { font-size: 22px; margin-bottom: 14px; }
.two-col p { color: var(--ink-2); font-size: 15.5px; line-height: 1.78; }
.note { border-left: 3px solid var(--orange); padding-left: 16px; }

/* Timetable */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 22px; }
.stat { background: var(--cream); padding: 28px 26px 30px; }
.stat span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.stat b { display: block; color: var(--blue); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.day-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.day-card { border: 1px solid var(--line); padding: 26px 26px 24px; }
.day-card h3 { font-size: 21px; margin-bottom: 14px; }
.day-card dl { margin: 0 0 16px; }
.day-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.day-card dl div:first-child { border-top: 0; }
.day-card dt { color: var(--ink-2); }
.day-card dd { margin: 0; text-align: right; }
.text-link { color: var(--orange); font-weight: 600; text-decoration: none; font-size: 15px; }
.text-link:hover { text-decoration: underline; }

/* Classes */
.class-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.class-card { background: #fff; border: 1px solid var(--line); }
.class-card img { width: 100%; aspect-ratio: 620 / 240; object-fit: cover; }
.class-body { padding: 26px 32px 28px; }
.class-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.class-top h3 { font-size: 26px; }
.tag { color: var(--rust); font-weight: 600; font-size: 15px; }
.class-body p { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 4px 0 4px 24px; font-size: 15.5px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

.table-wrap { overflow-x: auto; margin-top: 34px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
thead th {
  background: var(--cream); text-align: left; font-size: 13.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 18px;
}
tbody th, tbody td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody th { font-weight: 600; }
#compare .table-wrap { margin-top: 0; }

/* Tickets */
.fares { display: grid; grid-template-columns: 416px 1fr; gap: 30px; }
.fare-hero { background: var(--blue); color: #fff; padding: 46px 40px; }
.eyebrow-light { text-transform: uppercase; letter-spacing: .1em; font-size: 14px; margin-bottom: 8px; opacity: .9; }
.price { font-size: 76px; font-weight: 700; line-height: 1.1; margin-bottom: 16px; letter-spacing: -.02em; }
.fare-hero p:not(.price):not(.eyebrow-light) { font-size: 16px; line-height: 1.7; margin-bottom: 26px; }
.fare-hero .btn { text-transform: uppercase; }
.fare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fare-card { border: 1px solid var(--line); padding: 26px 26px 22px; }
.badge {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px;
  border-radius: 50%; background: var(--cream); color: var(--rust); font-weight: 700; font-size: 16px; margin-bottom: 12px;
}
.fare-card h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.fare-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* Photo cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.photo-card img { width: 100%; aspect-ratio: 402 / 230; object-fit: cover; margin-bottom: 20px; }
.cards-4 .photo-card img { aspect-ratio: 300 / 218; }
.photo-card h3 { font-size: 21px; font-weight: 500; margin-bottom: 8px; }
.photo-card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; margin: 0; }

/* Tips */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tip { background: var(--cream); padding: 30px 28px 28px; }
.num { display: block; color: var(--orange); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.tip h3 { font-size: 19px; font-weight: 500; margin-bottom: 10px; }
.tip p { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 500; font-size: 20px; line-height: 1; }
.faq details[open] summary { padding-bottom: 10px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 22px; padding-right: 20px; }

/* Final CTA */
.cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 90px 0 100px; background: #7a4630; }
.cta-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(224,160,110,.72) 0%, rgba(176,98,62,.72) 50%, rgba(96,58,40,.82) 100%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.2; margin-bottom: 18px; }
.cta-band p { font-size: 17px; font-weight: 500; margin-bottom: 30px; }

/* Footer */
.site-footer { background: var(--footer); color: #CFCFCF; padding: 64px 0 36px; }
.site-footer .logo img { width: 272px; }
.disclosure { margin-top: 30px; padding-bottom: 26px; border-bottom: 1px solid #2E2E2E; }
.disclosure p { font-size: 15px; line-height: 1.75; }
.disclosure a { color: #fff; text-decoration: underline; font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 15px; color: #9A9A9A; }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: #9A9A9A; text-decoration: none; }
.foot-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 30px; margin-right: 24px; }
  .logo img { width: 280px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-mid { grid-column: 1 / -1; grid-row: 1; }
  .fares { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 12px; min-height: 68px; }
  .logo img { width: 200px; }
  .header-cta { padding: 9px 14px; font-size: 14px; }
  .nav-toggle {
    display: inline-grid; gap: 5px; place-content: center; width: 42px; height: 42px;
    background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 6px 16px 12px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .main-nav a:last-of-type { border-bottom: 0; }
  /* explicit color so the button never inherits the panel's dark link color */
  .main-nav a.nav-cta {
    display: flex; justify-content: center; margin: 12px 0 6px; padding: 14px 20px;
    color: #fff; font-size: 16px; font-weight: 700; border-bottom: 0;
  }
  .main-nav a.nav-cta:hover { color: #fff; }

  .br-lg { display: none; }
  .hero { padding: 28px 0 26px; }
  .hero h1 { margin-bottom: 10px; }
  .hero-intro { font-size: 14px; line-height: 1.55; }
  .chips { margin-top: 14px; gap: 6px; }
  .chips li { font-size: 12.5px; padding: 4px 11px; }
  .book-intro { flex-direction: column; align-items: flex-start; gap: 14px; }

  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 30px; }
  .section { padding-top: 64px; }
  .route-grid, .two-col, .class-cards, .faq { grid-template-columns: 1fr; }
  .route-grid { gap: 32px; }
  .two-col { gap: 8px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .day-cards, .cards-3, .tips { grid-template-columns: 1fr; }
  .fare-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fare-hero { padding: 34px 26px; }
  .price { font-size: 60px; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-mid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-mid .tile-photo img { aspect-ratio: 16 / 9; }
  .tile-video { min-height: 420px; }
  .route-card { padding: 24px 26px 14px; }
  .fare-cards, .cards-4 { grid-template-columns: 1fr; }
  .hero { padding: 20px 0 18px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-intro { font-size: 13.5px; }
  .chips { display: none; }
  .foot-bottom { flex-direction: column; }
  .logo img { width: 165px; }
  .header-cta { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 380px) {
  .logo img { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
#firebird-search-widget .ant-picker-panel-container,#firebird-search-widget .ant-picker-range-wrapper{min-width:400px !important}#firebird-search-widget .ant-picker-date-panel .ant-picker-content{min-width:unset !important;width:100% !important}
