/* ============================================================
   MOROCCO UNVEILED — Global Stylesheet
   ============================================================ */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  --terracotta:   #C0623A;
  --terracotta-light: #E07A50;
  --gold:         #D4A843;
  --gold-light:   #F0C060;
  --deep-blue:    #1A3A5C;
  --blue-mid:     #2D5F8A;
  --teal:         #1B8A7A;
  --teal-light:   #25B99E;
  --sand:         #F5E6C8;
  --sand-dark:    #E8D4A0;
  --ivory:        #FDF6EC;
  --dark:         #1A1208;
  --dark-mid:     #2E2010;
  --text-body:    #3D2B1A;
  --text-muted:   #7A6050;
  --white:        #FFFFFF;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.10);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.15);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.22);
  --transition:   0.3s ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-arabic:  'Amiri', 'Arial Unicode MS', serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--ivory);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--deep-blue);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p  { font-size: 1rem; color: var(--text-body); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--deep-blue);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Zellige Pattern (decorative) ---------- */
.zellige-border {
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(212,168,67,0.0) 0%,
    rgba(212,168,67,0.6) 10%,
    #F5D472 35%,
    #D4A843 50%,
    #F5D472 65%,
    rgba(212,168,67,0.6) 90%,
    rgba(212,168,67,0.0) 100%
  );
}

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 18, 8, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--gold);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(212,168,67,0.35));
  transition: transform 0.35s ease;
}
.nav-logo-icon img {
  width: 64px !important;
  height: 64px !important;
}
.nav-logo:hover .nav-logo-icon { transform: rotate(22.5deg); }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.nav-logo-text span {
  display: inline;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-left: 0.4rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(212,168,67,0.12);
}
.nav-link i { font-size: 0.7rem; transition: var(--transition); }
.nav-item:hover .nav-link i { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
}
.dropdown a i.fas, .dropdown a i.far {
  width: 14px;
  font-size: 0.78rem;
  color: var(--terracotta);
  flex-shrink: 0;
  text-align: center;
}
.dropdown a:hover { color: var(--gold); background: rgba(212,168,67,0.1); }
.dropdown a:hover i.fas, .dropdown a:hover i.far { color: var(--gold); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: 1rem;
}
/* ---- Language Selector Dropdown ---- */
.lang-selector {
  position: relative;
  display: inline-block;
}
.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem 1rem .42rem .8rem;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: 999px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.lang-selector-btn:hover {
  background: rgba(212,168,67,0.20);
  border-color: var(--gold);
  color: var(--gold);
}
.lang-selector-btn svg { flex-shrink: 0; }
.lang-chevron { transition: transform .22s ease; opacity: .8; }
.lang-selector.open .lang-chevron { transform: rotate(180deg); opacity: 1; }
.lang-selector.open .lang-selector-btn {
  background: rgba(212,168,67,0.22);
  border-color: var(--gold);
  color: var(--gold);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 172px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.10);
  overflow: hidden;
  z-index: 9999;
  animation: langDropIn .18s ease;
}
.lang-dropdown-up { top: auto; bottom: calc(100% + 10px); animation: langDropUp .18s ease; }
@keyframes langDropIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
@keyframes langDropUp { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.lang-selector.open .lang-dropdown { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .72rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 1px solid #f0ebe0;
  cursor: pointer;
  font-size: .87rem;
  color: #2a2a2a;
  text-align: left;
  transition: background .14s;
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: #fdf6ec; }
.lang-option.active { background: #fef9ef; color: var(--deep-blue); font-weight: 700; }
.lang-flag { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.lang-name { flex: 1; }
.lang-code { font-size: .73rem; font-weight: 800; color: #bbb; letter-spacing: .06em; }
.lang-option.active .lang-code { color: var(--gold); }

/* Mobile nav language strip */
.mobile-lang-opt {
  padding: .38rem .85rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
}
.mobile-lang-opt:hover,
.mobile-lang-opt.active {
  background: rgba(212,168,67,0.20);
  border-color: var(--gold);
  color: var(--gold);
}

/* Footer lang selector override */
.lang-selector-footer .lang-selector-btn {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}
.lang-selector-footer .lang-dropdown { bottom: calc(100% + 10px); top: auto; }

/* Legacy */
.lang-toggle { display: none; }
.lang-btn { display: none; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Mobile Nav ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--dark);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-nav.open { transform: translateX(0); display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: var(--terracotta-light);
  border-color: var(--terracotta-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,98,58,0.4);
}
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,67,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.28);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--deep-blue);
  border-color: var(--deep-blue);
}
.btn-outline-dark:hover {
  background: var(--deep-blue);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,138,122,0.4);
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 68px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,18,8,0.85) 0%, rgba(26,18,8,0.35) 50%, rgba(26,18,8,0.15) 100%);
}
.page-hero:hover .page-hero-bg { transform: scale(1); }
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 4rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero-content h1 {
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
  margin: 0.5rem 0 0.75rem;
}
.page-hero-content p {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  margin: 0 auto 0;
  max-width: 580px;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.page-breadcrumb a { color: var(--gold); }
.page-breadcrumb a:hover { text-decoration: underline; }

/* ---------- Section Wrappers ---------- */
.section {
  padding: 5rem 1.5rem;
}
.section-alt {
  background: var(--sand);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  border-radius: 2px;
  margin: 1rem auto;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img { transform: scale(1.04); }
.card-img-wrap { overflow: hidden; }
.card-body { padding: 1.4rem 1.5rem; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}
.tag-terracotta { background: rgba(192,98,58,0.12); color: var(--terracotta); }
.tag-gold       { background: rgba(212,168,67,0.15); color: #A07828; }
.tag-teal       { background: rgba(27,138,122,0.12); color: var(--teal); }
.tag-blue       { background: rgba(26,58,92,0.1);   color: var(--deep-blue); }
.card-title { font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--deep-blue); }
.card-text  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Stats Strip ---------- */
.stats-strip {
  background: var(--deep-blue);
  padding: 2rem 1.5rem;
}
.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}

/* ---------- Accordion ---------- */
.accordion-item {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
  color: var(--deep-blue);
  gap: 1rem;
}
.accordion-header:hover { background: var(--sand); }
.accordion-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--dark);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--ivory);
  padding: 0 1.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.accordion-item.open .accordion-body {
  max-height: 600px;
  padding: 1.2rem 1.4rem;
}

/* ---------- Tabs ---------- */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--sand-dark);
  padding-bottom: 0;
}
.tab-btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--terracotta); }
.tab-btn.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
  background: rgba(192,98,58,0.06);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Badge / Pill ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-green { background: #d4edda; color: #155724; }
.badge-red   { background: #f8d7da; color: #721c24; }
.badge-blue  { background: #cce5ff; color: #004085; }
.badge-gold  { background: rgba(212,168,67,0.15); color: #8A6020; }

/* ---------- Testimonial Card ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem; left: 1.2rem;
  line-height: 1;
}
.testimonial-text {
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.testimonial-name { font-weight: 700; font-size: 0.95rem; color: var(--deep-blue); }
.testimonial-origin { font-size: 0.8rem; color: var(--text-muted); }
.stars { color: var(--gold); font-size: 0.85rem; }

/* ---------- Image with overlay ---------- */
.img-overlay-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.img-overlay-card img {
  width: 100%; height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.img-overlay-card:hover img { transform: scale(1.06); }
.img-overlay-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.img-overlay-card .overlay h3 { color: var(--white); font-size: 1.2rem; }
.img-overlay-card .overlay p  { color: rgba(255,255,255,0.8); font-size: 0.88rem; }

/* ---------- Info Box ---------- */
.info-box {
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-box-icon { font-size: 1.4rem; flex-shrink: 0; }
.info-box-tip  { background: rgba(212,168,67,0.12); border-left: 4px solid var(--gold); }
.info-box-warn { background: rgba(192,98,58,0.10); border-left: 4px solid var(--terracotta); }
.info-box-info { background: rgba(26,58,92,0.08);  border-left: 4px solid var(--deep-blue); }
.info-box-ok   { background: rgba(27,138,122,0.10);border-left: 4px solid var(--teal); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--terracotta), var(--gold), var(--teal));
  border-radius: 3px;
}
.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 0 0 2rem 0;
  position: relative;
}
.timeline-dot {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--ivory);
}
.timeline-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  flex: 1;
}
.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.timeline-content h4 { color: var(--deep-blue); margin-bottom: 0.3rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Price Tag ---------- */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
}
.price-amount { font-family: var(--font-display); font-size: 1.5rem; color: var(--terracotta); font-weight: 700; }
.price-unit   { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Rating Stars ---------- */
.rating { display: flex; align-items: center; gap: 0.4rem; }
.rating-stars { color: var(--gold); }
.rating-count { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Form Elements ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192,98,58,0.15);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; }

/* ---------- Slider / Carousel ---------- */
.carousel-wrap { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}
.carousel-track .card { flex: 0 0 340px; }
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--sand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--deep-blue);
  transition: var(--transition);
  cursor: pointer;
}
.carousel-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sand-dark);
  transition: var(--transition);
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--terracotta);
  width: 22px;
  border-radius: 4px;
}

/* ---------- Map Container ---------- */
.map-container {
  width: 100%; height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--sand-dark);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Progress Bar ---------- */
.progress-bar-wrap {
  background: var(--sand-dark);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin: 0.4rem 0;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transition: width 1.2s ease;
}

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--blue-mid) 100%);
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
}
.newsletter-section h2 { color: var(--white); }
.newsletter-section p  { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0.75rem auto 1.75rem; }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-xl);
  border: none;
  font-size: 0.95rem;
  outline: none;
}

/* ---------- Footer ---------- */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 1.5rem 1.5rem;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin: 1rem 0; }
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.social-btn:hover { background: var(--terracotta); color: var(--white); }
.footer-col h4 {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
.animate-fade-up { animation: fadeInUp 0.7s ease both; }
.animate-fade    { animation: fadeIn   0.6s ease both; }
.animate-float   { animation: float 3.5s ease-in-out infinite; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Scroll-reveal (JS adds class) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Lazy Image Placeholder ---------- */
.lazy-img {
  background: linear-gradient(90deg, var(--sand) 25%, #e8d9b8 50%, var(--sand) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 200px;
  display: block;
}
.lazy-img.loaded {
  animation: none;
  background: none;
  min-height: unset;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-gold    { color: var(--gold); }
.text-terracotta { color: var(--terracotta); }
.text-teal    { color: var(--teal); }
.text-white   { color: var(--white); }
.text-muted   { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.full-width { width: 100%; }
.rounded { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow-md); }
.bg-white { background: var(--white); }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.overflow-hidden { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav { display: block; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-logo-text span {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: span 2; }
  .card-img { height: 210px; }
}
@media (max-width: 600px) {
  /* Layout */
  .section { padding: 3rem 1rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .card-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 35vh; }

  /* Typography */
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 0.95rem; }

  /* Page hero for inner pages */
  .page-hero-content h1 { font-size: 1.8rem; }
  .page-hero-content p { font-size: 0.95rem; }

  /* Buttons — minimum tap target 44px */
  .btn { min-height: 44px; padding: 0.75rem 1.4rem; font-size: 0.9rem; }
  .btn-lg { padding: 0.85rem 1.8rem; font-size: 0.95rem; }
  .btn-sm { min-height: 38px; }

  /* Cards */
  .card { border-radius: 14px; }
  .card-img { height: 200px; }

  /* Stats strip — stack on mobile */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }

  /* Footer social icons — larger tap targets */
  .social-btn { width: 44px; height: 44px; font-size: 1.05rem; }

  /* Footer columns spacing */
  .footer-col { padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-col:last-child { border-bottom: none; }

  /* Prevent horizontal overflow */
  .container, .section { overflow-x: hidden; }

  /* Tables — scroll on mobile */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Cookie banner */
  .cookie-inner { flex-direction: column; gap: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }

  /* Breadcrumbs */
  .breadcrumb { font-size: 0.78rem; flex-wrap: wrap; }

  /* TOC — force single column so items don't wrap mid-word */
  .toc ul { columns: 1 !important; }

  /* Culture page — Berber Heritage split collapses to single column */
  .culture-split-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
}

/* ============================================================
   RTL SUPPORT — Arabic (dir="rtl")
   ============================================================ */
[dir="rtl"] {
  font-family: var(--font-arabic), var(--font-body);
  letter-spacing: 0;
}

/* Navbar RTL */
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .dropdown { left: auto; right: 0; text-align: right; }
[dir="rtl"] .mobile-nav { text-align: right; }

/* Text alignment */
[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .section-label { text-align: right; }
[dir="rtl"] .section-header { text-align: right; }
[dir="rtl"] .section-divider { margin-left: auto; margin-right: 0; }
[dir="rtl"] .page-hero { text-align: right; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-cta { justify-content: flex-end; }

/* Cards RTL */
[dir="rtl"] .card-body { text-align: right; }
[dir="rtl"] .card-footer { flex-direction: row-reverse; }
[dir="rtl"] .card-tag { margin-left: auto; margin-right: 0; }

/* Footer RTL */
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-col { text-align: right; }
[dir="rtl"] .footer-brand { text-align: right; }
[dir="rtl"] .footer-social { justify-content: flex-start; }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* Forms RTL */
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  text-align: right;
  direction: rtl;
}

/* Timeline RTL */
[dir="rtl"] .timeline::before { left: auto; right: 50%; }
[dir="rtl"] .timeline-item { direction: rtl; }

/* Accordion RTL */
[dir="rtl"] .accordion-header { flex-direction: row-reverse; }

/* Buttons RTL — flip icon + text order */
[dir="rtl"] .btn i:first-child { margin-right: 0; margin-left: 0.45rem; }
[dir="rtl"] .btn i:last-child  { margin-left: 0; margin-right: 0.45rem; }

/* Info boxes RTL */
[dir="rtl"] .info-box { flex-direction: row-reverse; text-align: right; }

/* Stats strip RTL */
[dir="rtl"] .stats-grid { direction: rtl; }

/* Breadcrumbs / nav links RTL */
[dir="rtl"] .nav-link { gap: 0; }
[dir="rtl"] .nav-item .dropdown a { text-align: right; padding-right: 1.2rem; padding-left: 0; }

/* Quiz RTL */
[dir="rtl"] .quiz-option { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .quiz-progress { direction: rtl; }

/* Tagine builder RTL */
[dir="rtl"] .ingredient-grid { direction: rtl; }

/* Cart RTL */
[dir="rtl"] .cart-item { flex-direction: row-reverse; }

/* Itinerary builder RTL */
.itinerary-day h4 { font-style: italic; }
[dir="rtl"] .itinerary-day { border-left: none; border-right: 4px solid var(--terracotta); padding-left: 0; padding-right: 1.5rem; }

/* Arabic font size adjustments */
[dir="rtl"] .hero-title { font-size: clamp(2rem, 5vw, 4.2rem); }
[dir="rtl"] .section-title { font-size: clamp(1.4rem, 3.5vw, 2.4rem); }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  border-top: 3px solid var(--terracotta);
  box-shadow: 0 -4px 32px rgba(0,0,0,.14);
  padding: 1.1rem 1.5rem;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
#cookie-banner.cookie-visible { transform: translateY(0); }
#cookie-banner.cookie-hiding  { transform: translateY(110%); }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 260px;
}
.cookie-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; margin-top: .1rem; }
.cookie-text strong { display: block; font-size: .98rem; color: var(--deep-blue); margin-bottom: .25rem; }
.cookie-text p { font-size: .83rem; color: #555; line-height: 1.55; margin: 0; }
.cookie-text a { color: var(--terracotta); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: .55rem 1.35rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.cookie-btn-outline {
  background: transparent;
  border: 2px solid #ccc;
  color: #555;
}
.cookie-btn-outline:hover { border-color: var(--deep-blue); color: var(--deep-blue); }
.cookie-btn-accept {
  background: var(--terracotta);
  border: 2px solid var(--terracotta);
  color: #fff;
}
.cookie-btn-accept:hover { background: #a8502f; border-color: #a8502f; }
@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; gap: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ══════════════════════════════════════════════════════════
   AI CHAT WIDGET — FAB + Chat Window
══════════════════════════════════════════════════════════ */

/* ── FAB button ── */
#ai-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: linear-gradient(135deg, #C8933A 0%, #9A6E28 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .75rem 1.25rem .75rem .95rem;
  font-size: .88rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(200,147,58,.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease, box-shadow .25s, background .2s;
  pointer-events: none;
}
#ai-fab.ai-fab-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#ai-fab:hover {
  background: linear-gradient(135deg, #D4A044 0%, #B07830 100%);
  box-shadow: 0 10px 36px rgba(200,147,58,.65);
  transform: translateY(-3px);
}
.ai-fab-icon { font-size: 1.2rem; line-height: 1; }
.ai-fab-label { white-space: nowrap; }

/* ── Chat window ── */
#ai-chat-window {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 901;
  width: 380px;
  max-height: 590px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
#ai-chat-window.ai-chat-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Header ── */
#ai-chat-header {
  background: linear-gradient(135deg, #1A2B4A 0%, #2C4870 100%);
  color: #fff;
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.ai-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8933A, #E8B45A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ai-chat-header-info { flex: 1; min-width: 0; }
.ai-chat-header-info h4 {
  margin: 0 0 .15rem;
  font-size: .92rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: .02em;
}
.ai-chat-status {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  opacity: .8;
}
.ai-chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}
#ai-chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: .2rem .3rem;
  transition: color .2s, transform .2s;
  flex-shrink: 0;
}
#ai-chat-close:hover { color: #fff; transform: rotate(90deg); }

/* ── Messages ── */
#ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
#ai-chat-messages::-webkit-scrollbar { width: 4px; }
#ai-chat-messages::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.ai-msg {
  display: flex;
  gap: .45rem;
  max-width: 90%;
  animation: aiFadeIn .22s ease;
}
@keyframes aiFadeIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.ai-msg-bot { align-self: flex-start; }
.ai-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8933A, #E8B45A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  align-self: flex-end;
}
.ai-msg-bubble {
  padding: .6rem .9rem;
  border-radius: 16px;
  font-size: .875rem;
  line-height: 1.55;
  word-break: break-word;
}
.ai-msg-bot .ai-msg-bubble {
  background: #f3f4f6;
  color: #1f2937;
  border-bottom-left-radius: 4px;
}
.ai-msg-user .ai-msg-bubble {
  background: linear-gradient(135deg, #1A2B4A, #2C4870);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-bubble a { color: #C8933A; text-decoration: underline; }
.ai-msg-user .ai-msg-bubble a { color: #93c5fd; }
.ai-msg-bubble ul { margin: .4rem 0 0 1.1rem; padding: 0; }
.ai-msg-bubble li { margin-bottom: .2rem; }

/* ── Typing indicator ── */
.ai-typing-row { align-self: flex-start; display: flex; gap: .45rem; animation: aiFadeIn .22s ease; }
.ai-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: .7rem .9rem;
  background: #f3f4f6;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.ai-typing-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  animation: aiDotBounce 1.3s infinite ease-in-out;
}
.ai-typing-dot:nth-child(2) { animation-delay: .2s; }
.ai-typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes aiDotBounce {
  0%,80%,100% { transform: scale(.75); opacity: .5; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* ── Starter question chips ── */
#ai-chat-starters {
  padding: .1rem 1rem .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  flex-shrink: 0;
}
.ai-starter-btn {
  background: none;
  border: 1.5px solid #C8933A;
  color: #9A6E28;
  border-radius: 20px;
  padding: .3rem .75rem;
  font-size: .77rem;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  font-family: var(--font-body);
  font-weight: 600;
}
.ai-starter-btn:hover { background: #C8933A; color: #fff; border-color: #C8933A; }

/* ── Input footer ── */
#ai-chat-footer {
  border-top: 1px solid #f0f0f0;
  padding: .7rem .85rem .65rem;
  flex-shrink: 0;
}
#ai-chat-form {
  display: flex;
  gap: .45rem;
  align-items: flex-end;
}
#ai-chat-input {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: .55rem .85rem;
  font-size: .875rem;
  font-family: var(--font-body);
  resize: none;
  max-height: 96px;
  outline: none;
  transition: border-color .2s;
  line-height: 1.45;
  color: #1f2937;
}
#ai-chat-input:focus { border-color: #C8933A; }
#ai-chat-input::placeholder { color: #9ca3af; }
#ai-chat-send {
  background: linear-gradient(135deg, #C8933A, #9A6E28);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}
#ai-chat-send:hover { opacity: .88; transform: scale(1.06); }
#ai-chat-send:disabled { opacity: .35; cursor: not-allowed; transform: none; }
#ai-chat-send i { font-size: .8rem; }

/* ── WhatsApp fallback link ── */
.ai-chat-wa-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: .45rem;
  font-size: .73rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color .2s;
}
.ai-chat-wa-link i { color: #25D366; }
.ai-chat-wa-link:hover { color: #4b5563; }

/* ── Mobile ── */
@media (max-width: 600px) {
  #ai-fab { padding: .75rem; border-radius: 50%; width: 54px; height: 54px; justify-content: center; }
  .ai-fab-label { display: none; }
  #ai-chat-window {
    width: calc(100vw - 1.75rem);
    right: .875rem;
    bottom: 5rem;
    max-height: 72vh;
    border-radius: 16px;
  }
}

/* ══════════════════════════════════════════════════════════
   NEWSLETTER POPUP
══════════════════════════════════════════════════════════ */
#nl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,6,0,.65);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#nl-overlay.nl-visible { opacity: 1; pointer-events: auto; }
#nl-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 780px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  position: relative;
  transform: scale(.94) translateY(20px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
#nl-overlay.nl-visible #nl-modal { transform: scale(1) translateY(0); }
#nl-close {
  position: absolute;
  top: .9rem; right: 1rem;
  background: rgba(0,0,0,.08);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-body);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 2;
}
#nl-close:hover { background: rgba(0,0,0,.15); }
#nl-left {
  background: linear-gradient(160deg,#1a0800,#2e1200);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#nl-badge {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg,#c45c00,#8b3500);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  box-shadow: 0 0 20px rgba(196,92,0,.4);
}
#nl-left h3 { color: #fff; font-family: var(--font-display); font-size: 1.4rem; margin: 0; }
#nl-left p { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; }
#nl-perks { display: flex; flex-direction: column; gap: .55rem; margin: 0; padding: 0; list-style: none; }
#nl-perks li { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; color: rgba(255,255,255,.8); }
#nl-perks li i { color: #34d399; margin-top: .15rem; flex-shrink: 0; }
#nl-right {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#nl-form { display: flex; flex-direction: column; gap: .75rem; }
#nl-form label { font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
#nl-form input {
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .18s;
  color: var(--text-body);
}
#nl-form input:focus { border-color: var(--terracotta); }
#nl-submit {
  background: linear-gradient(135deg,#c45c00,#8b3500);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: .85rem 1.5rem;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: opacity .2s, transform .2s;
  margin-top: .25rem;
}
#nl-submit:hover { opacity: .88; transform: translateY(-2px); }
#nl-privacy { font-size: .73rem; color: var(--text-muted); text-align: center; margin: 0; }

/* ============================================================
   ALSO EXPLORE — cross-city navigation cards
============================================================ */
.also-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.also-explore-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.also-explore-card:hover {
  border-color: var(--terracotta);
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-3px);
  color: var(--text-dark);
}
.also-explore-emoji {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--terracotta), #c0623a);
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
}
.also-explore-card div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.also-explore-card strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-blue);
}
.also-explore-card span {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.3;
}
@media (max-width: 640px) {
  .also-explore-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #nl-modal { grid-template-columns: 1fr; }
  #nl-left { padding: 2rem 1.5rem; }
  #nl-right { padding: 1.5rem; }
}

/* ── City page grids — responsive ────────────────────── */
@media (max-width: 900px) {
  .sight-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .sight-card:nth-last-child(2):nth-child(4n+1),
  .sight-card:nth-last-child(1):nth-child(4n+2) { grid-column-start: auto !important; }
  .food-grid  { grid-template-columns: repeat(2, 1fr) !important; }
  .tip-grid   { grid-template-columns: repeat(2, 1fr) !important; }
  .city-intro { grid-template-columns: 1fr !important; }
  .city-intro-img { height: 260px !important; }
}
@media (max-width: 600px) {
  .sight-grid { grid-template-columns: 1fr !important; }
  .food-grid  { grid-template-columns: 1fr !important; }
  .tip-grid   { grid-template-columns: 1fr !important; }
  .season-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .transport-grid { grid-template-columns: 1fr !important; }
  /* Booking widget: collapse 4-col form to stacked */
  .city-booking > div[style] {
    grid-template-columns: 1fr 1fr !important;
  }
  .city-booking button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ── Homepage inline-grid mobile overrides ──────────────────── */
@media (max-width: 768px) {
  .home-split-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .home-img-mosaic {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 180px 180px !important;
  }
  .home-img-mosaic img[style*="grid-column:span 3"] {
    grid-column: span 2 !important;
  }
  .home-info-grid {
    grid-template-columns: 1fr !important;
  }
}
