/*
 * My Morocco Tours — desert/luxury theme, hand-written for this site (Bootstrap 5
 * supplies the grid/utilities; this file is the entire visual identity on top of it).
 */

:root {
  --mt-bg: #f7eedd;
  --mt-bg-alt: #efe0c4;
  --mt-surface: #fffdf8;
  --mt-ink: #2b1b12;
  --mt-muted: #7a6a56;
  --mt-primary: #a65a2e;
  --mt-primary-dark: #7c4020;
  --mt-gold: #c7972e;
  --mt-dark: #241512;
  --mt-dark-alt: #34211a;
  --mt-border: #e2d2b5;
  --mt-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--mt-bg);
  color: var(--mt-ink);
  font-family: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  line-height: 1.65;
  margin: 0;
}
[dir="rtl"] body { font-family: 'Nunito Sans', 'Tahoma', Arial, sans-serif; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--mt-ink);
  font-weight: 700;
  letter-spacing: -.01em;
}
a { color: var(--mt-primary-dark); text-decoration: none; }
a:hover { color: var(--mt-primary); }
.text-muted { color: var(--mt-muted) !important; }

/* ---------- Buttons ---------- */
.btn-mt-primary, .btn-mt-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; transition: all .2s;
}
.btn-mt-primary { background: var(--mt-primary); color: #fff; }
.btn-mt-primary:hover { background: var(--mt-primary-dark); color: #fff; }
.btn-mt-outline { border-color: var(--mt-dark); color: var(--mt-dark); background: transparent; }
.btn-mt-outline:hover { background: var(--mt-dark); color: #fff; }

/* ---------- Header / Nav ---------- */
.mt-header { background: var(--mt-dark); padding: 16px 0; position: sticky; top: 0; z-index: 50; }
.mt-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mt-logo img { height: 46px; }
.mt-nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.mt-nav a { color: #ede2cd; font-weight: 600; font-size: 15px; }
.mt-nav a:hover, .mt-nav a.is-active { color: var(--mt-gold); }
.mt-header-actions { display: flex; align-items: center; gap: 14px; }
.mt-lang-switch { display: flex; gap: 6px; }
.mt-lang-switch a {
  color: #ede2cd; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; border: 1px solid rgba(237,226,205,.3);
}
.mt-lang-switch a.is-active { background: var(--mt-gold); color: var(--mt-dark); border-color: var(--mt-gold); }
.mt-nav-toggle { display: none; background: none; border: none; color: #ede2cd; font-size: 26px; }
@media (max-width: 991px) {
  .mt-nav { display: none; width: 100%; flex-direction: column; gap: 14px; padding-top: 16px; }
  .mt-nav.is-open { display: flex; }
  .mt-nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.mt-hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff;
}
.mt-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(36,21,18,.88) 0%, rgba(36,21,18,.5) 55%, rgba(36,21,18,.25) 100%);
}
.mt-hero-inner { position: relative; z-index: 1; max-width: 620px; }
.mt-hero-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--mt-gold); margin-bottom: 16px; }
.mt-hero h1 { font-size: clamp(34px, 5vw, 58px); color: #fff; margin-bottom: 18px; }
.mt-hero p { font-size: 18px; color: #ede2cd; margin-bottom: 30px; }

/* ---------- Section basics ---------- */
.mt-section { padding: 80px 0; }
.mt-section-sm { padding: 50px 0; }
.mt-section-alt { background: var(--mt-bg-alt); }
.mt-section-dark { background: var(--mt-dark); color: #ede2cd; }
.mt-section-dark h2, .mt-section-dark h3, .mt-section-dark h5 { color: #fff; }
/* .text-muted defaults to a dark brown for light backgrounds — on dark sections that
   reads as almost invisible, so lighten it specifically inside dark contexts. */
.mt-section-dark .text-muted, .mt-footer .text-muted { color: #cbb99e !important; }
.mt-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 700; color: var(--mt-primary); margin-bottom: 10px; }
.mt-section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }

/* ---------- Trip cards ---------- */
.mt-trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.mt-trip-card { background: var(--mt-surface); border-radius: var(--mt-radius); overflow: hidden; border: 1px solid var(--mt-border); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.mt-trip-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(43,27,18,.14); }
.mt-trip-card-img { position: relative; height: 220px; }
.mt-trip-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mt-trip-badge { position: absolute; top: 14px; left: 14px; background: var(--mt-primary); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px; }
.mt-trip-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.mt-trip-body h3 { font-size: 19px; margin-bottom: 8px; }
.mt-trip-meta { display: flex; gap: 14px; font-size: 13px; color: var(--mt-muted); margin-bottom: 12px; }
.mt-trip-price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--mt-border); display: flex; justify-content: space-between; align-items: center; }
.mt-trip-price strong { color: var(--mt-primary-dark); font-size: 20px; }
.stars { color: var(--mt-gold); letter-spacing: 2px; }

/* ---------- Trip detail ---------- */
.mt-trip-hero { position: relative; border-radius: var(--mt-radius); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; margin-bottom: 40px; }
.mt-trip-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mt-trip-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36,21,18,.92) 10%, rgba(36,21,18,.15) 70%); z-index: 1; }
.mt-trip-hero-body { position: relative; z-index: 2; padding: 36px; }
.mt-trip-hero-body h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.mt-trip-stats { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px 26px; background: var(--mt-bg-alt); border-radius: 14px; margin-bottom: 36px; font-weight: 700; }
.mt-trip-stats span { display: inline-flex; align-items: center; gap: 8px; color: var(--mt-ink); }
.mt-trip-stats i { color: var(--mt-primary); }
.mt-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; border-radius: var(--mt-radius); overflow: hidden; margin-bottom: 40px; }
.mt-gallery a:first-child { grid-row: span 2; }
.mt-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-itinerary-day { display: flex; gap: 20px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--mt-border); }
.mt-itinerary-num { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--mt-dark); color: var(--mt-gold); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; }
.mt-booking-card { background: var(--mt-surface); border: 1px solid var(--mt-border); border-radius: var(--mt-radius); padding: 28px; }
.mt-booking-card .price { font-size: 30px; color: var(--mt-primary-dark); font-weight: 700; }
.mt-form-field { margin-bottom: 16px; }
.mt-form-field label { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--mt-muted); margin-bottom: 6px; }
.mt-form-field input, .mt-form-field textarea, .mt-form-field select {
  width: 100%; border: 1px solid var(--mt-border); border-radius: 10px; padding: 11px 15px; font-family: inherit; background: #fff;
}
.mt-form-field input:focus, .mt-form-field textarea:focus { outline: none; border-color: var(--mt-primary); }

/* ---------- Booking widget (compact card + modal) ---------- */
.mt-stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--mt-border); border-radius: 10px; padding: 6px 14px; }
.mt-stepper-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--mt-border); background: #fff; color: var(--mt-primary-dark); font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.mt-stepper-btn:hover { background: var(--mt-bg-alt); }
.mt-stepper-val { font-weight: 700; font-size: 16px; }
.mt-total-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 15px; }
.mt-total-row strong { color: var(--mt-primary-dark); font-size: 18px; }

.mt-coupon-box { display: flex; gap: 8px; }
.mt-coupon-box input { flex: 1; border: 1px solid var(--mt-border); border-radius: 10px; padding: 11px 15px; font-family: inherit; background: #fff; }
.mt-coupon-box input:focus { outline: none; border-color: var(--mt-primary); }
.mt-coupon-box button { padding: 0 20px; border-radius: 10px; border: 2px solid var(--mt-primary); background: transparent; color: var(--mt-primary-dark); font-weight: 700; white-space: nowrap; }
.mt-coupon-box button:hover { background: var(--mt-primary); color: #fff; }

.mt-group-promo { background: var(--mt-dark); color: #ede2cd; border-radius: var(--mt-radius); padding: 28px; }
.mt-group-promo h6 { color: var(--mt-gold); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.mt-group-promo .mt-group-promo-title { font-family: 'Playfair Display', Georgia, serif; color: #fff; font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.mt-group-promo ul { list-style: none; margin: 0 0 22px; padding: 0; }
.mt-group-promo li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; color: #cbb99e; }
.mt-group-promo li::before { content: "✓"; position: absolute; left: 0; color: var(--mt-gold); font-weight: 700; }
.mt-group-promo li strong { color: #fff; }
.mt-group-promo .btn-mt-primary { width: 100%; justify-content: center; }

.mt-modal-content { border-radius: var(--mt-radius); border: none; background: var(--mt-surface); }
.mt-modal-content .btn-close { position: absolute; top: 22px; right: 22px; z-index: 2; }
.mt-order-summary { background: var(--mt-bg-alt); border-radius: 14px; padding: 22px; }
.mt-order-summary h5 { margin-bottom: 4px; }
.ck-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--mt-border); font-size: 14px; }
.ck-row.total { font-weight: 700; font-size: 16px; border-bottom: none; }
.ck-bank-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--mt-border); font-size: 14px; }

/* ---------- FAQ accordion ---------- */
.mt-accordion-item { border: 1px solid var(--mt-border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--mt-surface); }
.mt-accordion-btn { width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 16px; color: var(--mt-ink); }
.mt-accordion-btn .bi { transition: transform .25s; color: var(--mt-primary); }
.mt-accordion-btn[aria-expanded="true"] .bi { transform: rotate(180deg); }
.mt-accordion-body { padding: 0 22px 20px; color: var(--mt-muted); display: none; }
.mt-accordion-item.is-open .mt-accordion-body { display: block; }

/* ---------- Footer ---------- */
.mt-footer { background: var(--mt-dark-alt); color: #cbb99e; padding: 60px 0 24px; }
.mt-footer h5 { color: var(--mt-gold); font-size: 16px; margin-bottom: 18px; }
.mt-footer a { color: #cbb99e; }
.mt-footer a:hover { color: var(--mt-gold); }
.mt-footer-bottom { border-top: 1px solid rgba(203,185,158,.2); margin-top: 40px; padding-top: 20px; font-size: 13px; text-align: center; color: #a89073; }
.mt-social { display: flex; gap: 12px; margin-top: 16px; }
.mt-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(203,185,158,.3); display: flex; align-items: center; justify-content: center; }
.mt-social a:hover { background: var(--mt-gold); border-color: var(--mt-gold); color: var(--mt-dark) !important; }

@media (max-width: 767px) {
  .mt-hero { min-height: 460px; }
  .mt-gallery { grid-template-columns: 1fr 1fr; }
  .mt-booking-card { position: static; }
}
