:root{
  --primary:#2388E8;
  --primary-hover:#1475C9;
  --atlantic:#063B52;
  --teal:#2AA5A5;
  --sand:#E4C38E;
  --cream:#FAF7F2;
  --white:#FFFFFF;
  --text:#20313A;
  --muted:#68767B;
  --border:#E7E3DC;
  --shadow:0 18px 45px rgba(6,59,82,.12);
  --soft-shadow:0 10px 28px rgba(32,49,58,.09);
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:radial-gradient(circle at top left, rgba(228,195,142,.22), transparent 28%), var(--cream);
  line-height:1.6;
}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.page-shell{
  width:min(1280px, calc(100% - 32px));
  margin:20px auto 30px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(231,227,220,.9);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.navbar{
  height:80px;
  direction:ltr;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:0 46px;
  background:#FFFEFC;
  border-bottom:1px solid var(--border);
  position:relative;
  z-index:20;
}
.logo,.footer-logo{
  color:var(--primary);
  font-weight:800;
  font-size:26px;
  letter-spacing:-.5px;
}
.main-nav{
  direction:rtl;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:26px;
  flex:1;
}
.nav-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  font-weight:700;
  font-size:16px;
  padding:10px 10px;
  border-radius:12px;
  transition:.22s ease;
  white-space:nowrap;
}
.nav-link svg{width:20px;height:20px}
.nav-link:hover{color:var(--primary);background:#EEF7FF}
.nav-link.active{color:var(--primary)}
.nav-link.active::after{
  content:"";
  position:absolute;
  right:18px;
  left:18px;
  bottom:2px;
  height:3px;
  border-radius:999px;
  background:var(--primary);
}
.language-switch{
  direction:ltr;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:128px;
  height:46px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--white);
  color:var(--text);
  font-weight:800;
  box-shadow:0 8px 20px rgba(32,49,58,.04);
  cursor:pointer;
  transition:.22s ease;
}
.language-switch span{font-size:12px;letter-spacing:.6px}
.language-switch svg{width:18px;height:18px}
.language-switch:hover{background:#EEF7FF;border-color:#CFE8FF;color:var(--primary)}
.menu-toggle{display:none;background:transparent;border:0;width:42px;height:42px;cursor:pointer}
.menu-toggle span{display:block;width:24px;height:2px;background:var(--text);margin:5px auto;border-radius:99px}
.hero{
  position:relative;
  min-height:440px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--white);
  overflow:hidden;
  background-position:center;
  background-size:cover;
}
.hero-home{
  background-image:url("https://images.unsplash.com/photo-1502680390469-be75c86b636f?auto=format&fit=crop&w=1800&q=85");
}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(6,59,82,.54), rgba(6,59,82,.28), rgba(6,59,82,.54));
}
.hero-content{position:relative;z-index:1;padding:40px 22px;max-width:980px}
.hero h1{
  margin:0 0 12px;
  font-size:clamp(38px, 5.4vw, 66px);
  line-height:1.15;
  font-weight:800;
  text-shadow:0 6px 22px rgba(0,0,0,.34);
}
.hero p{font-size:clamp(18px, 2vw, 25px);margin:0 0 28px;font-weight:700;text-shadow:0 4px 16px rgba(0,0,0,.28)}
.hero-actions{display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap}
.btn,.card-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:56px;
  border-radius:999px;
  padding:0 34px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
  transition:.22s ease;
}
.btn-primary,.card-btn{background:var(--primary);color:var(--white);box-shadow:0 14px 30px rgba(35,136,232,.26)}
.btn-primary:hover,.card-btn:hover{background:var(--primary-hover);transform:translateY(-2px)}
.btn-light{background:var(--white);color:var(--text);box-shadow:0 12px 26px rgba(0,0,0,.10)}
.btn-light:hover{color:var(--primary);background:#F7FBFF;transform:translateY(-2px)}
.btn svg,.card-btn svg{width:20px;height:20px}
.section-pad{padding:28px 20px 20px}
.home-grid{
  display:grid;
  grid-template-columns:1fr 1fr 2.45fr;
  gap:22px;
  background:#FFFEFC;
}
.section-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:14px}
.section-title-row h2,.features-panel h2{margin:0;font-size:18px;font-weight:800;color:var(--atlantic)}
.section-title-row a{color:var(--primary);font-weight:800;font-size:14px}
.place-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--soft-shadow);
}
.card-image{
  position:relative;
  min-height:180px;
  background-size:cover;
  background-position:center;
}
.stay-image{background-image:url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=900&q=80")}
.activity-image{background-image:url("https://images.unsplash.com/photo-1455729552865-3658a5d39692?auto=format&fit=crop&w=900&q=80")}
.stay-two{background-image:url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80")}
.stay-three{background-image:url("https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=900&q=80")}
.activity-two{background-image:url("../assets/quad-timlaline-dunes.webp")}
.activity-three{background-image:url("../assets/relaxation-timlaline.webp")}
.heart-btn{
  position:absolute;top:14px;left:14px;
  width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(231,227,220,.88);
  display:grid;place-items:center;
  color:var(--text);
  font-size:24px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(0,0,0,.12);
  transition:.2s ease;
}
.heart-btn:hover,.heart-btn.is-active{color:#E84B60;transform:scale(1.05)}
.card-body{padding:18px 18px 20px}
.card-body h3{margin:0 0 5px;font-size:18px;font-weight:800;color:var(--text)}
.location{margin:0 0 14px;color:var(--muted);font-weight:600;font-size:14px}
.meta-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:13px;padding-top:12px;border-top:1px solid rgba(231,227,220,.8)}
.price-row{margin:18px 0;display:flex;align-items:baseline;gap:4px;color:var(--text)}
.price-row strong{font-size:20px;font-weight:800}
.price-row span{color:var(--muted);font-weight:700}
.card-btn{width:100%;min-height:48px;padding:0 20px;border-radius:14px}
.card-btn.teal{background:var(--teal);box-shadow:0 14px 30px rgba(42,165,165,.24)}
.card-btn.teal:hover{background:#218F8F}
.right-stack{display:flex;flex-direction:column;gap:20px;min-width:0}
.features-panel{
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--white);
  box-shadow:var(--soft-shadow);
  padding:18px 22px 20px;
}
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:22px;text-align:center}
.feature-icon{font-size:34px;line-height:1;display:block;margin-bottom:10px;font-weight:700}
.feature-icon.teal{color:var(--teal)}.feature-icon.sand{color:var(--sand)}.feature-icon.blue{color:var(--primary)}
.feature-item h3{margin:0 0 4px;font-size:15px;font-weight:800;color:var(--text)}
.feature-item p{margin:0;color:var(--muted);font-size:13px;font-weight:600}
.site-footer{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.45fr 1fr 1fr 1fr;
  gap:26px;
  background:linear-gradient(135deg, #063B52, #042B41 68%, #074E68);
  color:#D9EEF6;
  border-radius:14px;
  padding:30px 28px 46px;
  min-height:260px;
}
.site-footer::after{
  content:"";position:absolute;left:-42px;bottom:-48px;width:240px;height:130px;opacity:.12;
  background:repeating-radial-gradient(ellipse at center, transparent 0 15px, #2AA5A5 16px 22px, transparent 23px 37px);
}
.footer-logo{display:inline-block;margin-bottom:12px;color:var(--primary)}
.site-footer p{margin:0 0 12px;color:#C6DDE6;font-weight:500}
.footer-col h3{margin:0 0 14px;color:var(--primary);font-size:15px;font-weight:800}
.footer-col a{display:block;color:#D9EEF6;margin-bottom:9px;font-weight:600;transition:.2s ease}
.footer-col a:hover{color:var(--sand)}
.socials{display:flex;gap:13px;direction:ltr;justify-content:flex-end;margin-top:20px}
.socials a{font-weight:800;font-size:20px;color:var(--white)}
.footer-bottom{position:absolute;bottom:22px;right:28px;left:28px;border-top:1px solid rgba(255,255,255,.16);padding-top:14px;font-size:12px;color:#B4CED8}
.inner-page{background:#FFFEFC;min-height:620px}
.page-hero{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--white);overflow:hidden;background-size:cover;background-position:center;border-bottom:1px solid var(--border)}
.page-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,59,82,.74),rgba(6,59,82,.36))}
.page-hero>div{position:relative;z-index:1;padding:30px 20px;max-width:760px}
.small-hero{min-height:300px}
.stay-hero{background-image:url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=85")}
.activity-hero{background-image:url("https://images.unsplash.com/photo-1502680390469-be75c86b636f?auto=format&fit=crop&w=1600&q=85")}
.gallery-hero{background-image:url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=85")}
.blog-hero{background-image:url("https://images.unsplash.com/photo-1510414842594-a61c69b5ae57?auto=format&fit=crop&w=1600&q=85")}
.eyebrow{display:inline-block;margin-bottom:10px;color:var(--sand);font-weight:800;letter-spacing:.08em;font-size:13px;text-transform:uppercase}
.page-hero h1,.about-copy h1,.contact-info h1{font-size:clamp(34px,4.2vw,52px);line-height:1.15;margin:0 0 12px;font-weight:800}
.page-hero p,.section-header p,.about-copy p,.contact-info p{margin:0;color:inherit;font-size:18px;font-weight:600}
.section-header{max-width:700px;margin-bottom:22px}.section-header h2{margin:0 0 6px;color:var(--atlantic);font-size:30px}.section-header p{color:var(--muted)}
.listing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:220px;gap:16px}
.gallery-item{border-radius:16px;background-size:cover;background-position:center;box-shadow:var(--soft-shadow);border:1px solid var(--border)}
.g1{background-image:url("https://images.unsplash.com/photo-1502680390469-be75c86b636f?auto=format&fit=crop&w=900&q=80");grid-column:span 2;grid-row:span 2}.g2{background-image:url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=900&q=80")}.g3{background-image:url("https://images.unsplash.com/photo-1510414842594-a61c69b5ae57?auto=format&fit=crop&w=900&q=80")}.g4{background-image:url("https://images.unsplash.com/photo-1455729552865-3658a5d39692?auto=format&fit=crop&w=900&q=80")}.g5{background-image:url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80")}.g6{background-image:url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");grid-column:span 2}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.blog-card{background:var(--white);border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:var(--soft-shadow)}.blog-card>div:last-child{padding:20px}.blog-card span{color:var(--teal);font-weight:800;font-size:13px}.blog-card h2{margin:8px 0;font-size:22px}.blog-card p{color:var(--muted);margin:0 0 16px}.blog-card a{font-weight:800;color:var(--primary)}.blog-img{height:190px;background-size:cover;background-position:center}.b1{background-image:url("https://images.unsplash.com/photo-1510414842594-a61c69b5ae57?auto=format&fit=crop&w=900&q=80")}.b2{background-image:url("https://images.unsplash.com/photo-1455729552865-3658a5d39692?auto=format&fit=crop&w=900&q=80")}.b3{background-image:url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=900&q=80")}
.about-layout,.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;min-height:560px}.about-image{min-height:450px;border-radius:24px;background:url("https://images.unsplash.com/photo-1510414842594-a61c69b5ae57?auto=format&fit=crop&w=1000&q=85") center/cover;box-shadow:var(--shadow)}.about-copy,.contact-info{padding:20px}.about-copy p,.contact-info p{color:var(--muted);margin-bottom:14px}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:26px}.stats-row div,.contact-card{background:var(--white);border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:var(--soft-shadow)}.stats-row strong{display:block;font-size:28px;color:var(--primary);line-height:1}.stats-row span,.contact-card span{color:var(--muted);font-weight:700}.contact-info{align-self:start}.contact-card{margin-bottom:12px}.contact-card strong{display:block;color:var(--atlantic);margin-bottom:4px}.contact-form{background:var(--white);border:1px solid var(--border);border-radius:22px;padding:24px;box-shadow:var(--soft-shadow)}.contact-form label{display:block;font-weight:800;color:var(--text);margin-bottom:14px}.contact-form input,.contact-form select,.contact-form textarea{width:100%;margin-top:7px;border:1px solid var(--border);border-radius:14px;padding:13px 15px;background:#FFFEFC;color:var(--text);outline:none;transition:.2s ease}.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(35,136,232,.12)}.form-note{margin:12px 0 0;color:var(--teal);font-weight:800}
@media (max-width:1100px){
  .navbar{padding:0 22px}.main-nav{gap:10px}.nav-link{font-size:14px;padding-inline:7px}.home-grid{grid-template-columns:1fr 1fr}.right-stack{grid-column:1/-1}.listing-grid,.blog-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  .page-shell{width:100%;margin:0;border-radius:0;border:0}.navbar{height:74px;padding:0 16px}.logo{font-size:24px}.menu-toggle{display:block}.main-nav{position:absolute;top:74px;right:14px;left:14px;display:none;flex-direction:column;align-items:stretch;background:var(--white);border:1px solid var(--border);border-radius:16px;padding:12px;box-shadow:var(--shadow)}.main-nav.open{display:flex}.nav-link{justify-content:flex-start}.language-switch{min-width:auto;padding:0 12px;height:42px}.hero{min-height:520px}.hero h1{font-size:40px}.hero-actions{gap:12px}.btn{width:100%;max-width:300px}.home-grid,.listing-grid,.blog-grid,.about-layout,.contact-layout{grid-template-columns:1fr}.features-grid{grid-template-columns:repeat(2,1fr)}.site-footer{grid-template-columns:1fr}.gallery-grid{grid-template-columns:1fr;grid-auto-rows:240px}.g1,.g6{grid-column:span 1;grid-row:span 1}.section-pad{padding:24px 16px}.about-image{min-height:320px}.stats-row{grid-template-columns:1fr}.card-image{min-height:210px}
}
@media (max-width:420px){.hero h1{font-size:34px}.features-grid{grid-template-columns:1fr}.site-footer{padding-bottom:70px}.footer-bottom{bottom:18px}.socials{justify-content:flex-start}.small-hero{min-height:260px}.page-hero h1,.about-copy h1,.contact-info h1{font-size:34px}}


/* Multilingual refinements */
html[dir="ltr"] .main-nav{direction:ltr;}
html[dir="rtl"] .main-nav{direction:rtl;}
html[dir="ltr"] body{text-align:left;}
html[dir="rtl"] body{text-align:right;}
html[dir="ltr"] .hero, html[dir="ltr"] .page-hero{text-align:center;}
.language-switch{
  padding:0 12px 0 14px;
  overflow:hidden;
}
.language-switch select{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  outline:0;
  background:transparent;
  color:inherit;
  font-weight:800;
  cursor:pointer;
  padding:0 2px;
  min-width:76px;
}
.language-switch option{color:#20313A;background:#fff;}
html[dir="rtl"] .language-switch select{direction:rtl;}
html[dir="ltr"] .language-switch select{direction:ltr;}
html[dir="ltr"] .footer-bottom{right:28px;left:28px;}
html[dir="ltr"] .socials{justify-content:flex-start;}
html[dir="ltr"] .location span{display:inline-block;}
@media (max-width:760px){
  html[dir="ltr"] .main-nav{right:14px;left:14px;}
  .language-switch select{min-width:58px;}
}


/* V3 updates: tours home sections + light footer */
.mini-booking-panel{
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(135deg, #FFFFFF, #F7FBFF);
  box-shadow:var(--soft-shadow);
  padding:24px;
}
.mini-booking-panel h2{margin:0 0 8px;font-size:26px;line-height:1.2;color:var(--atlantic);font-weight:800}
.mini-booking-panel p{margin:0 0 18px;color:var(--muted);font-weight:600}
.story-section{
  display:grid;
  grid-template-columns:1.1fr 1.4fr;
  gap:24px;
  align-items:center;
  background:linear-gradient(135deg, #FFFEFC, #F5F8F7);
  border-top:1px solid rgba(231,227,220,.75);
}
.story-copy h2{margin:0 0 10px;color:var(--atlantic);font-size:clamp(28px,3.4vw,44px);line-height:1.18;font-weight:800}
.story-copy p{margin:0;color:var(--muted);font-size:18px;font-weight:600;max-width:680px}
.story-points{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.story-points div{background:var(--white);border:1px solid var(--border);border-radius:18px;padding:22px;box-shadow:var(--soft-shadow)}
.story-points strong{display:block;font-size:34px;line-height:1;color:var(--primary);margin-bottom:12px}
.story-points span{font-weight:800;color:var(--text)}
.featured-section{background:#FFFEFC;border-top:1px solid rgba(231,227,220,.75)}
.centered{text-align:center;margin-inline:auto;margin-bottom:24px}.centered p{margin-inline:auto;color:var(--muted)}
.cta-band{
  display:flex;align-items:center;justify-content:space-between;gap:22px;
  background:linear-gradient(135deg, #063B52, #0A5871);
  color:var(--white);
  margin:0 20px 22px;
  border-radius:22px;
  box-shadow:var(--shadow);
}
.cta-band h2{margin:0 0 8px;font-size:clamp(26px,3vw,40px);line-height:1.15;font-weight:800}
.cta-band p{margin:0;color:#CFE5EC;font-size:18px;font-weight:600}.cta-band .eyebrow{color:var(--sand)}
.full-footer{
  display:block;
  background:#EDEAE5;
  color:#7A6659;
  border-radius:0;
  padding:54px 36px 36px;
  min-height:auto;
  border-top:1px solid rgba(231,227,220,.9);
}
.full-footer::after{display:none}
.full-footer-main{display:grid;grid-template-columns:1.25fr 1fr 1.35fr;gap:70px;padding-bottom:46px;border-bottom:1px solid rgba(122,102,89,.10)}
.footer-tours-logo{font-size:30px;color:var(--primary);margin:0 0 22px;display:inline-block}.footer-brand-block p{max-width:360px;font-size:18px;line-height:1.55;color:#7A6659;margin:0;font-weight:500}
.footer-links-block h3,.footer-contact-block h3{margin:0 0 18px;color:#111820;font-size:22px;font-weight:800}.footer-links-block a{display:block;color:#7A6659;margin:0 0 10px;font-size:18px;font-weight:600;transition:.2s ease}.footer-links-block a:hover{color:var(--primary)}
.footer-contact-block p{display:flex;align-items:center;gap:18px;color:#7A6659;margin:0 0 12px;font-size:18px;font-weight:600}.footer-mini-icon{width:24px;display:inline-flex;justify-content:center;color:#847268;font-size:22px}.follow-title{margin-top:30px!important}.light-socials{justify-content:flex-start;margin-top:14px;gap:14px}.light-socials a{width:54px;height:54px;border-radius:16px;background:#FFFEFC;color:#847268;display:grid;place-items:center;font-size:26px;box-shadow:0 8px 20px rgba(32,49,58,.08);transition:.2s ease}.light-socials a:hover{color:var(--primary);transform:translateY(-2px)}
.full-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:30px;color:#7A6659;font-size:17px;font-weight:500}.full-footer-bottom div{display:flex;gap:32px}.full-footer-bottom a{color:#7A6659}.full-footer-bottom a:hover{color:var(--primary)}
html[dir="rtl"] .full-footer-main, html[dir="rtl"] .full-footer-bottom{text-align:right}html[dir="ltr"] .full-footer-main, html[dir="ltr"] .full-footer-bottom{text-align:left}
@media (max-width:900px){.story-section{grid-template-columns:1fr}.story-points{grid-template-columns:1fr}.cta-band{flex-direction:column;align-items:flex-start;margin-inline:16px}.full-footer-main{grid-template-columns:1fr;gap:32px}.full-footer-bottom{flex-direction:column;align-items:flex-start}.full-footer-bottom div{flex-wrap:wrap;gap:16px}.footer-brand-block p{max-width:none}}
@media (max-width:760px){.full-footer{padding:42px 22px 28px}.light-socials a{width:48px;height:48px}.featured-section .listing-grid{grid-template-columns:1fr}}

/* V5 language selector + mobile header refinements */
.language-dropdown{
  position:relative;
  direction:ltr;
  flex:0 0 auto;
}
.language-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-width:148px;
  height:48px;
  padding:0 16px;
  border:1px solid rgba(231,227,220,.95);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(32,49,58,.07);
  transition:background .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease,transform .22s ease;
}
.language-trigger:hover,
.language-dropdown.open .language-trigger{
  color:var(--primary);
  border-color:#CFE8FF;
  background:#F4FAFF;
  box-shadow:0 14px 34px rgba(35,136,232,.13);
}
.language-trigger:active{transform:translateY(1px)}
.language-code{
  font-size:12px;
  letter-spacing:.7px;
  color:inherit;
  opacity:.9;
}
.selected-language{font-size:16px;line-height:1;white-space:nowrap}
.language-trigger svg{width:18px;height:18px;transition:transform .22s ease}
.language-dropdown.open .language-trigger svg{transform:rotate(180deg)}
.language-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:190px;
  padding:8px;
  border:1px solid rgba(231,227,220,.95);
  border-radius:18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 20px 45px rgba(6,59,82,.18);
  display:none;
  z-index:80;
}
.language-dropdown.open .language-menu{display:block}
.language-menu button{
  width:100%;
  border:0;
  background:transparent;
  color:var(--text);
  text-align:left;
  padding:12px 14px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  transition:background .18s ease,color .18s ease;
}
.language-menu button:hover{background:#EEF7FF;color:var(--primary)}
.language-menu button.active{background:var(--primary);color:#fff}
.mobile-language-block{display:none}
html[dir="rtl"] .language-menu button{text-align:right;direction:rtl}
html[dir="rtl"] .language-menu{right:auto;left:0}

@media (max-width:760px){
  .navbar{height:76px;padding:0 28px 0 28px;gap:14px}
  .logo{font-size:30px;line-height:1}
  .desktop-language{display:none}
  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    margin-left:auto;
    width:54px;
    height:54px;
    border:1px solid var(--border);
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 24px rgba(32,49,58,.07);
  }
  .menu-toggle span{width:25px;height:2.5px;margin:3.5px auto;background:var(--text)}
  .main-nav{
    top:86px;
    right:18px;
    left:18px;
    padding:12px;
    border-radius:22px;
    background:rgba(255,255,255,.98);
    box-shadow:0 22px 55px rgba(6,59,82,.18);
    z-index:70;
  }
  .main-nav.open{display:flex}
  .nav-link{
    min-height:48px;
    justify-content:flex-start;
    padding:12px 14px;
    font-size:16px;
    border-radius:14px;
  }
  .nav-link.active::after{display:none}
  .nav-link.active{background:#EEF7FF;color:var(--primary)}
  .mobile-language-block{
    display:block;
    border-top:1px solid var(--border);
    margin-top:8px;
    padding-top:12px;
  }
  .mobile-language-title{
    display:block;
    color:var(--muted);
    font-size:13px;
    font-weight:800;
    margin:0 4px 10px;
    letter-spacing:.2px;
  }
  .mobile-language-pills{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
  }
  .mobile-language-pills button{
    border:1px solid var(--border);
    border-radius:999px;
    background:#FFFEFC;
    color:var(--text);
    min-height:42px;
    padding:8px 10px;
    font-weight:800;
    cursor:pointer;
  }
  .mobile-language-pills button.active{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
    box-shadow:0 10px 24px rgba(35,136,232,.2);
  }
  html[dir="ltr"] .main-nav, html[dir="rtl"] .main-nav{right:18px;left:18px;}
}

@media (max-width:420px){
  .navbar{padding:0 22px;height:74px}
  .logo{font-size:28px}
  .menu-toggle{width:50px;height:50px}
}


/* V6 emergency mobile language/header fix
   This block is intentionally last and uses !important to beat cached/older rules. */
@media (max-width: 900px){
  .navbar{
    height:74px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding:0 22px !important;
    position:sticky !important;
    top:0 !important;
    z-index:1000 !important;
  }

  .navbar > .language-dropdown,
  .navbar > .desktop-language,
  .navbar > .language-switch,
  .navbar select#languageSelect{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    width:0 !important;
    height:0 !important;
    overflow:hidden !important;
  }

  .logo{
    font-size:28px !important;
    flex:0 0 auto !important;
  }

  .menu-toggle{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-direction:column !important;
    margin-left:auto !important;
    margin-inline-start:auto !important;
    width:48px !important;
    height:48px !important;
    border:0 !important;
    border-radius:14px !important;
    background:transparent !important;
    box-shadow:none !important;
    cursor:pointer !important;
    z-index:1002 !important;
  }
  .menu-toggle span{
    display:block !important;
    width:28px !important;
    height:3px !important;
    margin:3.5px 0 !important;
    border-radius:999px !important;
    background:var(--text) !important;
  }

  .main-nav{
    position:absolute !important;
    top:74px !important;
    left:14px !important;
    right:14px !important;
    width:auto !important;
    display:none !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:8px !important;
    padding:14px !important;
    background:#fff !important;
    border:1px solid var(--border) !important;
    border-radius:20px !important;
    box-shadow:0 22px 55px rgba(6,59,82,.18) !important;
    z-index:1001 !important;
  }
  .main-nav.open{
    display:flex !important;
  }
  .main-nav:not(.open){
    display:none !important;
  }

  .nav-link{
    display:flex !important;
    min-height:48px !important;
    padding:12px 14px !important;
    justify-content:flex-start !important;
    border-radius:14px !important;
    font-size:16px !important;
    width:100% !important;
  }
  .nav-link.active{
    background:#EEF7FF !important;
    color:var(--primary) !important;
  }
  .nav-link.active::after{display:none !important;}

  .mobile-language-block{
    display:block !important;
    border-top:1px solid var(--border) !important;
    margin-top:10px !important;
    padding-top:12px !important;
  }
  .main-nav:not(.open) .mobile-language-block{
    display:none !important;
  }
  .mobile-language-title{
    display:block !important;
    color:var(--muted) !important;
    font-size:13px !important;
    font-weight:800 !important;
    margin:0 4px 10px !important;
  }
  .mobile-language-pills{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:8px !important;
  }
  .mobile-language-pills button{
    appearance:none !important;
    -webkit-appearance:none !important;
    border:1px solid var(--border) !important;
    border-radius:999px !important;
    background:#FFFEFC !important;
    color:var(--text) !important;
    min-height:42px !important;
    padding:8px 8px !important;
    font-size:14px !important;
    line-height:1 !important;
    font-weight:800 !important;
    cursor:pointer !important;
  }
  .mobile-language-pills button.active{
    background:var(--primary) !important;
    border-color:var(--primary) !important;
    color:#fff !important;
    box-shadow:0 10px 24px rgba(35,136,232,.20) !important;
  }
}

@media (min-width: 901px){
  .navbar > .language-dropdown,
  .navbar > .desktop-language{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:auto !important;
    height:auto !important;
  }
  .mobile-language-block{display:none !important;}
}

/* Optional owner avatar image replacement */
.avatar-ring{
  width:86px;
  height:86px;
  border-radius:999px;
  overflow:hidden;
  border:4px solid #fff;
  box-shadow:0 14px 35px rgba(6,59,82,.18);
  background:#EEF7FF;
}
.avatar-ring img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
