/* Existing Search Form Styling in the Navbar */
.navbar .search-form {
    position: relative;
    max-width: 400px;
    width: 100%;
    display: flex; /* Ensures that buttons are side by side */
    align-items: center; /* Vertically aligns the buttons */
}

/* Search button (magnifier) */
.search-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #007bff;
    cursor: pointer;
    padding: 0;
}

/* Cancel button (×) */
.cancel-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #007bff;
    cursor: pointer;
    padding: 0;
    margin-left: 10px; /* Space between the buttons */
    display: none; /* Hidden by default */
}

/* Show cancel button when input is focused */
.search-form input:focus + .cancel-btn {
    display: block;
}

/* Styling for the Hero Section Title */
.hero-section h1 {
    color: #fff; /* White color for better visibility */
    font-weight: bold;
    text-align: center; /* Center-aligns the title text */
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url('train-image.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column; /* Aligns items vertically */
    justify-content: center; /* Centers vertically */
    align-items: center; /* Centers horizontally */
    text-align: center;
    padding: 20px;
}

/* Search Form Inside the Hero Section */
.hero-section .search-form {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px; /* Adjust the width as needed */
}

/* Hero Section Search Inputs */
.hero-section .search-form .form-control {
    height: 50px; /* Increase height for easier interaction */
    font-size: 16px;
}

/* Hero Section Search Form Button */
.hero-section .search-form button {
    height: 50px;
    font-size: 18px;
}

/* Adjust Margin and Spacing for Inputs and Buttons */
.hero-section .search-form form .col-md-3,
.hero-section .search-form form .col-md-1 {
    margin-bottom: 10px;
}

.hero-section .search-form form .col-md-12 {
    margin-top: 10px; /* Space between the date and search button */
}

/* Ensure bidirectional symbol is styled correctly */
.hero-section .search-form .bidirectional-symbol {
    font-size: 24px; /* Customize the size of the symbol */
    color: #007bff; /* Set the color for the bidirectional symbol */
    font-weight: bold; /* Optional: make the symbol bold */
    display: inline-flex; /* Ensure it's aligned between the fields */
    align-items: center; /* Vertically centers the symbol */
    justify-content: center; /* Horizontally centers the symbol */
    margin: 0 10px; /* Adds space on both sides of the symbol */
}
/* Bidirectional symbol style */
.hero-section .search-form .bidirectional-symbol::before {
    content: "\21C4"; /* Unicode for bidirectional arrow (↔) */
}

/* Add hover effect to the search and cancel buttons */
.search-btn:hover,
.cancel-btn:hover {
    color: #0056b3; /* Darker shade on hover */
}

/* Ensure placeholder text is styled correctly */
.hero-section .search-form input::placeholder {
    color: #888; /* Light gray for placeholder */
}

/* Animation for hero section title */
.hero-section h1 {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


