/**
 * Search Engine World-Class Styles (Modern OTA Travel Search & Hotel Comparison)
 * Professional Design System: Clean borders, native contrast, predictive autocomplete,
 * interactive map markers, and side-by-side hotel comparison.
 * 
 * STRICT COMPLIANCE:
 * - Zero artificial AI gimmicks or sparkle icons.
 * - Subdued, professional color palette (Deep Royal Navy, Slate, Soft Highlights).
 * - High-accessibility contrast in both Light & Dark modes.
 */

:root {
  --ota-brand-primary: var(--color-primary, #0f2942);
  --ota-brand-secondary: var(--color-secondary, #1e293b);
  --ota-accent-blue: #2563eb;
  --ota-accent-blue-hover: #1d4ed8;
  --ota-badge-best-val: #059669;
  --ota-tamara-color: #e11d48;
}

/* ══════════════════════════════════════════════════════════════════════
   1. Autocomplete Predictive Dropdown (Modern Luxury OTA)
   ══════════════════════════════════════════════════════════════════════ */
.ota-autocomplete-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
  z-index: 1000;
  display: none;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
  animation: otaAutocompleteSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-overflow-scrolling: touch;
}

.ota-autocomplete-list.is-open {
  display: block;
}

.ota-autocomplete-list::-webkit-scrollbar {
  width: 6px;
}

.ota-autocomplete-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}

.ota-autocomplete-list::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

[data-theme="dark"] .ota-autocomplete-list,
[data-bs-theme="dark"] .ota-autocomplete-list,
body.dark-theme .ota-autocomplete-list,
body.theme-dark .ota-autocomplete-list {
  background: rgba(17, 24, 39, 0.98) !important;
  border-color: rgba(31, 41, 55, 0.8) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

@keyframes otaAutocompleteSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Category Headers with Navy / Gold Accents */
.ota-autocomplete-category {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #0f2942;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  margin-top: 6px;
  margin-bottom: 4px;
  user-select: none;
}

.ota-autocomplete-category:first-child {
  margin-top: 0;
}

.ota-autocomplete-category-accent {
  display: inline-block;
  width: 3px;
  height: 12px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-radius: 2px;
  flex-shrink: 0;
}

.ota-autocomplete-category-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.ota-autocomplete-category-title {
  flex: 1;
  font-weight: 800;
  color: #0f2942;
}

[data-theme="dark"] .ota-autocomplete-category,
[data-bs-theme="dark"] .ota-autocomplete-category,
body.dark-theme .ota-autocomplete-category,
body.theme-dark .ota-autocomplete-category {
  color: #cbd5e1 !important;
  border-bottom-color: rgba(51, 65, 85, 0.6) !important;
}

[data-theme="dark"] .ota-autocomplete-category-title,
[data-bs-theme="dark"] .ota-autocomplete-category-title,
body.dark-theme .ota-autocomplete-category-title,
body.theme-dark .ota-autocomplete-category-title {
  color: #f1f5f9 !important;
}

/* Autocomplete Suggestion Item */
.ota-autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  min-height: 48px; /* Mobile touch friendly >= 44px */
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  border: 1px solid transparent;
  color: #0f172a;
}

.ota-autocomplete-item:hover,
.ota-autocomplete-item.is-active,
.ota-autocomplete-item.active {
  background-color: #f1f5f9;
  border-color: rgba(203, 213, 225, 0.7);
  transform: translateX(-2px);
}

[dir="ltr"] .ota-autocomplete-item:hover,
[dir="ltr"] .ota-autocomplete-item.is-active,
[dir="ltr"] .ota-autocomplete-item.active {
  transform: translateX(2px);
}

[data-theme="dark"] .ota-autocomplete-item,
[data-bs-theme="dark"] .ota-autocomplete-item,
body.dark-theme .ota-autocomplete-item,
body.theme-dark .ota-autocomplete-item {
  color: #f8fafc !important;
}

[data-theme="dark"] .ota-autocomplete-item:hover,
[data-theme="dark"] .ota-autocomplete-item.is-active,
[data-theme="dark"] .ota-autocomplete-item.active,
[data-bs-theme="dark"] .ota-autocomplete-item:hover,
[data-bs-theme="dark"] .ota-autocomplete-item.is-active,
[data-bs-theme="dark"] .ota-autocomplete-item.active,
body.dark-theme .ota-autocomplete-item:hover,
body.dark-theme .ota-autocomplete-item.is-active,
body.dark-theme .ota-autocomplete-item.active,
body.theme-dark .ota-autocomplete-item:hover,
body.theme-dark .ota-autocomplete-item.is-active,
body.theme-dark .ota-autocomplete-item.active {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

.ota-autocomplete-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Icon box */
.ota-autocomplete-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f2942;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.ota-autocomplete-item-icon svg {
  width: 18px;
  height: 18px;
}

.ota-autocomplete-item:hover .ota-autocomplete-item-icon {
  transform: scale(1.05);
}

[data-theme="dark"] .ota-autocomplete-item-icon,
[data-bs-theme="dark"] .ota-autocomplete-item-icon,
body.dark-theme .ota-autocomplete-item-icon,
body.theme-dark .ota-autocomplete-item-icon {
  background: #0f172a !important;
  color: #cbd5e1 !important;
}

/* Hotel Thumbnail */
.ota-autocomplete-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  background: #e2e8f0;
}

[data-theme="dark"] .ota-autocomplete-thumb,
[data-bs-theme="dark"] .ota-autocomplete-thumb,
body.dark-theme .ota-autocomplete-thumb,
body.theme-dark .ota-autocomplete-thumb {
  border-color: #334155 !important;
  background: #1e293b !important;
}

.ota-autocomplete-item-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.ota-autocomplete-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ota-autocomplete-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

[data-theme="dark"] .ota-autocomplete-item-title,
[data-bs-theme="dark"] .ota-autocomplete-item-title,
body.dark-theme .ota-autocomplete-item-title,
body.theme-dark .ota-autocomplete-item-title {
  color: #f8fafc !important;
}

.ota-autocomplete-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #f59e0b;
  font-size: 0.72rem;
  line-height: 1;
}

.ota-autocomplete-item-desc {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

[data-theme="dark"] .ota-autocomplete-item-desc,
[data-bs-theme="dark"] .ota-autocomplete-item-desc,
body.dark-theme .ota-autocomplete-item-desc,
body.theme-dark .ota-autocomplete-item-desc {
  color: #94a3b8 !important;
}

.ota-autocomplete-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .ota-autocomplete-badge,
[data-bs-theme="dark"] .ota-autocomplete-badge,
body.dark-theme .ota-autocomplete-badge,
body.theme-dark .ota-autocomplete-badge {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

.ota-autocomplete-item-badge-landmark {
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.2);
}

[data-theme="dark"] .ota-autocomplete-item-badge-landmark {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

/* Empty State / Loading State inside dropdown */
.ota-autocomplete-empty,
.ota-autocomplete-loading {
  padding: 18px 14px;
  text-align: center;
  color: #64748b;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ota-autocomplete-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(15, 41, 66, 0.15);
  border-top-color: #0f2942;
  border-radius: 50%;
  animation: otaSpin 0.7s linear infinite;
}

[data-theme="dark"] .ota-autocomplete-spinner {
  border-color: rgba(255, 255, 255, 0.15);
  border-top-color: #60a5fa;
}

@keyframes otaSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .ota-autocomplete-list {
    max-height: 60vh;
    border-radius: 14px;
    padding: 6px;
  }
  .ota-autocomplete-item {
    min-height: 52px;
    padding: 10px 10px;
  }
  .ota-autocomplete-item-title {
    font-size: 0.88rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   2. Map Interactive Price Markers
   ══════════════════════════════════════════════════════════════════════ */
.ota-custom-leaflet-icon {
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
}

.ota-map-price-pill {
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  border: 1.5px solid #0f2942 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
  text-align: center !important;
  direction: rtl !important;
  user-select: none !important;
}

.ota-map-price-pill:hover,
.ota-map-price-pill.is-hovered {
  background: #0f2942 !important;
  color: #ffffff !important;
  border-color: #0f2942 !important;
  transform: scale(1.12) translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(15, 41, 66, 0.45) !important;
  z-index: 9999 !important;
}

.ota-map-price-pill.is-price-unavailable {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px dashed #94a3b8 !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   3. Smart Badges (Best Value, Free Shuttle, Tamara)
   ══════════════════════════════════════════════════════════════════════ */
.ota-smart-badges-wrap {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.4rem 0;
}

.ota-smart-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.ota-smart-badge.best-value {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.ota-smart-badge.shuttle {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.ota-smart-badge.tamara {
  background: rgba(225, 29, 72, 0.08);
  color: #e11d48;
  border: 1px solid rgba(225, 29, 72, 0.2);
}

/* ══════════════════════════════════════════════════════════════════════
   4. Animation Keyframes & WhatsApp Booking Actions
   ══════════════════════════════════════════════════════════════════════ */
@keyframes otaSpin {
  100% { transform: rotate(360deg); }
}

/* زر واتساب في بطاقة الفندق عند عدم توفر سعر لحظي */
.ota-btn-whatsapp-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
  box-sizing: border-box;
}
.ota-btn-whatsapp-price:hover {
  background: #1eb855;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.ota-btn-whatsapp-price svg,
.ota-btn-whatsapp-price i {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.ota-card-footer--whatsapp {
  width: 100%;
  display: flex;
  justify-content: stretch;
  padding-top: var(--space-3, 0.75rem);
}
.ota-card-footer--whatsapp .ota-btn-whatsapp-price {
  width: 100%;
}

/* زر واتساب البارز في صفحة الفندق وقسم الغرف */
.ota-btn-whatsapp-prominent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-lg, 12px);
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  box-sizing: border-box;
}
.ota-btn-whatsapp-prominent:hover {
  background: #1eb855;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}
.ota-btn-whatsapp-prominent svg,
.ota-btn-whatsapp-prominent i {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* كارت واتساب التفاعلي في قسم خيارات الغرف */
.ota-rooms-whatsapp-cta {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(15, 23, 42, 0.03) 100%);
  border: 1.5px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-xl, 16px);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .ota-rooms-whatsapp-cta,
[data-bs-theme="dark"] .ota-rooms-whatsapp-cta,
body.dark-theme .ota-rooms-whatsapp-cta {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12) 0%, rgba(30, 41, 59, 0.7) 100%);
  border-color: rgba(37, 211, 102, 0.4);
}
.ota-rooms-wa-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.ota-rooms-wa-icon svg,
.ota-rooms-wa-icon i {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.ota-rooms-wa-body {
  flex: 1;
}
.ota-rooms-wa-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin: 0 0 0.5rem 0;
}
.ota-rooms-wa-desc {
  font-size: 0.95rem;
  color: var(--text-muted, #64748b);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}
.ota-rooms-wa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-main, #1e293b);
  margin-bottom: 1.25rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .ota-rooms-wa-meta,
[data-bs-theme="dark"] .ota-rooms-wa-meta,
body.dark-theme .ota-rooms-wa-meta {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}
@media (max-width: 768px) {
  .ota-rooms-whatsapp-cta {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.2rem;
  }
  .ota-rooms-wa-meta {
    justify-content: center;
  }
  .ota-btn-whatsapp-prominent {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   5. Hotel Comparison Floating Bar & Side-by-Side Modal
   ══════════════════════════════════════════════════════════════════════ */
.ota-card-compare-chk {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  user-select: none;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

[data-theme="dark"] .ota-card-compare-chk,
[data-bs-theme="dark"] .ota-card-compare-chk,
body.dark-theme .ota-card-compare-chk,
body.theme-dark .ota-card-compare-chk {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.ota-card-compare-chk input {
  accent-color: #2563eb;
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.ota-card-compare-chk:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.ota-hotel-card.is-in-comparison {
  border: 2px solid #2563eb !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15) !important;
}

/* الشريط العائم للمقارنة أسفل الشاشة */
.ota-compare-float-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 999999 !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.ota-compare-float-bar.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ota-compare-bar-items {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ota-compare-bar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.ota-compare-bar-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.ota-compare-btn-trigger {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 0.6rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.ota-compare-btn-trigger:hover {
  background: #1d4ed8;
  transform: scale(1.02);
}

.ota-compare-bar-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.2rem;
}

.ota-compare-bar-clear:hover {
  color: #ffffff;
}

/* Modal النافذة المنبثقة للمقارنة */
.ota-compare-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: otaFadeIn 0.25s ease;
}

.ota-compare-modal-backdrop.is-open {
  display: flex;
}

.ota-compare-modal-window {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 1050px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: otaModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #cbd5e1;
}

[data-theme="dark"] .ota-compare-modal-window,
[data-bs-theme="dark"] .ota-compare-modal-window,
body.dark-theme .ota-compare-modal-window,
body.theme-dark .ota-compare-modal-window {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

@keyframes otaModalPop {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.ota-compare-modal-header {
  padding: 1.25rem 1.75rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .ota-compare-modal-header,
[data-bs-theme="dark"] .ota-compare-modal-header,
body.dark-theme .ota-compare-modal-header,
body.theme-dark .ota-compare-modal-header {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.ota-compare-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .ota-compare-modal-header h3,
[data-bs-theme="dark"] .ota-compare-modal-header h3,
body.dark-theme .ota-compare-modal-header h3,
body.theme-dark .ota-compare-modal-header h3 {
  color: #ffffff !important;
}

.ota-compare-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 1.1rem;
  transition: all 0.15s ease;
}

.ota-compare-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="dark"] .ota-compare-modal-close,
[data-bs-theme="dark"] .ota-compare-modal-close,
body.dark-theme .ota-compare-modal-close,
body.theme-dark .ota-compare-modal-close {
  background: #334155 !important;
  color: #cbd5e1 !important;
}

.ota-compare-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

/* التوصية والملخص التحليلي للمقارنة */
.ota-compare-ai-verdict {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

[data-theme="dark"] .ota-compare-ai-verdict,
[data-bs-theme="dark"] .ota-compare-ai-verdict,
body.dark-theme .ota-compare-ai-verdict,
body.theme-dark .ota-compare-ai-verdict {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.ota-compare-ai-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0f2942;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

[data-theme="dark"] .ota-compare-ai-icon,
[data-bs-theme="dark"] .ota-compare-ai-icon,
body.dark-theme .ota-compare-ai-icon,
body.theme-dark .ota-compare-ai-icon {
  background: #38bdf8 !important;
  color: #0f172a !important;
}

.ota-compare-ai-text h5 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2942;
}

[data-theme="dark"] .ota-compare-ai-text h5,
[data-bs-theme="dark"] .ota-compare-ai-text h5,
body.dark-theme .ota-compare-ai-text h5,
body.theme-dark .ota-compare-ai-text h5 {
  color: #38bdf8 !important;
}

.ota-compare-ai-text p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

[data-theme="dark"] .ota-compare-ai-text p,
[data-bs-theme="dark"] .ota-compare-ai-text p,
body.dark-theme .ota-compare-ai-text p,
body.theme-dark .ota-compare-ai-text p {
  color: #e2e8f0 !important;
}

/* جدول المقارنة Side-by-Side */
.ota-compare-table-wrapper {
  overflow-x: auto;
}

.ota-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.88rem;
}

.ota-compare-table th,
.ota-compare-table td {
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .ota-compare-table th,
[data-theme="dark"] .ota-compare-table td,
[data-bs-theme="dark"] .ota-compare-table th,
[data-bs-theme="dark"] .ota-compare-table td,
body.dark-theme .ota-compare-table th,
body.dark-theme .ota-compare-table td,
body.theme-dark .ota-compare-table th,
body.theme-dark .ota-compare-table td {
  border-color: #334155 !important;
}

.ota-compare-table th {
  background: #f8fafc;
  font-weight: 700;
  width: 180px;
  color: #475569;
}

[data-theme="dark"] .ota-compare-table th,
[data-bs-theme="dark"] .ota-compare-table th,
body.dark-theme .ota-compare-table th,
body.theme-dark .ota-compare-table th {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}

.ota-compare-hotel-col {
  text-align: center;
}

.ota-compare-card-thumb {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.ota-compare-hotel-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

[data-theme="dark"] .ota-compare-hotel-name,
[data-bs-theme="dark"] .ota-compare-hotel-name,
body.dark-theme .ota-compare-hotel-name,
body.theme-dark .ota-compare-hotel-name {
  color: #f8fafc !important;
}

.ota-compare-check-yes {
  color: #16a34a;
  font-weight: 700;
}

.ota-compare-check-no {
  color: #94a3b8;
}

.ota-compare-book-btn {
  display: inline-block;
  background: #0f2942;
  color: #ffffff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.ota-compare-book-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════
   5. Smart Travel Search Assistant (مساعد البحث السياحي الذكي)
   ══════════════════════════════════════════════════════════════════════ */
.ota-smart-search-box {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(15, 41, 66, 0.04) 0%, rgba(30, 41, 59, 0.07) 100%);
  border: 1px solid rgba(15, 41, 66, 0.12);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: all 0.25s ease;
}

[data-theme="dark"] .ota-smart-search-box,
[data-bs-theme="dark"] .ota-smart-search-box,
body.dark-theme .ota-smart-search-box,
body.theme-dark .ota-smart-search-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.ota-smart-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.ota-smart-search-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ota-smart-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0f2942;
  color: #ffffff;
  flex-shrink: 0;
}

.ota-smart-icon-badge svg {
  width: 18px;
  height: 18px;
}

.ota-smart-title-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f2942;
}

[data-theme="dark"] .ota-smart-title-text strong,
[data-bs-theme="dark"] .ota-smart-title-text strong,
body.dark-theme .ota-smart-title-text strong,
body.theme-dark .ota-smart-title-text strong {
  color: #f8fafc !important;
}

.ota-smart-title-text span {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 1px;
}

[data-theme="dark"] .ota-smart-title-text span,
[data-bs-theme="dark"] .ota-smart-title-text span,
body.dark-theme .ota-smart-title-text span,
body.theme-dark .ota-smart-title-text span {
  color: #94a3b8 !important;
}

.ota-smart-input-container {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  gap: 0.65rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme="dark"] .ota-smart-input-container,
[data-bs-theme="dark"] .ota-smart-input-container,
body.dark-theme .ota-smart-input-container,
body.theme-dark .ota-smart-input-container {
  background: #0f172a !important;
  border-color: #334155 !important;
}

.ota-smart-input-container:focus-within {
  border-color: #0f2942;
  box-shadow: 0 0 0 3px rgba(15, 41, 66, 0.12);
}

[data-theme="dark"] .ota-smart-input-container:focus-within,
[data-bs-theme="dark"] .ota-smart-input-container:focus-within,
body.dark-theme .ota-smart-input-container:focus-within,
body.theme-dark .ota-smart-input-container:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.ota-smart-input-icon {
  color: #64748b;
  display: flex;
  align-items: center;
}

.ota-smart-input-icon svg {
  width: 18px;
  height: 18px;
}

.ota-smart-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  padding: 0.4rem 0;
}

[data-theme="dark"] .ota-smart-search-input,
[data-bs-theme="dark"] .ota-smart-search-input,
body.dark-theme .ota-smart-search-input,
body.theme-dark .ota-smart-search-input {
  color: #f8fafc !important;
}

.ota-smart-search-input::placeholder {
  color: #94a3b8;
}

.ota-smart-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #0f2942;
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ota-smart-search-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.ota-smart-search-btn:hover {
  background: #1e3a5f;
  transform: translateY(-1px);
}

.ota-smart-search-btn:hover svg {
  transform: translateX(-3px);
}

.ota-smart-search-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.ota-smart-chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ota-smart-chips-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  margin-inline-end: 0.25rem;
}

[data-theme="dark"] .ota-smart-chips-label,
[data-bs-theme="dark"] .ota-smart-chips-label,
body.dark-theme .ota-smart-chips-label,
body.theme-dark .ota-smart-chips-label {
  color: #94a3b8 !important;
}

.ota-smart-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 41, 66, 0.05);
  border: 1px solid rgba(15, 41, 66, 0.1);
  color: #1e293b;
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ota-smart-chip svg {
  width: 13px;
  height: 13px;
}

[data-theme="dark"] .ota-smart-chip,
[data-bs-theme="dark"] .ota-smart-chip,
body.dark-theme .ota-smart-chip,
body.theme-dark .ota-smart-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

.ota-smart-chip:hover {
  background: #0f2942;
  color: #ffffff !important;
  border-color: #0f2942;
}

[data-theme="dark"] .ota-smart-chip:hover,
[data-bs-theme="dark"] .ota-smart-chip:hover,
body.dark-theme .ota-smart-chip:hover,
body.theme-dark .ota-smart-chip:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

