/* 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;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    margin-top: 0;
    background: url('../images/Background-header.webp') no-repeat center center / cover;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.30) 0%,
        rgba(0,0,0,0.25) 30%,
        rgba(0,0,0,0.40) 60%,
        rgba(0,0,0,0.55) 100%
    );
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2; /* Higher than hero-overlay */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

/* Site Header (formerly Top Bar) */
.site-header {
    background-color: #fff;
    padding: 8px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.site-header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.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;
    align-items: center;
    flex-shrink: 0;
}

.site-header .logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* === Desktop Main Navigation === */
.desktop-main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 24px;
}

.desktop-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.desktop-nav-link i {
    font-size: 0.85rem;
    color: #718096;
    transition: color 0.2s ease;
}

.desktop-nav-link:hover {
    background: rgba(15, 57, 82, 0.06);
    color: #0f3952;
}

.desktop-nav-link:hover i {
    color: #0f3952;
}

.desktop-nav-link.active {
    background: rgba(15, 57, 82, 0.08);
    color: #0f3952;
    font-weight: 600;
}

.desktop-nav-link.active i {
    color: #0f3952;
}

/* === Desktop Right Actions === */
.desktop-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.desktop-nav-secondary {
    display: flex;
    align-items: center;
    gap: 0;
}

.desktop-utility-link {
    font-size: 0.82rem;
    color: #718096;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.desktop-utility-link:hover {
    color: #0f3952;
    background: rgba(15, 57, 82, 0.05);
}

.desktop-nav-divider-v {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin: 0 4px;
    flex-shrink: 0;
}

.desktop-lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.desktop-lang-btn:hover {
    border-color: #cbd5e0;
    background: rgba(15, 57, 82, 0.04);
    color: #0f3952;
}

.desktop-lang-btn i {
    font-size: 0.9rem;
    color: #718096;
}

.desktop-account-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    background: #0f3952;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.desktop-account-btn:hover {
    background: #1a5c85;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(15, 57, 82, 0.25);
}

.desktop-account-btn i {
    font-size: 1rem;
}

/* Logged-in state: user avatar + short name */
.desktop-account-btn.logged-in {
    background: #0f3952;
    gap: 8px;
    padding: 5px 14px 5px 6px;
}

.desktop-account-btn.auth-pending,
.mobile-header-account.auth-pending {
    opacity: 0;
    pointer-events: none;
}

.user-avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8590c;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.mobile-header-account .user-avatar-circle {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

/* Mobile account icon: hidden on desktop, shown on mobile */
.mobile-header-account {
    display: none;
    color: #495057;
    font-size: 20px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .mobile-header-account {
        display: block;
    }
}

/* Hide desktop nav parts on mobile */
@media (max-width: 992px) {
    .desktop-main-nav,
    .desktop-nav-actions {
        display: none !important;
    }
}

/* Compact secondary links on smaller desktops */
@media (max-width: 1200px) {
    .desktop-nav-secondary {
        display: none;
    }
    .desktop-nav-divider-v {
        display: none;
    }
}

/* === Existing utility-nav styles (mobile slide-out) === */
.site-header .utility-nav a, .site-header .utility-nav span {
    color: #555;
    text-decoration: none;
    margin-left: 18px; 
    font-size: 0.85em; 
}
.site-header .utility-nav a:hover {
    color: #333;
    text-decoration: none;
    opacity: 0.8;
}

.site-header .utility-nav i {
    margin-right: 4px; 
    font-size: 0.9em; 
    color: #555;
}
.site-header .utility-nav a:hover i {
    color: #333;
}

/* Currency Dropdown Styles */
.currency-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 0;
}

.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(0, 0, 0, 0.05);
    color: #333;
    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: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    min-width: 260px;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.currency-dropdown.active .currency-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-search-box {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.currency-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85em;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    background: #f8f9fa;
}

.currency-search-input:focus {
    border-color: #28a745;
    background: white;
}

.currency-search-input::placeholder {
    color: #aaa;
}

.currency-options-list {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.currency-options-list::-webkit-scrollbar {
    width: 5px;
}

.currency-options-list::-webkit-scrollbar-track {
    background: transparent;
}

.currency-options-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.currency-options-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.currency-group-label {
    padding: 8px 14px 4px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    user-select: none;
}

.currency-group-label:first-child {
    border-top: none;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: rgba(79, 70, 229, 0.06);
    color: #4f46e5;
}

.currency-option.active {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    font-weight: 600;
}

.currency-flag {
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
}

.currency-code {
    font-weight: 600;
    font-size: 0.9em;
    min-width: 36px;
}

.currency-name {
    font-size: 0.8em;
    color: #888;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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) {
  .hero .content-wrapper {
    max-width: 1400px;
  }
  .hero .tab-navigation {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero .search-form {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero .search-form-fields {
    max-width: 1180px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  /* Transfers form takes full width */
  .hero .search-form-fields.transfers-form-fields {
    max-width: 100%;
  }
}

@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: 100%;
    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 */
    /* ====================================
       PROFESSIONAL TABLET SEARCH BAR
       Clean 2-column grid layout
       ==================================== */
    
    .search-form {
        padding: 20px;
        border-radius: 20px;
    }

    .search-form-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 16px;
        background: white;
    }

    .form-group-origin {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .form-group-destination {
        grid-column: 2 / 3;
        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: 1 / 2;
        grid-row: 3 / 4;
    }

    .btn-search-main {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        align-self: stretch;
        height: 100%;
        width: 100%;
        font-size: 16px;
        min-height: 56px;
        border-radius: 12px;
    }

    .field-separator, .swap-icon {
        display: none;
    }

    .search-form-fields .form-group {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px 16px;
        display: flex;
        flex-direction: column;
        background: #f8fafc;
        transition: all 0.2s ease;
    }
    
    .search-form-fields .form-group:focus-within {
        border-color: #1e3a5f;
        background: white;
        box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
    }

    .search-form-fields .field-label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: #64748b;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .search-form-fields .form-group input,
    .search-form-fields .form-group select {
        padding: 4px 0;
        padding-left: 0;
        height: auto;
        font-size: 15px;
        font-weight: 500;
        color: #1e293b;
    }

    .search-form-fields .input-icon {
        display: none;
    }
    
    /* Tab navigation for tablet */
    .tab-navigation {
        gap: 6px;
        padding: 6px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
        gap: 8px;
    }
}

/* 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;
    width: 100%;
}

.tab-content.active {
    display: flex;
    width: 100%;
}

/* 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: 50%;
    left: 10px;
    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;
}

/* ===== AIRPORT TRANSFERS TAB ===== */

/* Reduce search-form padding when transfers tab is active */
.search-form[data-active-tab="services"] {
    padding: 16px !important;
}

.transfers-form-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    padding: 16px !important;
    min-height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Row 1 — Direction Toggles */
.transfers-toggle-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.transfers-toggle {
    padding: 8px 20px;
    border-radius: 24px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.transfers-toggle:hover {
    border-color: #1e3a5f;
    color: #1e3a5f;
}

.transfers-toggle.active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}

.transfers-toggle-row[hidden],
.transfers-details-row[hidden] {
    display: none !important;
}

/* ── Transfers: Top controls (trip type + direction) ── */
.transfers-top-controls {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.transfers-control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.transfers-control-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    padding-left: 2px;
}

.transfers-toggle-set {
    display: flex;
    gap: 6px;
}

.transfers-control-separator {
    width: 1px;
    height: 36px;
    background: #e2e8f0;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 2px;
}

/* ── Transfers: Time meta row (time reference + return toggle) ── */
.transfers-time-meta-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.transfers-time-meta-row[hidden] {
    display: none !important;
}

.transfers-time-meta-row .transfers-return-toggle {
    margin-left: auto;
    padding-bottom: 2px;
}

.transfers-return-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}

.transfers-return-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.transfers-return-toggle-input {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #1e3a5f;
    cursor: pointer;
    flex: 0 0 auto;
}

/* Row 2 — Location Inputs (separate boxes) */
.transfers-locations-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: center;
    position: relative;
}

.transfers-locations-row.transfers-locations-row-hourly {
    grid-template-columns: 1fr !important;
}

.transfers-locations-row .form-group[hidden],
.transfers-swap-btn[hidden] {
    display: none !important;
}

.transfers-locations-row .form-group {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    margin: 0 !important;
    background: #f8fafc !important;
    transition: all 0.2s ease;
}

.transfers-locations-row .form-group:first-child {
    border-right: 1.5px solid #e2e8f0 !important;
}

.transfers-locations-row .form-group:focus-within {
    background: #fff !important;
    border-color: #1e3a5f !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.transfers-swap-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 13px;
    margin: 0 6px;
    flex-shrink: 0;
}

.transfers-swap-btn:hover {
    border-color: #1e3a5f;
    color: #1e3a5f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.transfers-swap-btn:active {
    transform: scale(0.92);
}

/* Row 3 — Date+Time merged | Passengers */
.transfers-details-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.transfers-details-row .form-group {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    background: #f8fafc !important;
    margin: 0 !important;
    transition: all 0.2s ease;
    min-width: 0 !important;
}

.transfers-details-row .form-group:focus-within {
    background: #fff !important;
    border-color: #1e3a5f !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

/* DateTime merged group */
.transfers-datetime-group {
    display: flex !important;
    align-items: center;
    position: relative;
    cursor: pointer;
    grid-column: span 2;
}

.transfers-hourly-group[hidden] {
    display: none !important;
}

.transfers-hourly-group {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

.transfers-hourly-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding-left: 28px;
}

.transfers-hourly-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.transfers-hourly-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.transfers-hourly-display {
    min-width: 72px;
    text-align: center;
    font-weight: 700;
    color: #1e293b;
}

.hourly-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #1e3a5f;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hourly-btn:hover:not(:disabled) {
    border-color: #1e3a5f;
    color: #1e3a5f;
}

.hourly-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.transfers-datetime-group input {
    cursor: pointer !important;
}

.transfers-datetime-group #transfer-date {
    flex: 1;
    min-width: 0;
}

.transfers-datetime-group #transfer-time {
    width: 110px;
    text-align: center;
    flex-shrink: 0;
}

.datetime-separator {
    width: 1px;
    height: 24px;
    background: #d1d5db;
    margin: 0 8px;
    flex-shrink: 0;
}

/* Time Input (clickable selector) */
.transfers-time-group {
    position: relative;
    cursor: pointer;
}

.transfers-time-group input {
    cursor: pointer !important;
}

.transfers-time-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 140px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 4px;
    padding: 4px;
    scrollbar-width: thin;
}

.transfers-time-dropdown.open {
    display: block;
}

.transfers-time-option {
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
}

.transfers-time-option:hover {
    background: #f0f4ff;
    color: #1e3a5f;
}

.transfers-time-option.selected {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
}

/* Passengers Selector */
.transfers-pax-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    padding: 4px 0 4px 28px;
    font-size: 14px;
    color: #333;
    height: 32px;
}

.transfers-pax-selector i {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.2s;
}

.transfers-pax-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    margin-top: 4px;
    padding: 14px 16px;
}

.transfers-pax-dropdown.open {
    display: block;
}

.transfers-pax-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.transfers-pax-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transfers-pax-btns button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.transfers-pax-btns button:hover {
    border-color: #1e3a5f;
    color: #1e3a5f;
}

.transfers-pax-btns button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.transfers-pax-btns span {
    font-size: 16px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Search Button */
.transfers-search-btn {
    width: 100%;
    margin: 4px auto 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

/* ===== AIRPORT TRANSFERS — DESKTOP OVERRIDES ===== */
/* Beat mobile-app.css generic rules that apply on all viewports */
@media (min-width: 993px) {
    #services-content .transfers-form-fields {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 12px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        max-width: none !important;
        width: 100% !important;
    }

    #services-content {
        width: 100% !important;
    }

    #services-content .transfers-toggle-row {
        display: flex !important;
        flex: none !important;
        width: auto !important;
        border: none !important;
        border-bottom: none !important;
        padding: 0 !important;
        min-height: auto !important;
        background: transparent !important;
    }

    #services-content .transfers-toggle-row[hidden],
    #services-content .transfers-details-row[hidden] {
        display: none !important;
    }

    #services-content .transfers-locations-row {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        overflow: visible !important;
        position: relative !important;
        flex: none !important;
        width: 100% !important;
        gap: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
        border: none !important;
        background: transparent !important;
    }

    #services-content .transfers-locations-row.transfers-locations-row-hourly {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    #services-content .transfers-locations-row .form-group {
        flex: 1 1 50% !important;
        width: auto !important;
        max-width: none !important;
        padding: 14px 20px !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 14px !important;
        border-bottom: 1.5px solid #e2e8f0 !important;
        margin: 0 !important;
        background: #f8fafc !important;
        min-height: 56px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    #services-content .transfers-locations-row .form-group:first-child {
        border-right: 1.5px solid #e2e8f0 !important;
    }

    #services-content .transfers-locations-row .form-group:focus-within {
        background: #fff !important;
        border-color: #1e3a5f !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08) !important;
    }

    #services-content .transfers-swap-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        flex: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        min-height: auto !important;
        margin: 0 6px !important;
        z-index: 10 !important;
        position: static !important;
        transform: none !important;
    }

    #services-content .transfers-details-row {
        display: grid !important;
        grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        flex: none !important;
        width: 100% !important;
        border: none !important;
        padding: 0 !important;
        min-height: auto !important;
        background: transparent !important;
    }

    #services-content .transfers-details-row .form-group {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 14px 16px !important;
        background: #f8fafc !important;
        min-height: 56px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    #services-content .transfers-datetime-group {
        display: flex !important;
        flex-direction: row !important;
        grid-column: span 2 !important;
    }

    #services-content .transfers-hourly-group[hidden] {
        display: none !important;
    }

    #services-content .transfers-hourly-selector {
        width: 100% !important;
    }

    #services-content .transfers-details-row .form-group:focus-within {
        background: #fff !important;
        border-color: #1e3a5f !important;
        box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08) !important;
    }

    #services-content .transfers-passengers-group .input-icon {
        position: absolute !important;
        left: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }

    #services-content .transfers-return-toggle {
        margin-left: auto !important;
    }

    #services-content .transfers-search-btn {
        width: 100% !important;
        max-width: none !important;
        margin: 4px 0 0 !important;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
        height: 52px !important;
        border-radius: 14px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    }
}

/* ===== AIRPORT TRANSFERS — RESPONSIVE ===== */
@media (max-width: 992px) {
    .transfers-details-row {
        grid-template-columns: 1fr 1fr;
    }
    .transfers-datetime-group {
        grid-column: 1 / -1;
    }
    .transfers-passengers-group {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .transfers-form-fields {
        padding: 16px !important;
        gap: 12px !important;
    }

    .transfers-locations-row {
        flex-direction: column;
        border-radius: 12px;
    }

    .transfers-locations-row .form-group:first-child {
        border-right: none !important;
        border-bottom: 1.5px solid #e2e8f0 !important;
    }

    .transfers-swap-btn {
        top: auto;
        bottom: auto;
        top: 50%;
        left: auto;
        right: 12px;
        transform: translateY(-50%) rotate(90deg);
        width: 32px;
        height: 32px;
    }

    .transfers-details-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .transfers-datetime-group {
        grid-column: 1 / -1;
    }

    .transfers-passengers-group {
        grid-column: 1 / -1;
    }

    .transfers-search-btn {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .transfers-details-row {
        grid-template-columns: 1fr;
    }

    .transfers-passengers-group {
        grid-column: auto;
    }
}

/* ===== AIRPORT TRANSFERS V3 (Card + Tabs + Smart Inputs) ===== */
#services-content .transfers-form-fields {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#services-content .transfers-v3-card {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

#services-content .transfers-mode-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

#services-content .transfers-mode-tab {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

#services-content .transfers-mode-tab:hover {
    color: #1d4ed8;
}

#services-content .transfers-mode-tab.active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

#services-content .transfers-locations-row,
#services-content .transfers-details-row {
    display: grid;
    width: 100%;
    gap: 12px;
}

#services-content .transfers-locations-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

#services-content .transfers-locations-row.transfers-locations-row-hourly {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#services-content .transfers-details-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#services-content .transfers-return-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#services-content .transfers-return-row[hidden],
#services-content .transfers-duration-group[hidden],
#services-content .transfers-destination-group[hidden],
#services-content .transfers-swap-btn[hidden] {
    display: none !important;
}

#services-content .transfer-inline-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 14px 16px;
    color: #b91c1c;
}

#services-content .transfer-inline-message.hidden {
    display: none;
}

#services-content .transfer-inline-message-copy {
    flex: 1;
    min-width: 0;
}

#services-content .transfer-inline-message-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: inherit;
}

#services-content .transfer-inline-message-copy p {
    margin: 0;
    line-height: 1.5;
    color: inherit;
}

#services-content .transfer-inline-message-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#services-content .transfer-inline-message-close:hover {
    transform: translateY(-1px);
}

#services-content .transfers-v3-card .form-group {
    min-height: 56px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 14px;
    margin: 0 !important;
    box-sizing: border-box;
}

#services-content .transfers-v3-card .form-group:focus-within {
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

#services-content .transfers-v3-card .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

#services-content .transfers-v3-card input,
#services-content .transfers-v3-card select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
    font-weight: 500;
    padding: 0 0 0 28px;
    line-height: 56px;
}

#services-content .transfers-v3-card input::placeholder {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 400;
}

#services-content .transfers-v3-card select {
    cursor: pointer;
    height: 100%;
    line-height: 1.4;
}

#services-content .transfers-swap-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

#services-content .transfers-swap-btn:hover {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

#services-content .transfers-time-group {
    cursor: pointer;
}

#services-content .transfers-time-group input {
    cursor: pointer;
}

#services-content .transfers-time-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    z-index: 40;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

#services-content .transfers-time-dropdown.open {
    display: block;
}

#services-content .transfers-time-option {
    padding: 9px 12px;
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    font-size: 14px;
}

#services-content .transfers-time-option:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

#services-content .transfers-passenger-counter {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#services-content .transfers-passenger-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#services-content .transfers-passenger-info i {
    color: #9ca3af;
    font-size: 14px;
}

#services-content .transfers-pax-display {
    color: #0f172a;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#services-content .transfers-passenger-actions {
    display: inline-flex;
    gap: 6px;
    flex-shrink: 0;
}

#services-content .pax-step-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f3f4f6;
    color: #334155;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#services-content .pax-step-btn:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #cbd5e1;
}

#services-content .pax-step-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#services-content .transfers-flight-option-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

#services-content .transfers-flight-option {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    justify-self: start;
    cursor: pointer;
}

#services-content .transfers-flight-option input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #2563eb;
}

#services-content .transfers-search-btn {
    width: 100%;
    border-radius: 12px;
    background: #0066ff !important;
    color: #ffffff;
    font-weight: 700;
    height: 54px;
    margin-top: 2px;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.24);
    transition: background 0.2s ease;
}

#services-content .transfers-search-btn:hover {
    background: #0052cc !important;
}

@media (max-width: 992px) {
    #services-content .transfers-v3-card {
        border-radius: 16px;
        padding: 18px;
        gap: 12px;
    }

    #services-content .transfers-mode-tabs {
        gap: 14px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #services-content .transfers-mode-tabs::-webkit-scrollbar {
        display: none;
    }

    #services-content .transfers-locations-row {
        grid-template-columns: 1fr;
    }

    #services-content .transfers-swap-btn {
        justify-self: center;
        transform: rotate(90deg);
    }

    #services-content .transfers-details-row,
    #services-content .transfers-return-row {
        grid-template-columns: 1fr;
    }

    #services-content .transfers-flight-option-row {
        grid-template-columns: 1fr;
    }

    #services-content .transfers-flight-option {
        grid-column: 1;
    }
}

/* 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) {
    /* ====================================
       PROFESSIONAL MOBILE SEARCH BAR
       Inspired by Booking.com, Trainline, Skyscanner
       ==================================== */
    
    /* Tab Navigation - Icon-focused on mobile */
    .tab-navigation {
        max-width: 100%;
        width: 100%;
        margin: 0 auto 15px;
        padding: 6px;
        gap: 4px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
    }
    
    .tab-btn {
        padding: 10px 8px;
        font-size: 11px;
        min-height: 52px;
        flex-direction: column;
        gap: 4px;
        border-radius: 10px;
    }
    
    .tab-btn i {
        font-size: 18px;
    }
    
    .tab-btn span {
        font-size: 9px;
        line-height: 1.1;
        text-align: center;
    }
    
    .tab-btn.active {
        background: rgba(255, 255, 255, 0.95);
        color: #1e3a5f;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    /* Search Form Container */
    .search-form {
        padding: 16px;
        border-radius: 16px;
        margin: 0 8px;
    }
    
    .search-form-fields {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    
    /* Form Groups - Stacked layout */
    .tab-content .form-group,
    .search-form-fields .form-group {
        border: none;
        border-bottom: 1px solid #e8ecef;
        border-radius: 0;
        height: auto;
        min-height: 58px;
        width: 100%;
        flex: none;
        padding: 12px 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        background: white;
        transition: background 0.2s ease;
    }
    
    .tab-content .form-group:last-of-type,
    .search-form-fields .form-group:last-of-type {
        border-bottom: none;
    }
    
    .tab-content .form-group:focus-within,
    .search-form-fields .form-group:focus-within {
        background: #f8fafc;
    }
    
    /* Field Labels - Always visible on mobile */
    .search-form-fields .field-label {
        display: block !important;
        font-size: 11px;
        font-weight: 600;
        color: #64748b;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Input Styling */
    .search-form-fields .form-group input,
    .search-form-fields .form-group select {
        padding: 0;
        padding-left: 28px;
        height: 28px;
        font-size: 15px;
        font-weight: 500;
        color: #1e293b;
        background: transparent;
        border: none;
    }
    
    .search-form-fields .form-group input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }
    
    /* Input Icons */
    .search-form-fields .input-icon {
        display: block;
        position: absolute;
        left: 16px;
        bottom: 14px;
        font-size: 14px;
        color: #1e3a5f;
    }
    
    /* Hide separators and swap icon on mobile */
    .field-separator,
    .swap-icon {
        display: none !important;
    }
    
    /* Search Button - Full width, prominent */
    .btn-search-main,
    .cta-button {
        width: 100%;
        margin: 12px 0 0 0;
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 12px;
        background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
        transition: all 0.3s ease;
    }
    
    .btn-search-main:active,
    .cta-button:active {
        transform: scale(0.98);
    }
    
    /* Tab Content Specific */
    .tab-content {
        flex-wrap: wrap;
        gap: 0;
    }
    
    #hotels-content .form-group,
    #tours-content .form-group,
    #services-content .form-group {
        min-width: 100%;
        flex: 1 1 100%;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 480px) {
    .tab-btn {
        padding: 8px 6px;
        min-height: 48px;
    }
    
    .tab-btn i {
        font-size: 16px;
    }
    
    .tab-btn span {
        font-size: 8px;
    }
    
    /* Show burger menu on mobile */
    .burger-menu {
        display: block;
        margin-left: auto;
    }
    
    /* 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;
    }
    
    /* Search form adjustments */
    .search-form {
        padding: 12px;
        margin: 0 4px;
    }
    
    .search-form-fields .form-group {
        min-height: 54px;
        padding: 10px 14px;
    }
    
    .search-form-fields .field-label {
        font-size: 10px;
    }
    
    .search-form-fields .form-group input {
        font-size: 14px;
    }
    
    .btn-search-main,
    .cta-button {
        padding: 14px 20px;
        font-size: 15px;
    }
}
    /* Mobile Currency Dropdown */
    @media (max-width: 768px) {
        .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;
            min-width: unset;
            max-width: unset;
        }

        .currency-dropdown.active .currency-menu {
            max-height: 400px;
            overflow-y: auto;
        }

        .currency-search-box {
            padding: 8px 10px;
            position: static;
        }

        .currency-search-input {
            font-size: 0.9rem;
        }

        .currency-options-list {
            max-height: 250px;
        }

        .currency-option {
            padding: 8px 16px;
            font-size: 0.9rem;
        }

        .currency-group-label {
            padding: 6px 12px 3px;
            font-size: 0.65em;
        }
    }

        .site-header .utility-nav a:hover {
            color: #333;
            background: rgba(0, 0, 0, 0.04);
            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;
     }
}

/* ===================================================================
   MOBILE SLIDE-OUT MENU (Booking.com / Agoda style)
   Created by mobile-menu.js — shared across all pages
   =================================================================== */

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 29999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Slide-out panel */
.mobile-slide-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 30000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mobile-slide-menu.open {
    right: 0;
}

/* Header with greeting + close */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    background: #0f3952;
    color: #fff;
    flex-shrink: 0;
}
.mobile-menu-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
}
.mobile-menu-greeting i {
    font-size: 1.6rem;
    opacity: 0.9;
}
.mobile-menu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8590c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
}
.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Scrollable body */
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

/* Section */
.mobile-menu-section {
    padding: 4px 0;
}
.mobile-menu-section-label {
    padding: 10px 20px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.06em;
}
.mobile-menu-section a,
.mobile-menu-currency-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s;
    cursor: pointer;
}
.mobile-menu-section a:hover,
.mobile-menu-currency-row:hover {
    background: #f5f7fa;
}
.mobile-menu-section a i,
.mobile-menu-currency-row i {
    font-size: 1.05rem;
    color: #666;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.mobile-menu-section a.mobile-menu-active {
    color: #0f3952;
    font-weight: 600;
    background: rgba(15, 57, 82, 0.06);
}
.mobile-menu-section a.mobile-menu-active i {
    color: #0f3952;
}

/* Currency row */
.mobile-menu-currency-row {
    position: relative;
}
.mobile-menu-currency-value {
    margin-left: auto;
    color: #0f3952;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(15, 57, 82, 0.08);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Account link */
.mobile-menu-account-link {
    font-weight: 600 !important;
    color: #0f3952 !important;
}
.mobile-menu-account-link i {
    color: #0f3952 !important;
}

/* Divider */
.mobile-menu-divider {
    height: 1px;
    background: #eee;
    margin: 4px 16px;
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-slide-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}
/* ============ END MOBILE SLIDE-OUT MENU ============ */
    
    
    .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;
        margin-left: auto;
    }
    .burger-menu {
        display: block;
        margin-left: auto;
    }

/* 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 --- */
/* OLD CAROUSEL STYLES DISABLED - Now using sharing-experiences.css */

/* Keep section animation styles active */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.section-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.section-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* OLD CAROUSEL-SPECIFIC STYLES (commented out) */
/*
.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;
}
.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%;
    }
}
*/
/* END OLD SHARING STYLES */

/* 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; 
}

/* Amenities icons row */
.trip-amenities {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 5px 0;
}
.trip-amenities .amenity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #f0f4f8;
    border-radius: 50%;
    color: #3498db;
    font-size: 0.75em;
    transition: all 0.2s ease;
}
.trip-amenities .amenity-icon:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}
.trip-amenities .amenity-more {
    font-size: 0.75em;
    color: #7f8c8d;
    padding: 4px 8px;
    background: #ecf0f1;
    border-radius: 12px;
}

/* Seats warning */
.seats-warning {
    display: inline-block;
    font-size: 0.75em;
    color: #e74c3c;
    background: #fdeaea;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.seats-warning i {
    margin-right: 3px;
}

/* Ticket type badge */
.ticket-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #e8f6e8;
    color: #27ae60;
    border-radius: 50%;
    font-size: 0.8em;
    margin-bottom: 5px;
}
.ticket-type-badge:hover {
    background: #27ae60;
    color: white;
}


.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 */
    }
}

/* Homepage layout utilities (Tailwind-like) */
.max-w-7xl {
    max-width: 80rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.section-rhythm {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

@media (max-width: 768px) {
    .section-rhythm {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

/* Content Category Sections */
.content-category {
    background-color: #f8f9fa;
}


.content-category .section-container {
    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: 14px;
    border: 1px solid #e6ebf1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    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: 190px;
    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: 16px;
    background: #fff;
}

.card-style-a .card-title {
    font-size: 1.04rem;
    font-weight: bold;
    margin: 0 0 8px 0; /* Increased margin */
    color: #333;
}

.card-style-a .card-subtitle {
    font-size: 0.9em;
    color: #64748b;
    margin: 0;
}

.tours-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tour-pill {
    border: 1px solid #d6deea;
    background: #fff;
    color: #1e3a5f;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
}

.tour-pill.is-active,
.tour-pill:hover,
.tour-pill:focus-visible {
    background: #0071c2;
    border-color: #0071c2;
    color: #fff;
}

/* 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;
}
.footer-column .payment-icons .klarna-badge {
    height: 32px;
    width: 80px;
    display: inline-block;
    vertical-align: middle;
}
.footer-column .payment-icons .payment-partners-image {
    height: 34px;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}
.footer-column .payment-icons .payment-partners-image:hover {
    opacity: 0.8;
}

.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%;
    }
}

/* ===== TRUSTED PARTNERS SECTION ===== */
.partners-section {
    padding: 80px 0 60px;
    background: #fff;
    overflow: hidden;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.partners-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.partners-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin: 0 0 50px;
    font-weight: 400;
}

.partners-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: partnersScroll 25s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    min-width: 120px;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.12);
}

.partner-logo img {
    max-height: 45px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes partnersScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Second row - reverse direction */
.partners-track-reverse {
    animation: partnersScrollReverse 28s linear infinite;
}

.partners-track-reverse:hover {
    animation-play-state: paused;
}

@keyframes partnersScrollReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 50px 0 40px;
    }
    .partners-title {
        font-size: 1.8rem;
    }
    .partners-track {
        gap: 60px;
        animation-duration: 20s;
    }
    .partner-logo {
        height: 55px;
        min-width: 140px;
    }
    .partner-logo img {
        max-height: 50px;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .partners-title {
        font-size: 1.5rem;
    }
    .partners-subtitle {
        font-size: 0.85rem;
        margin-bottom: 30px;
    }
    .partners-track {
        gap: 80px;
        animation-duration: 18s;
    }
    .partner-logo {
        height: 60px;
        min-width: 150px;
    }
    .partner-logo img {
        max-height: 55px;
        max-width: 150px;
    }
}

/* ===== Floating Action Buttons (Back-to-top + AI Bot) ===== */
.floating-actions {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.fab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.fab-btn:active {
    transform: translateY(0);
}

/* Back to top */
.fab-back-to-top {
    background: #fff;
    color: #0f3952;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
}

.fab-back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fab-back-to-top:hover {
    background: #0f3952;
    color: #fff;
}

/* AI Bot */
.fab-bot-wrapper {
    position: relative;
}

.fab-ai-bot {
    background: linear-gradient(135deg, #0f3952 0%, #1a5c85 100%);
    color: #fff;
}

.fab-ai-bot:hover {
    background: linear-gradient(135deg, #1a5c85 0%, #2980b9 100%);
}

/* Bot message bubble */
.fab-bot-message {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #fff;
    color: #333;
    padding: 12px 36px 12px 16px;
    border-radius: 14px 14px 4px 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    font-size: 0.88rem;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.fab-bot-message.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-bot-message-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

.fab-bot-message-close:hover {
    color: #333;
}

/* ===== AI Chat Window ===== */
.ai-chat-window {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 910;
}

.ai-chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0f3952 0%, #1a5c85 100%);
    color: #fff;
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.ai-chat-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.ai-chat-status {
    font-size: 0.75rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-chat-status-dot {
    width: 7px;
    height: 7px;
    background: #fbbf24;
    border-radius: 50%;
    display: inline-block;
    animation: statusPulse 2s ease-in-out infinite;
}

.ai-chat-status-dot--online {
    background: #28a745;
}

.ai-chat-powered-status {
    color: #28a745;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ai-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 4px;
}

.ai-chat-close:hover {
    opacity: 1;
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
    min-height: 260px;
    max-height: 340px;
}

.ai-chat-bubble {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.ai-chat-bubble-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #0f3952, #1a5c85);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-chat-bubble-content {
    background: #fff;
    border-radius: 12px 12px 12px 4px;
    padding: 12px 14px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    max-width: calc(100% - 40px);
}

.ai-chat-bubble-content p {
    margin: 0 0 8px;
}

.ai-chat-bubble-content p:last-child {
    margin-bottom: 0;
}

.ai-chat-bubble-content ul {
    margin: 6px 0;
    padding-left: 8px;
    list-style: none;
}

.ai-chat-bubble-content ul li {
    margin-bottom: 4px;
    font-size: 0.84rem;
}

.ai-chat-bubble-content a {
    color: #0071c2;
    text-decoration: none;
}

.ai-chat-bubble-content a:hover {
    text-decoration: underline;
}

.ai-chat-footer {
    padding: 12px 14px;
    border-top: 1px solid #e8ecf1;
    background: #fff;
}

.ai-chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f2f5;
    border-radius: 24px;
    padding: 6px 6px 6px 16px;
}

.ai-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    outline: none;
    color: #999;
}

.ai-chat-input::placeholder {
    color: #aaa;
}

.ai-chat-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.ai-chat-powered {
    text-align: center;
    font-size: 0.68rem;
    color: #aaa;
    margin-top: 8px;
}

/* AI Bot active state */
.fab-ai-bot.active {
    background: linear-gradient(135deg, #1a5c85 0%, #2980b9 100%);
    box-shadow: 0 0 0 3px rgba(26, 92, 133, 0.3), 0 4px 16px rgba(0, 0, 0, 0.18);
}

@media (max-width: 576px) {
    .floating-actions {
        bottom: 18px;
        right: 18px;
        gap: 10px;
    }
    .fab-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .fab-bot-message {
        font-size: 0.82rem;
        padding: 10px 30px 10px 14px;
        right: -4px;
    }
    .ai-chat-window {
        width: calc(100vw - 36px);
        right: -10px;
        bottom: 56px;
        max-height: 70vh;
    }
}

/* ===== Google Sign-In Popup (Agoda-style) ===== */
.google-signin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.google-signin-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.google-signin-popup {
    background: #fff;
    border-radius: 20px;
    width: 420px;
    max-width: 92vw;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    position: relative;
}

.google-signin-overlay.active .google-signin-popup {
    transform: translateY(0) scale(1);
}

.google-signin-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.google-signin-close:hover {
    background: #f1f5f9;
    color: #333;
}

.google-signin-header {
    padding: 40px 36px 20px;
    text-align: center;
}

.google-signin-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.google-signin-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.google-signin-header p {
    font-size: 0.92rem;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

.google-signin-body {
    padding: 12px 36px 28px;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    background: #fff;
    border: 1.5px solid #dadce0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.google-signin-btn:hover {
    background: #f8f9fa;
    border-color: #c4c7cc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.google-signin-btn:active {
    background: #f1f3f4;
}

.google-signin-provider-btn,
.google-signin-facebook-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: #fff;
    border: 1.5px solid #dadce0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top: 12px;
}

.google-signin-provider-btn:hover,
.google-signin-facebook-btn:hover {
    background: #f8f9fa;
    border-color: #c4c7cc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.google-signin-provider-btn.is-coming-soon {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.15);
}

.provider-soon-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 999px;
}

.google-signin-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.google-signin-divider::before,
.google-signin-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.google-signin-divider span {
    padding: 0 16px;
    font-size: 0.82rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.google-signin-email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: #0f3952;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.google-signin-email-btn:hover {
    background: #1a5c85;
}

.google-signin-email-btn i {
    font-size: 1rem;
}

.google-signin-options[hidden],
.google-signin-email-flow[hidden],
.email-auth-step[hidden],
.email-auth-message[hidden] {
    display: none !important;
}

.google-signin-email-flow {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.google-signin-back-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #0f3952;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.email-auth-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-auth-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.email-auth-input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #dbe2ea;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-auth-input:focus {
    outline: none;
    border-color: #0f3952;
    box-shadow: 0 0 0 4px rgba(15, 57, 82, 0.08);
}

.email-auth-submit {
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 12px;
    background: #0f3952;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.email-auth-submit:hover {
    background: #1a5c85;
}

.email-auth-readonly {
    padding: 11px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 600;
}

.email-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.email-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.email-auth-checkbox input {
    margin-top: 3px;
}

.email-auth-message {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
}

.email-auth-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.google-signin-footer {
    padding: 16px 36px 24px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.google-signin-footer p {
    font-size: 0.78rem;
    color: #a0aec0;
    margin: 0;
    line-height: 1.5;
}

.google-signin-footer a {
    color: #0f3952;
    text-decoration: none;
}

.google-signin-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .google-signin-popup {
        border-radius: 16px;
        width: 95vw;
    }
    .google-signin-header {
        padding: 32px 24px 16px;
    }
    .google-signin-body {
        padding: 10px 24px 24px;
    }
    .google-signin-footer {
        padding: 14px 24px 20px;
    }
    .email-auth-grid {
        grid-template-columns: 1fr;
    }
}