:root {
  --sand: #C8A96E; --sand-light: #E8D5A8; --sand-pale: #F5EDD8;
  --dusk: #1A1410; --dusk-mid: #F0E8DC; --terracotta: #C4613A;
  --terracotta-light: #E8836A; --ocean: #2B5F7A; --cream: #F0E8DC;
  --cream-dark: #F0E8DC; --text-muted: #8A7A68; --white: #FFFFFF;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'Jost',sans-serif; background:var(--cream); color:var(--dusk); overflow-x:hidden; }

/* NAV */
nav {
  position:fixed; top:0; left:0; right:0;
  z-index:500;
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem 2.5rem;
  transition:all 0.55s cubic-bezier(0.16,1,0.3,1);
  isolation:isolate;

  /* Liquid Glass &mdash; Apple-style over dark hero */
  background:linear-gradient(
    180deg,
    rgba(255,255,255,0.20) 0%,
    rgba(255,255,255,0.07) 60%,
    rgba(255,252,248,0.02) 100%
  );
  backdrop-filter:blur(44px) saturate(180%) brightness(1.10);
  -webkit-backdrop-filter:blur(44px) saturate(180%) brightness(1.10);
  border-bottom:1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.60),
    inset 1px 0 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(200,169,110,0.06),
    0 4px 24px rgba(26,20,16,0.07),
    0 1px 3px rgba(26,20,16,0.04);
}
/* Diagonal inner lens gradient */
nav::before {
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(
    170deg,
    rgba(255,255,255,0.16) 0%,
    rgba(255,255,255,0.08) 25%,
    rgba(255,255,255,0.02) 55%,
    transparent 75%
  );
  pointer-events:none; z-index:-1;
}
/* Specular highlight stripe &mdash; the defining Apple Liquid Glass detail */
nav::after {
  content:'';
  position:absolute;
  top:0; left:0; right:0; height:1.5px;
  background:linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.90) 20%,
    rgba(255,255,255,1.00) 50%,
    rgba(255,255,255,0.90) 80%,
    transparent 100%
  );
  pointer-events:none; z-index:1;
}
nav.scrolled {
  padding:0.75rem 2.5rem;
  /* Liquid Glass &mdash; scrolled over light cream */
  background:linear-gradient(
    180deg,
    rgba(255,252,248,0.72) 0%,
    rgba(245,237,216,0.62) 100%
  );
  backdrop-filter:blur(52px) saturate(200%) brightness(1.04);
  -webkit-backdrop-filter:blur(52px) saturate(200%) brightness(1.04);
  border-bottom:1px solid rgba(200,169,110,0.18);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.78),
    inset 0 -1px 0 rgba(200,169,110,0.12),
    0 8px 40px rgba(26,20,16,0.09),
    0 2px 6px rgba(26,20,16,0.05);
}
nav.scrolled .nav-links a { color:rgba(26,20,16,0.7); }
nav.scrolled .nav-links a:hover { color:var(--dusk); }
.nav-logo { text-decoration:none; display:flex; align-items:center; }
.nav-logo-img { height:44px; width:auto; object-fit:contain; filter:brightness(0) invert(1); transition:filter 0.55s cubic-bezier(0.16,1,0.3,1); }
nav.scrolled .nav-logo-img { filter:none; }
.nav-links { display:flex; gap:2.5rem; list-style:none; }
.nav-links a { color:rgba(255,255,255,0.75); text-decoration:none; font-size:0.8rem; letter-spacing:0.2em; text-transform:uppercase; font-weight:500; transition:color 0.3s; }
.nav-links a:hover { color:var(--sand); }
.nav-cta { background:var(--sand); color:var(--dusk) !important; padding:0.6rem 1.5rem; font-weight:600 !important; }
.nav-cta:hover { background:var(--sand-light) !important; }
.nav-hamburger { display:none; }

/* HERO */
.hero { position:relative; height:100vh; min-height:700px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--dusk); }
.hero-bg { position:absolute; inset:0; background:linear-gradient(160deg,rgba(26,20,16,0.85) 0%,rgba(26,20,16,0.3) 60%,rgba(44,30,18,0.7) 100%), url('assets/media/image5.png') center/cover no-repeat; animation:slowZoom 20s ease-in-out infinite alternate; }
@keyframes slowZoom { from{transform:scale(1.05)} to{transform:scale(1.12)} }
.hero-deco { position:absolute; bottom:0; left:0; right:0; height:200px; background:linear-gradient(to top,rgba(240,232,220,0.45) 0%,transparent 100%); pointer-events:none; }
.hero-content { position:relative; z-index:2; text-align:center; padding:0 2rem; animation:fadeUp 1.2s ease both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
.hero-eyebrow { font-size:0.75rem; letter-spacing:0.35em; text-transform:uppercase; color:var(--sand); font-weight:500; margin-bottom:1.5rem; }
.hero h1 { font-family:'Playfair Display',serif; font-size:clamp(3.5rem,8vw,7rem); font-weight:700; color:#fff; line-height:1.0; margin-bottom:1rem; }
.hero h1 em { color:var(--sand); font-style:italic; }
.hero-sub { font-family:'Cormorant Garamond',serif; font-size:clamp(1.1rem,2vw,1.5rem); color:rgba(255,255,255,0.8); font-style:italic; margin-bottom:3rem; max-width:600px; margin-left:auto; margin-right:auto; }
.hero-btns { display:flex; gap:1.2rem; justify-content:center; flex-wrap:wrap; }
.btn-primary { background:var(--sand); color:var(--dusk); padding:1rem 2.5rem; font-size:0.8rem; letter-spacing:0.2em; text-transform:uppercase; font-weight:600; text-decoration:none; border:none; cursor:pointer; transition:all 0.3s; display:inline-block; }
.btn-primary:hover { background:var(--sand-light); transform:translateY(-2px); }
.btn-outline { background:transparent; color:#fff; padding:1rem 2.5rem; font-size:0.8rem; letter-spacing:0.2em; text-transform:uppercase; font-weight:500; text-decoration:none; border:1px solid rgba(255,255,255,0.5); cursor:pointer; transition:all 0.3s; display:inline-block; }
.btn-outline:hover { border-color:var(--sand); color:var(--sand); }
.scroll-indicator { position:absolute; bottom:3rem; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:0.5rem; color:rgba(255,255,255,0.5); font-size:0.65rem; letter-spacing:0.2em; text-transform:uppercase; }
.scroll-line { width:1px; height:50px; background:var(--sand); animation:scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} }

/* STATS */
.intro-strip { background:#F0E8DC; padding:3rem 5rem; display:flex; align-items:center; justify-content:space-between; gap:4rem; }
.strip-stat { text-align:center; }
.strip-stat .num { font-family:'Playfair Display',serif; font-size:2.5rem; color:var(--sand); font-weight:700; }
.strip-stat .label { font-size:0.7rem; letter-spacing:0.2em; text-transform:uppercase; color:rgba(26,20,16,0.6); margin-top:0.3rem; }
.strip-divider { width:1px; height:60px; background:rgba(26,20,16,0.2); }

/* SECTION COMMON */
section { padding:8rem 5rem; }
.section-eyebrow { font-size:0.7rem; letter-spacing:0.3em; text-transform:uppercase; color:var(--terracotta); font-weight:600; margin-bottom:1rem; }
.section-title { font-family:'Playfair Display',serif; font-size:clamp(2rem,4vw,3.5rem); font-weight:700; line-height:1.15; margin-bottom:1.5rem; }
.section-body { font-family:'Cormorant Garamond',serif; font-size:1.25rem; line-height:1.8; color:var(--text-muted); max-width:560px; }

/* ABOUT */
.about { background:var(--cream); }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:8rem; align-items:center; }
.about-img-wrap { position:relative; aspect-ratio:3/4; }
.about-img { width:100%; height:100%; object-fit:cover; background:url('https://images.unsplash.com/photo-1590004987778-bece5c9adab6?w=900&q=80') center/cover; }
.about-img-accent { position:absolute; bottom:-2rem; right:-2rem; width:55%; aspect-ratio:1; background:url('https://images.unsplash.com/photo-1548013146-72479768bada?w=600&q=80') center/cover; border:6px solid var(--cream); }
.about-tag { position:absolute; top:2rem; left:-3rem; background:var(--terracotta); color:#fff; padding:1.2rem 1.5rem; font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase; font-weight:600; writing-mode:vertical-rl; text-orientation:mixed; transform:rotate(180deg); }

/* EXPERIENCES */
.experiences { background:var(--dusk-mid); }
.experiences .section-title { color:var(--dusk); }
.experiences .section-eyebrow { color:var(--sand); }
.exp-intro { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:4rem; }
.exp-intro .section-body { color:var(--text-muted); }
.exp-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; }
.exp-card { position:relative; overflow:hidden; aspect-ratio:3/4; cursor:pointer; background:var(--dusk); }
.exp-card:first-child { grid-column:span 1; aspect-ratio:1/1; }
.exp-card:nth-child(2) { grid-column:span 2; aspect-ratio:2/1; }
.exp-card:last-child { grid-column:1/-1; aspect-ratio:21/9; }
.exp-card-bg { position:absolute; inset:0; background-size:cover; background-position:center; transition:transform 0.8s ease; }
.exp-card:hover .exp-card-bg { transform:scale(1.08); }
.exp-card-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(26,20,16,0.92) 0%,rgba(26,20,16,0.2) 50%,transparent 100%); transition:opacity 0.4s; }
.exp-card:hover .exp-card-overlay { opacity:0.8; }
.exp-card-content { position:absolute; bottom:0; left:0; right:0; padding:2rem; }
.exp-tag { display:inline-block; background:var(--terracotta); color:#fff; font-size:0.65rem; letter-spacing:0.15em; text-transform:uppercase; padding:0.3rem 0.8rem; margin-bottom:0.8rem; font-weight:600; }
.exp-card-title { font-family:'Playfair Display',serif; font-size:1.6rem; font-weight:700; color:#fff; line-height:1.2; margin-bottom:0.5rem; }
.exp-card:first-child .exp-card-title { font-size:2.2rem; }
.exp-meta { display:flex; gap:1.5rem; margin-bottom:1rem; font-size:0.75rem; color:rgba(255,255,255,0.6); letter-spacing:0.1em; }
.exp-price { font-family:'Playfair Display',serif; font-size:1.4rem; color:var(--sand); font-weight:600; }
.exp-price span { font-size:0.8rem; font-family:'Jost',sans-serif; color:rgba(255,255,255,0.5); font-weight:400; }
.exp-book-btn { display:inline-flex; align-items:center; gap:0.5rem; background:var(--sand); color:var(--dusk); padding:0.7rem 1.5rem; font-size:0.75rem; letter-spacing:0.15em; text-transform:uppercase; font-weight:600; border:none; cursor:pointer; margin-top:1rem; opacity:0; transform:translateY(10px); transition:all 0.3s ease; }
.exp-card:hover .exp-book-btn { opacity:1; transform:translateY(0); }
.exp-book-btn:hover { background:var(--sand-light); }
.wa-icon { width:16px; height:16px; fill:var(--dusk); flex-shrink:0; }
.exp-card-summary { font-size:0.82rem; color:rgba(255,255,255,0.78); font-style:italic; line-height:1.55; margin-bottom:0.6rem; opacity:0; transform:translateY(6px); transition:opacity 0.35s ease, transform 0.35s ease; }
.exp-card:hover .exp-card-summary { opacity:1; transform:translateY(0); }
.ocean-slide,.ben-slide,.banc-slide,.terjit-slide { animation:cardFade 15s infinite; opacity:0; }
@keyframes cardFade { 0%{opacity:0} 13%{opacity:1} 33%{opacity:1} 47%{opacity:0} 100%{opacity:0} }

/* CITIES */
.cities { background: var(--dusk-mid); padding: 8rem 5rem; }
.cities .section-eyebrow { color: var(--terracotta); }
.cities .section-title { color: var(--dusk); }
.cities-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 5rem; }
.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.city-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 200px 200px 0 0;
  aspect-ratio: 3/4;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.city-card:hover { transform: translateY(-10px); }
.city-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 2px;
  background: var(--sand);
  z-index: 3;
  opacity: 0.5;
  transition: width 0.4s ease, opacity 0.4s ease;
}
.city-card:hover::before { width: 96px; opacity: 1; }
.city-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.city-card:hover .city-photo-bg { transform: scale(1.08); }
.city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12,8,4,0.97) 0%,
    rgba(12,8,4,0.6) 38%,
    rgba(12,8,4,0.12) 68%,
    transparent 100%
  );
}
.city-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1rem;
}
.arch-city-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.arch-city-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 600;
  display: block;
}
.city-desc-hidden {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  font-style: italic;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.city-card:hover .city-desc-hidden { opacity: 1; transform: translateY(0); }
.city-book-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sand); color: var(--dusk);
  padding: 0.55rem 1.2rem; font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600;
  border: none; cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease 0.05s, transform 0.32s ease 0.05s, background 0.2s;
}
.city-card:hover .city-book-btn { opacity: 1; transform: translateY(0); }
.city-book-btn:hover { background: var(--sand-light); }

/* ITINERARY */
.itinerary { background:#F0E8DC; }
.itinerary-grid { display:grid; grid-template-columns:1fr 1fr; gap:6rem; align-items:start; }
.timeline { margin-top:3rem; }
.timeline-item { display:flex; gap:2rem; padding-bottom:3rem; position:relative; }
.timeline-item:not(:last-child)::before { content:''; position:absolute; left:1rem; top:2.5rem; bottom:0; width:1px; background:var(--sand-light); }
.timeline-num { width:2rem; height:2rem; border-radius:50%; background:var(--sand); color:var(--dusk); display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:700; flex-shrink:0; font-family:'Playfair Display',serif; }
.timeline-day { font-size:0.65rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--terracotta); font-weight:600; margin-bottom:0.3rem; }
.timeline-title { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:600; margin-bottom:0.4rem; }
.timeline-desc { font-size:0.9rem; color:var(--text-muted); line-height:1.7; }
.itinerary-img { position:sticky; top:8rem; aspect-ratio:3/4; background:url('https://i.pinimg.com/736x/e3/42/a4/e342a476cbe5487cbd286875d93c527e.jpg') center/cover; }

/* TESTIMONIALS */
.testimonials { background:#F0E8DC; text-align:center; }
.testimonials .section-title { color:var(--dusk); max-width:700px; margin:0 auto 4rem; }
.testimonials .section-eyebrow { color:var(--sand); }
.testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }
.testi-card { background:rgba(26,20,16,0.04); border:1px solid rgba(26,20,16,0.15); padding:2.5rem; text-align:left; }
.testi-stars { color:var(--sand); font-size:1rem; letter-spacing:0.1em; margin-bottom:1.2rem; }
.testi-text { font-family:'Cormorant Garamond',serif; font-size:1.1rem; color:rgba(26,20,16,0.75); line-height:1.8; font-style:italic; margin-bottom:1.5rem; }
.testi-author { font-size:0.75rem; letter-spacing:0.15em; text-transform:uppercase; color:rgba(26,20,16,0.55); }
.testi-author strong { color:var(--sand); display:block; font-family:'Playfair Display',serif; font-size:1rem; letter-spacing:0; text-transform:none; margin-bottom:0.2rem; }

/* MODAL */
.modal-backdrop { display:none; position:fixed; inset:0; z-index:800; background:rgba(26,20,16,0.85); backdrop-filter:blur(8px); align-items:center; justify-content:center; }
.modal-backdrop.open { display:flex; animation:fadeIn 0.3s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal { background:var(--cream); width:90%; max-width:580px; max-height:90vh; overflow-y:auto; animation:slideUp 0.4s ease; position:relative; }
@keyframes slideUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
.modal-header { background:var(--dusk); padding:2.5rem 2.5rem 2rem; }
.modal-eyebrow { font-size:0.65rem; letter-spacing:0.25em; text-transform:uppercase; color:var(--sand); margin-bottom:0.5rem; font-weight:600; }
.modal-title { font-family:'Playfair Display',serif; font-size:1.8rem; color:#fff; font-weight:700; }
.modal-exp-name { color:var(--sand); font-style:italic; }
.modal-close { position:absolute; top:1.5rem; right:1.5rem; background:none; border:none; cursor:pointer; color:rgba(255,255,255,0.5); font-size:1.5rem; line-height:1; transition:color 0.2s; }
.modal-close:hover { color:var(--sand); }
.modal-body { padding:2.5rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; margin-bottom:1.2rem; }
.form-group { margin-bottom:1.2rem; }
.form-group label { display:block; font-size:0.7rem; letter-spacing:0.2em; text-transform:uppercase; font-weight:600; color:var(--text-muted); margin-bottom:0.5rem; }
.form-group input, .form-group select, .form-group textarea { width:100%; background:#fff; border:1px solid var(--sand-light); padding:0.85rem 1rem; font-family:'Jost',sans-serif; font-size:0.95rem; color:var(--dusk); outline:none; border-radius:0; transition:border-color 0.2s; appearance:none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--sand); }
.form-group textarea { resize:vertical; min-height:100px; }
.modal-exp-info { background:var(--sand-pale); padding:1rem 1.2rem; margin-bottom:1.5rem; display:flex; justify-content:space-between; align-items:center; }
.modal-exp-info .exp-label { font-size:0.75rem; color:var(--text-muted); }
.modal-exp-info .exp-val { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:600; }
.wa-submit-btn { width:100%; background:#25D366; color:#fff; border:none; padding:1.1rem 2rem; font-family:'Jost',sans-serif; font-size:0.85rem; letter-spacing:0.15em; text-transform:uppercase; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:0.8rem; transition:background 0.3s; }
.wa-submit-btn:hover { background:#1db954; }
.wa-submit-btn svg { width:22px; height:22px; fill:#fff; }
.modal-note { font-size:0.78rem; color:var(--text-muted); text-align:center; margin-top:1rem; }

/* FOOTER */
footer { background:#F0E8DC; padding:5rem 5rem 3rem; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:4rem; margin-bottom:4rem; }
.footer-logo-img { height:80px; width:auto; object-fit:contain; margin-bottom:1rem; display:block; }
.footer-brand p { font-family:'Cormorant Garamond',serif; font-size:1.05rem; color:rgba(26,20,16,0.6); line-height:1.8; font-style:italic; }
.footer-col h4 { font-size:0.65rem; letter-spacing:0.25em; text-transform:uppercase; color:var(--sand); font-weight:600; margin-bottom:1.5rem; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:0.8rem; }
.footer-col ul a { color:rgba(26,20,16,0.6); text-decoration:none; font-size:0.9rem; transition:color 0.2s; }
.footer-col ul a:hover { color:var(--sand); }
.footer-bottom { border-top:1px solid rgba(26,20,16,0.15); padding-top:2rem; display:flex; justify-content:space-between; align-items:center; }
.footer-bottom p { font-size:0.8rem; color:rgba(26,20,16,0.5); }
.footer-bottom a { color:var(--sand); text-decoration:none; }

/* UTILITY */
.reveal { opacity:0; transform:translateY(30px); transition:opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

@media (max-width:900px) {
  nav { padding:1.5rem 2rem; }
  nav.scrolled { padding:1rem 2rem; }
  .nav-links { display:none; }
  section { padding:5rem 2rem; }
  .intro-strip { padding:2rem; flex-wrap:wrap; gap:2rem; }
  .about-grid { grid-template-columns:1fr; gap:4rem; }
  .exp-grid { grid-template-columns:1fr; }
  .exp-card:first-child { grid-column:span 1; aspect-ratio:3/4; }
  .exp-card:nth-child(2) { grid-column:span 1; aspect-ratio:3/4; }
  .exp-card:last-child { grid-column:span 1; aspect-ratio:3/4; }
  .cities-grid { grid-template-columns:1fr 1fr; gap:1rem; }
  .cities-intro { flex-direction:column; gap:1rem; }
  .testi-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .form-row { grid-template-columns:1fr; }
  .itinerary-grid { grid-template-columns:1fr; }
  .itinerary-img { position:relative; top:0; }
  .exp-intro { flex-direction:column; gap:1rem; }
  .map-section > div { padding:0 2rem !important; }
}

/* -- MAP SECTION ------------------------------------ */
.map-section { background:var(--dusk-mid); padding:7rem 0 8rem; }
.mauritania-map-wrap {
  display:grid;
  grid-template-columns:minmax(320px,560px) minmax(360px,1fr);
  gap:5rem;
  align-items:center;
  justify-content:start;
}
.mauritania-map {
  width:100%;
  max-width:560px;
  justify-self:start;
}
#mauritania {
  fill:#d8b46a;
  stroke:#6b4f1d;
  stroke-width:3;
  transition:0.3s;
}
#mauritania:hover {
  fill:#cfa451;
}
.map-pin {
  cursor:pointer;
}
.pin-ring {
  fill:none;
  stroke:var(--terracotta);
  stroke-width:3;
  opacity:0;
  transition:opacity 0.25s, r 0.25s;
}
.map-point {
  fill:rgba(196,97,58,0.82);
  stroke:none;
  transition:fill 0.25s, r 0.25s;
}
.map-pin:hover .pin-ring,
.map-pin.active .pin-ring {
  opacity:1;
}
.map-pin:hover .map-point,
.map-pin.active .map-point {
  fill:var(--terracotta);
}
.map-card-list {
  width:100%;
  max-width:420px;
}
.map-card {
  display:none;
  width:100%;
  min-height:420px;
  background:rgba(245,237,216,0.56);
  border:1px solid rgba(200,169,110,0.28);
  border-radius:8px;
  padding:3rem;
  box-shadow:none;
}
.map-card.active {
  display:block;
  animation:mapCardIn 0.28s ease;
}
@keyframes mapCardIn {
  from { opacity:0; transform:translateY(8px); }
  to { opacity:1; transform:translateY(0); }
}
.map-card-eyebrow {
  color:var(--terracotta);
  font-size:0.68rem;
  font-weight:600;
  letter-spacing:0.32em;
  line-height:1.6;
  margin-bottom:1rem;
  text-transform:uppercase;
}
.map-card h3 {
  margin:0;
  color:var(--dusk);
  font-family:'Playfair Display',serif;
  font-size:clamp(2.1rem,3vw,3rem);
  font-weight:700;
  line-height:1.05;
}
.map-card-rule {
  width:42px;
  height:1px;
  background:rgba(200,169,110,0.5);
  margin:1.6rem 0 2rem;
}
.map-card p {
  margin:0;
  color:var(--text-muted);
  font-family:'Cormorant Garamond',serif;
  font-size:1.22rem;
  font-style:italic;
  line-height:1.95;
}
.map-tags {
  display:flex;
  flex-wrap:wrap;
  gap:0.55rem;
  margin:2rem 0 2.4rem;
}
.map-tag {
  border:1px solid rgba(200,169,110,0.36);
  color:var(--dusk);
  font-size:0.7rem;
  font-weight:700;
  letter-spacing:0.17em;
  padding:0.56rem 1rem;
  text-transform:uppercase;
}
.map-card-btn {
  width:100%;
  background:var(--sand);
  border:0;
  color:var(--dusk);
  cursor:pointer;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.22em;
  padding:1.1rem 1.4rem;
  text-transform:uppercase;
  transition:background 0.25s;
}
.map-card-btn:hover {
  background:var(--sand-light);
}
@media (max-width:900px) {
  .mauritania-map-wrap {
    grid-template-columns:1fr;
    gap:2.5rem;
  }
  .mauritania-map {
    justify-self:center;
  }
  .map-card-list {
    max-width:none;
  }
  .map-card {
    min-height:0;
    padding:2rem;
  }
}

/* ============================================================
   DESKTOP GUARD — ensure hamburger never appears above mobile
   ============================================================ */
@media (min-width: 769px) {
  .nav-hamburger { display: none !important; }
  .nav-links { display: flex !important; }
}

/* ============================================================
   MOBILE — max-width: 768px
   All fixes scoped here; desktop layout untouched.
   ============================================================ */
@media (max-width: 768px) {

  /* --- Prevent horizontal scroll / viewport overflow --- */
  html, body { overflow-x: hidden; max-width: 100%; }
  /* Contain absolute children that bleed outside the about image wrap */
  .about-img-wrap { overflow: hidden; }
  .about-tag { display: none; }
  .about-img-accent { display: none; }

  /* --- Hamburger button --- */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sand);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  /* Hamburger → X when menu is open */
  nav.menu-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  nav.menu-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }
  nav.menu-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* --- Mobile dropdown menu --- */
  /* Override the display:none set in the 900px breakpoint */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    /* Sits directly below the nav bar */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 237, 216, 0.98);
    backdrop-filter: blur(52px) saturate(200%) brightness(1.04);
    -webkit-backdrop-filter: blur(52px) saturate(200%) brightness(1.04);
    border-top: 1px solid rgba(200, 169, 110, 0.25);
    border-bottom: 1px solid rgba(200, 169, 110, 0.20);
    box-shadow: 0 8px 32px rgba(26, 20, 16, 0.10);
    /* Closed state */
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  nav.menu-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* Separator lines between items */
  .nav-links li {
    border-bottom: 1px solid rgba(200, 169, 110, 0.2);
  }
  .nav-links li:last-child { border-bottom: none; }
  /* Large tap targets with dark text on cream background */
  .nav-links a {
    display: flex;
    align-items: center;
    padding: 16px 1.75rem;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: var(--dusk) !important;
    text-decoration: none;
    width: 100%;
    transition: color 0.2s, background 0.2s;
  }
  .nav-links a:active { color: var(--terracotta) !important; }
  /* Book Now: gold/terracotta accent */
  .nav-links .nav-cta {
    background: transparent;
    color: var(--terracotta) !important;
    padding: 16px 1.75rem;
    border-top: 1px solid rgba(200, 169, 110, 0.25);
    font-weight: 600 !important;
  }
  .nav-links .nav-cta:hover { background: transparent !important; }

  /* --- Section common --- */
  section { padding: 4rem 1.5rem; }
  .section-title { font-size: 30px; text-align: left; }

  /* --- Stats: horizontal scroll row --- */
  .intro-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 1.5rem 0;
    gap: 0;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .intro-strip::-webkit-scrollbar { display: none; }
  .strip-stat {
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: 0.5rem 1.8rem;
    min-width: 130px;
    text-align: center;
  }
  .strip-stat .num { font-size: 2rem; }
  .strip-divider { flex-shrink: 0; height: 40px; }

  /* --- Experience cards: individual scroll reveal --- */
  .experiences { padding: 4rem 1.5rem; }
  .exp-intro { margin-bottom: 2rem; align-items: flex-start; }
  .exp-grid { gap: 1rem; }
  .exp-card,
  .exp-card:first-child,
  .exp-card:nth-child(2),
  .exp-card:last-child {
    grid-column: span 1 !important;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }
  /* Stronger gradient so text is readable against varied photo backgrounds */
  .exp-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  }
  .exp-book-btn  { opacity: 1 !important; transform: translateY(0) !important; }
  .exp-card-summary { opacity: 1 !important; transform: translateY(0) !important; }

  /* --- City cards: image on top, text block below --- */
  .cities { padding: 4rem 1.5rem; }
  .cities-intro { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 2.5rem; }
  .cities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
  }
  .city-card {
    border-radius: 12px 12px 0 0;
    aspect-ratio: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .city-card:hover { transform: none; }
  .city-card:hover .city-photo-bg { transform: none; }
  /* Photo occupies a fixed-height band at the top */
  .city-photo-bg {
    position: relative;
    inset: auto;
    height: 150px;
    flex-shrink: 0;
  }
  /* Gradient overlay not needed; card-body has its own background */
  .city-overlay { display: none; }
  /* Text block below the photo */
  .city-card-body {
    position: static;
    background: rgba(14, 9, 5, 0.94);
    padding: 0.85rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.25rem;
  }
  .arch-city-name { font-size: 0.88rem; margin-bottom: 0; }
  .arch-city-sub  { font-size: 0.5rem; }
  /* Description: always visible, full text, card grows to fit */
  .city-desc-hidden {
    opacity: 1 !important;
    transform: none !important;
    font-size: 0.72rem;
    line-height: 1.5;
    margin: 0.2rem 0;
    display: block;
    overflow: visible;
  }
  .city-book-btn {
    opacity: 1 !important;
    transform: none !important;
    font-size: 0.58rem;
    padding: 0.5rem 0.8rem;
    margin-top: auto;
    width: 100%;
    justify-content: center;
  }

  /* --- Map: card appears inline below map, pushes content down --- */
  .map-section { padding: 4rem 0 5rem; }
  .map-section > div { padding: 0 1.5rem !important; }

  /* Reset any fixed / drawer positioning from earlier iterations */
  .map-card-list {
    position: static;
    max-width: none;
    max-height: none;
    overflow: visible;
    transform: none;
    transition: none;
    pointer-events: auto;
    border-radius: 0;
    background: transparent;
    padding-top: 0;
    margin-top: 1.5rem;
  }
  .map-card-list::before { display: none; }
  .map-card-list.has-active { transform: none; }

  /* Individual card in dedicated space; position:relative for close btn */
  .map-card {
    min-height: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
  }
  /* Close button injected by JS */
  .map-card-close-btn {
    position: absolute;
    top: 0.6rem; right: 0.6rem;
    background: rgba(26,20,16,0.08);
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.3rem 0.55rem;
    border-radius: 4px;
    z-index: 1;
  }
  /* Backdrop no longer used */
  #mapMobileBackdrop { display: none !important; }

  /* --- Footer: 2-column, brand spans full width --- */
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { font-size: 0.9rem; max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
