﻿body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    direction: rtl;
    overflow-x: hidden;
    width: 100%;
}

.ui.calendar {
    direction: ltr; /* Calendars typically stay in LTR for numbers */
}

.ui.segment {
    background-color: #FAF8EF;
}
.ui.container {

    max-width: 100% !important;

    width: 100% !important;

}


.ui.calendar input,
.ui.calendar .ui.popup,
.ui.calendar .link,
#priceTable {
    cursor: pointer;
}

/* Form Styles */
.ui.form {
    direction: rtl; /* Ensures form elements follow RTL */
    text-align: right; /* Align labels and inputs properly in RTL */
}

.ui.form .field label {
    text-align: right;
}

.ui.form input {
    text-align: right; /* Ensures text inside input fields aligns correctly */
}

/* Centered and Highlighted Headers */
.ui.header {
    text-align: center; /* Center the header text */
    color: white;
    background-color: #061645; /* Highlight background color */
    padding: 15px; /* Add padding for space around the text */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for distinction */
    margin-bottom: 20px; /* Add margin below the header */
}

h3.ui.header {
    color: #ffffff !important;
}

/* Header Styles */
.header-section {
    background-color: #FAF8EF;
    padding: 60px 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse; /* Reverses content flow for RTL */
    width: 100%;
}

.header-logo img {
    width: 200px;
    margin: 0 auto;
    display: block;
}

.header-user {
    padding: 0 33px 10px 0px;
    display: flex;
    align-items: center;
}

.header-user-name {
    margin-right: 10px; /* Margin on the right instead of left */
    font-weight: bold;
    text-align: center;
}

.header-menu {
    margin: 0px 0px 10px 10px;
    background-color: #061645;
    padding: 10px 20px;
    width: 100%;
}

.header-menu .ui.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    flex-direction: row-reverse; /* Reverses menu order for RTL */
}

.header-menu .menu-items {
    display: flex;
    gap: 15px;
}

.menu-items .item {
    color: #fff;
    position: relative;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    transition: color 0.3s ease;
    border: 1px solid transparent;
}

.menu-items .item:hover {
    border: 1px solid #5CA4AA;
    border-radius: 5px;
}

.header-menu .search-bar input {
    border-radius: 50px;
    padding: 10px 15px;
    width: 250px;
    border: none;
    background-color: #FAF8EF;
    text-align: right; /* Align text input correctly for RTL */
}

.footer-section {
    background-color: #061645;
    color: white;
    padding: 15px;
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.flight-card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.flight-card img {
    width: 80px;
}

.flight-price {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

/* Sidebar Styles */
.ui.sidebar {
    width: 250px;
    direction: rtl; /* Ensure sidebar respects RTL layout */
}

.sidebar-menu .item {
    padding: 10px 20px;
}

.sidebar-menu .menu .item {
    padding-right: 30px; /* Ensure submenu items align correctly */
}

.ui.sidebar.left {
    left: auto;
    right: 0; /* Move sidebar to the right in RTL */
}

#menu-button {
    position: absolute;
    right: 15px; /* Adjust menu button to the left for RTL */
    top: 15px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

#menu-button i {
    font-size: 24px;
}

/* Table Styles */
.ui.celled.table tbody tr:nth-child(odd) {
    background-color: #f9f9f9 !important; /* Light gray for odd rows */
}

.ui.celled.table:not(#priceTable) tbody tr:hover {
    background-color: #f1c40f;
}

#priceTable {
    direction: ltr;
    width: 60%;
    margin: auto;
}

.ui.celled.table tbody tr.positive:nth-child(odd),
.ui.celled.table tbody tr.negative:nth-child(odd),
.ui.celled.table tbody tr.active:nth-child(odd) {
    background-color: #f9f9f9 !important; /* Apply light gray to odd rows even with dynamic classes */
}

.ui.celled.table tbody tr.positive:hover,
.ui.celled.table tbody tr.negative:hover,
.ui.celled.table tbody tr.active:hover {
    background-color: #f1c40f !important; /* Ensure hover works with dynamic classes */
}

table {
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ccc;
    text-align: center;
    position: relative;
}

.hover-horizontal {
    background-color: #e0f7fa;
}

.hover-vertical {
    background-color: #e0f7fa;
}

.highlight-cell {
    background-color: #21ba45;
    color: white;
}

.departure-column {
    background-color: #d3d3d3; /* Light gray for the entire column */
    color: black; /* Text color */
}

.selected-date {
    background-color: yellow; /* You can choose any color for highlighting */
    font-weight: bold;
}

/* Utility Classes */
.hide, .hidden {
    display: none !important;
}

.full-width {
    width: 100%;
}

.margin-top {
    margin-top: 1rem;
}

.ltr {
    direction: ltr;
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loadingOverlay img {
    width: 100px; /* Set the size of your loading gif */
    height: 100px;
}

/* Slider */
.slider-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.6s ease-out;
    will-change: transform;
    direction: ltr; /* Keeps transition consistent even in RTL mode */
}

.slider img,
.slider video {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
    max-height: none;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3; /* Ensures controls are above images */
    pointer-events: none;
}

.ui.circular.icon.button {
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    pointer-events: auto;
    z-index: 3; /* Ensures buttons are above the images */
    padding: 10px; /* Makes buttons easier to click */
}

/* UI Components */
.ui.raised.segment {
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.ui.button {
    margin-top: 20px;
    background-color: #2185d0;
    color: #fff;
}

.ui.button:hover {
    background-color: #1678c2;
}

/* News Ticker */
#tickerContainer {
    overflow: hidden;
    white-space: nowrap;
    background-color: #061645;
    padding: 10px 0;
    position: relative;
}

#newsTicker {
    display: inline-block;
    position: relative;
    white-space: nowrap;
}

#newsTicker a {
    display: inline-block;
    color: #fff;
    margin: 0 30px;
    font-size: 1.2em;
    text-decoration: none;
}

.offer-card img {
    width: 100px;
    margin: 5px;
}

.flight-details {
    flex-grow: 1;
    margin-left: 20px;
    text-align: right;
}

.flight-details h4 {
    margin: 0 0 10px 0;
    color: #2B3E50;
    font-weight: bold;
}

.price p {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: #21ba45;
}

.details-button, .book-button {
    background-color: #2B3E50;
    color: white;
    border: none;
    width: 120px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.details-button:hover, .book-button:hover {
    background-color: #3F4A5B;
}

.button-container button {
    margin-top: 5px;
}

/* Flight Confirmation */
#selected-flights-summary .ui.segment {
    margin-bottom: 15px;
}

.selected-outbound-info {
    margin: 10px 0;
}

.selection-status .ui.segment {
    padding: 10px;
    margin-top: 10px;
}

#flight-confirmation .ui.positive.message {
    margin-top: 20px;
}

.total-price {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8fff8;
    border-radius: 5px;
    text-align: right;
}

.total-price h3 {
    color: #21ba45;
    margin: 0;
}

.flight-itinerary-container {
    max-width: 75% !important;
    margin: 0 auto !important;; /* Center the container */
    box-shadow: 0 2px 15px rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.flight-itinerary-header {
    padding: 1.2em !important;
    margin: 0 !important;
}

.flight-itinerary-header h2 {
    margin: 0;
    font-weight: 400;
}

.flight-segment:not(:last-child) {
    border-bottom: 1px dashed #ddd !important;
}

.ui.ribbon.label {
    position: absolute;
    top: 1em;
    left: -15px;
    padding: 0.6em 1em !important;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.airline-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.airline-logo-container {
    width: 70px;
    height: 70px;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airline-name {
    font-weight: bold;
    margin-top: 0.5em;
}

.flight-schedule-column {
    padding: 0 2em !important;
}

.departure-details, .arrival-details {
    text-align: center;
    flex: 0 0 30%;
}

.path-duration {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #f8f8f8;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    color: #666;
    white-space: nowrap;
}

.additional-details {
    margin-top: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.price-column {
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #eee;
}

.flight-price-card {
    text-align: center;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 8px;
    width: 100%;
}

.price-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.5em;
}

.flight-summary-segment {
    background: #f9fafb !important;
}

.passenger-summary h3, .total-price-summary h3 {
    margin-bottom: 1em;
}

.total-price-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    border-left: 1px solid #eee;
}

.ui.statistic {
    margin: 0;
}

.ui.statistic .value {
    color: #21ba45;
}

.flight-group-container {
    position: relative;
    margin-bottom: 1.5em;
    max-width: 80% !important;
    margin: 0 auto;
}

.alternatives-badge {
    background-color: #2185d0;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    z-index: 10;
    cursor: pointer;
}

.alternatives-badge:hover {
    background-color: #1678c2;
}

.toggle-alternatives-btn {
    width: 100%;
    margin-top: 0.5em !important;
    text-align: center;
}

.alternative-flights {
    margin-top: 0.5em;
    border-left: 3px solid #f0f0f0;
}

.alternative-flight {
    margin-bottom: 0.5em;
    opacity: 0.95;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03) !important;
    border-left: 3px solid #2185d0;
}

.alternative-flight .flight-card-content {
    padding: 1em;
}

.main-flight {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.sort-direction-btn .text {
    padding-left: 0.3em;
}

/* Main Container Layout */
.main-container {
    padding: 2em 0;
    max-width: 80% !important;
    margin: 0 auto !important; /* Center the container */
}

.page-header {
    margin-bottom: 1.5em;
}

.breadcrumb-container {
    padding: 1em 0;
}

.search-details {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5em;
    margin-bottom: 1.5em;
}

.details-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5em 1em;
}

.details-label {
    font-weight: 600;
    color: #555;
}

.search-results-container {
    display: flex;
    gap: 20px;
}

.filter-column {
    width: 280px;
    flex-shrink: 0;
}

.flight-results-column {
    flex-grow: 1;
}

.filter-sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5em;
}

.filter-header {
    margin-bottom: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8em;
}

.filter-section {
    margin-bottom: 1.5em;
}

.filter-section h4 {
    font-size: 1em;
    margin-bottom: 0.8em;
    color: #555;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.sort-controls {
    display: flex;
    gap: 8px;
    align-items:last baseline;
}

.sort-dropdown {
    flex-grow: 1;
    padding: 0.6em 0.8em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #555;
    font-size: 0.9em;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8em center;
    background-size: 1em;
    padding-right: 2.5em;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #2185d0;
    box-shadow: 0 0 0 2px rgba(33, 133, 208, 0.2);
}

.sort-dropdown:hover {
    border-color: #ccc;
}


.sort-direction-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.reset-filters-btn {
    width: 100%;
    padding: 0.7em 1em;
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
    text-align: center;
}

.reset-filters-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.search-summary {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.2em;
    margin-bottom: 1.5em;
}

.search-count h3 {
    margin-bottom: 0.5em;
    color: #333;
}

.search-count p {
    color: #666;
}

.selection-status {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.2em;
    margin-bottom: 1.5em;
}

.flights-container {
    margin-bottom: 2em;
}

.offer-card {
    max-width: 75% !important;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.2em;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.offer-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.offer-card.selected {
    border: 2px solid #2185d0;
}

.flight-card-content {
    display: flex;
    padding: 1.5em;
}

.airline-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    padding-right: 1.5em;
    border-right: 1px solid #eee;
}

.airline-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 60px; /* Added from later duplicate for consistency */
    height: 60px; /* Added from later duplicate for consistency */
    border-radius: 50%; /* Added from later duplicate for consistency */
    margin-bottom: 0.8em; /* Added from later duplicate for consistency */
}

.flight-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em;
    color: #666;
}

.flight-schedule {
    display: flex;
    flex-grow: 1;
    align-items: center;
    padding: 0 1.5em;
}

.departure, .arrival {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 120px;
}

.time {
    font-size: 1.5em; /* From later duplicate */
    font-weight: bold; /* From later duplicate */
    color: #333; /* From later duplicate */
}

.airport-code {
    font-size: 1.2em; /* From later duplicate */
    font-weight: bold; /* From later duplicate */
    margin: 0.3em 0; /* From later duplicate */
    color: #555; /* From later duplicate */
}

.date {
    color: #666; /* From later duplicate */
    font-size: 0.9em; /* From later duplicate */
}

.duration {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.5em;
}

.plane-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 0.3em;
    color: #2185d0;
}

.cabin-class {
    font-size: 0.85em;
    color: #777;
    margin-top: 0.5em;
}

.price-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    padding-left: 1.5em;
    border-left: 1px solid #eee;
}

.price-amount {
    font-size: 1.6em; /* From later duplicate */
    font-weight: bold; /* From later duplicate */
    color: #21ba45; /* From later duplicate */
    margin-bottom: 1em; /* From later duplicate */
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    width: 100%;
}

.details-button {
    padding: 0.7em 1em;
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.details-button:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.book-button {
    padding: 0.7em 1em;
    background-color: #2185d0;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 100%;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(33, 133, 208, 0.2);
    text-align: center;
}

.book-button:hover {
    background-color: #1a69ac;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 133, 208, 0.3);
}

.seats-left {
    font-size: 0.8em;
    color: #e74c3c;
    text-align: center;
    margin-top: 0.5em;
}

.no-flights-message {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5em;
    text-align: center;
}

.no-results-message {
    background-color: #fff3cd;
    border-radius: 8px;
    padding: 1.5em;
    text-align: center;
    margin-top: 1.5em;
}

.no-results-message h3 {
    color: #856404;
    margin-bottom: 0.5em;
}

.no-results-message p {
    color: #856404;
}

.flight-details-modal {
    padding: 1em;
}

/* Modern button styles */
.modern-btn {
    padding: 0.7em 1.2em;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #2185d0;
    color: white;
    box-shadow: 0 2px 5px rgba(33, 133, 208, 0.2);
}

.btn-primary:hover {
    background-color: #1a69ac;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 133, 208, 0.3);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.ui.modal .actions {
    background: #f9fafb;
    padding: 1.2em;
    border-top: 1px solid #eee;
    text-align: right;
}

.ui.modal .actions .button {
    margin-left: 0.8em;
    padding: 0.7em 1.2em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ui.modal .actions .primary.button {
    background-color: #2185d0;
    color: white;
    box-shadow: 0 2px 5px rgba(33, 133, 208, 0.2);
}

.ui.modal .actions .primary.button:hover {
    background-color: #1a69ac;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 133, 208, 0.3);
}

/* Date navigation styles */
.date-navigation-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5em;
    margin-bottom: 1.5em;
}

.date-nav-header {
    margin-bottom: 1em;
    font-size: 1.1em;
    color: #333;
    text-align: center;
}

.date-matrix-wrapper, .date-calendar-wrapper {
    overflow-x: auto;
    margin-bottom: 1em;
}

.date-price-matrix, .date-price-calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.date-price-matrix th, .date-price-calendar th {
    padding: 0.8em;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.date-price-matrix td, .date-price-calendar td {
    padding: 0.8em;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.date-price-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.price-cell {
    background-color: #f0f7ff;
    cursor: pointer;
}

.price-cell:hover {
    background-color: #e0f0ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(33, 133, 208, 0.15);
}

.no-price {
    background-color: #f8f9fa;
    color: #aaa;
}

.invalid-date {
    background-color: #f5f5f5;
    color: #ddd;
}

.current-selection {
    background-color: #2185d0 !important;
    color: white !important;
    font-weight: bold;
}

.current-selection .calendar-price,
.current-selection .matrix-price,
.current-selection .calendar-date {
    color: white;
}

.calendar-date {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 0.3em;
}

.calendar-price {
    display: block;
    color: #2185d0;
    font-weight: 600;
}

.matrix-price {
    color: #2185d0;
    font-weight: 600;
    font-size: 0.95em;
}

.offer-info {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
}

.price {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 150px;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.passenger-form-container {
    margin-top: 2em;
}

.passenger-form-container .ui.segment {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5em;
}

.passenger-form-container .ui.segment h3 {
    margin-top: 0;
    color: #2185d0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.ui.form .fields {
    margin-bottom: 1.5em;
}

.ui.form label {
    font-weight: 500;
    margin-bottom: 0.5em;
    display: block;
}

.ui.form input, .ui.form select {
    border-radius: 4px !important;
}

.contact-information {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5em;
    margin-bottom: 2em;
}

.submit-container {
    margin-top: 2em;
    text-align: right;
}

.submit-btn {
    padding: 1em 2em !important;
    font-size: 1.1em !important;
}

.error {
    color: #db2828;
    font-size: 0.8em;
    margin-top: 0.3em;
}

.confirmation-section {
    margin-bottom: 2em;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5em;
}

.booking-reference {
    font-size: 1.2em;
    padding: 1em;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.reference-label {
    font-weight: bold;
    margin-right: 1em;
    color: #666;
}

.reference-value {
    font-weight: 600;
    font-family: monospace;
    font-size: 1.2em;
    color: #2185d0;
}

.passenger-card {
    margin-bottom: 1em;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.passenger-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.passenger-type-icon {
    width: 40px;
    height: 40px;
    background-color: #e8f4fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1em;
}

.passenger-header {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.passenger-name {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
}

.passenger-type {
    color: #666;
    font-size: 0.9em;
}

.passenger-details {
    margin-left: 3.5em;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
}

.contact-icon {
    width: 20px;
    margin-right: 1em;
    color: #2185d0;
}

.next-steps {
    background-color: #f0f7ff;
    border-radius: 8px;
    padding: 1.5em;
    margin: 2em 0;
}

.ui.positive.message {
    box-shadow: 0 0 0 1px #a3c293 inset, 0 2px 4px 0 rgba(34,36,38,.12);
    background-color: #fcfff5;
    color: #2c662d;
    border-radius: 8px;
    padding: 1.5em;
}

.ui.negative.message {
    box-shadow: 0 0 0 1px #e0b4b4 inset, 0 2px 4px 0 rgba(34,36,38,.12);
    background-color: #fff6f6;
    color: #9f3a38;
    border-radius: 8px;
    padding: 1.5em;
}

.status-icon {
    font-size: 2em;
    margin-right: 0.5em;
}

.ui.breadcrumb {
    margin-bottom: 1.5em;
}

.booking-progress {
    margin: 2em 0;
    direction: rtl;
}

.booking-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2em;
}

.booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    max-width: 150px;
}

.booking-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 25px;
    right: 60%;
    width: 80%;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e0e1e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.5em;
    position: relative;
    z-index: 2;
}

.step-active .step-number {
    background-color: #2185d0;
}

.step-completed .step-number {
    background-color: #21ba45;
}

.step-label {
    font-size: 0.9em;
    text-align: center;
}

.itinerary-section {
    margin-bottom: 2em;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1em;
}

.ticket-wrapper {
    border-radius: 8px;
    padding: 2em;
    margin-bottom: 2em;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ticket-header {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
    display: flex;
    align-items: center;
}

.ticket-logo {
    width: 80px;
    height: 80px;
    margin-right: 1.5em;
    object-fit: contain;
}

.flight-segment {
    position: relative;
    padding: 2em !important;
    border-top: none !important;
    margin: 1.5em 0; /* From later duplicate */
    background-color: #f8f9fa; /* From later duplicate */
    border-radius: 8px; /* From later duplicate */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* From later duplicate */
}

.flight-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5em;
    position: relative; /* From later duplicate */
}

.flight-path {
    flex: 1;
    position: relative;
    height: 30px;
    margin: 0 15px;
    display: flex; /* From later duplicate */
    flex-direction: column; /* From later duplicate */
    align-items: center; /* From later duplicate */
    padding: 0 1.5em; /* From later duplicate */
}

.path-line {
    position: relative;
    width: 100%;
    height: 1px; /* From later duplicate */
    background-color: #ddd; /* From later duplicate */
    margin: 0.5em 0; /* From later duplicate */
}

.path-hr {
    margin: 0;
    border: none;
    border-top: 2px solid #ddd;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.path-plane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: #2185d0;
}

.passenger-info {
    margin-bottom: 1.5em;
}

.ticket-reference {
    font-size: 1.2em;
    padding: 1em;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

/* Action button styles */
.action-buttons {
    margin-top: 2em;
    display: flex;
    gap: 1em;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .flight-details-grid {
        display: block !important;
    }

    .airline-column, .flight-schedule-column, .price-column {
        width: 100% !important;
        margin-bottom: 1.5em;
        padding: 0 !important;
        border: none !important;
    }

    .price-column {
        border-top: 1px solid #eee !important;
        padding-top: 1.5em !important;
    }

    .airline-column { /* This overwrites the previous .airline-column inside this block */
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .airline-logo-container {
        margin-right: 1em;
        margin-bottom: 0;
    }

    .total-price-summary { /* This overwrites the previous .total-price-summary inside this block */
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 1em;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    /* This block contains the latest rules for this condition */
    .booking-steps { /* This overwrites the previous .booking-steps inside this block */
        overflow-x: auto;
        padding-bottom: 1em;
    }

    .booking-step { /* This overwrites the previous .booking-step inside this block */
        min-width: 100px;
    }

    .action-buttons { /* This overwrites the previous .action-buttons inside this block */
        flex-direction: column;
    }

    .action-buttons .ui.button {
        width: 100%;
        margin-bottom: 0.5em;
    }

    /* Rules from the third occurrence of @media (max-width: 768px) */
    .search-results-container {
        flex-direction: column;
    }

    .filter-column {
        width: 100%;
        margin-bottom: 1.5em;
    }

    .flight-card-content {
        flex-direction: column;
        gap: 1em;
    }

    .airline-info {
        flex-direction: row;
        width: 100%;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 1em;
    }

    .price-section {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 1em;
    }

    /* Rules from the second occurrence of @media (max-width: 768px) */
    .sort-controls {
        flex-direction: column;
    }

    .sort-direction-btn {
        width: 100%;
    }

     /* Rules from the first occurrence of @media (max-width: 768px) - Only keeping those not defined later in other @media (max-width: 768px) blocks */
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-user {
        position: static;
        margin-bottom: 10px;
    }

    .header-menu .ui.menu {
        flex-direction: column;
        align-items: center;
    }

    .header-menu .menu-items {
        flex-direction: column;
        align-items: center;
    }

    .ui.menu .search-bar {
        width: 100%;
        margin-top: 10px;
    }

    .ui.menu .search-bar input {
        width: 100%;
        text-align: right;
    }

    .ui.menu .item {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .offer-info {
        flex-direction: column;
    }

    .price {
        margin-top: 15px;
        text-align: left;
    }
}

@media print {
    .no-print {
        display: none;
    }
    body {
        padding: 0;
        margin: 0;
        background: #fff;
    }
    .ui.container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .ticket-wrapper {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
}