/* Custom Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');

/* RTL Direction for Arabic Text */
body {
  direction: rtl;
  text-align: right;
}

.font-amiri {
  font-family: 'Amiri', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2B4C7E;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3a5f;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Button Hover Effects */
.btn-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Package Card Hover Effects */
.package-card {
  transition: all 0.3s ease;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Form Focus Effects */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.1);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .text-5xl {
    font-size: 2.5rem;
  }
  
  .text-6xl {
    font-size: 3rem;
  }
}

/* Arabic Number Styling */
.arabic-numbers {
  font-feature-settings: "lnum";
  font-variant-numeric: lining-nums;
}

/* Success/Error Message Styling */
.message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Islamic Pattern Background (Optional Enhancement) */
.islamic-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f8f9fa' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3Ccircle cx='0' cy='30' r='4'/%3E%3Ccircle cx='60' cy='30' r='4'/%3E%3Ccircle cx='30' cy='0' r='4'/%3E%3Ccircle cx='30' cy='60' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hotel Selection Styles */
.hotel-card {
  position: relative;
  transition: all 0.3s ease;
}

.hotel-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hotel-card.selected {
  border-color: #2B4C7E !important;
  box-shadow: 0 0 0 2px rgba(43, 76, 126, 0.1);
}

.hotel-card .selection-indicator {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Modal Styles */
.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

/* Star Rating */
.star-rating {
  color: #FFB900;
}

/* Price Display */
.price-display {
  background: linear-gradient(135deg, #FF8C42, #FFB900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Package Cards */
.package-card-enhanced {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card-enhanced:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hotel Filter Tabs */
.hotel-filter-btn {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.hotel-filter-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.hotel-filter-btn.active {
  background: #2B4C7E !important;
  color: white !important;
  border-color: #2B4C7E !important;
}

/* Hotels Grid Container */
.hotels-grid-container {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2B4C7E #f1f1f1;
}

.hotels-grid-container::-webkit-scrollbar {
  width: 6px;
}

.hotels-grid-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.hotels-grid-container::-webkit-scrollbar-thumb {
  background: #2B4C7E;
  border-radius: 3px;
}

.hotels-grid-container::-webkit-scrollbar-thumb:hover {
  background: #1e3a5f;
}

/* Category Indicators */
.border-l-yellow-400 {
  border-left-color: #fbbf24 !important;
}

.border-l-blue-400 {
  border-left-color: #60a5fa !important;
}

.border-l-green-400 {
  border-left-color: #4ade80 !important;
}

.border-l-gray-400 {
  border-left-color: #9ca3af !important;
}

/* Mobile Optimizations for Hotel Selection */
@media (max-width: 768px) {
  .hotel-card {
    margin-bottom: 1rem;
  }
  
  .hotel-card img {
    width: 60px;
    height: 48px;
  }
  
  .modal-content {
    margin: 1rem;
    border-radius: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}