/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', 'Lato', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #fff; /* Default text color to white for hero */
    font-weight: 400; /* Ensure normal font weight by default */
}

main#mainContent { /* Add this new rule */
    padding-top: 70px; /* Adjust this value based on your actual .site-header height */
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px; /* Keep general padding */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/Hero-background.webp') no-repeat center center/cover; 
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15); /* Dark overlay, adjusted opacity */
    z-index: 1; /* Ensure this is below the content-wrapper's text/form and site-header */
}

.content-wrapper {
    position: relative;
    z-index: 2; /* Higher than hero-overlay */
    width: 100%;
    max-width: 1200px; /* Increased max-width for wider form layout */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content like headline and form */
    padding-left: 15px; /* Add some padding to content wrapper */
    padding-right: 15px;
}

/* Site Header (formerly Top Bar) */
.site-header {
    background-color: #fff; /* White background for a standard nav bar */
    padding: 15px 0; /* Vertical padding */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
    position: fixed; /* Make it sticky at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's above other content, including hero and its overlay */
}

.site-header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Match content-wrapper max-width */
    margin: 0 auto;
    padding: 0 15px; /* Horizontal padding within the container */
    position: relative; /* For positioning mobile menu if needed */
}

.burger-menu {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above other header content if nav slides over */
}

/* Hide burger menu on desktop */
@media (min-width: 769px) {
    .burger-menu {
        display: none !important;
    }
}

.burger-menu .burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333; /* Dark color for burger bars */
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Burger icon animation to "X" when active */
.site-header.nav-active .burger-menu .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.site-header.nav-active .burger-menu .burger-bar:nth-child(2) {
    opacity: 0;
}
.site-header.nav-active .burger-menu .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.site-header .logo {
    display: flex; /* For alignment if needed */
    align-items: center;
}

.site-header .logo img {
    height: 65px; /* Adjust height as needed */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
}

.site-header .utility-nav a, .site-header .utility-nav span {
    color: #555; /* Darker color for links on light background */
    text-decoration: none;
    margin-left: 18px; 
    font-size: 0.85em; 
}
.site-header .utility-nav a:hover {
    color: #28a745; /* Green hover for links */
    text-decoration: underline;
}

.site-header .utility-nav i {
    margin-right: 4px; 
    font-size: 0.9em; 
    color: #555; /* Match link color */
}
.site-header .utility-nav a:hover i {
    color: #28a745; /* Green hover for icons */
}

/* Currency Dropdown Styles */
.currency-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 18px;
}

.currency-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 0.85em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.currency-btn:hover {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    transform: translateY(-1px);
}

.currency-btn .dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.currency-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.currency-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.currency-dropdown.active .currency-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    transform: translateX(3px);
}

.currency-code {
    font-weight: 600;
    font-size: 0.9em;
}

.currency-name {
    font-size: 0.8em;
    color: #666;
    transition: color 0.2s ease;
}

.currency-option:hover .currency-name {
    color: #28a745;
}

/* Main Headline */
.main-headline {
    font-size: 3.4em; 
    font-weight: 700; 
    margin-top: 0; /* Reset margin, hero section will handle spacing */
    margin-bottom: 40px; 
    color: #fff;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 8px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    white-space: nowrap;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tab-btn.active:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* Wider layout overrides for front page (hero) */
@media (min-width: 1200px) {
  /* Make the hero container a bit wider */
  .hero .content-wrapper {
    max-width: 1360px; /* was 1200px */
  }
  /* Tab navigation slightly wider than the search form */
  .hero .tab-navigation {
    max-width: 1320px; /* a bit wider */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  /* Search form wider for better readability */
  .hero .search-form {
    max-width: 1240px; /* was 1200px */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  /* Internal fields container wider too */
  .hero .search-form-fields {
    max-width: 1180px; /* was 1000px */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@keyframes icon-load-animation {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tab-btn i {
    font-size: 16px;
    animation: icon-load-animation 0.4s ease-out backwards;
    animation-delay: calc(var(--tab-index, 0) * 0.1s);
}

/* Modern Search Form - 12go.asia inspired */
.search-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.2), 0 10px 25px rgba(0,0,0,0.15);
}

/* Search Form Fields Container */
.search-form-fields {
    background: white;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
    overflow: visible;
    width: 100%;
    min-height: 56px;
    margin: 0 auto;
    max-width: 1000px;
}

@media (max-width: 992px) { /* Adjusted breakpoint for tablet */
    .search-form {
        padding: 16px;
    }

    .search-form-fields {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 16px;
        border-radius: 16px;
    }

    .form-group-origin {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .form-group-destination {
        grid-column: 3 / 5;
        grid-row: 1 / 2;
    }

    .form-group-date {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .form-group-return-link,
    .form-group-return-date-input {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .form-group-passengers {
        grid-column: 3 / 5;
        grid-row: 2 / 3;
    }

    .btn-search-main {
        grid-column: 5 / 6; /* Position in the 5th column */
        grid-row: 1 / 3;    /* Span across two rows */
        align-self: stretch;
        height: 100%;
        width: 100%;
        font-size: 18px;
    }

    .field-separator, .swap-icon {
        display: none;
    }

    .search-form-fields .form-group {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
    }

    .search-form-fields .field-label {
        font-size: 10px;
        font-weight: 500;
        color: #6c757d;
        margin-bottom: 2px;
        text-transform: none;
        letter-spacing: 0;
    }

    .search-form-fields .form-group input,
    .search-form-fields .form-group select {
        padding: 2px 0;
        height: auto;
        font-size: 15px;
        font-weight: 500;
        padding-left: 0; /* Remove padding for tablet view */
    }

    .search-form-fields .input-icon {
        display: none; /* Hide icons in this layout */
    }
}

/* Field Separators */
.field-separator {
    width: 1px;
    height: 32px;
    background-color: #e0e0e0;
    flex-shrink: 0;
    margin: 0 4px;
}

/* Tab Content Styles */
.tab-content {
    display: none;
    align-items: center;
    gap: 0;
    position: relative;
}

.tab-content.active {
    display: flex;
}

/* Form Groups within Search Form Fields */
.search-form-fields .form-group {
    position: relative;
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: none;
    margin: 0;
    padding: 4px 16px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

/* Field Labels */
.field-label {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    text-align: left;
    width: 100%;
}

.search-form-fields .form-group .input-icon {
    position: absolute;
    top: 33px;
    left: 16px;
    color: #28a745;
    font-size: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

#transport-content .input-icon,
#tours-content .input-icon,
#hotels-content .input-icon {
    top: 50%;
}

.search-form-fields .form-group input,
.search-form-fields .form-group .service-type-selector,
.search-form-fields .form-group select {
    width: 100%;
    padding: 4px 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: transparent;
    transition: all 0.3s ease;
    color: #333;
    height: 32px;
    margin-top: 2px;
}

.search-form-fields .form-group input:focus,
.search-form-fields .form-group select:focus {
    outline: none;
    background: rgba(0,123,255,0.05);
}

.search-form-fields .form-group input {
    padding-left: 40px;
}

.search-form-fields .form-group select {
    padding-left: 40px;
    appearance: none;
    cursor: pointer;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    z-index: 1;
}

/* Legacy tab content styles for backward compatibility */
.tab-content .form-group {
    position: relative;
    flex: 1;
    border-right: 1px solid #e0e6ed;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.tab-content .form-group:last-child {
    border-right: none;
}

.tab-content .form-group:first-child {
    border-radius: 50px 0 0 50px;
}

.tab-content .form-group:first-child input,
.tab-content .form-group:first-child select {
    border-radius: 50px 0 0 50px;
}

/* Car Rental, Tours, Hotels specific layouts */
#car-rental-content,
#tours-content,
#hotels-content {
    flex-wrap: wrap;
}

#car-rental-content .form-group,
#tours-content .form-group,
#hotels-content .form-group {
    min-width: 180px;
    flex: 1 1 180px;
}

/* Rooms & Guests Selector */
.rooms-guests-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    padding: 12px 0;
    padding-left: 28px; /* Adjusted for icon spacing */
    background: transparent;
    border: none;
    font-size: 14px;
    color: #333;
}

.rooms-guests-display {
    font-size: 14px;
    color: #333;
    flex: 1;
    text-align: left;
}

.rooms-guests-selector i {
    color: #666;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.rooms-guests-selector.active i {
    transform: rotate(180deg);
}

.rooms-guests-group {
    position: relative;
    min-width: 120px;
    flex: 1;
}

.rooms-guests-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 10004;
    display: none;
    padding: 15px;
    min-width: 280px;
    max-width: 100%;
    margin-top: 4px;
    width: 100%;
    transform: translateX(0);
}

@media (max-width: 992px) {
    .content-wrapper {
        width: 100%;
        padding: 0 15px;
    }
    
    .search-form {
        background-color: #fff;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-bottom: 10px;
    }

    /* Common grid layout for all tabs */
    .search-form-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    /* Transport tab */
    #transport-content .search-form-fields {
        grid-template-areas:
            "from to"
            "departure return"
            "search search";
        position: relative;
    }

    #transport-content .form-group-origin { grid-area: from; }
    #transport-content .form-group-destination { grid-area: to; }
    #transport-content .form-group-date { grid-area: departure; }
    #transport-content .form-group-return-link { grid-area: return; }
    #transport-content .btn-search-main { grid-area: search; }

    /* Car Rental tab */
    #car-rental-content .search-form-fields {
        grid-template-areas:
            "pickup-loc pickup-loc"
            "pickup-date pickup-time"
            "dropoff-date dropoff-time"
            "dropoff-loc dropoff-loc"
            "search search";
    }

    #car-rental-content .form-group-pickup { grid-area: pickup-loc; }
    #car-rental-content .form-group-pickup-date { grid-area: pickup-date; }
    #car-rental-content .form-group-pickup-time { grid-area: pickup-time; }
    #car-rental-content .form-group-dropoff-date { grid-area: dropoff-date; }
    #car-rental-content .form-group-dropoff-time { grid-area: dropoff-time; }
    #car-rental-content .form-group-dropoff { grid-area: dropoff-loc; }
    #car-rental-content .btn-search-main { grid-area: search; }
    
    /* Style for the dropoff checkbox container */
    .dropoff-checkbox-container {
        margin-top: 10px;
        display: flex;
        align-items: center;
        padding-left: 10px;
    }
    
    .dropoff-checkbox {
        margin-right: 8px;
        vertical-align: middle;
        width: 16px;
        height: 16px;
    }
    
    .dropoff-checkbox-label {
        font-size: 14px;
        color: #0071c2; /* Changed color to blue */
        font-weight: 500;
        display: inline-block;
        vertical-align: middle;
    }
    
    /* Tours tab */
    #tours-content .search-form-fields {
        grid-template-areas:
            "destination type"
            "date date"
            "search search";
    }

    #tours-content .tour-destination-group { grid-area: destination; }
    #tours-content .tour-type-group { grid-area: type; }
    #tours-content .tour-date-group { grid-area: date; }
    #tours-content .btn-search-main { grid-area: search; }

    /* Hotels tab */
    #hotels-content .search-form-fields {
        grid-template-areas:
            "destination destination"
            "dates guests"
            "search search";
    }

    #hotels-content .hotel-destination-group { grid-area: destination; }
    #hotels-content .checkin-checkout-group { grid-area: dates; }
    #hotels-content .rooms-guests-group { grid-area: guests; }
    #hotels-content .btn-search-main { grid-area: search; }

    /* Services tab */
    #services-content .search-form-fields {
        grid-template-areas:
            "location date"
            "type type"
            "search search";
    }

    #services-content .service-location-group { grid-area: location; }
    #services-content .service-date-group { grid-area: date; }
    #services-content .service-type-group { grid-area: type; }
    #services-content .btn-search-main { grid-area: search; }

    .form-group {
        padding: 0;
        margin-bottom: 10px;
        position: relative;
    }

    .field-label {
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 3px;
        font-weight: normal;
        text-align: left;
    }

    .input-field, #departure-date, #return-date, #return-time {
        width: 100%;
        padding: 8px;
        font-size: 14px;
        font-weight: bold;
        border: 1px solid #ccc;
        background-color: #fff;
        /* Removed border-radius */
        text-align: left;
    }

    .input-field::placeholder {
        font-weight: normal;
        color: #666;
    }

    .btn-search-main {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        font-weight: bold;
        background-color: #007bff;
        color: white;
        border: none;
        cursor: pointer;
        text-align: center;
        /* Removed border-radius */
        margin-right: 0;
    }

    .field-separator, #transport-content .form-group-passengers {
        display: none;
    }
    
    .swap-icon {
        display: flex;
        position: absolute;
        top: 25px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .additional-options {
        display: flex;
        flex-direction: column;
        margin-top: 10px;
    }

    .passengers-summary {
        font-size: 12px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
    }
    
    .passengers-summary:before {
        content: '\f007';
        font-family: 'Font Awesome 5 Free';
        margin-right: 5px;
    }

    .checkboxes {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
        font-size: 12px;
    }

    .checkboxes label {
        display: flex;
        align-items: center;
        margin-right: 10px;
    }

    .checkboxes input[type="checkbox"] {
        margin-right: 5px;
    }

    .links {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    .links a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 15px;
        background-color: #f0f0f0;
        color: #333;
        text-decoration: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: bold;
        flex: 1;
        margin: 0 5px;
        text-align: center;
    }

    .links a:first-child:before {
        content: '\f02e';
        font-family: 'Font Awesome 5 Free';
        margin-right: 5px;
    }

    .links a:last-child:before {
        content: '\f518';
        font-family: 'Font Awesome 5 Free';
        margin-right: 5px;
    }

    .checkbox-label {
        display: flex;
        align-items: center;
        font-size: 12px;
        margin-top: 5px;
    }

    .checkbox-label input {
        margin-right: 5px;
    }

    .form-group-return-link {
        display: flex;
        flex-direction: column;
    }

    .form-group-return-link::before {
        content: 'Return Time';
        font-size: 12px;
        color: #666;
        margin-bottom: 3px;
        display: block;
    }
}

.rooms-guests-dropdown.show {
    display: block;
}

.rooms-guests-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.control-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-group span {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e6ed;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.counter-btn:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-value {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.done-btn {
    width: 100%;
    padding: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.done-btn:hover {
    background: #2980b9;
}

/* Responsive Design for Tabs */
@media (max-width: 768px) {
    .tab-navigation {
        max-width: 100%;
        width: 100%;
        margin: 0 auto 15px;
        padding: 3px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 11px;
        min-height: 50px;
    }
    
    .tab-btn i {
        font-size: 16px;
    }
    

    
    .search-form {
        flex-wrap: wrap;
    }
    
    .tab-content {
        flex-wrap: wrap;
        gap: 0;
    }
    
    .tab-content .form-group {
        border-right: none;
        border-bottom: 1px solid #e0e6ed;
        height: auto;
        min-height: 50px;
        width: 100%;
        flex: 1 1 100%;
    }
    
    .tab-content .form-group:last-child {
        border-bottom: none;
    }
    
    .cta-button {
        width: 100%;
        border-radius: 0 0 8px 8px;
        margin-top: 0;
    }
    
    #car-rental-content .form-group,
    #tours-content .form-group,
    #hotels-content .form-group {
        min-width: 100%;
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 6px 8px;
        font-size: 10px;
        min-height: 45px;
    }
    
    .tab-btn i {
        font-size: 14px;
    }
    
    /* Show burger menu on mobile */
    .burger-menu {
        display: block;
    }
    
    /* Mobile navigation menu */
    .site-header .utility-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        padding: 20px;
        z-index: 999;
    }
    
    .site-header.nav-active .utility-nav {
        right: 0;
    }
    
    .site-header .utility-nav a,
    .site-header .utility-nav span {
        margin: 0 0 15px 0;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
        color: #333;
    }
    
    /* Mobile Currency Dropdown */
    .currency-dropdown {
        margin: 0 0 15px 0;
    }
    
    .currency-btn {
        width: 100%;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        font-size: 1rem;
    }
    
    .currency-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8f9fa;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .currency-dropdown.active .currency-menu {
        max-height: 300px;
    }
    
    .currency-option {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .site-header .utility-nav a:hover {
         color: #28a745;
         background: rgba(40, 167, 69, 0.1);
         padding-left: 10px;
     }
     
     /* Mobile nav overlay */
     .nav-overlay {
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         background: rgba(0,0,0,0.5);
         z-index: 998;
         opacity: 0;
         visibility: hidden;
         transition: all 0.3s ease;
     }
     
     .site-header.nav-active .nav-overlay {
         opacity: 1;
         visibility: visible;
     }
}
    
    
    .search-form {
        margin: 0 10px;
        padding: 16px;
        border-radius: 16px;
    }
    
    .search-form-fields {
        padding: 8px;
        gap: 6px;
    }
    
    .search-form-fields .form-group input,
    .search-form-fields .form-group select {
        padding: 12px 14px;
        padding-left: 36px;
        font-size: 13px;
    }
    
    .btn-search-main {
        padding: 14px 24px;
        font-size: 14px;
    }
    .burger-menu {
        display: block;
    }
    .burger-menu {
        display: block;
    }

/* Additional responsive styles for modern search form */
@media (max-width: 1024px) {
    .search-form {
        padding: 24px;
    }
    
    .search-form-fields {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-form-fields .form-group {
        min-width: 100%;
    }
    
    .btn-search-main {
        width: 100%;
        padding: 18px 32px;
        font-size: 16px;
    }
    
    /* Car rental responsive adjustments */
    #car-rental-content .search-form-fields {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    #car-rental-content .search-form-fields .form-group {
        min-width: calc(50% - 4px);
        height: 55px;
    }
    
    #car-rental-content .btn-search-main {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 360px) {
    .search-form {
        padding: 12px;
        border-radius: 12px;
    }
    
    .search-form-fields .form-group input,
    .search-form-fields .form-group select {
        padding: 10px 12px;
        padding-left: 32px;
        font-size: 12px;
    }
    
    .input-icon {
        left: 10px;
        font-size: 12px;
    }
    
    .btn-search-main {
        padding: 12px 20px;
        font-size: 13px;
    }
}

.search-form.dropdown-active {
    overflow: visible;
}

/* Search Form Fields Input Styling */
.search-form-fields input,
.search-form-fields select {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding: 0 12px 0 25px;
    font-size: 16px;
    height: 60px;
    color: #333;
    line-height: 1.5;
}

.search-form-fields input::placeholder {
    color: #999;
    font-weight: normal;
}

.search-form-fields select {
    padding-left: 45px;
    appearance: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.search-form-fields select option:first-child {
    color: #999;
    font-weight: normal;
}

.search-form .form-group {
    position: relative; 
    display: flex;
    align-items: center;
    flex-grow: 1; 
    flex-basis: 170px; 
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    height: 60px;
}

/* Active state for input when suggestions are open */
.search-form .form-group.suggestions-active input[type="text"] {
    border-color: #28a745; 
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); 
    border-top-left-radius: 6px; 
    border-bottom-left-radius: 6px;
    position: relative;
    z-index: 2;
}

.search-form .form-group-destination.suggestions-active input[type="text"] {
    border-top-right-radius: 0; 
    border-bottom-right-radius: 0;
}

.search-form .form-group.suggestions-active + .form-group input[type="text"],
.search-form .form-group.suggestions-active + .swap-icon + .form-group input[type="text"] {
    border-left-color: transparent;
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; 
    width: 100%;
    min-width: 400px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 450px; 
    overflow-y: auto;
    color: #333; 
    text-align: left;
    margin-top: 1px;
}

.suggestions-dropdown.show {
    display: block;
}

.suggestions-dropdown h4 { 
    padding: 16px 20px 12px 20px;
    margin: 0;
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-transform: none;
    letter-spacing: 0.3px;
}

.suggestions-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-dropdown li {
    padding: 16px 20px;
    cursor: pointer;
    font-size: 0.95em;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
}

.suggestions-dropdown li:last-child {
    border-bottom: none;
}

.suggestions-dropdown li:hover {
    background-color: #f0f8ff;
    transform: translateX(2px);
}

.suggestions-dropdown li i.fa-map-marker-alt {
    margin-right: 15px;
    color: #007bff;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.suggestions-dropdown li .suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggestions-dropdown li .suggestion-main {
    font-weight: 600;
    color: #333;
    font-size: 1em;
    margin-bottom: 2px;
}

.suggestions-dropdown li .suggestion-secondary {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 400;
}

.suggestions-dropdown li .suggestion-type {
    font-size: 0.75em;
    color: #007bff;
    background-color: #e7f3ff;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
    font-weight: 500;
}

/* Popular destinations section */
.suggestions-dropdown .popular-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 16px 20px;
}

.suggestions-dropdown .popular-section h5 {
    margin: 0 0 12px 0;
    font-size: 0.85em;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestions-dropdown .popular-destinations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.suggestions-dropdown .popular-destination {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85em;
}

.suggestions-dropdown .popular-destination:hover {
    background-color: #f0f8ff;
    border-color: #007bff;
    transform: translateY(-1px);
}

.suggestions-dropdown .popular-destination i {
    margin-right: 8px;
    color: #007bff;
    font-size: 0.9em;
}

.suggestions-dropdown .popular-destination .dest-name {
    font-weight: 500;
    color: #333;
}

.suggestions-dropdown .popular-destination .dest-country {
    font-size: 0.8em;
    color: #6c757d;
    margin-left: 4px;
}

/* Adjust for destination input if it's not the first */
.search-form .form-group-destination.suggestions-active input[type="text"] {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Mobile responsive styles for suggestions dropdown */
@media (max-width: 768px) {
    .suggestions-dropdown {
        min-width: 100%;
        max-height: 350px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    
    .suggestions-dropdown h4 {
        padding: 12px 16px 8px 16px;
        font-size: 0.85em;
    }
    
    .suggestions-dropdown li {
        padding: 12px 16px;
        font-size: 0.9em;
    }
    
    .suggestions-dropdown li i.fa-map-marker-alt {
        margin-right: 12px;
        font-size: 1.1em;
    }
    
    .suggestions-dropdown .popular-section {
        padding: 12px 16px;
    }
    
    .suggestions-dropdown .popular-destinations {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .suggestions-dropdown .popular-destination {
        padding: 10px 12px;
        font-size: 0.8em;
    }
    
    .suggestions-dropdown .popular-destination i {
        margin-right: 6px;
    }
}

/* Flatpickr calendar z-index */
.flatpickr-calendar {
    z-index: 1060 !important;
}

/* Time Dropdown Styling */
.time-dropdown {
    width: 100%;
    padding: 8px 16px 8px 36px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: transparent;
    transition: all 0.3s ease;
    color: #333;
    height: 32px;
    margin-top: 2px;
    cursor: pointer;
    appearance: none;
}

.time-dropdown:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.time-dropdown option {
    padding: 4px;
    font-size: 13px;
}

/* Car rental form groups - Responsive and compact */
.form-group-pickup,
.form-group-dropoff {
    min-width: 120px;
    flex: 1;
}

.form-group-pickup-date,
.form-group-dropoff-date {
    min-width: 110px;
    flex: 0.9;
}

.form-group-pickup-time,
.form-group-dropoff-time {
    min-width: 90px;
    flex: 0.7;
}

/* Compact car rental form for better fit */
#car-rental-content .search-form-fields {
    gap: 4px;
}

#car-rental-content .search-form-fields .form-group {
    min-width: 100px;
    height: 50px;
}

#car-rental-content .search-form-fields .form-group input,
#car-rental-content .search-form-fields .form-group select {
    padding: 8px 10px 8px 30px;
    font-size: 13px;
    height: 50px;
}

#car-rental-content .search-form-fields .input-icon {
    left: 10px;
    font-size: 14px;
}

#car-rental-content .search-form-fields .field-label {
    font-size: 11px;
    top: 2px;
}

#car-rental-content .btn-search-main {
    height: 50px;
    padding: 8px 16px;
    font-size: 13px;
    min-width: 100px;
}

/* Dropoff Toggle Checkbox - Simple Design */
.dropoff-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    padding: 12px 0;
    margin: 8px 0 0 0;
}

.dropoff-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #007bff;
    cursor: pointer;
}

.dropoff-checkbox-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
    font-weight: normal;
}

/* Adjust form group for datetime fields */
.form-group-pickup-datetime,
.form-group-dropoff-datetime {
    position: relative;
    min-width: 140px;
    flex: 0.8;
}



.form-group-pickup-datetime input,
.form-group-dropoff-datetime input {
    padding-right: 85px !important;
}

/* Main Search Button - Modern Style */
.btn-search-main {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 110px;
    height: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    margin-left: 8px;
}

.btn-search-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-search-main:hover::before {
    left: 100%;
}

.btn-search-main:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.btn-search-main:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0,123,255,0.3);
}

/* Swap Icon Styling */
.search-form-fields .swap-icon {
    background: white;
    border: 2px solid #e0e6ed;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-form-fields .swap-icon:hover {
    border-color: #28a745;
    color: #28a745;
    transform: scale(1.1);
}

.search-form-fields .swap-icon i {
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.search-form-fields .swap-icon:hover i {
    color: #28a745;
}

/* Input Icons */
.search-form-fields .input-icon {
    position: absolute;
    left: 15px;
    color: #28a745;
    font-size: 16px;
    z-index: 1;
}

/* Specific widths for certain form groups */
.form-group-origin, .form-group-destination {
    flex-basis: 180px; 
}

.form-group-date {
    flex-basis: 140px;
}

.form-group-passengers {
    flex-basis: 150px; 
    position: relative;
    border-right: none;
}

.search-form input[type="text"],
.search-form input[type="date"],
.search-form input[type="number"],
.search-form input#passengers,
.search-form select {
    width: 100%;
    padding: 0 12px 0 25px; 
    border: none;
    border-radius: 0;
    font-size: 14px;
    background-color: transparent;
    color: #333; 
    height: 60px; 
    cursor: pointer;
    outline: none;
}

.search-form input[type="text"]::placeholder,
.search-form input[type="number"]::placeholder,
.search-form select option:first-child {
    color: #999;
    font-weight: normal;
}

#departure-date::placeholder {
    color: #555;
}

.search-form .input-icon {
    position: absolute;
    left: 15px; 
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 16px;
    z-index: 3; 
}

/* Styles for the swap icon between origin and destination */
.swap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: #28a745;
    border-radius: 50%;
    border: 2px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    cursor: pointer;
    margin: 0;
    z-index: 10;
    transition: all 0.2s ease;
}

.swap-icon:hover {
    background-color: #28a745;
    color: white;
    transform: scale(1.1);
}

/* Desktop specific styles */
@media (min-width: 993px) {
    .search-form {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .swap-icon {
        margin: 0 -16px;
    }
    
    .form-group-origin, .form-group-destination {
        position: relative;
    }
}

/* Add Return Link Styling */
.form-group-return-link {
    flex-grow: 0;
    flex-basis: auto;
    background-color: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 15px;
    border-right: 1px solid #e0e0e0;
}

.add-return-link {
    color: #999; 
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: normal; 
    display: inline-flex; 
    align-items: center;
    transition: color 0.3s;
    height: 100%; 
    white-space: nowrap; 
    box-sizing: border-box;
}

.add-return-link:hover {
    color: #28a745; 
}

.add-return-link i {
    margin-right: 6px;
    font-size: 1rem;
    color: #999;
}

.form-group-return-link:hover .add-return-link i,
.form-group-return-link:hover .add-return-link {
    color: #28a745;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #28a745;
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 0 30px;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    text-align: center;
    text-decoration: none;
    height: 60px;
    min-width: 140px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.cta-button:hover {
    background-color: #218838;
}

@media (max-width: 992px) {
    .search-form {
        flex-direction: column;
        max-width: 90%;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow: visible;
        position: relative;
        gap: 8px;
        padding: 8px;
        background-color: transparent;
    }
    
    .search-form .form-group {
        flex-basis: auto;
        width: 100%;
        border-right: none;
        border-bottom: none;
        position: relative;
        border-radius: 8px;
        overflow: visible;
        background-color: white;
        margin-bottom: 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    /* Swap icon styling for mobile */
    .swap-icon {
        width: 40px;
        height: 40px;
        background-color: white;
        border-radius: 50%;
        border: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        color: #28a745;
        z-index: 10;
        margin: -20px auto;
        display: block;
    }
    
    .form-group-origin {
        margin-bottom: 36px;
    }
    
    .form-group-origin input,
    .form-group-destination input {
        padding-right: 15px;
    }
    
    .suggestions-dropdown {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        margin-top: 4px;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        border: 1px solid #e0e0e0;
        z-index: 9999;
    }
    
    .cta-button {
        width: 100%;
        border-radius: 8px;
        height: 60px;
        font-size: 1rem;
        padding: 0;
        line-height: 60px;
        margin-top: 0;
    }
    
    .form-group-return-link, .form-group-date {
        border-radius: 8px;
        height: 60px;
        overflow: hidden;
    }
    
    /* Create 2-column layout for date and return */
    .form-group-date, .form-group-return-link {
        width: calc(50% - 4px);
        display: inline-flex;
    }
    
    .form-group-date {
        float: left;
    }
    
    .form-group-return-link {
        float: right;
        justify-content: flex-start;
        padding-left: 15px;
    }
    
    .form-group-return-link .add-return-link {
        color: #999;
        font-size: 0.9rem;
    }
    
    .form-group-return-link .add-return-link i {
        color: #999;
        margin-right: 6px;
    }
    
    /* Clear the float */
    .form-group-passengers {
        clear: both;
        margin-top: 8px;
    }
}

@media (max-width: 576px) {
    .search-form {
        max-width: 95%;
        padding: 6px;
        gap: 6px;
    }
    
    .search-form input[type="text"],
    .search-form input[type="date"],
    .search-form input[type="number"],
    .search-form input#passengers {
        padding: 15px 12px 15px 40px;
        font-size: 0.95rem;
    }
    
    /* Make return link full width on small mobile */
    .form-group-date, .form-group-return-link {
        width: 100%;
        float: none;
        margin-bottom: 8px;
    }
    
    .form-group-return-link {
        padding: 0 15px;
        justify-content: flex-start;
    }
    
    .add-return-link {
        font-size: 0.9rem;
        color: #999;
    }
    
    .add-return-link i {
        color: #999;
    }
    
    .passenger-dropdown {
        width: 100%;
        left: 0;
        right: 0;
        margin-top: 4px;
        border-radius: 8px;
    }
    
    .form-group-origin {
        margin-bottom: 30px;
    }
    
    .swap-icon {
        width: 38px;
        height: 38px;
    }
}

/* Passenger Dropdown Styles */
.passenger-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: calc(100% + 5px); /* Position below the input field */
    left: 0;
    width: 320px; /* Adjusted width */
    background-color: #fff;
    border: 1px solid #e0e0e0; /* Lighter border for the dropdown itself */
    border-radius: 8px; /* Slightly larger radius */
    box-shadow: 0 6px 16px rgba(0,0,0,0.12); /* Softer shadow */
    z-index: 10005; /* Ensure passenger dropdown is above rooms-guests-dropdown */
    padding: 15px;
    color: #333; 
    text-align: left;
}

.passenger-dropdown-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #28a745; /* Green border */
    border-radius: 6px;
    margin-bottom: 15px;
    background-color: #fff; /* White background */
    height: 48px; /* Match main input height */
    box-sizing: border-box;
}

.passenger-dropdown-header .input-icon {
    color: #555; /* Match main input icon color */
    font-size: 1em;
    margin-right: 8px; /* Space between icon and text */
    position: static; /* Override absolute positioning from main form */
    transform: none; /* Override transform */
}

.passenger-dropdown-header #dropdownSelectedPassengers {
    font-size: 0.95em;
    color: #333; /* Match main input text color */
}

.passenger-dropdown.show {
    display: block;
}

.passenger-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px; /* Adjusted margin */
    padding-bottom: 12px; /* Add padding for border */
    border-bottom: 1px solid #f0f0f0; /* Lighter border between categories */
}
.passenger-category:last-of-type {
    margin-bottom: 20px; 
    border-bottom: none; /* No border for the last category */
}

.passenger-label strong {
    display: block;
    font-size: 1em; /* Adjusted */
    font-weight: 600; /* Slightly less bold */
    color: #333;
    margin-bottom: 2px;
}

.passenger-label span {
    font-size: 0.8em; /* Adjusted */
    color: #777;
}

.passenger-controls {
    display: flex;
    align-items: center;
}

.passenger-controls .control-btn {
    background-color: #fff; /* White background for buttons */
    border: 1px solid #ccc; /* Grey border */
    color: #555;
    width: 32px; /* Slightly larger */
    height: 32px;
    font-size: 1.3em; /* Larger +/- symbols */
    line-height: 30px; 
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
}
.passenger-controls .control-btn:hover {
    background-color: #f7f7f7;
    border-color: #bbb;
}
.passenger-controls .control-btn.plus-btn {
    color: #28a745; /* Green plus */
    border-color: #ccc; /* Keep consistent border or make it green too */
}
.passenger-controls .control-btn.plus-btn:hover {
    border-color: #28a745;
}

.passenger-controls .control-btn:disabled {
    background-color: #f8f9fa; /* Lighter background for disabled */
    color: #adb5bd; /* Lighter text for disabled */
    border-color: #e9ecef; /* Lighter border for disabled */
    cursor: not-allowed;
    opacity: 0.7;
}

.passenger-controls .count {
    font-size: 1em;
    font-weight: 600; /* Slightly less bold */
    min-width: 28px; /* Adjusted */
    text-align: center;
    padding: 0 12px; /* Adjusted */
    color: #333;
}

.passenger-dropdown .done-btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 12px 15px; /* Slightly more padding */
    font-size: 1em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: 10px; /* Adjusted margin */
}

/* --- Sharing Experiences Carousel Section --- */
.sharing-experiences-section {
    background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(40,167,69,0.10) 100%);
    padding: 60px 0 40px 0;
    position: relative;
    overflow: hidden;
}
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.section-container {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.section-container.visible {
    animation: slideUp 0.8s ease-out forwards;
}

.sharing-experiences-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.sharing-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    text-align: left;
    letter-spacing: 0.02em;
}
.sharing-subtitle {
    font-size: 1.08rem;
    color: #555;
    margin-bottom: 32px;
    text-align: left;
    font-weight: 400;
}
.sharing-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: #28a745 #e9ecef;
    -webkit-overflow-scrolling: touch;
}
.sharing-carousel::-webkit-scrollbar {
    height: 8px;
}
.sharing-carousel::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}
.sharing-carousel::-webkit-scrollbar-track {
    background: #e9ecef;
}
.sharing-carousel-item {
    min-width: 380px;
    max-width: 420px;
    width: 400px;
    flex: 0 0 auto;
    background: rgba(255,255,255,0.85);
    border-radius: 22px;
    box-shadow: 0 6px 32px rgba(40,167,69,0.10), 0 1.5px 6px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
    cursor: grab;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 340px;
    margin-bottom: 0;
    padding: 0;
}
.sharing-carousel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    background: #e9ecef;
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}
.sharing-carousel-item video.sharing-carousel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    background: #e9ecef;
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}
.sharing-carousel-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(40,167,69,0.85) 0%, rgba(40,167,69,0.0) 90%);
    color: #fff;
    padding: 32px 24px 24px 24px;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(.4,2,.6,1);
    z-index: 2;
    transform: none;
}
.sharing-carousel-item:hover .sharing-carousel-overlay,
.sharing-carousel-item:focus-within .sharing-carousel-overlay {
    opacity: 1;
    pointer-events: auto;
}
.sharing-cta-buttons {
    display: flex;
    gap: 18px;
    margin-top: 32px;
    justify-content: flex-end;
}
.sharing-cta {
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 1.08em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(40,167,69,0.10);
}
.sharing-cta-primary {
    background: linear-gradient(90deg, #28a745 60%, #218838 100%);
    color: #fff;
}
.sharing-cta-primary:hover {
    background: linear-gradient(90deg, #218838 60%, #28a745 100%);
    color: #fff;
}
.sharing-cta-secondary {
    background: #fff;
    color: #28a745;
    border: 2px solid #28a745;
}
.sharing-cta-secondary:hover {
    background: #28a745;
    color: #fff;
}
@media (max-width: 900px) {
    .sharing-carousel-item {
        min-width: 220px;
        max-width: 260px;
        width: 220px;
        height: 220px;
    }
    .sharing-carousel-media, .sharing-carousel-item video.sharing-carousel-media {
        height: 100%;
    }
}
@media (max-width: 600px) {
    .sharing-carousel-item {
        min-width: 85vw;
        max-width: 95vw;
        width: 90vw;
        height: 60vw;
    }
    .sharing-carousel-media, .sharing-carousel-item video.sharing-carousel-media {
        height: 100%;
    }
}

/* Trip Results Section Specifics */
#tripResultsSection {
    background-color: #f0f2f5; 
    color: #333; 
    padding-top: 20px; 
    padding-bottom: 30px;
}

#tripResultsSection h2 {
    color: #333; 
    text-align: center; 
    margin-bottom: 20px; 
}

/* Add margin below search form on trips page */
#searchFormTripsPage {
    margin-bottom: 30px;
    border-radius: 6px; /* Keep overall rounding for the "connected" look */
    display: flex;
    flex-wrap: wrap; 
    align-items: stretch; 
    justify-content: center; 
    gap: 0; /* If using the connected border style */
}

/* Ensure form groups within #searchFormTripsPage retain their white background */
#searchFormTripsPage .form-group {
    background-color: #fff; /* Explicitly ensure white background */
}
#searchFormTripsPage .swap-icon {
    background-color: #fff; /* Match background */
}
#searchFormTripsPage .form-group-return-link {
    background-color: #fff; /* Match background */
}

/* Filter Tabs Styling */
.trip-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px; /* Or use margin on individual buttons */
    margin-bottom: 25px;
    flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
}

.filter-tab {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #555;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.filter-tab.active {
    background-color: #28a745; /* Green for active tab */
    color: #fff;
    border-color: #28a745;
}
.filter-tab.active i { /* Icon color for active tab */
    color: #fff;
}

.filter-tab .count {
    font-size: 0.85em;
    color: #888;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.filter-tab.active .count {
    color: #28a745; /* Green text for count on active tab */
    background-color: #fff; /* White background for count on active tab */
}
.filter-tab i {
    font-size: 1.1em; /* Adjust icon size if needed */
    color: #28a745; /* Green icon color */
}

/* NEW STYLES FOR DETAILED TRIP CARD */
.trip-card-detailed {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column; /* Tags on top, then body */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease-in-out;
}
.trip-card-detailed:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Highlight fastest trip */
.trip-card-detailed.fastest-trip-highlight {
    border-color: #f39c12;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.12) inset, 0 4px 14px rgba(0,0,0,0.06);
}

.trip-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.trip-tag-detail { /* Renamed to avoid conflict if .trip-tag is used elsewhere */
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 12px; /* Pill shape */
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.trip-tag-detail.bestseller { background-color: #e74c3c; /* Reddish */ }
.trip-tag-detail.fastest { background-color: #f39c12; /* Orange/Yellow */ }
.trip-tag-detail.comfort { background-color: #3498db; /* Blueish */ }
/* Add more specific tag styles if needed */


.trip-card-body {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px; /* Gap between columns */
    align-items: center; /* Align items nicely if they have different heights */
}

.trip-card-col-route {
    flex: 3; /* Takes more space */
    min-width: 200px; /* Ensure it has some space before wrapping */
    font-size: 0.9em;
}
.route-point {
    display: flex;
    align-items: baseline;
    margin-bottom: 2px;
}
.route-time {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
    min-width: 55px; /* For time alignment */
}
.route-station {
    color: #555;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.route-duration-line {
    padding-left: 25px; /* Indent for the line */
    margin: 5px 0;
    position: relative;
    color: #7f8c8d;
    font-size: 0.85em;
}
.route-duration-line::before { /* Vertical line */
    content: '';
    position: absolute;
    left: 4px; /* Align with center of dots */
    top: -10px; /* Extend from above first dot */
    bottom: -10px; /* Extend to below second dot */
    width: 2px;
    background-color: #bdc3c7; /* Light grey line */
}
.route-point::before { /* Dots for timeline */
    content: '';
    display: inline-block;
    min-width: 10px; /* Fixed width for dot */
    width: 10px;
    height: 10px;
    background-color: #fff;
    border: 2px solid #28a745; /* Green border for dot */
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    z-index: 1; /* Above the line */
}
.route-duration-line .duration-text {
    display: block;
}
.route-duration-line .transport-icon {
    margin-left: 8px;
    color: #28a745;
}

.trip-card-col-operator {
    flex: 2;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the start of this column */
    gap: 5px;
}
.operator-logo-img {
    max-height: 30px; /* Control logo image size */
    max-width: 80px;
    object-fit: contain;
    margin-bottom: 5px;
}
.operator-name-text {
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
}
.trip-rating-detail {
    font-size: 0.85em;
    color: #f39c12; /* Gold for stars */
}
.trip-rating-detail .fa-star {
    margin-right: 2px;
}
.vehicle-type-detail {
    font-size: 0.8em;
    color: #777;
}
.vehicle-images { /* Hide vehicle images for this simpler card style */
    display: none; 
}


.trip-card-col-price {
    flex: 1.5;
    min-width: 120px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align items to the right */
    justify-content: center; /* Center vertically if space allows */
}
.price-amount-detail {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50; /* Darker price */
    line-height: 1.1;
}
.price-qualifier-detail {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 10px;
}
.view-deal-btn {
    background-color: #e67e22; /* Orange button */
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.95em;
    white-space: nowrap;
}
.view-deal-btn:hover {
    background-color: #d35400; /* Darker orange */
}

/* Ensure #tripResultsGrid stacks these new cards vertically */
#tripResultsGrid.card-grid {
    display: flex;
    flex-direction: column; 
    gap: 0; /* margin-bottom on card handles spacing */
    flex-wrap: nowrap; /* No wrapping for vertical stack */
    overflow-x: hidden; /* No horizontal scroll for vertical stack */
}

/* Responsive for the new detailed trip card */
@media (max-width: 768px) {
    .trip-card-body {
        flex-wrap: wrap;
    }
    .trip-card-col-route, .trip-card-col-operator, .trip-card-col-price {
        flex-basis: 100%; /* Stack columns on smaller tablets/mobile */
        text-align: left; /* Align text left for stacked columns */
        align-items: flex-start; /* Align items left for stacked columns */
    }
    .trip-card-col-price {
        margin-top: 10px;
        align-items: center; /* Center price and button when stacked */
        text-align: center;
    }
}

@media (max-width: 576px) {
    #tripResultsGrid.card-grid .trip-card-detailed { /* Target new card class */
        width: 100%; 
        max-width: none;
        margin-right: 0;
        scroll-snap-align: none; 
    }
     .trip-card-detailed {
        padding: 12px;
    }
    .trip-card-body {
        gap: 10px;
    }
    .price-amount-detail {
        font-size: 1.3em;
    }
    .view-deal-btn {
        width: 100%; /* Full width button on small mobile */
    }
}

/* Content Category Sections */
.content-category {
    padding: 40px 20px; /* Vertical and horizontal padding */
    background-color: #f8f9fa; /* Light background for sections, or keep transparent if body bg is desired */
}


.content-category .section-container {
    max-width: 1200px; /* Match nav-container and content-wrapper */
    margin: 0 auto;
}

.content-category h2 {
    font-size: 2em;
    font-weight: bold;
    color: #333; /* Dark text for section titles */
    margin-bottom: 30px;
    text-align: left; /* Or center: text-align: center; */
}

/* Card Grid Layout */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    justify-content: center;
}

.card {
    text-decoration: none;
    color: inherit;
    display: block; /* Ensures the <a> tag behaves like a block for layout */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Card Style A */
.card-style-a {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    flex: 1 1 280px; /* Flex properties for responsiveness: grow, shrink, basis */
    min-width: 280px; /* Minimum width before wrapping */
    max-width: calc(25% - 15px); /* Aim for 4 cards per row, accounting for gap (20px * 3 gaps / 4 cards = 15px) */
}

.card-style-a .card-image-container {
    position: relative;
}

.card-style-a .card-image-container img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-style-a .image-overlay-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.card-style-a .card-content {
    padding: 15px;
}

.card-style-a .card-title {
    font-size: 1.1em; /* Slightly larger */
    font-weight: bold;
    margin: 0 0 8px 0; /* Increased margin */
    color: #333;
}

.card-style-a .card-subtitle {
    font-size: 0.9em;
    color: #777;
    margin: 0;
}

/* Card Style B */
.card-style-b {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    flex: 1 1 280px; /* Flex properties for responsiveness */
    min-width: 280px;
    max-width: calc(25% - 15px); /* Aim for 4 cards per row */
}

.card-style-b img {
    display: block;
    width: 100%;
    height: 250px; /* Adjusted height for this style */
    object-fit: cover;
    transition: transform 0.3s ease; /* For hover effect */
}
.card-style-b:hover img {
    transform: scale(1.05); /* Slight zoom on image hover */
}

.card-style-b .card-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0) 100%);
    padding: 25px 15px 15px 15px; /* Increased top padding */
}

.card-style-b .card-title-overlay {
    color: white;
    font-size: 1.2em; /* Slightly larger */
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

/* Responsive Card Grid Adjustments */
@media (max-width: 992px) { /* Tablet */
    .card-style-a, .card-style-b {
        max-width: calc(50% - 10px); /* 2 cards per row (20px gap / 2 cards = 10px) */
    }
}

@media (max-width: 576px) { /* Mobile */
    .content-category h2 {
        font-size: 1.6em; /* Smaller title on mobile */
        text-align: center; /* Center title on mobile */
    }

    .card-grid {
        flex-wrap: nowrap; /* Prevent wrapping to new lines */
        overflow-x: auto; /* Enable horizontal scrolling */
        overflow-y: hidden; /* Hide vertical scrollbar if any appears due to card content */
        padding-bottom: 15px; /* Add some padding for scrollbar visibility and aesthetics */
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .card-grid::-webkit-scrollbar { /* Optional: style scrollbar */
        height: 8px;
    }
    .card-grid::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    .card-grid::-webkit-scrollbar-track {
        background: #f0f0f0;
    }

    .card-style-a, .card-style-b {
        flex: 0 0 auto; /* Don't grow, don't shrink, use auto basis (or specified width) */
        width: 80vw; /* Each card takes 80% of viewport width, adjust as needed */
        max-width: none; /* Override previous max-width for mobile slide */
        margin-right: 15px; /* Space between cards in the slide */
        scroll-snap-align: start; /* Snap cards to the start */
    }
    .card-style-a:last-child, .card-style-b:last-child {
        margin-right: 0; /* No margin for the last card */
    }
}

/* Trip Tag Styles */
.trip-tag.bestseller { background-color: #800080; /* Purple */ }
.trip-tag.fastest { background-color: #FFA500; /* Orange */ }
.trip-tag.comfort { background-color: #4682B4; /* SteelBlue */ }
/* Add more tag styles as needed */



/* Footer Styles */
.site-footer-main {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 40px 0 0;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: #ecf0f1;
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #28a745;
}

.footer-column p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-column .social-icons {
    margin-top: 15px;
}

.footer-column .social-icons a {
    color: #bdc3c7;
    font-size: 1.4em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.footer-column .social-icons a:hover {
    color: #28a745;
}

.footer-column .payment-icons {
    font-size: 2.2em;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-column .payment-icons i {
    color: #7f8c8d;
    transition: color 0.3s ease;
}
.footer-column .payment-icons i:hover {
    color: #fff;
}

.secure-payment-text {
    font-size: 0.9em;
    color: #95a5a6;
}
.secure-payment-text i {
    margin-right: 5px;
    color: #28a745;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.85em;
}
.footer-bottom p {
    margin: 0;
}
.footer-bottom .fa-heart {
    color: #e74c3c;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-column {
        flex-basis: calc(50% - 10px);
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .footer-column {
        flex-basis: 100%;
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-column .social-icons,
    .footer-column .payment-icons {
        justify-content: center;
    }
}

/* Card Preview */
.card-preview {
    display: none;
}

/* --- Fix Sharing Experiences Carousel User Avatar and User Info Styles --- */
.sharing-carousel-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.sharing-carousel-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(40,167,69,0.10);
    background: #e9ecef;
    display: block;
}
.sharing-carousel-username {
    font-weight: 600;
    font-size: 1.05em;
    color: #fff;
    margin-bottom: 2px;
}
.sharing-carousel-location {
    font-size: 0.95em;
    color: #e9ecef;
}

/* --- Lightbox Popup for Sharing Experiences Carousel --- */
#sharingLightboxOverlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s;
    opacity: 0;
}
#sharingLightboxOverlay.active {
    display: flex;
    opacity: 1;
}
.sharing-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.sharing-lightbox-media {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.sharing-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.sharing-lightbox-close:hover {
    background: rgba(40,167,69,0.85);
}
@media (max-width: 700px) {
    .sharing-lightbox-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    .sharing-lightbox-media {
        max-width: 98vw;
        max-height: 60vh;
    }
}

/* Map link styles */
.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2b71e8;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.map-link:hover {
    color: #1a5ac4;
    transform: translateY(-1px);
}

.map-link i {
    font-size: 0.9em;
}

/* Location link styles */
.location-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit; /* Match the parent text color */
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.location-link:hover {
    transform: translateY(-1px);
}

.location-link i {
    font-size: 0.9em;
}

/* Sharing carousel location styling */
.sharing-carousel-location {
    display: flex;
    align-items: center;
    font-size: 0.85em;
}

/* Sharing lightbox styles */
.sharing-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sharing-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sharing-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sharing-lightbox-media {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.sharing-lightbox-user-info {
    width: 35%;
    max-width: 450px;
    min-width: 320px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    color: #333;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin: 0;
    align-self: center;
}

.sharing-lightbox-testimonial {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sharing-lightbox-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.sharing-lightbox-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.sharing-lightbox-user-details {
    flex: 1;
}

.sharing-lightbox-username {
    font-weight: 600;
    margin-bottom: 5px;
}

.sharing-lightbox-location {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #777;
}

.sharing-lightbox-location i {
    margin-right: 5px;
}

.sharing-lightbox-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #555;
}

.sharing-lightbox-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sharing-lightbox-tag {
    background-color: #f0f7ff;
    color: #3a7bd5;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sharing-lightbox-tag:hover {
    background-color: #e4f0ff;
    transform: translateY(-2px);
}

/* Comments Section Styles */
.comments-section {
    margin: 25px 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.comments-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.comments-list {
    margin-bottom: 15px;
}

.comment-item {
    display: flex;
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color, #ff6b6b);
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.comment-time {
    font-size: 0.8rem;
    color: #777;
}

.comment-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.view-more-comments {
    background: none;
    border: none;
    color: var(--primary-color, #ff6b6b);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.view-more-comments:hover {
    color: var(--primary-hover, #ff5252);
    text-decoration: underline;
}

.comment-form {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.comment-form h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.comment-form-container .form-group {
    margin-bottom: 15px;
}

.comment-form-container .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.comment-form-container .form-control:focus {
    outline: none;
    border-color: var(--primary-color, #ff6b6b);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.comment-form-container textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.submit-comment-btn {
    background-color: var(--primary-color, #ff6b6b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.submit-comment-btn:hover {
    background-color: var(--primary-hover, #ff5252);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sharing-lightbox-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.lightbox-btn {
    display: block;
    padding: 12px 16px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.lightbox-btn.primary {
    background-color: var(--primary-color, #ff6b6b);
    color: white;
}

.lightbox-btn.secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.lightbox-btn.primary:hover {
    background-color: var(--primary-hover, #ff5252);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lightbox-btn.secondary:hover {
    background-color: #f1f3f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.sharing-lightbox-close {
    position: absolute;
    top: -40px;
    right: -20px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.sharing-lightbox-close:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sharing-lightbox-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
    }
    
    .sharing-lightbox-media {
        max-width: 100%;
        max-height: 50vh;
        margin-bottom: 0;
    }
    
    .sharing-lightbox-user-info {
        width: 90%;
        max-width: none;
        margin: 0;
        max-height: 40vh;
        padding: 15px;
    }
    
    .sharing-lightbox-testimonial {
        font-size: 1rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .sharing-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }

    .tab-content .form-group:first-child {
        border-radius: 0px;
    }
}

@media (max-width: 576px) {
    .sharing-lightbox-overlay {
        align-items: flex-start;
        padding-top: 50px;
        overflow-y: auto;
    }
    
    .sharing-lightbox-content {
        width: 95%;
        padding: 10px 0;
        gap: 10px;
    }
    
    .sharing-lightbox-media {
        max-height: 40vh;
        border-radius: 6px;
    }
    
    /* Mobile responsive for comments */
    .comments-section {
        margin: 15px 0;
        padding-top: 15px;
    }
    
    .comment-item {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .comment-avatar {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
    
    .comment-author {
        font-size: 0.85rem;
    }
    
    .comment-time {
        font-size: 0.75rem;
    }
    
    .comment-text {
        font-size: 0.85rem;
    }
    
    .comment-form {
        padding: 15px;
        margin-top: 15px;
    }
    
    .comment-form h5 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .comment-form-container .form-control {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .submit-comment-btn {
         padding: 8px 16px;
         font-size: 0.85rem;
     }
     
     .sharing-lightbox-user-info {
        width: 95%;
        border-radius: 6px;
        padding: 12px;
    }
    
    .sharing-lightbox-description {
        margin: 12px 0;
        font-size: 0.9rem;
    }
    
    .sharing-lightbox-tags {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .sharing-lightbox-cta {
        gap: 8px;
    }
    
    .lightbox-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* Tours and Hotels specific form groups */
#tours-content .form-group,
#hotels-content .form-group {
    min-width: 140px;
    flex: 1;
}

/* Tours specific form groups */
.tour-destination-group,
.tour-type-group,
.tour-date-group {
    min-width: 140px;
    flex: 1;
}

/* Hotels specific form groups */
.hotel-destination-group {
    min-width: 180px;
    flex: 1.5;
}

.checkin-checkout-group {
    min-width: 160px;
    flex: 1.2;
}



/* Ensure all search bars have consistent inline layout */
@media (min-width: 769px) {
    .search-form-fields {
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: center;
    }
    
    .search-form-fields .form-group {
        height: 48px;
        display: flex;
        align-items: center;
    }
    
    .btn-search-main {
        flex-shrink: 0;
        margin-left: 8px;
    }
}
/*issam pedding search bar text*/
.search-form-fields .form-group input, .search-form-fields .form-group select {
    padding: 0px 25px;
}

/* Services Dropdown Styles */
.service-type-dropdown-container {
    position: relative;
    width: 100%;
}

.service-type-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    padding: 12px 0;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #333;
}

.service-type-display {
    font-size: 14px;
    color: #999;
    flex: 1;
    text-align: left;
    padding-left: 36px;
}

.service-type-selector i {
    color: #666;
    font-size: 12px;
    transition: transform 0.2s ease;
    margin-right: 12px;
}

.service-type-selector.active i {
    transform: rotate(180deg);
}

.service-type-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10004;
    display: none;
    padding: 20px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.service-type-dropdown.show {
    display: block;
}

.service-type-dropdown.active {
    display: block;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    border: 1px solid transparent;
}

.service-category-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-1px);
}

.service-category-item i {
    font-size: 16px;
    color: #666;
    width: 20px;
    text-align: center;
}

.service-category-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.service-category-item:hover i {
    color: #2196f3;
}

.service-category-item:hover span {
    color: #2196f3;
}

/* Services form group specific styles */
.service-location-group,
.service-date-group,
.service-type-group {
    min-width: 160px;
    flex: 1;
}

@media (max-width: 768px) {
    .service-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .service-category-item {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .service-category-item i {
        font-size: 14px;
    }
    
    .service-category-item span {
        font-size: 13px;
    }
    
    .service-type-dropdown {
        padding: 15px;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .service-categories {
        grid-template-columns: 1fr;
    }
}

/* ===== OMIO-STYLE LAYOUT FOR TRIPS PAGE ===== */

/* Filter Panel at Top */
.filter-panel-top {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-tab {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab.active {
    background: #0066CC;
    color: white;
    border-color: #0066CC;
}

.filter-tab:hover {
    background: #e8f4fd;
    border-color: #0066CC;
    color: #0066CC;
}

.filter-tab.active:hover {
    background: #0052a3;
    border-color: #0052a3;
    color: white;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 120px;
}

.price-slider {
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0066CC;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0066CC;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-display {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Main Content Layout */
.main-content-layout {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.results-section {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
}

.map-section {
    width: 400px;
    flex-shrink: 0;
}

/* Map Container */
.map-container {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 600px;
}

.google-map {
    width: 100%;
    height: 400px;
    border: none;
}

.map-overlay {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.route-info h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.route-details {
    font-size: 14px;
    color: #666;
}

.route-summary p {
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
}

.route-summary strong {
    color: #333;
}

/* Legacy Filters Hidden */
.legacy-filters {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .map-section {
        width: 350px;
    }
    
    .main-content-layout {
        padding: 0 16px;
    }
}

@media (max-width: 1024px) {
    .main-content-layout {
        flex-direction: column;
    }
    
    .map-section {
        width: 100%;
        order: -1; /* Show map above results on mobile */
    }
    
    .map-container {
        position: relative;
        height: 300px;
        margin-bottom: 20px;
    }
    
    .google-map {
        height: 200px;
    }
    
    .filter-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .filter-panel-top {
        padding: 12px 16px;
    }
    
    .filter-tabs {
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .filter-controls {
        gap: 12px;
    }
    
    .filter-controls select {
        min-width: 100px;
        font-size: 13px;
    }
    
    .price-slider {
        width: 120px;
    }
    
    .main-content-layout {
        padding: 0 12px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls select {
        width: 100%;
    }
    
    .price-slider {
        width: 100%;
    }
}