/* ==================================================
   @ The Bacalar Project — web app design system
   Brand colors + logo kept, structure is web-native:
   filter chips, accordion, lightbox, quick-select.
   ================================================== */
:root{
  --cream: #FBF7F0;
  --cream-deep: #F0E9DA;
  --gold: #AD8A54;
  --gold-dark: #8B6A3D;
  --gold-light: #E8D9BE;
  --ink: #24211A;
  --ink-soft: #5B5240;
  --teal: #4F9BA1;
  --white: #fff;
  --border: rgba(139,106,61,0.18);
  --shadow-sm: 0 6px 18px -10px rgba(36,33,26,.25);
  --shadow-lg: 0 24px 50px -20px rgba(36,33,26,.35);
  --r: 10px;
  --sans: 'Poppins', sans-serif;
  --display: 'Fraunces', serif;
  --maxw: 1180px;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:var(--sans); font-size:15.5px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--display); font-weight:600; color:var(--ink); }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:var(--sans); cursor:pointer; }

.eyebrow{
  font-weight:700; font-size:11.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold-dark); margin:0 0 8px;
}
.lede{ color:var(--ink-soft); font-size:1rem; max-width:52ch; margin-top:14px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:600; font-size:14px; padding:13px 24px; border-radius:7px;
  border:none; transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-gold{ background:var(--gold-dark); color:var(--white); }
.btn-gold:hover{ background:var(--gold); transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.btn-sm{ padding:9px 18px; font-size:13px; border-radius:6px; }

/* ============ TOP BAR ============ */
.topbar{
  background:var(--ink); color:var(--gold-light);
  font-size:12.5px; padding:8px 28px;
  display:flex; justify-content:space-between; align-items:center;
}
.topbar strong{ color:var(--white); font-weight:600; }
.topbar a{ color:var(--gold-light); }
.topbar a:hover{ color:var(--white); }
.topbar-right{ display:flex; align-items:center; gap:18px; }
.lang-switch{
  display:flex; align-items:center; border:1px solid rgba(232,217,190,.35); border-radius:6px; overflow:hidden;
}
.lang-btn{
  background:none; border:none; color:var(--gold-light); font-family:var(--sans);
  font-size:11.5px; font-weight:700; letter-spacing:.04em; padding:5px 10px;
  transition:background .2s ease, color .2s ease;
}
.lang-btn.active{ background:var(--gold-light); color:var(--ink); }
.lang-btn:not(.active):hover{ background:rgba(232,217,190,.15); }

/* ============ NAV ============ */
.nav{
  position:sticky; top:0; z-index:100;
  background:rgba(251,247,240,.9); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width:var(--maxw); margin:0 auto; padding:14px 28px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav-brand{ display:flex; align-items:center; gap:10px; }
.nav-brand img{ width:38px; height:38px; object-fit:contain; }
.nav-brand span{ font-family:var(--display); font-weight:600; font-size:1.02rem; }
.nav-links{ display:flex; align-items:center; gap:28px; }
.nav-links a{ margin-right:2px; }
.nav-links a{
  font-size:13.5px; font-weight:500; color:var(--ink-soft);
  position:relative; padding:4px 0;
}
.nav-links a:hover{ color:var(--ink); }
.nav-links a.active{ color:var(--gold-dark); font-weight:600; }
.nav-links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-3px; height:2px; background:var(--gold);
}
.nav-actions{ display:flex; align-items:center; gap:14px; }
.nav-burger{ display:none; background:none; border:0; padding:6px; }
.nav-burger span{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; }

/* ============ HERO ============ */
.hero{
  position:relative; min-height:640px; height:88vh;
  display:flex; align-items:center;
  overflow:hidden; padding:0 28px;
}
.hero-img{
  position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%; object-fit:cover;
}
.hero-scrim{
  position:absolute; top:0; left:0; right:0; bottom:0;
  background:linear-gradient(100deg, rgba(18,20,15,.72) 0%, rgba(18,20,15,.42) 48%, rgba(18,20,15,.15) 75%);
}
.hero-content{ position:relative; z-index:2; max-width:640px; margin:0 auto 0 0; padding-left:calc((100% - var(--maxw))/2 + 28px); }
.hero-title{
  color:var(--white); font-size:clamp(2.1rem,4.6vw,3.4rem); line-height:1.08;
  margin-bottom:20px; text-shadow:0 2px 20px rgba(0,0,0,.2);
}
.hero-sub{ color:#EDE7D6; font-size:1.05rem; max-width:42ch; }

.booking-card{
  position:absolute; z-index:3; right:0; bottom:0;
  transform:translateY(50%);
  left:28px;
  max-width:420px;
  background:var(--white); border-radius:var(--r); box-shadow:var(--shadow-lg);
  padding:26px 26px 22px;
}
.booking-label{ font-weight:700; font-size:13px; color:var(--ink); margin-bottom:12px; }
.booking-row{ display:flex; gap:10px; }
.booking-select{
  flex:1; min-width:0; padding:12px 14px; border-radius:7px;
  border:1px solid var(--border); background:var(--cream);
  font-family:var(--sans); font-size:13.5px; color:var(--ink);
}
.booking-meta{
  display:flex; gap:18px; margin-top:16px; padding-top:16px;
  border-top:1px solid var(--border);
  font-size:12px; color:var(--ink-soft);
}
.booking-meta strong{ color:var(--gold-dark); font-family:var(--display); font-size:15px; display:block; }

/* ============ TRUST STRIP ============ */
.trust{
  max-width:var(--maxw); margin:0 auto;
  padding:90px 28px 50px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
  text-align:center;
}
.trust-item{
  display:flex; flex-direction:column; gap:6px;
  padding:20px 12px; border-right:1px solid var(--border);
}
.trust-item:last-child{ border-right:none; }
.trust-num{ font-family:var(--display); font-weight:600; font-size:1.5rem; color:var(--gold-dark); }
.trust-item span:last-child{ font-size:12.5px; color:var(--ink-soft); font-weight:500; }

/* ============ SECTION shell ============ */
.section{ max-width:var(--maxw); margin:0 auto; padding:70px 28px; }
.section-head{ max-width:600px; margin-bottom:40px; }
.section-head h2{ font-size:clamp(1.7rem,3vw,2.3rem); }

/* ============ FILTER CHIPS ============ */
.filter-bar{ display:flex; gap:10px; margin-bottom:36px; flex-wrap:wrap; }
.filter-chip{
  background:var(--white); border:1px solid var(--border); color:var(--ink-soft);
  padding:9px 18px; border-radius:999px; font-size:13px; font-weight:600;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-chip:hover{ border-color:var(--gold); }
.filter-chip.active{ background:var(--ink); color:var(--white); border-color:var(--ink); }

/* ============ TOUR GRID ============ */
.tour-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:26px;
}
.tour-card{
  background:var(--white); border-radius:var(--r); overflow:hidden;
  border:1px solid var(--border); box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column;
  transition:opacity .25s ease, transform .25s ease;
}
.tour-card.hide{ display:none; }
.tour-card.featured{ border-color:var(--gold); grid-column:span 1; }
.tour-img{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.tour-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.tour-card:hover .tour-img img{ transform:scale(1.06); }
.tour-img.placeholder{
  background:linear-gradient(135deg, var(--gold-light), var(--cream-deep));
  display:flex; align-items:center; justify-content:center;
}
.tour-img.placeholder span{ font-size:12px; color:var(--gold-dark); font-weight:600; text-align:center; padding:0 20px; }
.ribbon{
  position:absolute; top:14px; right:14px; background:var(--gold-dark); color:var(--white);
  font-size:11px; font-weight:700; padding:5px 12px; border-radius:999px; letter-spacing:.03em;
}
.tour-info{ padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.tour-top{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin-bottom:6px; }
.tour-top h3{ font-size:1.15rem; line-height:1.25; }
.tour-price{ font-family:var(--display); font-weight:600; color:var(--gold-dark); font-size:1.15rem; white-space:nowrap; }
.tour-price small{ display:block; font-family:var(--sans); font-weight:500; font-size:10px; color:var(--ink-soft); text-align:right; }
.tour-tag{ font-size:12px; color:var(--ink-soft); font-weight:500; margin-bottom:12px; }
.tour-desc{ font-size:13.5px; color:var(--ink-soft); margin-bottom:14px; }
.tour-tags{ margin-bottom:16px; }
.tour-tags li{
  position:relative; padding-left:16px; font-size:12.5px; color:var(--ink); margin-bottom:5px;
}
.tour-tags li::before{ content:'·'; position:absolute; left:0; color:var(--gold); font-weight:700; }
.tour-actions{ display:flex; align-items:center; justify-content:space-between; margin-top:auto; gap:10px; }
.link-toggle{
  background:none; border:none; color:var(--gold-dark); font-size:12.5px; font-weight:600; padding:0;
}
.link-toggle:hover{ text-decoration:underline; }
.tour-extra{
  max-height:0; overflow:hidden; transition:max-height .3s ease, margin-top .3s ease;
}
.tour-extra p{ font-size:12px; color:var(--ink-soft); font-style:italic; padding-top:12px; border-top:1px solid var(--border); }
.tour-card.expanded .tour-extra{ max-height:120px; margin-top:14px; }

/* ============ MARINA ============ */
.marina-section{ background:var(--cream-deep); max-width:none; padding:80px 28px; }
.marina-grid{ max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.marina-text h2{ font-size:clamp(1.7rem,3vw,2.3rem); margin:0 0 6px; }
.pill-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.pill-row span{
  background:var(--white); border:1px solid var(--border); border-radius:999px;
  padding:8px 16px; font-size:12.5px; font-weight:600; color:var(--ink);
}
.marina-imgs{ position:relative; }
.marina-imgs img{ border-radius:var(--r); box-shadow:var(--shadow-lg); }
.mi-a{ width:78%; }
.mi-b{ width:52%; position:absolute; right:-6%; bottom:-12%; border:5px solid var(--cream-deep); }

/* ============ GALLERY ============ */
.gallery-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}
.gallery-grid img{
  width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:8px; cursor:pointer;
  transition:transform .3s ease, box-shadow .3s ease;
}
.gallery-grid img:hover{ transform:translateY(-4px); box-shadow:var(--shadow-sm); }

/* ============ LOCATION ============ */
.location-section{ background:var(--cream-deep); max-width:none; padding:80px 28px; }
.loc-grid{ max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.loc-card{ background:var(--white); border-radius:var(--r); padding:34px; border:1px solid var(--border); }
.loc-card h2{ font-size:1.5rem; margin-bottom:4px; }
.loc-map{ margin-top:22px; border-radius:8px; border:1px solid var(--border); }
.loc-card .btn{ margin-top:20px; }

/* ============ FAQ ACCORDION ============ */
.accordion{ max-width:760px; }
.acc-item{ border-bottom:1px solid var(--border); }
.acc-head{
  width:100%; display:flex; justify-content:space-between; align-items:center;
  background:none; border:none; padding:20px 4px; text-align:left;
  font-size:15px; font-weight:600; color:var(--ink);
}
.acc-head i{ font-style:normal; font-size:18px; color:var(--gold-dark); transition:transform .25s ease; }
.acc-item.open .acc-head i{ transform:rotate(45deg); }
.acc-body{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.acc-item.open .acc-body{ max-height:200px; }
.acc-body p{ padding:0 4px 22px; color:var(--ink-soft); font-size:14px; max-width:60ch; }

/* ============ FOOTER ============ */
.footer{ background:var(--ink); color:var(--cream-deep); padding:70px 28px 30px; }
.footer-top{
  max-width:var(--maxw); margin:0 auto 40px;
  display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:50px;
}
.footer-brand img{ width:56px; height:56px; object-fit:contain; margin-bottom:14px; }
.footer-brand p{ font-size:13px; color:#A79E86; line-height:1.6; }
.footer-col h4{ font-family:var(--sans); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-light); margin-bottom:16px; }
.footer-col a{ display:block; font-size:13.5px; color:#D8D1BC; margin-bottom:10px; }
.footer-col a:hover{ color:var(--white); }
.qr-row{ display:flex; gap:20px; }
.qr-card{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.qr-box{ width:78px; height:78px; background:#fff; padding:5px; border-radius:4px; }
.qr-box img{ width:100%; height:100%; }
.qr-card span{ font-size:10.5px; color:#A79E86; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
.footer-copy{
  max-width:var(--maxw); margin:0 auto; padding-top:26px; border-top:1px solid rgba(255,255,255,.08);
  font-size:11.5px; color:#7A7259;
}

/* ============ FLOATING WHATSAPP ============ */
.float-wa{
  position:fixed; right:22px; bottom:22px; z-index:90;
  width:54px; height:54px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px -8px rgba(0,0,0,.4);
  transition:transform .2s ease;
}
.float-wa:hover{ transform:scale(1.08); }
.float-wa svg{ width:26px; height:26px; }

/* ============ LIGHTBOX ============ */
.lightbox{
  position:fixed; inset:0; z-index:200; background:rgba(18,17,13,.94);
  display:none; align-items:center; justify-content:center; padding:40px;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width:90vw; max-height:88vh; border-radius:6px; }
.lb-close{
  position:absolute; top:24px; right:28px; background:none; border:none;
  color:#fff; font-size:34px; line-height:1; cursor:pointer;
}

/* ============ RESPONSIVE ============ */
@media (max-width:980px){
  .tour-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  .trust{ grid-template-columns:repeat(2,1fr); }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:span 2; }
}
@media (max-width:860px){
  .topbar span:first-child{ display:none; }
  .nav-links{
    position:fixed; top:0; right:0; height:100vh; width:min(78vw,320px);
    background:var(--cream); flex-direction:column; align-items:flex-start;
    padding:100px 32px 40px; gap:22px;
    transform:translateX(100%); transition:transform .3s ease;
    box-shadow:-10px 0 30px rgba(0,0,0,.15); z-index:101;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ font-size:15px; }
  .nav-burger{ display:block; }
  .nav-actions .btn{ display:none; }

  .hero{ height:auto; padding:120px 20px 240px; }
  .hero-content{ padding-left:0; max-width:none; }
  .booking-card{ left:20px; right:20px; max-width:none; transform:translateY(60%); }

  .marina-grid, .loc-grid{ grid-template-columns:1fr; gap:34px; }
  .mi-b{ right:0; bottom:-8%; width:56%; }

  .tour-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .section{ padding:60px 20px; }
  .marina-section, .location-section{ padding:60px 20px; }
}
@media (max-width:520px){
  .trust{ grid-template-columns:1fr 1fr; padding-top:110px; }
  .trust-item{ border-right:none; border-bottom:1px solid var(--border); }
  .footer-top{ grid-template-columns:1fr; }
  .footer-brand{ grid-column:auto; }
  .booking-row{ flex-direction:column; }
}
