:root{
  --bg:#0b1220;
  --card:#0f1a2e;
  --white:#fff;
  --text:#0f172a;
  --muted:#64748b;
  --line:rgba(15,23,42,.10);

  --primary:#0ea5e9;
  --primary2:#22c55e;

  --radius:18px;
  --shadow: 0 14px 40px rgba(2,6,23,.18);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:#fff;
}

a{color:inherit; text-decoration:none}
.container{
  width:min(1200px, calc(100% - 32px));
  margin:0 auto;
}

/* Header */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  background:transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled{
  background:rgba(255,255,255,.94);
  box-shadow: 0 10px 26px rgba(2,6,23,.10);
  backdrop-filter: blur(10px);
}
.header-inner{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand-logo{height:42px; width:auto}

.lang-switcher{position:relative}
.lang-btn{
  display:flex;
  gap:10px;
  align-items:center;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.10);
  color:#fff;
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  transition:.2s;
}
.site-header.scrolled .lang-btn{
  background:#fff;
  color:var(--text);
  border-color: var(--line);
}
.flag{width:20px; height:14px; border-radius:3px; object-fit:cover}
.chev{opacity:.9}

.lang-menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:220px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow: var(--shadow);
  padding:8px;
  margin:0;
  list-style:none;
  display:none;
}
.lang-menu.open{display:block}
.lang-menu li{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:10px;
  cursor:pointer;
  color:var(--text);
}
.lang-menu li:hover{background:rgba(14,165,233,.08)}
.lang-menu li.active{background:rgba(34,197,94,.10)}

/* Hero */
.hero{
  position:fixed;
  inset:0;
  height:100vh;
  background:url("../../fotos/hero.jpg") center/cover no-repeat;
  z-index:0;
}
.hero-link{position:absolute; inset:0; z-index:1;}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(2,6,23,.60), rgba(2,6,23,.35), rgba(2,6,23,.75));
  z-index:2;
}
.hero-content{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  z-index:3;
  padding:0 18px;
  color:#fff;
}
.hero-content h1{
  margin:0;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing:.02em;
}
.hero-content p{
  margin:12px 0 0;
  font-size: clamp(14px, 2vw, 18px);
  opacity:.95;
}

/* Content */
.site-content{
  position:relative;
  z-index:5;
  margin-top:100vh;
  background:#fff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -18px 40px rgba(2,6,23,.16);
  padding-bottom: 120px;
}

.section{padding:72px 0}
.section-head h2{margin:0 0 10px; font-size:30px}
.section-head p{margin:0; color:var(--muted)}

/* Suites */
.grid-suites{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
  margin-top:26px;
}
.suite-card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}
.suite-media{
  position:relative;
  display:block;
  height:220px;
  overflow:hidden;
}
.suite-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.02);
  transition:transform .35s ease;
}
.suite-card:hover .suite-media img{transform:scale(1.08)}
.suite-price{
  position:absolute;
  right:12px; bottom:12px;
  display:flex;
  align-items:baseline;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  backdrop-filter: blur(10px);
  font-size:13px;
}
.suite-price strong{font-size:16px}
.suite-body{padding:16px}
.suite-title{margin:0 0 8px; font-size:18px}
.suite-desc{margin:0 0 14px; color:var(--muted); font-size:14px; line-height:1.55}
.suite-actions{display:flex; gap:10px}

/* Buttons */
.btn{
  border:1px solid transparent;
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
}
.btn-primary{
  background:linear-gradient(135deg, var(--primary), #2563eb);
  color:#fff;
}
.btn-outline{
  background:#fff;
  border-color: var(--line);
  color:var(--text);
}
.btn-outline:hover{border-color:rgba(14,165,233,.35)}
.btn-chip{
  background:#fff;
  border-color: var(--line);
  padding:8px 10px;
}
.btn-block{width:100%}

/* Calendar desktop */
.calendar-wrap{
  margin-top:22px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  overflow-x:auto;
  background:#fff;
}
.calendar-table{
  border-collapse:separate;
  border-spacing:0;
  min-width: 1200px;
  width:max-content;
}
.calendar-table th,
.calendar-table td{
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:0;
  text-align:center;
  white-space:nowrap;
}
.calendar-table thead th{
  position:sticky;
  top:0;
  background:#fff;
  z-index:3;
  font-size:12px;
  color:var(--muted);
  height:46px;
  padding:0 10px;
}
.calendar-table tr:last-child td{border-bottom:none}
.calendar-table th:last-child,
.calendar-table td:last-child{border-right:none}

.sticky-col{
  position:sticky;
  background:#fff;
  z-index:4;
}
.suite-col{
  left:0;
  min-width:220px;
  text-align:left !important;
  padding:0 14px !important;
  font-weight:600;
}
.persons-col{
  left:220px;
  min-width:70px;
  color:var(--muted);
  font-weight:600;
}

.date-col{min-width:58px}

.cal-cell{
  height:44px;
  min-width:58px;
  cursor:pointer;
  background:#fff;
}
.cal-cell.avail .price{
  color:#16a34a;
  font-weight:700;
  font-size:12px;
}
.cal-cell.unavail{
  background:#fee2e2;
  cursor:not-allowed;
}
.cal-cell.selected{ background:rgba(34,197,94,.16) !important; }
.cal-cell.checkout{  background:rgba(14,165,233,.14) !important; }

.cal-popover{
  position:fixed;
  z-index:100;
  display:none;
  width:240px;
}
.cal-popover.open{display:block}
.cal-popover-inner{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:12px;
}
.cal-pop-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
  font-size:13px;
  color:var(--muted);
}
.cal-pop-row strong{color:var(--text)}

.toast{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:110px;
  background:rgba(2,6,23,.88);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  display:none;
  z-index:120;
  font-size:13px;
}

/* Booking bar */
.booking-bar{
  position:fixed;
  left:0; right:0;
  bottom:16px;
  z-index:60;
  display:flex;
  justify-content:center;
  pointer-events:none;
}
.booking-inner{
  pointer-events:auto;
  width:min(980px, calc(100% - 22px));
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border-radius:999px;
  padding:10px;
  display:flex;
  flex-wrap:nowrap;              /* مهم */
  align-items:center;
  gap:14px;
}

/* IMPORTANT: لا تستخدم desktop-only لتغيير display هنا */
.booking-fields{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;              /* مهم */
  gap:12px;
  align-items:flex-end;
  margin-left:auto;              /* تبقى على اليمين */
}

.field label{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:4px;
}
.field input, .field select{
  height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  padding:0 10px;
  font-family:inherit;
  min-width:170px;
}
.field select{min-width:110px}

.icon-btn{
  width:42px; height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  background:#fff;
}
.icon-btn:hover{border-color:rgba(14,165,233,.35)}

/* Icons */
.icon-person::before{content:"👤"}
.icon-phone::before{content:"☎"}
.icon-whatsapp::before{content:"🟢"}

/* Booking panel (mobile) */
.booking-panel{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.45);
  display:none;
  z-index:200;
  padding:18px;
}
.booking-panel.open{display:flex; align-items:flex-end; justify-content:center;}
.booking-panel-card{
  width:min(520px, 100%);
  background:#fff;
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 14px 10px;
  border-bottom:1px solid var(--line);
}
.panel-body{padding:14px}
.panel-actions{display:flex; gap:10px; margin:12px 0 14px}

/* Footer */
.site-footer{
  position: relative;
  z-index: 10;
  padding-bottom: 120px; /* مساحة كافية لأن booking-bar ثابت أسفل */
  background:#0b1220;
  color:#e5e7eb;
  padding:54px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap:22px;
}
.footer-logo{height:44px}
.site-footer h4{margin:0 0 10px}
.site-footer a{display:block; color:#cbd5e1; padding:6px 0}
.site-footer a:hover{color:#fff}
.footer-bottom{
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.10);
  color:#cbd5e1;
}


/* Calendar mobile */
.calendar-mobile{margin-top:18px}
.cal-mobile-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.cal-mobile-title{color:var(--muted); font-weight:600; font-size:13px}
.cal-mobile-grid{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background:#fff;
}
.cal-m-row{
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  border-bottom:1px solid var(--line);
}
.cal-m-row:last-child{border-bottom:none}
.cal-m-cell{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-right:1px solid var(--line);
  font-size:12px;
}
.cal-m-cell:last-child{border-right:none}
.cal-m-date{color:var(--muted); font-weight:600; background:#fafafa}
.cal-m-suitehead{
  grid-column: 1 / -1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  color:var(--text);
  font-weight:700;
  background:#fff;
}
.cal-m-price.avail{color:#16a34a; font-weight:800}
.cal-m-price.unavail{background:#fee2e2; color:#b91c1c; font-weight:700}

/* mobile selection highlight */
.cal-m-price.selected{ background:rgba(34,197,94,.16) !important; }
.cal-m-price.checkout{  background:rgba(14,165,233,.14) !important; }

/* Responsive helpers (FIX) */
.mobile-only{display:none !important;} /* افتراضيًا اخفِ الموبايل */
.desktop-only{display:inherit;}        /* لا تفرض block حتى لا تكسر flex */

@media (max-width: 980px){
  .grid-suites{grid-template-columns: repeat(2, 1fr);}
  .field input, .field select{min-width:150px;}
}

@media (max-width: 680px){
  .grid-suites{grid-template-columns: 1fr;}

  .desktop-only{display:none !important;}
  .mobile-only{display:block !important;}

  .booking-inner{
    width:calc(100% - 22px);
    border-radius:18px;
    justify-content:space-between;
  }
}

/* Fix: make footer appear above the fixed hero */
.site-footer{
  position: relative;   /* مهم: بدونها z-index لا يعمل */
  z-index: 20;          /* أعلى من .hero (z-index:0) */
  padding-bottom: 140px; /* مساحة حتى لا يغطيه booking-bar */
}

/* ================= Suite Pages ================= */
.suite-hero{
  position: fixed;
  inset: 0;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.suite-content{
  padding-bottom: 60px; /* لا يوجد booking bar في صفحة السويت */
}

.suite-top{
  display:flex;
  gap:18px;
  align-items:stretch;
  justify-content:space-between;
  margin-bottom: 18px;
}

.suite-h2{
  margin: 0 0 10px;
  font-size: 22px;
}

.suite-p{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
}

.suite-price-box{
  flex: 0 0 240px;
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background:#fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  text-align:left;
}

.suite-price-box .lbl{ color: var(--muted); font-size: 12px; }
.suite-price-box .val{ font-size: 26px; font-weight: 800; margin: 6px 0; }
.suite-price-box .lbl2{ color: var(--muted); font-size: 12px; }

.amenities{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin-top: 10px;
}

.amenity{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background:#fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.05);
  display:flex;
  gap:10px;
  align-items:center;
}

.amenity-ic{
  width:42px;
  height:42px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(14,165,233,.10);
  font-size:18px;
}

.amenity-txt strong{
  display:block;
  font-size: 14px;
}
.amenity-txt span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.suite-cta{
  display:flex;
  gap:12px;
  margin-top: 18px;
}

@media (max-width: 980px){
  .amenities{ grid-template-columns: repeat(2, 1fr); }
  .suite-top{ flex-direction:column; }
  .suite-price-box{ flex: 0 0 auto; width: 100%; }
}

@media (max-width: 560px){
  .amenities{ grid-template-columns: 1fr; }
  .suite-cta{ flex-direction:column; }
}

/* ===== Slider (Suite Gallery) ===== */
.mm-slider{
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

.mm-track{
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform .35s ease;
}

.mm-slide{
  min-width: 100%;
  height: 420px;
  background: #f8fafc;
}
.mm-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mm-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(2,6,23,.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.mm-prev{ left: 12px; }
.mm-next{ right: 12px; }

.mm-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.mm-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.35);
  cursor: pointer;
}
.mm-dot.active{
  background: #fff;
}

@media (max-width: 680px){
  .mm-slide{ height: 280px; }
}

/* ===== Prices table (30 days) ===== */
.price-table-wrap{
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.05);
}

.price-table{
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.price-table thead th{
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.price-table tr:last-child td{ border-bottom: none; }

.price-table .green{ color: #16a34a; }
.price-table .muted{ color: var(--muted); }

.price-table .badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.price-table .badge.ok{ background: rgba(34,197,94,.12); color: #166534; }
.price-table .badge.no{ background: rgba(239,68,68,.12); color: #991b1b; }

.price-table .empty{
  color: var(--muted);
  text-align: center;
}

/* ===== Calendar header (Month row + Day row) ===== */

/* خلي الصف الأول (الشهر) ثابت أعلى الجدول */
.calendar-table thead .cal-month-row th{
  position: sticky;
  top: 0;
  z-index: 6;
  height: 42px;
  background: #fff;
  font-weight: 800;
  color: var(--text);
  font-size: 12px;
}

/* خلي الصف الثاني (اليوم) ثابت تحت صف الشهر */
.calendar-table thead .cal-day-row th{
  position: sticky;
  top: 42px;             /* نفس ارتفاع صف الشهر */
  z-index: 5;
  height: 54px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

/* إزالة شكل الخلايا الفارغة (Suite/Persons) من رأس الجدول */
.th-blank{
  background: #fff !important;
}

/* تنسيق عرض اليوم */
.calendar-table .day-num{
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.calendar-table .day-dow{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: lowercase;
}

/* خلية الشهر */
.calendar-table .month-col{
  text-align: center;
  letter-spacing: .02em;
}

/* مهم: أعمدة sticky في الرأس أيضًا */
.calendar-table thead .suite-col,
.calendar-table thead .persons-col{
  z-index: 7;           /* أعلى من أعمدة التاريخ */
}

/* Replace emoji icons with real SVG icons */
.icon-phone::before,
.icon-whatsapp::before{
  content:"" !important; /* يلغي الإيموجي القديم */
}

.icon-phone,
.icon-whatsapp{
  display:block;
  width:20px;
  height:20px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

/* Phone SVG */
.icon-phone{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f172a'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.07 21 3 13.93 3 5a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E");
}

/* WhatsApp SVG */
.icon-whatsapp{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M20.52 3.48A11.91 11.91 0 0 0 12.01 0C5.39 0 .02 5.37.02 11.99c0 2.11.55 4.17 1.6 5.98L0 24l6.18-1.62a11.95 11.95 0 0 0 5.83 1.49h.01c6.62 0 11.99-5.37 11.99-11.99 0-3.2-1.25-6.2-3.49-8.4zM12.01 21.8h-.01a9.86 9.86 0 0 1-5.02-1.37l-.36-.21-3.67.96.98-3.58-.23-.37a9.83 9.83 0 0 1-1.51-5.23c0-5.45 4.44-9.89 9.9-9.89 2.64 0 5.12 1.03 6.99 2.9a9.82 9.82 0 0 1 2.9 6.99c0 5.46-4.44 9.9-9.9 9.9zm5.44-7.4c-.3-.15-1.77-.87-2.05-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.65.07-.3-.15-1.26-.46-2.4-1.48-.89-.79-1.49-1.77-1.66-2.07-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.67-1.61-.92-2.2-.24-.58-.48-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.49 0 1.47 1.07 2.89 1.22 3.09.15.2 2.11 3.22 5.11 4.51.71.31 1.27.49 1.7.63.71.23 1.36.2 1.87.12.57-.08 1.77-.72 2.02-1.42.25-.7.25-1.3.17-1.42-.08-.12-.27-.2-.57-.35z'/%3E%3C/svg%3E");
}

/* ===== Desktop calendar paging (20 days) ===== */
.cal-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.cal-nav-label{
  flex:1;
  text-align:center;
  font-weight:800;
  color: var(--text);
}

.cal-nav-btn{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: 0 10px 20px rgba(2,6,23,.06);
  cursor:pointer;
  font-size:28px;
  line-height:1;
  display:grid;
  place-items:center;
}

.cal-nav-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}

/* ===== Desktop calendar paging (20 days) ===== */
.cal-nav.desktop-only{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.cal-nav-label{
  flex:1;
  text-align:center;
  font-weight:800;
  color: var(--text);
}

.cal-nav-btn{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: 0 10px 20px rgba(2,6,23,.06);
  cursor:pointer;
  font-size:28px;
  line-height:1;
  display:grid;
  place-items:center;
}

.cal-nav-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}

/* ===== Search Results ===== */
.search-meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.search-meta strong{ color: var(--text); }

.search-alert{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-top: 14px;
  background:#fff;
}
.search-alert-error{ background: rgba(239,68,68,.08); }
.search-alert-empty{ background: rgba(14,165,233,.06); }

.search-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top: 10px;
}

.result-card{
  display:flex;
  gap:14px;
  border:1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.05);
}

.result-img{
  width: 320px;
  flex: 0 0 320px;
  height: 200px;
  overflow:hidden;
}
.result-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.result-body{
  padding: 14px;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.result-title{ margin:0 0 8px; font-size: 18px; }
.result-desc{ margin:0 0 12px; color: var(--muted); line-height: 1.6; }

.result-info{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}
.chip{
  border:1px solid var(--line);
  background:#fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.chip strong{ color: var(--text); }

.result-actions{
  display:flex;
  gap:10px;
}

@media (max-width: 780px){
  .result-card{ flex-direction: column; }
  .result-img{ width:100%; flex: 0 0 auto; height: 220px; }
  .result-actions{ flex-direction: column; }
}

/* ===== Promo Float (one image, no link) ===== */
.promo-float{
  position: fixed;
  right: 16px;
  bottom: calc(var(--booking-bar-space, 16px) + 12px); /* فوق شريط الحجز */
  z-index: 75; /* أعلى من booking-bar */
  width: 300px;
  max-width: calc(100vw - 32px);
}

.promo-float-card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(2,6,23,.18);
}

.promo-float-img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.promo-float-close{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(2,6,23,.35);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 680px){
  .promo-float{
    right: 12px;
    width: 240px;
  }
  .promo-float-img{ height: 120px; }
}

/* ===== Contact dropdown (phone/whatsapp) ===== */
.contact-menu{
  position: relative;
  display: inline-flex;
}

.contact-dropdown{
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);   /* فوق شريط الحجز */
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 120;
}

.contact-dropdown a{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}
.contact-dropdown a:hover{
  background: rgba(14,165,233,.08);
}

/* Desktop: تظهر عند hover */
@media (min-width: 681px){
  .contact-menu:hover .contact-dropdown,
  .contact-menu:focus-within .contact-dropdown{
    display: block;
  }
}

/* Mobile: تظهر عند class .open (بالضغط) */
.contact-menu.open .contact-dropdown{
  display: block;
}

/* داخل panel (الموبايل) الأفضل تفتح لأسفل داخل الكارد */
.booking-panel .contact-dropdown{
  bottom: auto;
  top: calc(100% + 10px);
}

/* ===== FIX contact dropdown (force hide/show) ===== */
.contact-menu{
  position: relative !important;
  display: inline-flex !important;
  flex: 0 0 auto;
}

.contact-dropdown{
  display: none !important;                 /* مهم: إخفاء دائم افتراضيًا */
  position: absolute !important;
  right: 0 !important;
  bottom: calc(100% + 10px) !important;     /* فوق شريط الحجز */
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 9999;
}

.contact-dropdown a{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.contact-dropdown a:hover{ background: rgba(14,165,233,.08); }

/* Desktop: تظهر عند الوقوف على الأيقونة */
@media (min-width: 681px){
  .contact-menu:hover .contact-dropdown{
    display: block !important;
  }
}

/* Mobile/Click: تظهر عند إضافة class open */
.contact-menu.open .contact-dropdown{
  display: block !important;
}

/* داخل panel في الموبايل: افتح لأسفل بدل فوق */
.booking-panel .contact-dropdown{
  bottom: auto !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
}

/* ===== Header phone next to logo ===== */
.header-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.header-phone{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.10);
  color:#fff;
  font-weight:700;
  font-size:14px;
  line-height:1;
  white-space:nowrap;
}

.site-header.scrolled .header-phone{
  background:#fff;
  color:var(--text);
  border-color: var(--line);
}

.header-phone-ic{
  width:18px;height:18px;
  display:block;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  /* أيقونة هاتف SVG */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.07 21 3 13.93 3 5a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E");
}

.site-header.scrolled .header-phone-ic{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f172a'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.07 21 3 13.93 3 5a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E");
}

/* Mobile: اخفِ النص واترك الأيقونة فقط (أو أخفِه بالكامل إذا تريد) */
@media (max-width: 680px){
  .header-phone-txt{ display:none; }
  .header-phone{ padding:10px; }
}

/* ===========================
   FIX Booking Bar contact menus
   (force dropdown hidden by default)
   =========================== */

.booking-bar .contact-menu{
  position: relative !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
}

.booking-bar .contact-dropdown{
  display: none !important;                 /* اخفاء افتراضي */
  position: absolute !important;            /* حتى لا تظهر تحت الايقونة داخل الشريط */
  right: 0 !important;
  bottom: calc(100% + 10px) !important;     /* تظهر فوق الشريط */
  min-width: 200px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow) !important;
  padding: 8px !important;
  z-index: 9999 !important;
}

.booking-bar .contact-dropdown a{
  display: block !important;
  padding: 10px 10px !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
}
.booking-bar .contact-dropdown a:hover{
  background: rgba(14,165,233,.08) !important;
}

/* Desktop: تظهر عند الوقوف */
@media (min-width: 681px){
  .booking-bar .contact-menu:hover .contact-dropdown{
    display: block !important;
  }
}

/* Mobile: تظهر عند الضغط (class open من JS) */
.booking-bar .contact-menu.open .contact-dropdown{
  display: block !important;
}

/* داخل panel بالموبايل: افتح لأسفل داخل الكارد */
.booking-panel .contact-dropdown{
  bottom: auto !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
}