/* نظام البحث المتقدم للرحلات الجوية والفنادق - النسخة النهائية المصححة */
.flight-search-container {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: white;
    padding: 0;
    z-index: 30;
    margin-bottom: 0;
}

.search-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* خلفية الجبل - للكمبيوتر */
.mountain-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 170%;
    background: url('../pics/mountain.jpg') center/cover;
    clip-path: ellipse(120% 70% at 30% 20%);
    opacity: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
    image-rendering: -webkit-optimize-contrast;
}

.background-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.search-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 0.7rem;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 1200px;
    margin: 0 auto;
    height: 60%;
    width: 95%;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
    transform-origin: top;
}

.search-hero-content {
    width: 100%;
    position: relative;
    z-index: 10;
    padding-bottom: 200px;
}

/* أزرار الخدمات - نصف داخل ونصف خارج */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: -15px;
    flex-wrap: wrap;
    position: relative;
    z-index: -45;
    padding-top: 0px;
}

.service-square {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(55, 65, 81, 0.15);
    border-radius: 12px;
    padding: 5px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 58px;
    height: 48px;
    box-shadow: 0 3px 10px rgba(44, 90, 160, 0.1);
    position: flex;
    user-select: none;
    -webkit-user-select: none;
}

.service-square.active {
    background: rgba(55, 65, 81, 0.95);
    color: white;
    border-color: #374151;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.25);
    z-index: 50;
}

.service-square:hover {
    transform: translateY(-1px);
    border-color: #374151;
    background: rgba(255, 255, 255, 0.9);
}

.service-square.active:hover {
    transform: translateY(-3px);
}

.service-icon {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-square.active .service-icon {
    color: white;
}

.service-text {
    font-size: 0.55rem;
    font-weight: 600;
    color: #374151;
}

.service-square.active .service-text {
    color: white;
}

/* سطر نوع الرحلة وزر البحث */
.trip-search-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 5px;
}

.trip-type {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trip-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    min-width: 80px;
    user-select: none;
    -webkit-user-select: none;
}

.trip-option.active {
    background: #374151;
    color: white;
    border-color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.15);
}

.trip-option:hover {
    transform: translateY(-1px);
    border-color: #374151;
}

.trip-option.active:hover {
    transform: translateY(-3px);
}

.search-button-top {
    background: #374151;
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2);
    flex-shrink: 0;
}

.search-button-top:hover {
    background: #1e3a8a;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.search-button-top .fas {
    font-size: 1rem;
    color: white;
}

/* الحقول الرئيسية - مضغوطة */
.search-main-row {
    display: grid;
    grid-template-columns: 1.2fr auto 1.2fr 0.8fr 0.8fr 0.8fr;
    gap: 6px;
    align-items: center;
    margin-bottom: 5px;
}

.search-field {
    position: relative;
}

.search-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1.5px solid rgba(55, 65, 81, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
    height: 42px;
    user-select: none;
    -webkit-user-select: none;
}

.search-label.active {
    border-color: #374151;
    box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.1);
    background: white;
}

.search-label:hover {
    border-color: #374151;
    background: white;
}

.label-content h4 {
    color: #374151;
    margin-bottom: 1px;
    font-size: 0.6rem;
    font-weight: 600;
    text-align: left;
}

.selected-airport {
    font-size: 0.7rem;
    font-weight: 500;
    color: #374151;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* التواريخ */
.date-field {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border: 1.5px solid rgba(55, 65, 81, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    height: 42px;
    min-width: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.date-field:hover {
    border-color: #374151;
    background: white;
}

.date-content h4 {
    color: #374151;
    margin-bottom: 1px;
    font-size: 0.6rem;
    font-weight: 600;
    text-align: left;
}

.date-content p {
    font-size: 0.7rem;
    font-weight: 500;
    color: #374151;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* زر التبديل */
.swap-button {
    background: white;
    border: 1.5px solid rgba(55, 65, 81, 0.15);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(44, 90, 160, 0.08);
}

.swap-button:hover {
    background: #374151;
    border-color: #374151;
}

.swap-button:hover .fas {
    color: white;
}

/* إصلاح أيقونات Font Awesome */
.search-label .fas,
.search-label .far {
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #374151 !important;
}

.date-field .fas {
    font-size: 11px !important;
    width: 11px !important;
    height: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #374151 !important;
}

.swap-button .fas {
    font-size: 12px !important;
    width: 12px !important;
    height: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #374151 !important;
}

/* نوافذ منبثقة */
.airport-popup,
.passenger-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.airport-popup-container,
.passenger-popup-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 15px;
    max-width: 380px;
    width: 90%;
    max-height: 70vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.passenger-popup-container {
    max-width: 300px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.1);
}

.popup-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.close-popup {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #374151;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-popup:hover {
    background: rgba(55, 65, 81, 0.1);
}

.airport-popup-content,
.passenger-popup-content {
    max-height: 45vh;
    overflow-y: auto;
    flex: 1;
}

.airport-popup-content::-webkit-scrollbar,
.passenger-popup-content::-webkit-scrollbar {
    width: 4px;
}

.airport-popup-content::-webkit-scrollbar-track,
.passenger-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.airport-popup-content::-webkit-scrollbar-thumb,
.passenger-popup-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.airport-popup-content::-webkit-scrollbar-thumb:hover,
.passenger-popup-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.search-airport-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid rgba(55, 65, 81, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
}

.search-airport-input:focus {
    border-color: #374151;
    outline: none;
    box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.1);
    background: white;
}

.airport-popup-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.airport-popup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    border: 1px solid transparent;
}

.airport-popup-item:hover {
    background: rgba(55, 65, 81, 0.05);
    border-color: rgba(55, 65, 81, 0.1);
}

.airport-popup-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.airport-popup-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 0.8rem;
}

.airport-popup-details {
    flex: 1;
}

.airport-popup-city {
    font-weight: 600;
    font-size: 0.7rem;
    color: #374151;
    margin-bottom: 1px;
    line-height: 1.2;
}

.airport-popup-name {
    font-size: 0.6rem;
    color: #64748b;
    line-height: 1.2;
}

.airport-popup-code {
    background: #374151;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
}

/* Passenger popup styles */
.class-selection {
    margin-bottom: 15px;
}

.class-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.class-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.class-btn {
    padding: 8px 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.65rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

.class-btn.active {
    background: #374151;
    color: white;
    border-color: #374151;
}

.class-btn:hover {
    border-color: #374151;
}

.traveler-selection {
    margin-bottom: 15px;
}

.traveler-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.traveler-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.traveler-info {
    flex: 1;
}

.traveler-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1px;
    line-height: 1.2;
}

.traveler-age {
    font-size: 0.6rem;
    color: #64748b;
    line-height: 1.2;
}

.traveler-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-btn {
    width: 24px;
    height: 24px;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    color: #374151;
}

.counter-btn:hover:not(:disabled) {
    border-color: #374151;
    color: #374151;
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    min-width: 18px;
    text-align: center;
}

.passenger-actions {
    display: flex;
    gap: 8px;
}

.btn-reset {
    flex: 1;
    padding: 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    font-weight: 500;
    color: #374151;
}

.btn-reset:hover {
    border-color: #374151;
    color: #374151;
}

.btn-apply {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    font-weight: 500;
    color: white;
}

.btn-apply:hover {
    background: #1e3a8a;
}

/* تنسيق التقويم المحسّن */
.calendar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.calendar-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: #3b82f6;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: #2563eb;
}

.current-month {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.8rem;
    padding: 8px 0;
}

.calendar-day {
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-size: 0.8rem;
    font-weight: 500;
}

.calendar-day:hover {
    background: #f3f4f6;
}

.calendar-day.selected {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
}

.calendar-day.other-month {
    color: #d1d5db;
    cursor: not-allowed;
}

.calendar-day.past-day {
    color: #9ca3af;
    cursor: not-allowed;
    background: #f9fafb;
}

.calendar-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.calendar-actions .btn-reset {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.calendar-actions .btn-apply {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.calendar-actions .btn-reset:hover {
    background: #4b5563;
}

.calendar-actions .btn-apply:hover {
    background: #059669;
}

/* نتائج البحث */
.results-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.results-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-results {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #374151;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.results-subtitle {
    color: #374151;
    font-size: 0.9rem;
}

/* بطاقات الطيران */
.flight-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.flight-card:hover {
    border-color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.flight-card.featured {
    border-color: #374151;
    background: linear-gradient(135deg, #f8fafc, #e5e7eb);
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.airline-logo {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.airline-name {
    font-weight: 600;
    font-size: 1rem;
    color: #374151;
}

.flight-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #374151;
    font-family: 'Courier New', monospace; /* لمظهر مالي محترف */
}

.flight-details {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.time-section {
    text-align: center;
}

.time {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #374151;
}

.city {
    color: #374151;
    font-size: 0.8rem;
}

.flight-path {
    text-align: center;
    position: relative;
}

.duration {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #374151;
}

.stops {
    color: #374151;
    font-size: 0.7rem;
}

.flight-features {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.feature {
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #374151;
}

.flight-actions {
    display: flex;
    gap: 10px;
}

.btn-book {
    background: #374151;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-book:hover {
    background: #1e3a8a;
}
.btn-book::before {
    content: "• $"; /* إضافة رمز الدولار */
    font-weight: bold;
}

.btn-details {
    background: transparent;
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: #374151;
}

.btn-details:hover {
    border-color: #374151;
    color: #374151;
}

/* بطاقات الفنادق */
.hotel-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.hotel-card:hover {
    border-color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.hotel-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.hotel-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 5px;
}

.hotel-location {
    color: #64748b;
    font-size: 0.8rem;
}

.hotel-rating {
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hotel-features {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hotel-feature {
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #374151;
}

/* شريط التصفية للفنادق */
.filter-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
    font-size: 0.9rem;
}

.star-rating {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.star-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.star-btn.active {
    background: #374151;
    color: white;
    border-color: #374151;
}

.star-btn:hover {
    border-color: #374151;
}

.price-range {
    width: 100%;
    margin: 10px 0;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6b7280;
}

.sort-select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 0.8rem;
    color: #374151;
}

.sort-select:focus {
    border-color: #374151;
    outline: none;
}

.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #374151;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.api-status {
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.api-status.live {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.api-status.simulated {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

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

.no-results {
    text-align: center;
    padding: 15px;
    color: #64748b;
    font-size: 0.75rem;
}

/* 🔧 التصحيح: إخفاء الـ dropdowns القديمة */
.airport-dropdown,
.passenger-dropdown {
    display: none !important;
}

/* 🔧 التصحيح: تأكد من أن الحاويات مضبوطة بشكل صحيح */
.flights-search-container {
    display: block;
}

.hotels-search-container {
    display: none;
}

/* 🔧 التصحيح: تأكد من أن أزرار البحث مضبوطة */
#searchFlightsButton {
    display: flex !important;
}

#searchHotelsButton {
    display: flex !important;
}

/* التصميم المتجاوب */
@media (max-width: 1250px) {
    .search-container {
        max-width: 95%;
        margin: 0 2.5%;
    }
}

@media (max-width: 1024px) {
    .search-main-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .swap-button {
        display: none;
    }
    
    .flight-search-container {
        min-height: 60vh;
    }
    
    .mountain-image {
        clip-path: ellipse(130% 75% at 50% 30%);
    }
    
    .filter-sidebar {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .flight-search-container {
        min-height: 100vh;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    
    .search-container {
        margin-bottom: 0;
        padding: 1rem;
        transform: translateY(50px);
        width: 95%;
        max-width: 400px;
    }
    
    .services-grid {
        margin-bottom: 15px;
        padding-top: 0;
    }
    
    .search-main-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .search-label,
    .date-field {
        height: 48px;
        padding: 10px 12px;
    }
    
    .mountain-image {
        clip-path: none;
        width: 100%;
        height: 100%;
        background-position: center center !important;
    }
    
    .search-hero-content {
        padding-bottom: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .background-gradient {
        height: 60%;
        background: linear-gradient(to bottom, 
            transparent 0%, 
            rgba(255, 255, 255, 0.2) 40%,
            rgba(255, 255, 255, 0.6) 70%,
            white 100%);
    }
    
    .results-container {
        padding: 20px;
        margin: 10px;
    }
    
    .filter-sidebar {
        padding: 10px;
    }
    
    .star-rating {
        justify-content: center;
    }
    
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .flight-search-container {
        min-height: 100vh;
    }
    
    .search-container {
        padding: 0.8rem;
        transform: translateY(-30px);
        max-width: 350px;
    }
    
    .services-grid {
        margin-bottom: 12px;
        gap: 4px;
    }
    
    .service-square {
        width: 52px;
        height: 44px;
        padding: 4px 6px;
    }
    
    .service-text {
        font-size: 0.45rem;
    }
    
    .trip-option {
        min-width: 70px;
        padding: 6px 12px;
        font-size: 0.65rem;
    }
    
    .search-button-top {
        width: 38px;
        height: 38px;
    }
    
    .search-button-top .fas {
        font-size: 0.9rem;
    }
    
    .search-hero-content {
        padding: 0 10px;
    }
    
    .hotel-image {
        height: 150px;
    }
    
    .hotel-name {
        font-size: 1rem;
    }
    
    .calendar-container {
        padding: 15px;
        max-width: 95%;
    }
    
    .calendar-title {
        font-size: 1rem;
    }
    
    .calendar-day {
        padding: 8px 0;
        font-size: 0.75rem;
    }
    
    .nav-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* تحسينات للوضع الأفقي على الهاتف */
@media (max-width: 768px) and (orientation: landscape) {
    .flight-search-container {
        min-height: 120vh;
    }
    
    .search-container {
        transform: translateY(-20px);
        max-width: 90%;
        padding: 1rem;
    }
    
    .search-main-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .services-grid {
        margin-bottom: 10px;
    }
}

/* تحسينات للشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1024px) {
    .flight-search-container {
        min-height: 80vh;
    }

    .search-hero-background {
        height: 100%;
    }

    .mountain-image {
        clip-path: ellipse(130% 75% at 50% 25%);
    }

    .search-container {
        margin-bottom: -80px;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1025px) {
    .flight-search-container {
        min-height: 85vh;
    }

    .search-hero-background {
        height: 100%;
    }

    .mountain-image {
        clip-path: ellipse(120% 70% at 30% 20%);
    }

    .search-container {
        margin-bottom: -100px;
    }
}

/* تأثيرات تحسين إضافية */
.search-container {
    transition: all 0.3s ease;
}

.search-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* تحسين الظل للهاتف */
@media (max-width: 768px) {
    .search-container {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    }
}

/* تحسينات للعناوين على الهاتف */
@media (max-width: 768px) {
    .label-content h4,
    .date-content h4 {
        font-size: 0.65rem;
        font-weight: 700;
        color: #374151;
    }
    
    .selected-airport,
    .date-content p {
        font-size: 0.75rem;
        font-weight: 600;
        color: #1f2937;
    }
}

/* تحسينات للرزنامة على الهاتف */
@media (max-width: 768px) {
    .calendar-popup-container {
        max-width: 95%;
        margin: 10px;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .calendar-day {
        padding: 6px 0;
        font-size: 0.7rem;
    }
}

/* إزالة أي خلفيات كحلية غير مرغوبة */
.flight-search-container {
    background: white !important;
}

.search-hero-background {
    background: transparent !important;
}