/* أيقونات الهاتف والواتس اب */
.icon-phone,
.icon-whatsapp {
  display: block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* أيقونة الهاتف */
.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");
}

/* أيقونة الواتس اب */
.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");
}

/* ============================================
   شريط الحجز المعدل
   ============================================ */

/* أزرار الاتصال الجانبية (فوق شريط الحجز - يسار الشاشة) */
.contact-buttons {
  position: fixed;
  bottom: 90px;
  left: 16px;
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.contact-buttons .contact-menu {
  pointer-events: auto;
  position: relative;
  display: block;
}

.contact-buttons .icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.contact-buttons .icon-btn:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

/* قائمة منسدلة للأيقونات */
.contact-buttons .contact-dropdown {
  position: absolute;
  left: 60px;
  bottom: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 9999;
}

.contact-buttons .contact-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.contact-buttons .contact-dropdown a:hover {
  background: rgba(14, 165, 233, 0.08);
}

.contact-buttons .contact-menu.open .contact-dropdown {
  display: block;
}

@media (min-width: 681px) {
  .contact-buttons .contact-menu:hover .contact-dropdown {
    display: block;
  }
}

/* شريط الحجز */
.booking-bar {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}

.booking-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 12px;
}

/* حقول الحجز */
.booking-fields {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-end;
  width: 100%;
}

.field {
  flex: 1;
}

.field label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 8px;
  font-family: inherit;
  font-size: 12px;
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
}

/* زر البحث - النص في المنتصف */
.booking-fields .btn-primary {
  white-space: nowrap;
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
}

/* اللوحة المنبثقة للجوال */
.booking-panel {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  display: none;
  z-index: 200;
  padding: 18px;
  align-items: flex-end;
  justify-content: center;
}

.booking-panel.open {
  display: flex;
}

.booking-panel-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 16px;
}

.panel-body {
  padding: 14px;
}

.panel-body .field {
  margin-bottom: 12px;
}

.panel-body .field input,
.panel-body .field select {
  width: 100%;
  height: 44px;
}

.panel-body .btn-primary {
  width: 100%;
  justify-content: center;
}

/* استجابة للمحمول */
@media (max-width: 680px) {
  .contact-buttons {
    bottom: 110px;
    left: 12px;
    gap: 8px;
  }
  
  .contact-buttons .icon-btn {
    width: 42px;
    height: 42px;
  }
  
  .booking-inner {
    max-width: 100%;
    border-radius: 16px;
    padding: 10px;
  }
  
  .booking-fields {
    gap: 6px;
  }
  
  .field label {
    font-size: 9px;
  }
  
  .field input,
  .field select {
    height: 36px;
    font-size: 11px;
    padding: 0 6px;
  }
  
  .booking-fields .btn-primary {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* شاشات صغيرة جداً */
@media (max-width: 480px) {
  .booking-fields {
    flex-wrap: wrap;
  }
  
  .field {
    min-width: calc(33% - 4px);
  }
  
  .booking-fields .btn-primary {
    width: 100%;
    margin-top: 6px;
  }
  
  .contact-buttons {
    bottom: 120px;
    left: 8px;
  }
  
  .contact-buttons .icon-btn {
    width: 38px;
    height: 38px;
  }
}