/* Al Jude Travel - Main Stylesheet */

/* Root Variables */
:root {
    --primary-color: #2c5f8a;
    --secondary-color: #f4a261;
    --success-color: #2a9d8f;
    --warning-color: #e76f51;
    --light-color: #f8f9fa;
    --dark-color: #264653;
    --text-color: #333;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--success-color));
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.display-4, .display-5 {
    font-weight: 700;
}

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 95, 138, 0.8), rgba(42, 157, 143, 0.8)),
                url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Package Cards */
.package-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.package-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.package-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.package-duration {
    opacity: 0.9;
    font-size: 0.9rem;
}

.package-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-price {
    text-align: center;
    margin-bottom: 1rem;
}

.price-badge {
    background: var(--warning-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.package-footer {
    margin-top: auto;
}

.btn-book {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    color: white;
}

/* Package Filters */
.package-filters {
    margin-bottom: 2rem;
}

.package-filters .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.package-filters .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Room Types */
.room-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.room-type {
    background: var(--light-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Contact Section */
.contact-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Social Links */
.social-links .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links .btn:hover {
    transform: scale(1.1);
}

/* About Section */
.about-features .feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

/* Currency Display */
.currency-symbol {
    font-weight: 600;
    color: var(--success-color);
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-features {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .feature-item {
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0;
        padding: 1rem;
    }
    
    .package-filters {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .package-filters .btn {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .package-card {
        box-shadow: var(--shadow-light);
    }
    
    .contact-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    .package-card {
        margin-bottom: 1.5rem;
    }
    
    .navbar-nav .dropdown-menu {
        text-align: center;
        min-width: 200px;
    }
    
    .package-filters {
        gap: 0.5rem;
    }
    
    .package-filters .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    .display-4 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .package-header .package-title {
        font-size: 1.1rem;
    }
    
    .room-types {
        font-size: 0.85rem;
    }
    
    .room-types .room-type {
        padding: 0.2rem 0.6rem;
        margin: 0.2rem;
    }
    
    .btn-book {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-links .btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 400px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .display-4 {
        font-size: 1.6rem;
    }
    
    .display-5 {
        font-size: 1.3rem;
    }
    
    .package-filters .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}

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

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

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Bootstrap Overrides */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    filter: brightness(1.1);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Package Table Styles */
.packages-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    margin-bottom: 2rem;
}

.packages-table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.packages-table thead th {
    background: linear-gradient(135deg, #8B4513, #A0522D) !important;
    color: white !important;
    font-weight: 600;
    border: none;
    padding: 1rem 0.75rem;
    text-align: center;
    vertical-align: middle;
}

.packages-table tbody tr {
    transition: var(--transition);
}

.packages-table tbody tr:hover {
    background-color: rgba(44, 95, 138, 0.05);
    transform: translateY(-1px);
}

.packages-table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.packages-table .hotel-name {
    min-width: 200px;
    font-weight: 500;
}

.packages-table .hotel-name strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.packages-table .hotel-name small {
    font-size: 0.85rem;
    color: #666;
}

.packages-table .meals-type {
    text-align: center;
    font-weight: 500;
}

.packages-table .classification {
    text-align: center;
    font-weight: 500;
}

.packages-table .rating {
    text-align: center;
    min-width: 100px;
}

.packages-table .rating .fa-star {
    font-size: 0.9rem;
    margin: 0 1px;
}

.packages-table .price-cell {
    text-align: center;
    font-weight: 600;
    color: var(--success-color);
    min-width: 80px;
    font-size: 1rem;
}

/* Ensure each price column maintains its structure */
.price-column-quad,
.price-column-triple, 
.price-column-double,
.price-column-single {
    text-align: center !important;
    vertical-align: middle !important;
    font-weight: 600 !important;
    color: var(--success-color) !important;
    white-space: nowrap !important;
}

/* Mobile responsive table styling */
@media (max-width: 768px) {
    .packages-table {
        min-width: 1000px;
        font-size: 0.85rem;
    }
    
    .packages-table th,
    .packages-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.8rem;
    }
    
    /* Hotel name columns */
    .packages-table .hotel-name {
        min-width: 150px;
        max-width: 150px;
        font-size: 0.75rem;
    }
    
    /* Meal and rating columns */
    .packages-table th:nth-child(3),
    .packages-table td:nth-child(3) {
        min-width: 80px;
    }
    
    .packages-table th:nth-child(4),
    .packages-table td:nth-child(4) {
        min-width: 70px;
    }
    
    /* Price columns */
    .packages-table .price-cell {
        min-width: 80px;
        font-size: 0.75rem;
    }
    
    /* Action column */
    .packages-table .action-cell {
        min-width: 70px;
    }
    
    .packages-table .action-cell .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .packages-table {
        min-width: 950px;
        font-size: 0.8rem;
    }
    
    .packages-table th,
    .packages-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }
    
    .packages-table .hotel-name {
        min-width: 130px;
        max-width: 130px;
        font-size: 0.7rem;
    }
    
    .packages-table .price-cell {
        min-width: 75px;
        font-size: 0.7rem;
    }
    
    .packages-table .action-cell .btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }
    
    /* Add scroll indicator for mobile */
    .table-responsive::after {
        content: "⟵ اسحب لليمين / Swipe Right ⟶";
        display: block;
        text-align: center;
        padding: 0.5rem;
        background: #f8f9fa;
        color: #6c757d;
        font-size: 0.75rem;
        border-top: 1px solid #dee2e6;
    }
}

/* Force table to respect column structure */
.packages-table {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.packages-table tbody tr {
    display: table-row !important;
}

.packages-table tbody td {
    display: table-cell !important;
}

/* Table styling with fixed layout for proper alignment */
.packages-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 800px;
}

.packages-table th,
.packages-table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem 0.5rem;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
}

/* Default column widths for all tables */
.packages-table th,
.packages-table td {
    min-width: 80px;
}

/* Hotel name columns (works for both single and double hotel columns) */
.packages-table th:first-child,
.packages-table td:first-child {
    min-width: 180px;
    text-align: right;
}

/* For tables with 9 columns (combined packages with Madinah and Makkah hotels) */
.packages-table tbody tr td:nth-child(2).hotel-name {
    min-width: 180px;
}

/* Action column */
.packages-table th:last-child,
.packages-table td:last-child {
    min-width: 80px;
    text-align: center;
}

/* Hotel name columns - prevent overflow */
.packages-table .hotel-name {
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 200px;
    font-size: 0.9rem;
}

.packages-table .hotel-name strong {
    display: block;
    margin-bottom: 0.25rem;
}

.packages-table .hotel-name small {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
}

.packages-table .price-cell {
    font-weight: 600;
    color: #28a745;
    white-space: nowrap;
}

.packages-table .action-cell {
    text-align: center;
}

.packages-table .action-cell .btn {
    white-space: nowrap;
}

.packages-table .action-cell {
    text-align: center;
    min-width: 100px;
}

.packages-table .action-cell .btn {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Table alternating row colors to match screenshot */
.packages-table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.packages-table tbody tr:nth-child(even) {
    background-color: #e9ecef;
}



/* Enhanced Table Responsiveness */
.table-responsive {
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Mobile Table Responsive */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .packages-table th,
    .packages-table td {
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
    }
    
    .packages-table {
        min-width: 600px;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .packages-table {
        min-width: 550px;
    }
}
    
    .mobile-scroll-wrapper::before {
        content: "← اسحب لرؤية الأسعار / Swipe to see prices →";
        font-size: 0.75rem;
        padding: 0.6rem;
    }
}

@media (max-width: 400px) {
    .packages-table {
        min-width: 750px !important;
        font-size: 0.7rem;
    }
    
    .packages-table th:first-child,
    .packages-table td:first-child {
        min-width: 140px;
    }
    
    .packages-table th:nth-child(2),
    .packages-table td:nth-child(2) {
        min-width: 80px;
    }
    
    .packages-table th:nth-child(3),
    .packages-table td:nth-child(3) {
        min-width: 65px;
    }
    
    /* Price columns - very small screens */
}

/* Override Bootstrap table-responsive default styles */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* Ensure tables don't collapse on mobile */
.table-responsive .table {
    margin-bottom: 0 !important;
    width: auto !important;
}

/* Force scrolling behavior on iOS and Android */
@supports (-webkit-appearance: none) {
    .table-responsive {
        -webkit-overflow-scrolling: touch !important;
        overflow-x: scroll !important;
    }
}

/* Universal phone number and numeric content direction fix */
.phone-number,
a[href^="tel:"],
a[href*="wa.me"],
input[type="tel"],
.price-cell,
.currency-symbol,
.price-badge {
    direction: ltr !important;
    unicode-bidi: embed !important;
}

/* RTL layout specific fixes for numeric content */
[dir="rtl"] .phone-number,
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href*="wa.me"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] .currency-symbol,
[dir="rtl"] .price-badge {
    direction: ltr !important;
    unicode-bidi: embed !important;
    display: inline-block !important;
    text-align: left !important;
}

/* Don't interfere with table cells */
[dir="rtl"] .price-cell {
    direction: ltr !important;
    unicode-bidi: embed !important;
    text-align: center !important;
}

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* RTL Table Support */
[dir="rtl"] .packages-table {
    text-align: right;
}

[dir="rtl"] .packages-table .price-cell,
[dir="rtl"] .packages-table .rating,
[dir="rtl"] .packages-table .meals-type,
[dir="rtl"] .packages-table .classification,
[dir="rtl"] .packages-table .action-cell {
    text-align: center;
}

/* Flight Information Section */
.makkah-flight-info {
    margin-top: 2rem;
}

.flight-schedule-section .card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.flight-table {
    margin-bottom: 0;
}

.flight-table thead th {
    background: linear-gradient(135deg, #2c5f8a, #2a9d8f) !important;
    color: white !important;
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.flight-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    font-weight: 500;
}

.flight-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Package Terms Section */
.package-terms-section .card {
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.package-terms-section .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.package-terms-section .card-header {
    font-weight: 600;
    border-radius: 15px 15px 0 0;
    padding: 1rem 1.25rem;
}

.package-terms-section .card-body {
    padding: 1.25rem;
}

.package-terms-section .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    line-height: 1.6;
}

.package-terms-section .list-unstyled li:last-child {
    border-bottom: none;
}

.package-terms-section .fas {
    width: 16px;
    text-align: center;
}

/* Mobile responsive for flight info with horizontal scroll */
@media (max-width: 768px) {
    .flight-schedule-section .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .flight-table {
        font-size: 0.85rem;
        min-width: 500px; /* Ensure table doesn't get too compressed */
    }
    
    .flight-table thead th,
    .flight-table tbody td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
        min-width: 100px;
    }
    
    .package-terms-section .card-body {
        padding: 1rem;
    }
    
    .package-terms-section .list-unstyled li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .flight-table {
        font-size: 0.75rem;
        min-width: 450px;
    }
    
    .flight-table thead th,
    .flight-table tbody td {
        padding: 0.5rem 0.3rem;
        min-width: 90px;
    }
    
    .package-terms-section .card-header h5 {
        font-size: 1rem;
    }
    
    .package-terms-section .list-unstyled li {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

@media (max-width: 400px) {
    .flight-table {
        min-width: 400px;
        font-size: 0.7rem;
    }
    
    .flight-table thead th,
    .flight-table tbody td {
        padding: 0.4rem 0.2rem;
        min-width: 80px;
    }
}

/* Mobile Scroll Hints */
@media (max-width: 768px) {
    /* Add scroll shadow indicators */
    .table-responsive {
        position: relative;
    }
    
    .table-responsive::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
        pointer-events: none;
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }
    
    .table-responsive:hover::after {
        opacity: 0.8;
    }
    
    /* For RTL languages, flip the shadow */
    [dir="rtl"] .table-responsive::after {
        right: auto;
        left: 0;
        background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
    }
}

/* Phone Number Direction Fix for RTL */
.phone-number {
    direction: ltr !important;
    unicode-bidi: embed !important;
    display: inline-block;
    text-align: left !important;
}

/* Phone input direction fix */
.phone-input {
    direction: ltr !important;
    text-align: left !important;
}

/* RTL layout adjustments for phone numbers */
[dir="rtl"] .phone-number {
    direction: ltr !important;
    unicode-bidi: embed !important;
    display: inline-block;
    text-align: left !important;
}

[dir="rtl"] .phone-input {
    direction: ltr !important;
    text-align: left !important;
}

/* Contact section phone numbers in RTL */
[dir="rtl"] .contact-item .phone-number {
    direction: ltr !important;
    unicode-bidi: embed !important;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

/* RTL Support for Flight Info */
[dir="rtl"] .flight-table,
[dir="rtl"] .package-terms-section {
    text-align: right;
}

[dir="rtl"] .flight-table thead th,
[dir="rtl"] .flight-table tbody td {
    text-align: center;
}

[dir="rtl"] .package-terms-section .fas {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="ltr"] .package-terms-section .fas {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Enhanced touch scrolling for all mobile devices */
@media (max-width: 768px) {
    .table-responsive {
        -ms-overflow-style: -ms-autohiding-scrollbar;
        scroll-behavior: smooth;
    }
    
    /* iOS specific smooth scrolling */
    @supports (-webkit-appearance: none) {
        .table-responsive {
            -webkit-overflow-scrolling: touch;
        }
    }
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-image {
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.carousel-caption h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.carousel-caption p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.carousel-indicators {
    margin-bottom: -50px;
    z-index: 3;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(44, 95, 138, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(44, 95, 138, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Fade transition for carousel */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
}

.carousel-fade .active.carousel-item,
.carousel-fade .next.carousel-item.carousel-item-start,
.carousel-fade .prev.carousel-item.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Mobile responsive carousel */
@media (max-width: 768px) {
    .carousel-image {
        height: 250px;
    }
    
    .hero-carousel {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .carousel-caption {
        padding: 0.5rem;
    }
    
    .carousel-caption h5 {
        font-size: 0.95rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: -10px;
    }
    
    .carousel-control-next {
        right: -10px;
    }
}

@media (max-width: 576px) {
    .carousel-image {
        height: 200px;
    }
    
    .carousel-caption {
        display: none !important;
    }
    
    .carousel-indicators {
        margin-bottom: -30px;
    }
}