/* ==========================================================================
   AHDJEZ DESIGN SYSTEM - MAIN ENTRY POINT (SAFE MODE)
   ========================================================================== */

/* Import all design system files in the correct order */
@import url("./variables-safe.813b1268af44.css");
@import url("./base-safe.3459e085fdfd.css");
@import url("./inline-styles-extractor-safe.b52c75299507.css");

/* ==========================================================================
   SAFE ENHANCEMENTS (Won't conflict with existing styles)
   ========================================================================== */

/* Image optimization */
img.ds-optimized {
  max-width: 100%;
  height: auto;
}

/* Smooth scrolling for design system elements */
.ds-smooth-scroll {
  scroll-behavior: smooth;
}

/* Enhanced focus styles for accessibility */
.ds-enhanced-focus:focus {
  outline: 2px solid var(--ds-color-primary);
  outline-offset: 2px;
}

/* Print styles for design system elements */
@media print {
  .ds-hide-print {
    display: none !important;
  }
  
  .ds-print-friendly {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .ds-card {
    border: 1px solid #000;
    box-shadow: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .ds-high-contrast {
    --ds-color-text-primary: #000000;
    --ds-color-text-secondary: #000000;
    --ds-color-bg-primary: #ffffff;
    --ds-color-bg-secondary: #ffffff;
    --ds-color-border-light: #000000;
    --ds-color-border-medium: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .ds-respect-motion *,
  .ds-respect-motion *::before,
  .ds-respect-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode support for design system elements */
@media (prefers-color-scheme: dark) {
  .ds-auto-dark {
    --ds-color-text-primary: #ffffff;
    --ds-color-text-secondary: #e9ecef;
    --ds-color-text-muted: #adb5bd;
    
    --ds-color-bg-primary: #1a1a1a;
    --ds-color-bg-secondary: #2d2d2d;
    --ds-color-bg-tertiary: #404040;
    --ds-color-bg-dark: #0d0d0d;
    
    --ds-color-border-light: #404040;
    --ds-color-border-medium: #555555;
    --ds-color-border-dark: #777777;
  }
}

/* ==========================================================================
   COMPONENT ENHANCEMENTS (Safe additions to existing components)
   ========================================================================== */

/* Enhanced card hover effects */
.card.ds-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: var(--ds-shadow-xl);
  transition: var(--ds-transition-all);
}

/* Global Card DEFINITION - Added to help with white images */
.card {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: var(--ds-shadow-base) !important;
  transition: var(--ds-transition-all) !important;
}

.card:hover {
  box-shadow: var(--ds-shadow-md) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 992px) {
  .card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
  }
}

/* Enhanced button styles */
.btn.ds-enhanced {
  transition: var(--ds-transition-all);
  border-radius: var(--ds-border-radius-base);
}

.btn.ds-enhanced:hover {
  transform: translateY(-1px);
}

/* Enhanced form controls */
.form-control.ds-enhanced:focus {
  border-color: var(--ds-color-primary);
  box-shadow: 0 0 0 3px rgba(var(--ds-color-primary-rgb), 0.25);
}

/* Enhanced navigation */
.navbar.ds-enhanced {
  box-shadow: var(--ds-shadow-sm);
  transition: var(--ds-transition-all);
}

.navbar.ds-enhanced.scrolled {
  box-shadow: var(--ds-shadow-md);
}

/* Enhanced search box */
.search-box.ds-enhanced {
  box-shadow: var(--ds-shadow-lg);
  border-radius: var(--ds-border-radius-lg);
}

/* Enhanced trip cards */
.trip-card.ds-enhanced {
  transition: var(--ds-transition-all);
}

.trip-card.ds-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: var(--ds-shadow-xl);
}

.trip-card.ds-enhanced .card-img-top {
  transition: var(--ds-transition-transform);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trip-card.ds-enhanced:hover .card-img-top {
  transform: scale(1.05);
}

.text-gold {
  color: var(--ds-color-accent);
}

/* ==========================================================================
   UTILITY COMBINATIONS (Common patterns)
   ========================================================================== */

/* Common card pattern */
.ds-card-pattern {
  background-color: var(--ds-color-bg-primary);
  border: 1px solid var(--ds-color-border-light);
  border-radius: var(--ds-border-radius-lg);
  padding: var(--ds-spacing-6);
  box-shadow: var(--ds-shadow-base);
  transition: var(--ds-transition-all);
}

.ds-card-pattern:hover {
  box-shadow: var(--ds-shadow-md);
  transform: translateY(-2px);
}

/* Common button pattern */
.ds-btn-pattern {
  background-color: var(--ds-color-primary);
  color: var(--ds-color-text-light);
  border: none;
  border-radius: var(--ds-border-radius-base);
  padding: var(--ds-spacing-3) var(--ds-spacing-5);
  font-weight: var(--ds-font-weight-medium);
  transition: var(--ds-transition-all);
  cursor: pointer;
}

.ds-btn-pattern:hover {
  background-color: var(--ds-color-primary-dark);
  transform: translateY(-1px);
}

/* Common form pattern */
.ds-form-pattern {
  background-color: var(--ds-color-bg-primary);
  border: 1px solid var(--ds-color-border-light);
  border-radius: var(--ds-border-radius-lg);
  padding: var(--ds-spacing-6);
  margin-bottom: var(--ds-spacing-6);
}

/* Common text pattern */
.ds-text-pattern {
  font-family: var(--ds-font-family-primary);
  line-height: var(--ds-line-height-relaxed);
  color: var(--ds-color-text-primary);
}

/* ==========================================================================
   DEBUGGING UTILITIES (Development only)
   ========================================================================== */

/* Visual debugging for design system elements */
.ds-debug * {
  outline: 1px solid red !important;
}

.ds-debug-spacing * {
  background-color: rgba(255, 0, 0, 0.1) !important;
}

.ds-debug-typography * {
  background-color: rgba(0, 255, 0, 0.1) !important;
}

/* Grid overlay for alignment */
.ds-debug-grid {
  background-image: 
    linear-gradient(rgba(0, 0, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 255, 0.1) 1px, transparent 1px);
  background-size: var(--ds-spacing-4) var(--ds-spacing-4);
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* GPU acceleration for animations */
.ds-gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Optimize repaints */
.ds-optimize-repaint {
  contain: layout style paint;
}

/* Lazy loading placeholder */
.ds-lazy-placeholder {
  background-color: var(--ds-color-bg-secondary);
  background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: ds-loading 1.5s infinite;
}

@keyframes ds-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}



/* ==========================================================================
   HERO SECTION
   ========================================================================== */

   .hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 100px 0;
    text-align: right;
    overflow: hidden;
  }

  @media (max-width: 991px) {
    .hero-section {
      min-height: 50vh;
      padding: 60px 0 110px 0;
    }
  }

  @media (max-width: 768px) {
    .hero-section {
      min-height: 40vh;
      padding: 40px 0 100px 0;
    }
  }
  
  /* background slider images */
  .hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: heroSlider 18s infinite ease-in-out;
  }

  .hero-section::after {
    content: "";
    position: absolute;
    bottom: 0; right: 0;
    width: 100%; height: 100%;
    
  }
  
  

/* slider animation */
@keyframes heroSlider {
  0%, 20% {
    background-image: url("../../img/Mobile_Hero_Section_1.ad235dea97f7.jpg");
  }
  21%, 40% {
    background-image: url("../../img/Mobile_Hero_Section_2.9db3517e888d.jpg");
  }
  41%, 60% {
    background-image: url("../../img/Mobile_Hero_Section_3.48659b7b3bb2.jpg");
  }
  61%, 80% {
    background-image: url("../../img/Mobile_Hero_Section_4.429df4ec0510.jpg");
  }
  81%, 100% {
    background-image: url("../../img/Mobile_Hero_Section_5.27cc284d3d48.jpg");
  }
} 


@media (min-width: 600px) {
  @keyframes heroSlider {
    0%, 20% {
    background-image: url("../../img/Hero_Section_Photo_1.03b58f81333b.jpg");
    }
    21%, 40% {
      background-image: url("../../img/Hero_Section_Photo_2.dbe9dbb2f032.jpg");
    }
    41%, 60% {
      background-image: url("../../img/Hero_Section_Photo_3.6e616b935da3.jpg");
    }
    61%, 80% {
      background-image: url("../../img/Hero_Section_Photo_4.e629eb6a1730.jpg");
    }
    81%, 100% {
      background-image: url("../../img/Hero_Section_Photo_5.1bcf89f2de92.jpg");
    }
  }
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVENESS & USABILITY ENHANCEMENTS
   ========================================================================== */

/* 1. Prevent iOS Auto-Zoom & Optimize Mobile Form Touch Targets */
@media (max-width: 768px) {
  input,
  select,
  textarea,
  .form-control,
  .form-select {
    font-size: 16px !important; /* Critical to prevent iOS Safari auto-zoom */
    min-height: 44px;
    border-radius: 0.5rem;
  }
  
  /* Ensure radio & checkbox tap areas are accessible */
  input[type="checkbox"],
  input[type="radio"] {
    min-height: 20px;
    min-width: 20px;
    cursor: pointer;
  }
}

/* 2. Responsive Scrollable Tabs / Nav Pills */
@media (max-width: 768px) {
  .nav-pills-custom,
  .nav-pills,
  .nav-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important;  /* IE/Edge */
    padding-bottom: 8px !important;
    gap: 0.5rem !important;
  }

  .nav-pills-custom::-webkit-scrollbar,
  .nav-pills::-webkit-scrollbar,
  .nav-tabs::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
  }

  .nav-pills-custom .nav-item,
  .nav-pills .nav-item,
  .nav-tabs .nav-item {
    flex: 0 0 auto !important;
  }

  .nav-pills-custom .nav-link,
  .nav-pills .nav-link,
  .nav-tabs .nav-link {
    white-space: nowrap !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
  }
}

/* 3. Table Responsiveness Guarantee */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  table {
    font-size: 0.875rem;
  }
  
  .table th,
  .table td {
    padding: 0.6rem 0.5rem;
    white-space: nowrap;
  }
}

/* 4. Touch Target Sizes for Actionable Elements */
@media (max-width: 768px) {
  .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .page-link {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.6rem;
  }
}

/* 5. Safe Area Insets & Viewport Protection */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* 6. Text Overflow Protection */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}