a {
    text-decoration: none;
    color: inherit;
}

.trip-bg {
    background-color: white;
    padding: 2em 0;
}

.trip-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
    position: relative;
    flex-wrap: wrap;
}

.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px;
    border: 1px solid #e4e4e4;
    border-radius: 5px;
}

.search-bar::before {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #7f8c8d;
}

.trip-sidebar {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.trip-sidebar h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.trip-sidebar a {
    display: block;
    padding: 8px 0;
    color: #7f8c8d;
    border-bottom: 1px dotted #e0e7ee;
    margin-bottom: 10px;
}

.trip-sidebar a:hover {
    color: #255360;
}

.trip-sidebar label{
    display: block;
    margin-top: 20px;
}

.trip-sidebar input[type="range"]{
    width: 100%;
    margin-top: 20px;

}

.trip-sidebar input[type="date"] {
    width: 100%;
    margin-top: 20px;
    border: 1px solid #e4e4e4;
    padding: 10px;
    border-radius: 5px;
}

.trip-display {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    grid-auto-rows: min-content;
}

.no-trips-message {
    width: 100%;
    text-align: center;
    padding: 50px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.trip-card {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.trip-card:hover {
    transform: translateY(-5px);
}

.trip-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.discount-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.9em;
    border-radius: 5px;
    animation: bounce 1s infinite;
}

.trip-card h2 {
    font-size: 1.3em;
    padding: 15px 20px;
    color: #255360;
}

.trip-card p {
    padding: 0 20px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.price {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f4f4;
    padding: 15px 0;
    border-top: 1px solid #e1e1e1;
    font-weight: 700;
}

.strikethrough {
    text-decoration: line-through;
    color: #a5b1c2;
    margin-left: 10px;
}

.trip-details-button {
    display: block;
    width: 100%;
    background: #358092;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    transition: background-color 0.3s;
}

.trip-details-button:hover {
    background: #255360;
    color: white;
}

/* Sidebar refinements */
.sidebar-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e7ee;
    text-align: center;
}

.trip-sidebar a.active-category {
    color: #358092;
    font-weight: bold;
    border-bottom: 2px solid #255360;
}

.trip-sidebar .sidebar-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.trip-sidebar a:hover {
    background-color: #f9f9fa;
    border-radius: 5px;
}

.trip-sidebar input[type="checkbox"] {
    margin-right: 10px;
}

.reset-button {
    display: inline-block;
    padding: 10px 100px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    background-color: #358092;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.reset-button:hover {
    background-color: #255360;
}

/* Pagination Styling */
.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
}

.pagination a {
    color: #fff;
    background-color: #358092;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #e0e7ee;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #255360;
    color: #ffffff;
}

.pagination a.active-page {
    background-color: #255360;
    color: #ffffff;
}
