/* ============================================================
   GoMorocco — Custom CSS
   Complète le template Feliciano
   ============================================================ */

/* ── NAVBAR LOGO ─────────────────────────────────────────── */
.gm-navbar-logo {
  height: 46px;
  width: auto;
  display: block;
}
.navbar-brand { padding: 0; }

/* ── HERO : limiter hauteur sur mobile ───────────────────── */
@media (max-width: 767px) {
  .owl-carousel.home-slider,
  .owl-carousel.home-slider .slider-item,
  .owl-carousel.home-slider .slider-text {
    height: 60vh !important;
    min-height: 380px !important;
    max-height: 520px !important;
  }
  /* Flèche scroll-down animée */
  .hero-scroll-hint {
    display: block !important;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.75);
    font-size: 26px;
    animation: gm-bounce 2s infinite;
    z-index: 10;
    text-decoration: none;
    pointer-events: none;
  }
  @keyframes gm-bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
  }
}

/* ── HERO OVERLAY plus sombre pour lisibilité ────────────── */
.owl-carousel.home-slider .overlay {
  background: rgba(0,0,0,0.55);
}

/* ── SECTION SPACING MOBILE ──────────────────────────────── */
@media (max-width: 767px) {
  body { overflow-x: hidden; }
  .ftco-section { padding-top: 50px; padding-bottom: 50px; overflow: hidden; }
  img { max-width: 100%; height: auto; }
}

/* ── TEXTES QUI SE CHEVAUCHENT ───────────────────────────── */
@media (max-width: 767px) {
  .subheading {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: block !important;
    margin-bottom: 6px !important;
  }
}

/* ── BACK TO TOP ─────────────────────────────────────────── */
.gm-back-top {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 998;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(201,150,58,.85);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s, background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.gm-back-top.visible { opacity: 1; }
.gm-back-top:hover { background: #C9963A; }
@media (max-width: 576px) {
  .gm-back-top { bottom: 80px; right: 16px; width: 36px; height: 36px; font-size: 16px; }
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.gm-breadcrumb {
  background: rgba(0,0,0,.04);
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
}
.gm-breadcrumb a { color: #C9963A; text-decoration: none; }
.gm-breadcrumb a:hover { text-decoration: underline; }
.gm-breadcrumb__sep { color: #999; margin: 0 7px; }
.gm-breadcrumb__current { color: #666; }

/* ── NOUVEAU FOOTER ──────────────────────────────────────── */
.gm-footer {
  background: #060402;
  padding: 56px 0 0;
  color: rgba(255,255,255,.5);
  font-family: 'Poppins', sans-serif;
}
.gm-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.gm-footer__logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  text-decoration: none;
  display: inline-block;
}
.gm-footer__logo em { color: #C9963A; font-style: italic; }
.gm-footer__logo img {
  height: 52px;
  width: auto;
  display: block;
}
.gm-footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: rgba(255,255,255,.45);
}
.gm-footer__heading {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.gm-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.gm-footer__nav li { margin-bottom: 8px; }
.gm-footer__nav a {
  color: rgba(255,255,255,.45);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}
.gm-footer__nav a:hover { color: #C9963A; }
.gm-footer__phone,
.gm-footer__email {
  display: block;
  color: #C9963A;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 7px;
  transition: opacity .2s;
}
.gm-footer__phone:hover,
.gm-footer__email:hover { opacity: .82; color: #C9963A; }
.gm-footer__hours { font-size: 12px; margin-top: 8px; color: rgba(255,255,255,.35); }
.gm-footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.2);
}

/* Footer boutons sociaux */
.footer-social-block {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  color: #fff;
}
.footer-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366); }
.footer-facebook  { background: #1877f2; }
.footer-tripadvisor { background: #00aa6c; }
.footer-social-btn:hover { opacity: .85; transform: translateY(-2px); color: #fff; }

@media (max-width: 767px) {
  .gm-footer__top { grid-template-columns: 1fr; gap: 30px; }
  .gm-footer { padding: 40px 0 0; }
}

/* ── MENU MOBILE OVERLAY ─────────────────────────────────── */
.gm-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6,4,2,.97);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.gm-mobile-menu.open { display: flex; }
.gm-mobile-menu a {
  color: #fff;
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  text-decoration: none;
  transition: color .2s;
}
.gm-mobile-menu a:hover,
.gm-mobile-menu a.active-mobile { color: #C9963A; }
.gm-mobile-close {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(255,255,255,.7);
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color .2s;
}
.gm-mobile-close:hover { color: #fff; }
.mobile-lang-switcher {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.mobile-lang-switcher .lang-btn {
  padding: 7px 13px !important;
  font-size: 13px !important;
  border-radius: 20px !important;
}

/* Hamburger button → ouvre le menu mobile */
@media (max-width: 991px) {
  .navbar-toggler { border-color: rgba(255,255,255,.3); }
}

/* ── LANG SWITCHER ───────────────────────────────────────── */
.lang-switcher { display: flex; gap: 4px; align-items: center; }
.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.75);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { border-color: #C9963A; color: #C9963A; }
.lang-btn.active { background: #C9963A; border-color: #C9963A; color: #fff; }

/* ── NAV ACTIVE LINK ─────────────────────────────────────── */
.ftco-navbar-light .nav-item a.gm-active {
  color: #C9963A !important;
  font-weight: 700;
}

/* ── ARABIC FONT & RTL ───────────────────────────────────── */
html[dir="rtl"], html[dir="rtl"] body {
  font-family: 'Cairo', 'Poppins', sans-serif !important;
}
html[dir="rtl"] .subheading {
  font-family: 'Cairo', sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
}
html[dir="rtl"] .owl-carousel.home-slider,
html[dir="rtl"] .owl-carousel.home-slider .owl-stage-outer,
html[dir="rtl"] .owl-carousel.home-slider .owl-stage,
html[dir="rtl"] .owl-carousel.home-slider .owl-item,
html[dir="rtl"] .owl-carousel.home-slider .slider-item { direction: ltr !important; }
html[dir="rtl"] .owl-carousel.home-slider .slider-text h1,
html[dir="rtl"] .owl-carousel.home-slider .slider-text p,
html[dir="rtl"] .owl-carousel.home-slider .subheading { direction: rtl !important; text-align: center !important; }
html[dir="rtl"] .block-18 .text strong,
html[dir="rtl"] .counter-wrap strong { direction: ltr !important; display: inline-block; }
html[dir="rtl"] #ftco-nav .navbar-nav { flex-direction: row-reverse; }
html[dir="rtl"] #ftco-nav .ml-auto { margin-left: 0 !important; margin-right: auto !important; }

/* ── FORMSUBMIT STYLE ────────────────────────────────────── */
.form-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-top: 12px;
}

/* ── TOUR CARDS (Book Now avec paramètre) ────────────────── */
.tour-book-btn {
  display: inline-block;
  background: #F96D00;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.tour-book-btn:hover { background: #e06000; }
