/*
Theme Name: Jose Zanzibar Guide
Theme URI: https://josezanzibarguide.com
Author: Jose Zanzibar Guide
Description: Bilingual German/English Zanzibar tours theme with direct booking request.
Version: 3.4.0
Text Domain: jose-zanzibar-guide
*/
:root{
  --ocean:#087f8c;--ocean2:#13a7b2;--deep:#062f3b;--sand:#f7f1e3;
  --gold:#d6a83a;--coral:#ef8354;--ink:#17323a;--muted:#667b80;--white:#fff
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;line-height:1.6}
a{text-decoration:none;color:inherit}
.wrap{max-width:1200px;margin:auto;padding:0 24px}
.topbar{background:var(--deep);color:#fff;font-size:14px}
.topbar .wrap{min-height:42px;display:flex;align-items:center;gap:24px;justify-content:space-between}
.top-left{display:flex;gap:22px;flex-wrap:wrap}
.lang-switch{display:flex;gap:7px;align-items:center}
.lang-btn{border:1px solid #ffffff55;background:#ffffff12;color:#fff;border-radius:6px;padding:5px 8px;cursor:pointer;font-size:17px;line-height:1}
.lang-btn.active{background:#fff;color:var(--deep)}
.site-header{position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 2px 12px #00000014}
.nav{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.brand{font-weight:900;color:var(--deep);font-size:23px;letter-spacing:.3px}
.brand small{display:block;color:#6b7d82;font-size:10px;letter-spacing:1.8px}
.menu{display:flex;gap:25px;align-items:center;font-weight:700;font-size:14px}
.btn{display:inline-block;background:var(--gold);color:#fff;padding:13px 21px;border-radius:7px;font-weight:800;border:0;cursor:pointer}
.btn.alt{background:var(--ocean)}
.hero{
 min-height:650px;display:flex;align-items:center;color:#fff;
 background:linear-gradient(90deg,#062f3bd6,#062f3b2b),
 url('https://images.unsplash.com/photo-1586861635167-e5223aadc9fe?auto=format&fit=crop&w=2200&q=82') center/cover;
}
.hero-copy{max-width:760px}
.eyebrow{font-size:13px;font-weight:800;letter-spacing:2px;color:#f2d16f}
.hero h1{font-size:64px;line-height:1.02;margin:12px 0 18px}
.hero p{font-size:21px;max-width:680px}
.hero-actions{display:flex;gap:14px;margin-top:30px;flex-wrap:wrap}
.hero-note{margin-top:24px;font-size:16px;font-weight:700}
.trust{margin-top:-46px;position:relative;z-index:3}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-radius:15px;box-shadow:0 14px 38px #0002;padding:26px}
.trust-item{padding:8px 22px;border-right:1px solid #e6eded}
.trust-item:last-child{border-right:0}
.trust-item b{display:block;color:var(--deep);margin-bottom:4px}
section{padding:86px 0}
.section-head{text-align:center;max-width:760px;margin:0 auto 42px}
.section-head h2{font-size:43px;line-height:1.1;margin:8px 0 12px}
.section-head p{color:var(--muted)}
.tour-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tour-card{border:1px solid #e3ebed;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 8px 28px #00000012;display:flex;flex-direction:column}
.tour-card img{width:100%;height:245px;object-fit:cover}
.tour-body{padding:21px;display:flex;flex-direction:column;flex:1}
.tour-body h3{font-size:21px;line-height:1.25;margin:0 0 10px}
.tour-meta{font-size:14px;color:var(--muted);margin-bottom:12px}
.tour-body p{margin:0 0 13px}
.pickup{background:#edf7f7;color:var(--deep);border-radius:7px;padding:9px 11px;font-size:13px;font-weight:700;margin:4px 0 15px}
.tour-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:10px}
.price{font-size:24px;font-weight:900;color:var(--deep)}
.details{color:var(--ocean);font-weight:800}
.alt-section{background:var(--sand)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}
.split img{width:100%;height:520px;object-fit:cover;border-radius:18px}
.checks{list-style:none;padding:0;margin:22px 0}
.checks li{margin:12px 0}
.checks li:before{content:"✓";color:var(--ocean);font-weight:900;margin-right:10px}
.booking{background:var(--deep);color:#fff}
.booking h2{font-size:43px;line-height:1.15}
.booking-form{background:#fff;color:var(--ink);padding:28px;border-radius:16px;box-shadow:0 12px 28px #0002}
.booking-form label{font-size:13px;font-weight:800}
.booking-form input,.booking-form select,.booking-form textarea{
 width:100%;padding:12px;border:1px solid #d7e0e2;border-radius:7px;margin:6px 0 13px;font:inherit
}
.booking-form button{width:100%}
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.contact-card{padding:30px;border:1px solid #e2eaec;border-radius:14px;background:#fff}
.contact-card strong{display:block;color:var(--ocean);margin-bottom:8px}
footer{background:#052a35;color:#dce7e8;padding:55px 0 28px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1.5fr;gap:42px}
footer .brand{color:#fff}
.footer-bottom{border-top:1px solid #ffffff20;margin-top:35px;padding-top:20px;font-size:13px}
.whatsapp{position:fixed;right:22px;bottom:22px;background:#25D366;color:#fff;padding:14px 18px;border-radius:28px;font-weight:900;z-index:60;box-shadow:0 8px 20px #0002}

/* Robust bilingual visibility */
[data-lang]{display:none!important}

/* Inline language elements: navigation, buttons and short labels */
body.lang-de span[data-lang="de"],
body.lang-en span[data-lang="en"]{
  display:inline!important;
}

/* Block language elements */
body.lang-de b[data-lang="de"],
body.lang-en b[data-lang="en"],
body.lang-de h1[data-lang="de"],
body.lang-en h1[data-lang="en"],
body.lang-de h2[data-lang="de"],
body.lang-en h2[data-lang="en"],
body.lang-de h3[data-lang="de"],
body.lang-en h3[data-lang="en"],
body.lang-de p[data-lang="de"],
body.lang-en p[data-lang="en"],
body.lang-de div[data-lang="de"],
body.lang-en div[data-lang="en"],
body.lang-de li[data-lang="de"],
body.lang-en li[data-lang="en"],
body.lang-de section[data-lang="de"],
body.lang-en section[data-lang="en"]{
  display:block!important;
}

/* Keep benefit descriptions visually separated from headings */
.trust-item b{margin-bottom:4px}
.trust-item > span[data-lang]{line-height:1.45}
@media(max-width:950px){.menu{display:none}.hero h1{font-size:46px}.tour-grid{grid-template-columns:1fr 1fr}.trust-grid{grid-template-columns:1fr 1fr}.split{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}}
@media(max-width:620px){.topbar .wrap{align-items:flex-start;padding-top:8px;padding-bottom:8px}.top-left{gap:8px}.hero h1{font-size:39px}.hero p{font-size:18px}.tour-grid,.trust-grid,.contact-grid{grid-template-columns:1fr}.trust-item{border-right:0;border-bottom:1px solid #e6eded}.tour-card img{height:220px}}


/* Tour links and galleries */
.tour-links{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.gallery-link{border:0;background:transparent;color:var(--ocean);font:inherit;font-weight:800;cursor:pointer;padding:0}
.gallery-link:hover,.details:hover{text-decoration:underline}
.gallery-modal{position:fixed;inset:0;background:#031b22d9;z-index:9999;display:none;align-items:center;justify-content:center;padding:24px}
.gallery-modal.open{display:flex}
.gallery-dialog{position:relative;background:#fff;color:var(--ink);width:min(1120px,96vw);max-height:90vh;overflow:auto;border-radius:18px;padding:28px;box-shadow:0 20px 70px #0008}
.gallery-dialog h3{margin:0 50px 22px 0;font-size:28px}
.gallery-close{position:absolute;right:18px;top:14px;border:0;background:#eef4f4;color:var(--deep);width:40px;height:40px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer}
.gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.gallery-grid a{display:block;border-radius:12px;overflow:hidden;background:#eef4f4}
.gallery-grid img{display:block;width:100%;height:320px;object-fit:cover}
body.gallery-open{overflow:hidden}

/* Social footer */
.social-block{margin-top:20px}
.social-links{display:flex;gap:10px;margin-top:10px}
.social-icon{width:42px;height:42px;border:1px solid #ffffff3a;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:.2s;background:#ffffff0d}
.social-icon:hover{transform:translateY(-2px);background:#ffffff18}
.social-icon svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:1.8}
.social-icon:first-child svg,.social-icon:nth-child(3) svg{fill:#fff;stroke:none}
.social-icon:nth-child(2) svg rect,.social-icon:nth-child(2) svg circle{fill:none;stroke:#fff;stroke-width:1.8}

@media(max-width:700px){
  .tour-bottom{align-items:flex-start}
  .tour-links{justify-content:flex-start}
  .gallery-grid{grid-template-columns:1fr}
  .gallery-grid img{height:auto;aspect-ratio:3/2}
  .gallery-dialog{padding:22px}
}


/* v3.1 header social media */
.topbar .wrap{min-height:64px;display:flex;align-items:center;gap:24px;justify-content:space-between}
.top-right{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.top-social{display:flex;gap:12px;align-items:center}
.social-icon{width:52px;height:52px;border:1px solid #ffffff40;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:.2s;background:#ffffff14}
.social-icon:hover{transform:translateY(-2px);background:#ffffff1f}
.social-icon svg{width:25px;height:25px;fill:none;stroke:#fff;stroke-width:1.8}
.social-icon:first-child svg,.social-icon:nth-child(3) svg{fill:#fff;stroke:none}
.social-icon:nth-child(2) svg rect,.social-icon:nth-child(2) svg circle{fill:none;stroke:#fff;stroke-width:1.8}
.lang-btn{padding:7px 10px;font-size:18px}

/* v3.1 carousel */
.tour-image-trigger{display:block;border:0;padding:0;background:transparent;cursor:pointer;text-align:left}
.tour-image-trigger img{display:block;width:100%;height:245px;object-fit:cover;transition:transform .25s ease}
.tour-image-trigger:hover img{transform:scale(1.03)}
.gallery-dialog{width:min(1220px,96vw);max-height:92vh;overflow:auto;padding:24px 24px 20px}
.gallery-carousel{display:grid;grid-template-columns:64px 1fr 64px;gap:14px;align-items:center}
.gallery-stage{background:#eef4f4;border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:64vh}
#jzg-gallery-main{display:block;width:100%;max-height:72vh;object-fit:contain;background:#eef4f4}
.gallery-nav{border:0;background:var(--deep);color:#fff;border-radius:50%;width:52px;height:52px;font-size:34px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;justify-self:center;box-shadow:0 8px 20px #0002}
.gallery-counter{text-align:center;font-weight:800;color:var(--muted);margin:14px 0 10px}
.gallery-thumbs{display:flex;gap:10px;overflow:auto;padding:4px 2px 2px}
.gallery-thumbs button{border:2px solid transparent;border-radius:12px;padding:0;background:transparent;cursor:pointer;overflow:hidden;flex:0 0 auto}
.gallery-thumbs button.active{border-color:var(--gold)}
.gallery-thumbs img{display:block;width:112px;height:76px;object-fit:cover}
.gallery-grid{display:none}

/* Footer no social block spacing cleanup */
.social-block{display:none}

@media(max-width:950px){.topbar .wrap{min-height:unset;align-items:flex-start;padding-top:10px;padding-bottom:10px}.top-right{width:100%;justify-content:space-between}.top-social{order:1}.lang-switch{order:2;margin-left:auto}}
@media(max-width:700px){.gallery-carousel{grid-template-columns:44px 1fr 44px;gap:8px}.gallery-nav{width:40px;height:40px;font-size:28px}.gallery-stage{min-height:42vh}.gallery-thumbs img{width:88px;height:62px}.top-left{gap:8px}.social-icon{width:46px;height:46px}.social-icon svg{width:22px;height:22px}}
@media(max-width:620px){.top-right{gap:10px}.top-social{gap:8px}.tour-image-trigger img{height:220px}}


/* v3.2 header reviews + responsive mobile repair */
:root{--header-gold:#f2bd3f}
html,body{max-width:100%;overflow-x:hidden}
.top-social{flex-wrap:nowrap}
.top-social .social-icon{color:var(--header-gold);border-color:color-mix(in srgb,var(--header-gold) 55%,transparent);background:transparent}
.top-social .social-icon svg{stroke:currentColor!important;fill:none!important}
.top-social .social-icon:first-child svg path,
.top-social .social-icon:nth-child(3) svg path{fill:currentColor!important;stroke:none!important}
.top-social .social-icon:hover{background:#f2bd3f18;border-color:var(--header-gold)}
.top-left a,.top-left span{min-width:0}

@media(max-width:950px){
  .topbar .wrap{display:grid;grid-template-columns:1fr;gap:12px;padding-top:12px;padding-bottom:12px}
  .top-left{display:grid;grid-template-columns:1fr;gap:5px;width:100%;min-width:0}
  .top-left a,.top-left span{overflow-wrap:anywhere;word-break:normal}
  .top-right{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
  .top-social{order:1;width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
  .social-icon{justify-self:start}
  .lang-switch{order:2;margin-left:0}
}
@media(max-width:620px){
  .wrap{padding-left:16px;padding-right:16px}
  .topbar{font-size:14px}
  .topbar .wrap{padding-top:10px;padding-bottom:10px}
  .top-social{gap:6px}
  .social-icon{width:42px;height:42px}
  .social-icon svg{width:21px;height:21px}
  .lang-btn{font-size:17px;padding:6px 9px}
  .nav{min-height:72px}
  .brand{font-size:clamp(18px,6.2vw,23px);line-height:1.1;min-width:0}
  .brand small{font-size:9px;letter-spacing:1.25px;margin-top:5px}
  .hero{min-height:570px;background-position:center}
  .hero h1{font-size:clamp(38px,12vw,50px);overflow-wrap:normal}
  .hero p{font-size:18px}
  .whatsapp{right:14px;bottom:14px}
}
@media(max-width:360px){
  .social-icon{width:38px;height:38px}
  .social-icon svg{width:19px;height:19px}
  .top-social{gap:4px}
}


/* SEO v3.4: dedicated tour landing pages */
.tour-detail-hero{padding:70px 0;background:linear-gradient(180deg,#f7fbfb,#fff)}
.tour-detail-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:54px;align-items:center}
.breadcrumbs{display:flex;gap:9px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-bottom:18px}
.breadcrumbs a{color:var(--ocean);font-weight:700}
.tour-detail-copy h1{font-size:48px;line-height:1.08;margin:12px 0 20px;color:var(--deep)}
.tour-lead{font-size:19px;color:#425f66}
.tour-detail-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:26px 0}
.tour-detail-meta>div{border:1px solid #dfe9eb;border-radius:12px;padding:15px;background:#fff}
.tour-detail-meta strong{display:block;font-size:22px;color:var(--deep)}
.tour-detail-meta span{font-size:12px;color:var(--muted)}
.tour-detail-image{position:relative}
.tour-detail-image .tour-image-trigger{display:block;border:0;padding:0;background:none;width:100%;cursor:pointer}
.tour-detail-image img{display:block;width:100%;height:480px;object-fit:cover;border-radius:18px;box-shadow:0 18px 42px #0002}
.gallery-cta{position:absolute;right:16px;bottom:16px;background:#fff;border:0;border-radius:8px;padding:10px 14px;font-weight:800;color:var(--deep);cursor:pointer;box-shadow:0 5px 18px #0003}
.tour-detail-content h2,.tour-seo-card h2{font-size:34px;line-height:1.15;color:var(--deep)}
.tour-seo-card{border:1px solid #e0e9eb;background:#fff;border-radius:16px;padding:28px;box-shadow:0 10px 28px #00000010}
.tour-seo-card dl{margin:0}
.tour-seo-card dl div{padding:13px 0;border-bottom:1px solid #e7eeee}
.tour-seo-card dl div:last-child{border-bottom:0}
.tour-seo-card dt{font-size:12px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);font-weight:800}
.tour-seo-card dd{margin:2px 0 0;font-weight:700;color:var(--deep)}
.tour-gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.tour-gallery-grid button{border:0;padding:0;background:none;cursor:pointer}
.tour-gallery-grid img{width:100%;height:230px;object-fit:cover;border-radius:12px;display:block}
.related-tours{background:#fff}
.request-link{font-size:12px;margin-left:10px;color:var(--muted)}

@media(max-width:850px){
  .tour-detail-hero{padding:36px 0 50px}
  .tour-detail-grid{grid-template-columns:1fr;gap:28px}
  .tour-detail-copy h1{font-size:36px}
  .tour-detail-meta{grid-template-columns:1fr}
  .tour-detail-image img{height:330px}
  .tour-gallery-grid{grid-template-columns:repeat(2,1fr)}
  .tour-gallery-grid img{height:180px}
}
@media(max-width:520px){
  .tour-detail-copy h1{font-size:32px}
  .tour-lead{font-size:17px}
  .tour-detail-image img{height:270px;border-radius:12px}
  .tour-gallery-grid{grid-template-columns:1fr 1fr;gap:8px}
  .tour-gallery-grid img{height:130px}
}
