/* ===================================================================
   AIRPORT.MOBILE.CSS - Mobile Layout Only (max-width: 768px)
   100% AUTHORITY | NO DESKTOP LOGIC | FULL CONTROL
   =================================================================== */

/* ===== TOP HEADER ===== */
.site-header {
    background: #1e293b;
    padding: 12px 0;
    width: 100%;
}

.site-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header .logo-link img {
    height: 40px;
    width: auto;
}

/* Desktop nav HIDDEN on mobile */
.site-nav {
    display: none !important;
}

/* ===== COMPACT BOOKING WIDGET ===== */
.compact-widget-container {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    width: 100%;
    box-shadow: var(--shadow-lg);
}

/* ===== JOURNEY SUMMARY BAR (Mobile Only) ===== */
.journey-summary-widget {
    display: flex !important;
    padding: 12px 16px;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    cursor: pointer;
}

.widget-details {
    display: flex;
    flex-direction: column;
}

.widget-route {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-meta {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.widget-edit-btn {
    padding: 6px 15px;
    font-size: 0.8rem;
}

/* ===== FORM BODY (Collapsible on Mobile) ===== */
.compact-form-body {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    z-index: 2000;
    flex-direction: column !important;
    justify-content: flex-start;
    padding: 16px !important;
    padding-bottom: 24px !important;
    gap: 12px !important;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.compact-form-body.active {
    display: flex !important;
}

/* ===== MOBILE HEADER ===== */
.compact-mobile-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.compact-mobile-header span {
    color: white;
}

.compact-mobile-header img {
    height: 20px !important;
    width: auto;
}

.compact-mobile-header .flex {
    font-size: 0.9rem !important;
}

.compact-close-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

/* ===== ROWS - FORCED HORIZONTAL ===== */
.compact-row {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: flex-end !important;
}

/* Needs relative positioning for swap button */
.compact-row.from-to-row {
    position: relative;
}

/* Date/Time rows and Return row - ensure proper spacing */
.compact-row.date-time-row,
.compact-row.return-row {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: flex-end !important;
}

/* Return row - ensure it's visible when not hidden */
.compact-row.return-row:not(.hidden) {
    display: flex !important;
    margin-top: 0 !important;
}

/* ===== FIELDS ===== */
.compact-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 0 !important;
    min-width: 0 !important;
}

/* ===== INPUTS & SELECTS ===== */
.compact-input,
.compact-select {
    height: 48px;
    font-size: 0.95rem;
    padding: 8px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Adjust padding for swap button overlap */
.compact-row.from-to-row .compact-field:first-child .compact-input {
    padding-right: 24px;
}

.compact-row.from-to-row .compact-field:last-child .compact-input {
    padding-left: 24px;
}

/* ===== LABELS ===== */
.compact-lbl {
    font-size: 0.75rem;
    margin-bottom: 6px;
}

/* ===== SEARCH BUTTON ===== */
.compact-search-btn {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    font-size: 1rem;
}

/* Ensure button row takes full width */
.compact-row:has(.compact-search-btn) {
    width: 100%;
}

.compact-row:has(.compact-search-btn) .compact-field {
    width: 100% !important;
    flex: none !important;
}

/* ===== TRIP TYPE SELECTOR ===== */
/* Mobile uses RADIO TOGGLE */
.desktop-trip-dropdown {
    display: none !important;
}

.compact-trip-type-toggle {
    display: flex !important;
    background: white;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    margin-bottom: 15px;
}

.compact-trip-radio {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.compact-trip-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.compact-trip-radio span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 6px;
    transition: all 0.2s;
}

.compact-trip-radio input:checked+span {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

/* ===== CAR TYPE SELECTOR (Fit 3 Across) ===== */
.car-scroll {
    display: flex !important;
    overflow-x: hidden !important;
    /* Disable scroll */
    flex-wrap: nowrap !important;
    gap: 6px !important;
    /* Very small gap */
    margin: 0 !important;
    padding: 4px 0 !important;
    width: 100% !important;
}

.car-card {
    flex: 1 1 0% !important;
    /* Share width equally and shrink if needed */
    min-width: 0 !important;
    width: auto !important;
    /* Override Tailwind w-48 */
    margin: 0 !important;
}

.car-card>div {
    padding: 0 !important;
    /* Remove padding from inner wrapper */
    border-radius: 10px !important;
    border-width: 1.5px !important;
}

.car-card .h-32 {
    height: 60px !important;
    /* Very compact image container */
}

.car-card .p-4 {
    padding: 6px 4px !important;
    /* Minimal padding for text */
    text-align: center;
}

.car-card .font-semibold {
    font-size: 0.75rem !important;
    /* Smaller title */
    line-height: 1 !important;
}

.car-card .text-sm {
    font-size: 0.65rem !important;
    /* Smaller passenger count */
}

.car-card .text-xs {
    font-size: 0.55rem !important;
    /* Smaller car models */
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-card .text-sm {
    font-size: 0.7rem !important;
    /* Smaller subtitle */
}

.car-card .text-xs {
    font-size: 0.6rem !important;
    /* Tiny model names */
}

.car-card .p-4 {
    padding: 8px !important;
    /* Tighten up the text area */
}

/* ===== MOBILE SWAP BUTTON ===== */
.mobile-swap-btn {
    display: flex !important;
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.mobile-swap-btn:hover {
    background-color: #eff6ff;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.98);
    /* Slate-900 with opacity */
    backdrop-filter: blur(8px);
    z-index: 2100;
    display: flex;
    flex-direction: column;
}

.mobile-menu-content {
    padding: 20px;
    height: 100%;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:hover {
    color: #fbbf24;
    /* Amber-400 */
}

/* ===== ROUTE CARDS (Mobile Adjustments) ===== */
.route-card-v2 {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.route-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.route-header-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.route-icon-v2 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.route-info-v2 h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.route-info-v2 p {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.route-price-v2 {
    margin-bottom: 20px;
}

.route-price-v2 .price-label-v2 {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.route-price-v2 .price-value-v2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
}

.route-book-btn-v2 {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
}

/* ===== FOOTER LAYOUT (Mobile) ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.col-about {
    grid-column: span 2;
    text-align: center;
}

.footer-logo {
    margin-left: auto;
    margin-right: auto;
}

.footer-contact p {
    justify-content: center;
}

.footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 24px;
}