:root{
  --gold:#C9A227;
  --black:#0B0B0B;
  --white:#0F0F10;
  --gray:#141416;
  --text:#EDEDED;
  --muted:#B8B8B8;
  --card:#1A1B1E;
  --cardBorder:#27282C;
}

/* Reset & base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0;font-family:'Poppins',system-ui,-apple-system,Arial,sans-serif;color:var(--text);background:var(--white)}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1120px,92%);margin:0 auto}
.hidden{display:none !important}
.muted{color:var(--muted)}
.small{font-size:12px}
input,select,textarea{color:var(--text); background:var(--card)}

/* Header / nav */
.site-header{position:sticky;top:0;z-index:20;background:#0D0D0D;border-bottom:1px solid rgba(255,255,255,.06)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.brand{display:flex;align-items:center;gap:12px;font-weight:700}
.logo{width:38px;height:38px}
.brand-text{letter-spacing:.4px;color:#fff}
.nav a{margin-left:18px;font-weight:500;color:#E0E0E0}
.nav a.btn{margin-left:24px}
.lang-switch select{background:var(--card); color:var(--text); border:1px solid var(--cardBorder); border-radius:10px; padding:8px 10px; margin-left:12px}
[dir="rtl"] .header-inner{flex-direction:row-reverse}
[dir="rtl"] .nav a{margin-left:0;margin-right:18px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--black);padding:10px 16px;border-radius:12px;font-weight:600;transition:transform .06s ease, box-shadow .12s ease;text-decoration:none;cursor:pointer}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.08)}
.btn-lg{padding:14px 20px}
.btn-gold{background:var(--gold);border-color:var(--gold);color:#111;filter:saturate(105%)}
.btn-outline{background:transparent;color:#EDEDED;border-color:#EDEDED}

/* Hero */
.hero{background:linear-gradient(160deg,#0E0F12 0%, #111215 40%, #17181C 100%); color:var(--text)}
.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;padding:44px 0;align-items:center}
.hero-title{font-size:clamp(28px,4vw,44px);margin:0 0 12px}
.hero-copy p{line-height:1.7;color:#B8B8B8}
.cta-row{display:flex;gap:12px;margin:18px 0;flex-wrap:wrap}
.badges{display:flex;gap:10px;flex-wrap:wrap}
.badge{background:var(--gold);color:#111;border-radius:999px;padding:6px 12px;font-size:12px}

/* 3D logo (Hover only on non-touch) */
.logo-3d{perspective:800px;display:flex;align-items:center;justify-content:center}
.logo-3d img{width:min(300px,70%);border-radius:20px;border:1px solid var(--cardBorder);box-shadow:0 30px 60px rgba(0,0,0,.10);transform:rotateX(8deg) rotateY(-10deg);transition:transform .25s ease}
@media (hover:hover){
  .logo-3d img:hover{transform:rotateX(0deg) rotateY(0deg) translateY(-4px)}
}

/* Sections / lists */
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin:10px 0 6px}
.link{text-decoration:underline;color:#B8B8B8}

/* Cards grid */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.card{
  background:var(--card);
  border:1px solid var(--cardBorder);
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 18px rgba(17,17,17,.04);
  transform-style:preserve-3d;
  transition:transform .15s ease, box-shadow .2s ease;
  overflow:hidden; /* مهم للموبايل */
}
@media (hover:hover){
  .card:hover{transform:translateY(-4px) rotateX(1deg) rotateY(-1deg);box-shadow:0 18px 28px rgba(17,17,17,.08)}
}
.card .price{font-weight:700;color:#111}
.card .muted{color:var(--muted);font-size:14px}

/* نصوص داخل الكارت – منع الخروج والتداخل */
.card .row > *, .cards > *, .card h3, .card .muted, .card .desc{min-width:0;max-width:100%}
.card h3, .card .muted, .card .desc{overflow-wrap:anywhere;word-break:break-word;hyphens:auto}

/* عنوان الكارت – قص لسطرين */
.card h3{
  margin:12px 0 6px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* وصف الكارت – قص لثلاث سطور */
.card .desc{
  margin-top:8px;
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* صف الأزرار داخل الكارت */
.card .row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
.card .row .btn{flex:1 1 auto}

/* Pages */
.page-hero{background:#121316;padding:20px 0;border-bottom:1px solid var(--cardBorder)}
.page-hero h1{margin:0 0 8px}

/* Filters */
.filters-inner{display:flex;gap:12px;padding:14px 0;flex-wrap:wrap}
.filters-inner input,.filters-inner select{padding:12px;border-radius:12px;border:1px solid var(--cardBorder);width:100%;max-width:540px}

/* Footer */
.site-footer{border-top:1px solid var(--cardBorder);margin-top:32px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;padding:24px 0}

/* Detail page layout */
.tour-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
.gallery img{border-radius:18px;border:1px solid var(--cardBorder)}
.sidebar{position:sticky;top:84px;height:fit-content}
.sidebar .price{font-size:22px;margin:10px 0;color:#CCCCCC}
.sidebar .meta{display:flex;gap:8px;flex-wrap:wrap;color:#9A9A9A;font-size:14px}
.includes h4{margin-bottom:8px}
.includes ul{margin-top:0}

/* Booking form */
#bookingForm{background:var(--card);border:1px solid var(--cardBorder);border-radius:16px;padding:16px;margin-top:14px;margin-bottom:18px}
#bookingForm label{display:block;margin:10px 0}
#bookingForm input,#bookingForm select,#bookingForm textarea{
  width:100%;padding:14px 12px;border:1px solid var(--cardBorder);border-radius:12px;
  font-size:16px;outline:none;transition:border-color .15s ease, box-shadow .15s ease;background:#0f1012
}
#bookingForm input:focus,#bookingForm select:focus,#bookingForm textarea:focus{
  border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,39,.18)
}
#bookingForm select{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23B8B8B8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;padding-right:36px
}
.row-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.switch{display:flex;align-items:center;gap:10px}

/* Estimated total */
#bookingForm input[readonly], #bookingForm input:disabled{
  background-color:#1A1B1E !important;color:#FFFFFF !important;font-weight:700;opacity:1 !important;
  -webkit-text-fill-color:#FFFFFF;border:1px solid #2d2f35
}
#bookingForm input::placeholder{color:#9aa0a6}
.total-line{
  display:flex;align-items:center;justify-content:space-between;margin:12px 0 4px;padding:10px;
  border:1px dashed #ddd;border-radius:12px;background:#101114 !important;color:#FFFFFF !important;
  border-color:#C9A227 !important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)
}

/* زر واتساب – كامل العرض وبنفس المقاس */
#bookingForm #bk_send_whatsapp{
  display:block;
  width:100%;
  padding:16px 20px;
  font-size:18px;
  font-weight:800;
  line-height:1.2;
  border-radius:14px;
  text-align:center;
  white-space:nowrap;
  min-height:54px;
}
@media(max-width:480px){
  #bookingForm #bk_send_whatsapp{
    padding:18px 22px;
    font-size:19px;
    min-height:56px;
  }
}

/* Overview text */
#tourOverview{font-size:16px;line-height:1.75;margin:12px 0 16px;color:var(--text);white-space:pre-line}
.includes, .itinerary{margin-top:12px;padding-top:8px}

/* Instagram floating icon */
.ig-float{
  position:fixed;right:18px;bottom:18px;width:60px;height:60px;
  border-radius:50%;background:var(--gold);color:#111;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 22px rgba(0,0,0,.35);
  z-index:1000;transition:transform .12s ease, opacity .12s ease;
  opacity:1;border:2px solid #111
}
.ig-float:hover{transform:translateY(-2px) scale(1.05);opacity:1}

/* Responsive */
@media (max-width:1200px){
  .site-header{position:relative;z-index:auto}
  .page-hero,.tour-grid,.gallery,.sidebar,.includes,.itinerary{position:relative;z-index:5}
  .sidebar{margin-bottom:16px}
}
@media (max-width:880px){
  .hero-inner,.tour-grid,.contact-grid,.about-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .row-2{grid-template-columns:1fr}
}
@media (max-width:780px){
  .cards{grid-template-columns:1fr}
}
@media (max-width:480px){
  .card{padding:.85rem}
  .card h3{font-size:15.5px}
  .card .muted{font-size:13px}
  .card .desc{font-size:14px}
}
