/* Styles.css - Legacy styles file (being refactored into components)
   Note: Variables are defined in base/variables.css
   This file will be gradually deprecated as styles move to component files */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.top-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--backdrop-blur-md);
    -webkit-backdrop-filter: var(--backdrop-blur-md);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    will-change: transform;

    /* Add safe area padding for iOS notch */
    padding-top: var(--safe-area-inset-top);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Desktop: show full logo, hide compact */
.logo-full {
    display: block;
}

.logo-compact {
    display: none;
}

.nav-tagline {
    display: flex;
    align-items: center;
    padding-left: 2rem;
    margin-left: 2rem;
    border-left: 1px solid var(--gray-200);
}

.nav-tagline-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    font-family: var(--font-body);
}

.nav-tagline .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tagline .stat-icon {
    font-size: 0.875rem;
    color: var(--primary);
}

.nav-tagline .stat-icon.text-success {
    color: var(--primary-green);
}

.nav-tagline .stat-text {
    color: var(--gray-700);
    font-weight: 400;
}

.nav-tagline .stat-text strong {
    font-weight: 600;
    color: var(--gray-900);
}

/* Header Stats Loading Animation */
.nav-tagline .stat-text strong.loading {
    opacity: 0.5;
    animation: gentle-pulse 1.2s ease-in-out infinite;
    min-width: 60px;
    display: inline-block;
    text-align: center;
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-tagline-stats .stat-item {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.user-status {
    font-size: 0.75rem;
    color: var(--primary);
}

.user-avatar {
    font-size: 2rem;
    color: var(--gray-400);
}

.contact-bar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.5rem 0;
    overflow-x: hidden;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.contact-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
    padding-right: 0.5rem;
}

.contact-phone {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.contact-btn {
    padding: 0.3rem 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-family: var(--font-body);
    line-height: 1.2;
    text-decoration: none;
    vertical-align: middle;
    position: relative;
}

.contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.contact-btn i {
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

.phone-btn {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.phone-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.chat-btn {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.chat-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.whatsapp-btn {
    background: var(--primary-green-whatsapp);
    border-color: var(--primary-green-whatsapp);
    color: var(--white);
}

.whatsapp-btn:hover {
    background: var(--primary-green-whatsapp-dark);
    border-color: var(--primary-green-whatsapp-dark);
    color: var(--white);
}

.whatsapp-btn i {
    color: var(--white);
}

/* Chat button now uses default btn--outline styling to match Close button */

/* Notification badge on chat button - ensure proper positioning on mobile */
.contact-btn .notification-badge,
.chat-btn .notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--status-cancelled);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Ensure notification badge is visible but contained on mobile */
@media (max-width: 768px) {
    .contact-btn .notification-badge,
    .chat-btn .notification-badge {
        right: -4px;
        top: -4px;
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
        border-width: 1.5px;
    }
}

/* Prevent overflow on very small screens */
@media (max-width: 480px) {
    .contact-btn .notification-badge,
    .chat-btn .notification-badge {
        right: -3px;
        top: -3px;
        min-width: 14px;
        height: 14px;
        font-size: 0.55rem;
        border-width: 1px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.nav-toggle {
    display: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    gap: 5px;
}

.nav-toggle:hover {
    background: rgba(13, 174, 156, 0.08);
    transform: scale(1.05);
}

.nav-toggle:active {
    transform: scale(0.98);
    background: rgba(13, 174, 156, 0.12);
}

.nav-toggle .bar {
    width: 24px;
    height: 4px;
    background: var(--gray-700);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: relative;
}

.nav-toggle:hover .bar {
    background: var(--primary);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(0, 9px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(0, -9px);
}

.nav-toggle.active:hover {
    background: rgba(239, 68, 68, 0.08);
}

.nav-toggle.active:hover .bar {
    background: var(--status-cancelled);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.search-header {
    padding: 1.5rem;
    background: transparent;
}

.search-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: -1px;
}

.search-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    margin-bottom: -2px;
}

.search-tab:hover {
    background: var(--gray-50);
    color: var(--gray-800);
    border-bottom-color: var(--gray-300);
}

.search-tab.active {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.search-tab.active:hover {
    background: var(--white);
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-text-mobile {
    display: none;
}

.tab-text-desktop {
    display: inline;
}

.tab-text-mobile-only {
    display: none;
}

.search-tab .tab-icon {
    display: none !important;
}

.search-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: var(--space-lg) 0;
    overflow: visible;
    position: relative;
    border: 1px solid var(--gray-200);
}

.search-form {
    padding: 0.75rem;
    padding-bottom: 0;
    position: relative;
}

.form-row {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-wrapper input::placeholder {
    color: var(--gray-400);
}

.input-wrapper input.invalid {
    border-color: var(--status-cancelled-dark);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.airport-search-wrapper {
    position: relative;
}

.airport-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(30, 41, 59, 0.15);
    border-radius: var(--radius);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.08);
    margin-top: 4px;
    width: 100%;
}

.airport-dropdown::-webkit-scrollbar {
    width: 6px;
}

.airport-dropdown::-webkit-scrollbar-track {
    background: var(--primary-light);
    border-radius: 3px;
}

.airport-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
    opacity: 0.3;
}

.airport-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    opacity: 0.5;
}

.airport-search-loading {
    padding: 2rem 1rem;
    text-align: center;
    animation: fade-in 0.3s ease-in-out;
}

.loading-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.plane-loader {
    position: relative;
    width: 30px;
    height: 30px;
}

.plane-loader i {
    font-size: 24px;
    color: var(--primary);
    animation: plane-float 2s ease-in-out infinite;
}

@keyframes plane-float {
    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    25% {
        transform: translateY(-3px) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(5deg);
    }

    75% {
        transform: translateY(-3px) rotate(0deg);
    }
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%,
    60%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    30% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

.loading-text {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: text-pulse 2s ease-in-out infinite;
}

@keyframes text-pulse {
    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-pulse {
    position: relative;
    width: 30px;
    height: 30px;
}

.location-pulse i {
    font-size: 24px;
    color: var(--primary);
    animation: location-pulse 2s ease-in-out infinite;
}

@keyframes location-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.airport-search-loading.location-detect {
    background: var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
}

input.location-loading {
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary-light) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.airport-dropdown .no-results {
    padding: 1rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
}

.airport-dropdown.active {
    display: block;
}

.airport-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: none;
    border-bottom: 1px solid rgba(30, 41, 59, 0.05);
    border-left: 2px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-height: 42px;
}

.airport-option:last-child {
    border-bottom: none;
    border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

.airport-option:first-child {
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.airport-option:hover {
    background: var(--primary-light);
    border-left-color: var(--primary);
}

.airport-option.selected {
    background: var(--primary-light);
    border-left-color: var(--primary);
}

.airport-option.highlighted {
    background: var(--primary-light);
    outline: 1px solid var(--primary);
    outline-offset: -1px;
    opacity: 0.8;
}

.airport-option.exact-match {
    background: var(--primary-light);
    border-left-width: 3px;
    border-left-color: var(--primary);
}

.airport-option.exact-match:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    opacity: 0.9;
}

.dropdown-header {
    padding: 0.375rem 0.75rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.dropdown-header i {
    color: var(--primary);
    font-size: 10px;
}

.city-group {
    border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

.city-group:last-child {
    border-bottom: none;
}

.city-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-50);
    border-left: 3px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-option:hover {
    background: var(--primary-light);
    border-left-color: var(--primary);
}

.city-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.city-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-body);
}

.city-name i {
    color: var(--primary);
    font-size: 11px;
}

.city-info {
    font-size: 11px;
    color: var(--gray-500);
}

.city-distance {
    display: flex;
    align-items: center;
}

.distance-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.nested-airport {
    padding-left: 2rem;
    background: rgba(248, 250, 252, 0.5);
    border-left: 3px solid transparent;
    min-height: 36px;
}

.nested-airport:hover {
    background: var(--primary-light);
    border-left-color: var(--primary);
}

.airport-prefix {
    color: var(--gray-300);
    font-size: 14px;
    margin-right: 0.5rem;
}

.airport-type {
    font-size: 10px;
    color: var(--gray-400);
    text-transform: capitalize;
    padding: 0.125rem 0.375rem;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
}

.airport-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.airport-name {
    font-weight: 500;
    color: var(--gray-800);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    padding-left: 0.25rem;
}

.airport-location {
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    padding-left: 0.25rem;
}

.airport-codes {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 5px;
    flex-shrink: 0;
    transition: none;
    opacity: 0.8;
}

.airport-option:hover .airport-codes {
    background: var(--primary-light);
    border-color: var(--primary);
    opacity: 1;
}

.airport-code {
    font-weight: 600;
    color: var(--primary);
    font-size: 13.5px;
    letter-spacing: 0.4px;
    font-family: var(--font-body);
}

.airport-icao {
    font-weight: 500;
    color: var(--primary);
    font-size: 10px;
    letter-spacing: 0.2px;
    font-family: var(--font-body);
    padding-left: 3px;
    border-left: 1px solid var(--primary);
    margin-left: 2px;
    opacity: 0.6;
}

.form-row-airports {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    align-items: flex-start;
}

.form-row-dates {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--space-xl);
}

.form-row-single {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    align-items: flex-start;
}

.form-row-single .from-group,
.form-row-single .to-group {
    flex: 1;
    min-width: 200px;
}

.form-row-single .date-group {
    flex: 0 0 280px;
    min-width: 280px;
}

.date-group {
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 60%;
}

.date-inputs-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.date-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-input {
    padding: 0.625rem 2.25rem 0.625rem 0.75rem !important;
    font-size: 14px !important;
}

.date-separator {
    color: var(--gray-400);
    font-size: 14px;
    margin-top: 1.5rem;
}

.flight-details {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0;
    border: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.flight-route-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.route-detail-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.route-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 45px;
}

.route-value {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-800);
}

.route-value i {
    color: var(--primary);
    font-size: 16px;
}

.multi-airport-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.city-header-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-header-display strong {
    font-size: 15px;
    color: var(--gray-800);
}

.airport-count-badge {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--gray-600);
}

.detail-item i {
    color: var(--gray-400);
    width: 16px;
}

.search-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.action-btn {
    padding: 0.875rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reset-btn i {
    color: var(--gray-500);
}

/* Mobile: Hide reset button on all mobile devices */
@media (max-width: 768px) {
    .reset-btn {
        display: none;
    }
}

.share-btn i {
    color: var(--primary);
}

.show-flights-btn {
    margin-left: auto;
    padding: 0.875rem 2rem;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.show-flights-btn:hover {
    box-shadow: var(--shadow-lg);
}

.show-flights-btn i {
    font-size: 16px;
}

.show-flights-btn:disabled {
    background: linear-gradient(
        135deg,
        rgba(148, 163, 184, 0.3) 0%,
        rgba(148, 163, 184, 0.5) 100%
    );
    color: rgba(30, 41, 59, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.show-flights-btn:disabled:hover {
    background: linear-gradient(
        135deg,
        rgba(148, 163, 184, 0.3) 0%,
        rgba(148, 163, 184, 0.5) 100%
    );
    color: rgba(30, 41, 59, 0.5);
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-section {
    margin-top: 1rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
    animation: fade-in 0.5s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 0.5rem;
}

.results-header h2 {
    font-size: 18px;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.results-header h3 {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 500;
}

/* Nearby Flights Header */
.nearby-flights-header {
    background: linear-gradient(135deg, #0dae9c 0%, #0891b2 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nearby-flights-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
}

.nearby-flights-header h2 i {
    font-size: 22px;
}

.nearby-flights-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

/* Mobile responsive for nearby flights header */
@media (max-width: 768px) {
    .nearby-flights-header {
        padding: 16px 20px;
    }

    .nearby-flights-header h2 {
        font-size: 20px;
    }

    .nearby-flights-header p {
        font-size: 13px;
    }
}

.results-count {
    padding: 0.5rem 0;
}

.results-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.results-title {
    font-size: 1.25rem;
    color: var(--gray-800);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.share-results-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    margin-left: 0.75rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    vertical-align: middle;
}

/* Empty State / No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(13, 174, 156, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
    border-radius: 12px;
    margin: 2rem 0;
}

.no-results i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 0.75rem;
}

.no-results p {
    font-size: 1rem;
    color: var(--gray-500);
    margin: 0;
    max-width: 400px;
}

.share-results-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

.share-results-btn i {
    font-size: 0.7rem;
}

.count-badge {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-block;
    text-align: center;
}

.results-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

.stat-item strong {
    color: var(--gray-800);
    font-weight: 600;
}

.flights-list {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Flight card and booking card styles moved to components/flight-cards.css */

.booking-card .booking-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.booking-card .booking-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--status-pending);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.booking-card .booking-status.confirmed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--status-confirmed);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.booking-card .booking-status.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-cancelled);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.booking-card .booking-status.completed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--status-completed);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.booking-card .booking-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.booking-card .booking-actions button {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: white;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-card .booking-actions button:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
}

.booking-card .booking-actions .cancel-btn {
    color: var(--status-cancelled);
    border-color: rgba(239, 68, 68, 0.3);
}

.booking-card .booking-actions .cancel-btn:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--status-cancelled);
}

.booking-card .booking-actions .contact-btn {
    color: var(--primary);
    border-color: rgba(13, 174, 156, 0.3);
}

.booking-card .booking-actions .contact-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}


.flight-departure {
    flex: 1.5;
    min-width: 0;
}

.flight-destination {
    flex: 1.5;
    min-width: 0;
}

.flight-aircraft-container {
    display: contents;
}

.flight-datetime {
    flex: 1.2;
    min-width: 0;
}

.flight-duration {
    flex: 0.8;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flight-aircraft-image {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flight-ratings {
    flex: 0 0 100px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.flight-aircraft {
    flex: 1.5;
    min-width: 0;
    display: flex;
    align-items: center;
}

.flight-aircraft .aircraft-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--font-body);
}

.flight-aircraft .aircraft-seats {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.flight-aircraft .aircraft-seats i {
    font-size: 11px;
    color: var(--gray-400);
    margin-right: 4px;
}

.flight-price {
    display: none;
}

.flight-actions {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.actions-price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.price-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    font-family: var(--font-body);
}

.original-price {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray-500);
    text-decoration: line-through;
    font-family: var(--font-body);
}

.savings-line {
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    text-align: right;
}

.savings-line.has-savings {
    color: var(--primary-green-deep);
}

.savings-line.has-overprice {
    color: var(--gray-600);
}

.overprice-badge {
    display: inline-block;
    color: var(--status-cancelled-border);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    box-shadow: 0 2px 4px rgba(13, 174, 156, 0.1);
    overflow: hidden;
}

.flight-aircraft-image .aircraft-image-container {
    width: 100%;
    height: 100%;
    min-height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.aircraft-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.flight-departure,
.flight-destination {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
}

.flight-departure .airport-code,
.flight-destination .airport-code {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-500);
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.flight-departure .airport-city,
.flight-destination .airport-city {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", "Noto Color Emoji",
        "Apple Color Emoji", "Segoe UI", "Roboto", "Inter", "Helvetica Neue",
        "Arial", sans-serif;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    max-width: 100%;
}

.flight-departure .airport-district,
.flight-destination .airport-district {
    font-size: 12px;
    font-weight: normal;
    color: var(--gray-600);
    margin-top: 2px;
    font-family: var(--font-body);
    line-height: 1.2;
}

.flight-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--font-body);
}

.flight-date-month {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.2;
    font-family: var(--font-body);
}

.flight-date-year {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-500);
    line-height: 1.2;
    font-family: var(--font-body);
}

.flight-time {
    font-size: 12px;
    color: var(--gray-500);
}

.flight-duration i {
    font-size: 11px;
    color: var(--gray-400);
}

.duration-time,
.duration-distance {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.duration-time {
    color: var(--gray-750);
    font-weight: 500;
}

.duration-distance {
    color: var(--gray-500);
    font-size: 11px;
}

.duration-distance i {
    font-size: 10px;
}

.mobile-label {
    display: none;
}

.flight-duration.mobile-position {
    display: none;
}

.flight-duration.desktop-position {
    display: flex;
}

.aircraft-model {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-body);
}

.aircraft-category {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green-deep);
    font-family: var(--font-body);
}

.price-amount.price-estimated {
    color: var(--primary);
}

.price-amount.price-range {
    font-size: 16px;
    color: var(--gray-400);
}

.price-amount.price-contact {
    font-size: 15px;
    color: var(--gray-500);
}

.price-note {
    font-size: 11px;
    color: var(--gray-400);
    font-style: italic;
    margin-top: 2px;
}

.price-ml-container {
    margin-top: 8px;
    padding: 6px 10px;
    background-color: var(--status-warning);
    color: #000;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-ml-label {
    font-size: 11px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-ml-value {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    font-family: var(--font-body);
}

.price-ml-confidence {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

@media (max-width: 768px) {
    .score-badge-container {
        gap: 2px;
    }

    .score-badge {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 2px 6px;
    }

    .score-comment {
        font-size: 9px;
        max-width: 120px;
    }

    .price-ml-container {
        margin-top: 6px;
        padding: 4px 8px;
        font-size: 12px;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }

    .price-ml-value {
        font-size: 13px;
    }

    .price-ml-confidence {
        font-size: 10px;
    }
}

.score-badge-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.score-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.score-value {
    color: white;
    font-family: "Outfit", sans-serif;
}

.score-badge-black {
    background: linear-gradient(
        135deg,
        var(--gray-650) 0%,
        var(--gray-750) 100%
    );
    border: 1px solid var(--gray-850);
}

.score-badge-red {
    background: linear-gradient(
        135deg,
        var(--status-cancelled) 0%,
        var(--status-cancelled-dark) 100%
    );
    border: 1px solid var(--status-cancelled-border);
}

.score-badge-yellow {
    background: linear-gradient(
        135deg,
        var(--status-warning) 0%,
        var(--status-pending) 100%
    );
    border: 1px solid var(--status-warning-dark);
}

.score-badge-green {
    background: linear-gradient(
        135deg,
        var(--primary-green-light) 0%,
        var(--primary-green) 100%
    );
    border: 1px solid var(--primary-green-deep);
}

.score-badge-blue {
    background: linear-gradient(
        135deg,
        #60a5fa 0%,
        var(--info) 100%
    );
    border: 1px solid #2563eb;
}

.score-comment {
    font-size: 10px;
    color: var(--gray-500);
    text-align: center;
    max-width: 150px;
    line-height: 1.3;
    margin-top: 2px;
}

.price-score {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: transparent;
    border: 1px solid;
}

.price-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    padding: 2px 4px;
    border-radius: 4px;
}

.price-score.score-excellent,
.price-label.score-excellent {
    border-color: var(--primary-green-light);
    color: var(--primary-green-light);
}

.price-score.score-great,
.price-label.score-great {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.price-score.score-good,
.price-label.score-good {
    border-color: var(--status-warning-light);
    color: var(--status-warning-light);
}

.price-score.score-some,
.price-label.score-some {
    border-color: var(--status-pending);
    color: var(--status-pending);
}

.price-score.score-close,
.price-label.score-close {
    border-color: var(--status-cancelled);
    color: var(--status-cancelled);
}

.price-score.score-like,
.price-label.score-like {
    border-color: var(--gray-450);
    color: var(--gray-450);
}

.price-score.score-pricier,
.price-label.score-pricier {
    border-color: var(--gray-500);
    color: var(--gray-500);
}

.price-score.score-no-price,
.price-label.score-no-price {
    border-color: var(--gray-450);
    color: var(--gray-450);
    background-color: rgba(156, 163, 175, 0.1);
    font-style: italic;
}

.price-score-compact {
    display: inline-block;
    border: 1px solid;
    vertical-align: middle;
}

.price-score-compact.score-excellent {
    border-color: var(--primary-green-light);
    color: var(--primary-green-light);
}

.price-score-compact.score-great {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.price-score-compact.score-good {
    border-color: var(--status-warning-light);
    color: var(--status-warning-light);
}

.price-score-compact.score-some {
    border-color: var(--status-pending);
    color: var(--status-pending);
}

.price-score-compact.score-close {
    border-color: var(--status-cancelled);
    color: var(--status-cancelled);
}

.price-score-compact.score-like {
    border-color: var(--gray-450);
    color: var(--gray-450);
}

.price-score-compact.score-pricier {
    border-color: var(--gray-500);
    color: var(--gray-500);
}

.flight-ratings .relevance-score {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.view-btn {
    background: rgba(13, 174, 156, 0.1);
    border: 1px solid rgba(13, 174, 156, 0.3);
    color: var(--primary);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.95) 0%,
        var(--background-muted) 100%
    );
    border-color: rgba(13, 174, 156, 0.3);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.book-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.4rem 0.7rem;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    height: 32px;
    position: relative;
    z-index: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.book-btn:hover {
    background: var(--primary-hover);
    transform: none;
    box-shadow: none;
    z-index: 2;
}

/* Popup footer: apply design system style for Book button */
.popup-footer .book-btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    box-shadow: var(--shadow);
    min-height: 44px;
    border-right: none;
    flex: 0 0 auto;
}

.popup-footer .book-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Popup footer: apply design system style for Favorite button (solid variant to match Book button) */
.popup-footer .favorite-btn {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    min-height: 44px;
    box-shadow: var(--shadow);
}

.popup-footer .favorite-btn:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

.popup-footer .favorite-btn.favorited,
.popup-footer .favorite-btn.is-favorite {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--status-cancelled);
}

.popup-footer .favorite-btn.favorited:hover,
.popup-footer .favorite-btn.is-favorite:hover {
    background: var(--primary-hover);
    border: 2px solid var(--primary-hover);
    color: var(--status-cancelled-dark);
}

/* Popup footer: Close button aligned with size/shape; use neutral outline */
.popup-footer .popup-footer-close {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    min-height: 44px;
}

.popup-footer .popup-footer-close:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Popup footer: Chat button matches Close button styling */
.popup-footer .chat-btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    min-height: 44px;
}

.popup-footer .chat-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Popup footer: ensure Cancel Booking button size */
.popup-footer .cancel-btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    min-height: 44px;
}

/* Equalize button widths for Close, Chat, and Cancel Booking on larger screens */
.popup-footer .popup-footer-close,
.popup-footer .chat-btn,
.popup-footer .cancel-btn {
    min-width: 140px;
    text-align: center;
}

/* Popup footer: Copy Link button aligned with Close size/shape */
.popup-footer .copy-link-btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    min-height: 44px;
}

/* Copy Link button keeps same label across resolutions */

.favorite-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.4rem 0.5rem;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    position: relative;
}

.favorite-btn:hover {
    background: var(--primary-hover);
    color: white;
    transform: none;
    box-shadow: none;
}

.favorite-btn.favorited,
.favorite-btn.is-favorite {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--status-cancelled);
    box-shadow: none;
}

.favorite-btn.favorited:hover,
.favorite-btn.is-favorite:hover {
    background: var(--primary-hover);
    color: var(--status-cancelled-dark);
}

.action-buttons:hover {
    box-shadow: 0 4px 12px rgba(13, 174, 156, 0.25);
    border-color: #5b8fc9;
}

.load-more {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.load-more-button {
    padding: 0.875rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.load-more-button:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.load-more-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.load-more-button.end-of-results {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-600);
    opacity: 1;
    cursor: default;
    pointer-events: none;
}

.load-more-button.end-of-results:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.date-tooltip {
    position: absolute;
    background: linear-gradient(
        135deg,
        var(--gray-600) 0%,
        var(--gray-500) 100%
    );
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    pointer-events: none;
    animation: tooltip-bounce 0.5s ease;
    max-width: 280px;
    line-height: 1.4;
}

.date-tooltip::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #64748b;
}

.date-tooltip.show {
    opacity: 1;
    visibility: visible;
}

@keyframes tooltip-bounce {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-range-wrapper {
    position: relative;
}

.date-picker-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.date-range-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-range-input:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 174, 156, 0.1);
}

.date-range-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 174, 156, 0.15);
}

.date-range-picker-dropdown {
    position: fixed;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    width: 350px;
    max-width: calc(100vw - 20px);
    display: flex;
    flex-direction: column;
}

.date-range-quick-select {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-select-btn {
    padding: 0.4rem 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-select-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.date-range-calendars {
    display: block;
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.date-range-calendar-month {
    flex: 1;
}

.date-range-calendar-month .calendar-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.date-range-calendar-month .calendar-month-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.date-range-calendar-month .calendar-nav-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.date-range-calendar-month .calendar-nav-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.date-range-calendar-month .calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.date-range-calendar-month .calendar-day-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 0.25rem;
}

.date-range-calendar-month .calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.date-range-calendar-month .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.date-range-calendar-month
    .calendar-day:hover:not(.calendar-day-disabled, .calendar-day-empty) {
    background: var(--gray-100);
}

.date-range-calendar-month .calendar-day-empty {
    cursor: default;
}

.date-range-calendar-month .calendar-day-disabled {
    color: var(--gray-300);
    cursor: not-allowed;
}

.date-range-calendar-month .calendar-day-today {
    font-weight: 600;
}

.date-range-calendar-month .calendar-day-today::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.calendar-day-range-start {
    background: var(--primary) !important;
    color: white !important;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.calendar-day-range-end {
    background: var(--primary) !important;
    color: white !important;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.calendar-day-in-range {
    background: rgba(13, 174, 156, 0.1) !important;
    color: var(--gray-800);
    border-radius: 0;
}

.calendar-day-preview {
    background: rgba(13, 174, 156, 0.05);
}

.calendar-day-range-start.calendar-day-range-end {
    border-radius: 6px;
}

.date-range-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 0 0 12px 12px;
}

.date-range-clear-btn,
.date-range-apply-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-range-clear-btn {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.date-range-clear-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.date-range-apply-btn {
    background: var(--primary);
    border: none;
    color: white;
    flex: 1;
    max-width: 200px;
}

.date-range-apply-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 174, 156, 0.3);
}

@media (max-width: 768px) {
    .date-range-picker-dropdown {
        width: calc(100vw - 32px) !important;
        max-width: 400px !important;
        inset: auto !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-height: min(calc(100vh - 32px), 600px) !important;
        overflow: hidden !important;
        z-index: 10001;
    }

    .date-picker-backdrop {
        display: block;
    }

    .date-range-quick-select {
        padding: 0.75rem;
    }

    .quick-select-btn {
        font-size: 12px;
        padding: 0.35rem 0.6rem;
    }

    .date-range-calendar-month .calendar-day {
        font-size: 12px;
        padding: 0.5rem 0.25rem;
    }

    .date-range-calendar-month .calendar-month-label {
        font-size: 13px;
    }

    .date-range-calendar-month .calendar-nav-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .date-range-footer {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .date-range-clear-btn,
    .date-range-apply-btn {
        padding: 0.625rem 1rem;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .date-range-picker-dropdown {
        width: calc(100vw - 20px) !important;
        max-height: min(calc(100vh - 20px), 550px) !important;
    }

    .date-range-quick-select {
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .quick-select-btn {
        font-size: 11px;
        padding: 0.25rem 0.5rem;
    }

    .date-range-calendar-month .calendar-day {
        font-size: 11px;
        padding: 0.4rem 0.2rem;
    }

    .date-range-calendar-month .calendar-day-label {
        font-size: 10px;
    }

    .date-range-footer {
        flex-direction: column;
    }

    .date-range-clear-btn,
    .date-range-apply-btn {
        width: 100%;
    }
}

.date-picker-calendar {
    position: fixed;
    z-index: 10000;
}

.single-date-calendar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    min-width: 280px;
}

.single-date-calendar .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.single-date-calendar .calendar-nav-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 14px;
    transition: var(--transition);
}

.single-date-calendar .calendar-nav-btn:hover {
    color: var(--primary-blue);
}

.single-date-calendar .calendar-month-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.single-date-calendar .calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.single-date-calendar .calendar-day-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 0.25rem;
}

.single-date-calendar .calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.single-date-calendar .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.single-date-calendar
    .calendar-day:hover:not(.calendar-day-disabled, .calendar-day-empty) {
    background: var(--blue-50);
    color: var(--primary-blue);
}

.single-date-calendar .calendar-day-empty {
    cursor: default;
}

.single-date-calendar .calendar-day-disabled {
    color: var(--gray-300);
    cursor: not-allowed;
}

.single-date-calendar .calendar-day-selected {
    background: var(--primary-blue);
    color: var(--white);
}

.single-date-calendar .calendar-day-today {
    font-weight: 600;
    position: relative;
}

.single-date-calendar .calendar-day-today::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-blue);
}

.single-date-calendar .calendar-day-selected.calendar-day-today::after {
    background: var(--white);
}

.flight-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fade-in 0.3s ease;
}

.flight-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flight-popup {
    background: white;
    border-radius: 16px;
    max-width: 95%;
    width: 1400px;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.3s ease;
    position: relative;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-close-corner {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    border: none;
    color: var(--light-teal);
    width: 32px;
    height: 32px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.popup-close-corner:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 174, 156, 0.3);
}

.popup-content {
    flex: 1;
    min-height: 0; /* CRITICAL: Allows flex item to shrink and enable scrolling */
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-map-container {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

#flight-route-map {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.leaflet-control-container {
    z-index: 800 !important;
}

.leaflet-pane {
    z-index: 400 !important;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 800 !important;
}

.flight-info-grid {
    display: grid;
    grid-template-columns: 1.3fr minmax(200px, 1fr) minmax(150px, 0.8fr) minmax(
            150px,
            0.8fr
        );
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.info-section {
    background: var(--surface-muted);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--gray-250);
    overflow: visible;
    min-width: 0;
}

.aircraft-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 110px;
    padding: 12px;
    background: linear-gradient(
        135deg,
        rgba(249, 250, 251, 0.3) 0%,
        rgba(243, 244, 246, 0.3) 100%
    );
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.aircraft-image-wrapper:hover {
    background: linear-gradient(
        135deg,
        rgba(249, 250, 251, 0.5) 0%,
        rgba(243, 244, 246, 0.5) 100%
    );
    border-color: rgba(13, 174, 156, 0.3);
    box-shadow: 0 2px 8px rgba(13, 174, 156, 0.1);
}

.aircraft-image-large {
    cursor: zoom-in;
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.aircraft-image-popup {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: auto;
    height: auto;
    max-width: min(85vw, 700px);
    max-height: min(75vh, 500px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    padding: 20px;
    z-index: 2147483647 !important;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    isolation: isolate;
}

.aircraft-image-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.aircraft-image-popup img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(min(75vh, 500px) - 40px);
    object-fit: contain;
    border-radius: 8px;
}

.aircraft-image-large:hover + .aircraft-image-popup,
.aircraft-image-popup:hover {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.shared-aircraft-popup {
    position: fixed !important;
    top: 0;
    left: 0;
    transform: scale(0);
    transform-origin: top left;
    width: auto;
    height: auto;
    max-width: min(400px, 40vw);
    max-height: min(300px, 40vh);
    background: white;
    border-radius: 12px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 2147483647 !important;
    pointer-events: none;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.shared-aircraft-popup::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Arrow pointing down (popup is above image) */
.shared-aircraft-popup.top-side::before {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Arrow pointing up (popup is below image) */
.shared-aircraft-popup.bottom-side::before {
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.1);
}

/* Arrow on left side (legacy, kept for compatibility) */
.shared-aircraft-popup.left-side::before {
    left: auto;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.1);
}

.shared-aircraft-popup.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.shared-aircraft-popup img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(min(300px, 40vh) - 30px);
    object-fit: contain;
    border-radius: 8px;
}

.flight-list-aircraft-image {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.flight-list-aircraft-image:hover {
    transform: scale(1.05);
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--gray-750);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title i {
    color: var(--accent-indigo);
    font-size: 14px;
}

.popup-section-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--gray-750);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-section-title i {
    color: var(--accent-indigo);
    font-size: 14px;
}

.route-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-height: 120px;
}

.airport-detail {
    width: 100%;
    text-align: center;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.airport-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.airport-code-large {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    font-family: "Outfit", sans-serif;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.airport-detail .airport-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.airport-detail .airport-location {
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-wrap: wrap;
    text-align: center;
}

.flight-path {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    position: relative;
}

.flight-info {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
    padding: 8px 0;
}

.flight-info i {
    font-size: 11px;
    color: var(--primary);
    margin-right: 4px;
}

.aircraft-details {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    align-items: start;
    font-family: var(--font-body);
}

.aircraft-section {
    position: relative;
    overflow: visible;
    min-height: auto;
}

.aircraft-section .aircraft-details {
    position: relative;
    z-index: 2;
}

.aircraft-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    max-width: 100%;
}

.aircraft-model-large {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-750);
    margin-bottom: 4px;
    line-height: 1.3;
}

.aircraft-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 8px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--gray-600);
    line-height: 1.4;
    white-space: nowrap;
}

.spec-item i {
    color: var(--primary);
    width: 14px;
    font-size: 10px;
    text-align: center;
    flex-shrink: 0;
}

.spec-item span:first-of-type {
    font-weight: 500;
    color: var(--gray-500);
}

.spec-item span:last-of-type {
    font-weight: 600;
    color: var(--gray-700);
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 500;
}

.detail-value {
    font-size: 11px;
    color: var(--gray-750);
    font-weight: 600;
}

.pricing-section {
    background: var(--surface-muted);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--gray-250);
    overflow: visible;
    min-width: 0;
}

.pricing-section .popup-section-title {
    color: var(--gray-800);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-section .popup-section-title i {
    color: var(--primary);
    font-size: 13px;
}

.route-section .popup-section-title {
    color: var(--gray-800);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-section .popup-section-title i {
    color: var(--primary);
    font-size: 13px;
}

.aircraft-section .popup-section-title {
    color: var(--gray-800);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-250);
    padding-bottom: 8px;
    position: relative;
}

.aircraft-section .popup-section-title i {
    color: var(--primary);
    font-size: 15px;
}

/* Aircraft modal content styles */
.aircraft-modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.aircraft-modal-model {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
}

.aircraft-modal-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-600);
}

.aircraft-modal-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aircraft-modal-specs i {
    font-size: 12px;
    color: var(--primary);
    opacity: 0.7;
}

/* Pricing modal styles */
.pricing-modal-details {
    padding: 8px 0;
}

.pricing-modal-details .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pricing-modal-details .price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Contact section styles */
.contact-section .contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.contact-section .contact-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.contact-section .contact-label {
    font-weight: 500;
    color: var(--gray-600);
    min-width: 80px;
}

.contact-section .contact-item span:last-child {
    color: var(--gray-800);
    font-weight: 400;
}

.details-section .popup-section-title {
    color: var(--gray-800);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-section .popup-section-title i {
    color: var(--primary);
    font-size: 13px;
}

.pricing-details {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.price-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pricing-section .actions-price-display {
    width: 100%;
    text-align: center;
}

.pricing-section .actions-price-display .price-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pricing-section .actions-price-display .current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(13, 174, 156, 0.1);
}

.pricing-section .actions-price-display .original-price {
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-400);
    text-decoration: line-through;
    opacity: 0.7;
}

.pricing-section .actions-price-display .savings-line {
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.3px;
}

.pricing-section .actions-price-display .savings-line.has-savings {
    color: var(--primary-green);
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.1) 0%,
        rgba(16, 185, 129, 0.1) 100%
    );
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pricing-section .actions-price-display .price-contact {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #5fd4c4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.pricing-section .price-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(13, 174, 156, 0.1);
    font-family: var(--font-body);
}

.pricing-section .price-label {
    display: none;
}

#flight-details-page-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.popup-footer {
    padding: 10px 20px;
    border-top: 1px solid var(--gray-250);
    background: var(--surface-muted);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Removed .flight-actions wrapper from popup footer; buttons live directly in .popup-footer */

.popup-btn {
    padding: 10px 20px;
    border: 1px solid rgba(30, 41, 59, 0.15);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: var(--text-base, 14px);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 42px;
}

.btn-favorite {
    background: rgba(13, 174, 156, 0.1);
    color: var(--primary);
    border: 1px solid rgba(13, 174, 156, 0.3);
    font-family: var(--font-body);
}

.btn-favorite:hover {
    background: var(--primary);
    border-color: transparent;
    color: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 174, 156, 0.3);
}

.btn-favorite.favorited {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.95) 0%,
        var(--background-muted) 100%
    );
    color: var(--primary);
    border: 1px solid rgba(13, 174, 156, 0.3);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.btn-favorite.favorited i::before {
    content: "\f004";
}

.btn-share {
    background: rgba(30, 41, 59, 0.05);
    color: var(--gray-600);
    border: 1px solid rgba(30, 41, 59, 0.15);
    font-family: var(--font-body);
}

.btn-share:hover {
    background: rgba(13, 174, 156, 0.1);
    border-color: rgba(13, 174, 156, 0.3);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 174, 156, 0.15);
}

.copy-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-green);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    animation: slide-in 0.3s ease;
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
}

.copy-notification.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.currency-selector-wrapper {
    position: relative;
    margin-right: 0.5rem;
}

.nav-menu .currency-selector-wrapper:first-child {
    margin-left: auto;
}

.nav-menu > .nav-item:first-child:not(.currency-selector-wrapper) {
    margin-left: auto;
}

.currency-selector {
    position: relative;
}

.currency-selector-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-selector-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(147, 197, 253, 0.5);
    transform: translateY(-1px);
}

.currency-selector-btn .currency-symbol {
    font-weight: 600;
    font-size: 16px;
}

.currency-selector-btn .currency-code {
    font-weight: 500;
}

.currency-selector-btn i {
    font-size: 10px;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.currency-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 320px;
    max-height: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.currency-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.currency-dropdown-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.currency-dropdown-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gray-500);
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.currency-dropdown-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.currency-search {
    position: relative;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.currency-search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-700);
    background: var(--gray-50);
    transition: all 0.2s ease;
}

.currency-search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
}

.currency-search i {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 14px;
}

.currency-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.currency-section {
    padding: 0.5rem 0;
}

.currency-section-title {
    padding: 0.5rem 1.25rem;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currency-separator {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 1.25rem;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.currency-option:hover {
    background: var(--gray-50);
}

.currency-option.selected {
    background: var(--blue-50);
}

.currency-option-symbol {
    width: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
}

.currency-option-code {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 14px;
    min-width: 40px;
}

.currency-option-name {
    flex: 1;
    color: var(--gray-600);
    font-size: 14px;
}

.currency-option .fa-check {
    color: var(--primary-blue);
    margin-left: auto;
}

.currency-notification {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: white;
    color: var(--gray-800);
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-green);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 800;
    white-space: nowrap;
}

.currency-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-notification i {
    color: var(--primary-green);
    font-size: 16px;
}

@media (max-width: 1280px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .flight-card-content {
        gap: 0.75rem;
    }

    .flight-aircraft-image .aircraft-image-container {
        width: 100%;
        height: 100%;
        min-height: 50px;
    }

    .flight-aircraft .aircraft-details {
        margin-left: 0;
    }

    .flight-aircraft-image {
        flex: 1;
    }

    .flight-ratings {
        flex: 0 0 70px;
    }

    .route-section {
        width: 100%;
        overflow: visible;
    }
}

@media (max-width: 1024px) {
    .flight-card-compact {
        padding: 10px;
    }

    .flight-ratings {
        flex: 0 0 auto;
        min-width: 60px;
        gap: 2px;
    }

    .flight-ratings .price-score {
        font-size: 10px;
        padding: 1px 6px;
    }

    .flight-ratings .price-label {
        font-size: 9px;
        padding: 1px 3px;
    }

    .pricing-section {
        padding: 16px;
    }

    .pricing-details {
        padding: 16px;
    }

    /* Ensure popup footer buttons stay compact at ~1000px widths */
    .popup-footer .action-btn {
        flex: 0 0 auto;
        width: auto;
    }

    .popup-footer .book-btn {
        flex: 0 0 auto;
        width: auto;
    }

    .pricing-section .actions-price-display .current-price {
        font-size: 26px;
    }

    .pricing-section .actions-price-display .original-price {
        font-size: 18px;
    }

    .pricing-section .actions-price-display .savings-line {
        font-size: 12px;
        padding: 4px 12px;
    }

    /* On small and medium screens, hide text of non-Book buttons in popup footer */
    .popup-footer .action-btn:not(.book-btn) .btn-text {
        display: none;
    }

    /* Compact icon-only buttons widths on medium screens */
    .popup-footer .action-btn:not(.book-btn) {
        padding: 10px 12px;
    }

    .popup-footer .popup-footer-close,
    .popup-footer .chat-btn,
    .popup-footer .cancel-btn,
    .popup-footer .copy-link-btn {
        min-width: 44px;
    }

    .flight-card-content {
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0.75rem;
    }

    .flight-card-content > * {
        flex-shrink: 0;
    }

    .flight-actions {
        width: 100px;
    }

    .flight-departure,
    .flight-destination {
        min-width: auto;
    }

    .flight-datetime,
    .flight-duration,
    .flight-aircraft,
    .flight-aircraft-image,
    .flight-ratings,
    .flight-price {
        grid-column: span 1;
        min-width: auto;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem;
        justify-content: space-between;
    }

    .nav-toggle {
        display: none !important;
    }

    .nav-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        flex-direction: row !important;
        background: transparent !important;
        width: auto !important;
        text-align: left;
        transition: none;
        box-shadow: none;
        padding: 0;
        gap: 0.5rem;
        display: flex !important;
        align-items: center;
        margin-left: auto;
    }

    .nav-item {
        margin: 0;
    }

    .nav-item:not(.currency-selector-wrapper, .user-menu, .login-btn-wrapper) {
        display: none;
    }

    .nav-link {
        padding: 1rem;
        font-size: 1rem;
    }

    .form-row,
    .form-row-airports,
    .form-row-dates,
    .search-container {
        margin: 1rem 0;
        border-radius: 12px;
    }

    .search-form {
        padding: 1rem;
    }

    .form-row-single {
        flex-direction: column;
        gap: 0;
        margin-bottom: 1rem;
        position: relative;
    }

    .form-row-single .from-group,
    .form-row-single .to-group,
    .form-row-single .date-group {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .form-group label {
        font-size: 11px;
        margin-bottom: 0.375rem;
    }

    .input-wrapper input {
        padding: 0.875rem;
        font-size: 16px;
        min-height: 48px;
    }

    .date-group {
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }

    .date-inputs-wrapper {
        flex-direction: column;
        gap: var(--space-md);
    }

    .date-separator {
        display: none;
    }

    .flight-details {
        flex-direction: column;
        gap: var(--space-md);
    }

    .search-actions {
        flex-direction: column;
        width: 100%;
    }

    .action-btn,
    .show-flights-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Prevent underlying page scroll whenever popup is open */
body.popup-open {
    overflow: hidden;
    touch-action: none; /* Prevent scroll on touch devices */
}

@media (max-width: 768px) {
    /* On small screens, also fix positioning to fully lock scroll */
    body.popup-open {
        position: fixed;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        touch-action: none;
    }

    .search-tab[data-tab="bookings"] .tab-icon,
    .search-tab[data-tab="bookmarks"] .tab-icon,
    .search-tab[data-tab="profile"] .tab-icon,
    .search-tab[data-tab="help"] .tab-icon {
        display: inline-block !important;
        margin-right: 0;
        font-size: 16px;
    }

    .search-tab[data-tab="bookings"] .tab-text-desktop,
    .search-tab[data-tab="bookmarks"] .tab-text-desktop,
    .search-tab[data-tab="profile"] .tab-text-desktop,
    .search-tab[data-tab="help"] .tab-text-desktop {
        display: none;
    }

    .action-buttons {
        gap: 8px;
        border: none;
        box-shadow: none;
        overflow: visible;
        background: transparent;
        padding: 0;
    }

    .action-buttons .book-btn,
    .action-buttons .favorite-btn {
        border: 1px solid var(--primary);
        border-radius: var(--radius);
        box-shadow: 0 2px 4px rgba(13, 174, 156, 0.1);
        height: auto;
    }

    .action-buttons .book-btn:hover,
    .action-buttons .favorite-btn:hover {
        box-shadow: 0 4px 8px rgba(13, 174, 156, 0.2);
    }

    .nav-container {
        padding: 0.75rem 1rem;
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-logo {
        gap: 0.75rem;
        flex: 0 0 auto;
    }

    /* Mobile: hide full logo, show compact */
    .logo-full {
        display: none;
    }

    .logo-compact {
        display: block;
    }

    .nav-tagline {
        display: none;
    }

    .nav-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transition: none;
        z-index: auto;
        padding: 0;
        overflow-y: visible;
        -webkit-overflow-scrolling: auto;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .nav-toggle {
        display: none !important;
    }

    .nav-item:not(.currency-selector-wrapper, .user-menu, .login-btn-wrapper) {
        display: none !important;
    }

    /* Ensure visible nav items have clean layout */
    .nav-item.currency-selector-wrapper,
    .nav-item.user-menu,
    .nav-item.login-btn-wrapper {
        padding: 0;
        margin: 0;
        border: none;
    }

    .currency-selector-wrapper {
        margin-right: 0.5rem;
    }

    .nav-menu .currency-selector-wrapper:first-child {
        margin-left: 0;
    }

    .nav-menu > .nav-item:first-child:not(.currency-selector-wrapper) {
        margin-left: 0;
    }

    .multi-airport-display {
        gap: 6px;
    }

    .city-header-display {
        flex-wrap: wrap;
    }

    .currency-selector-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        min-height: 36px;
    }

    .currency-selector-btn .currency-code {
        display: inline-block;
    }

    .user-menu {
        display: flex !important;
    }

    .user-menu-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem;
        cursor: pointer;
    }

    .user-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .user-name {
        display: none; /* Hide user name on mobile, show avatar only */
    }

    .login-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
        min-height: 36px;
    }

    .currency-dropdown {
        width: 280px;
        right: -10px;
    }

    .flight-popup-overlay {
        padding: 0;
        overflow: hidden; /* Prevent overlay scrolling */
        align-items: flex-start;
        justify-content: flex-start;
    }

    .flight-popup {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        height: 100vh; /* Fixed height for better scroll containment */
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        top: 0;
        left: 0;
        transform: none;
        animation: slide-up 0.3s ease-out;
        overflow: hidden; /* Prevent popup container scrolling */
        display: flex;
        flex-direction: column;
        position: relative;
    }

    @keyframes slide-up {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .popup-content {
        padding: 1rem;
        padding-top: 60px; /* Space for fixed close button */
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); /* Space for fixed footer + safe area */
        overflow: hidden auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        overscroll-behavior: contain; /* Prevent scroll chaining */
        flex: 1;
        max-height: calc(100vh - 100px); /* Account for fixed footer */
        position: relative;
        touch-action: pan-y; /* Allow vertical scrolling only */
    }

    .popup-close-corner {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: var(--primary);
        color: var(--white);
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        z-index: 10002;
    }

    .flight-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .route-map-container {
        height: 200px;
    }

    .flight-card-compact {
        padding: 12px;
        margin-bottom: 0.75rem;
        border-radius: 12px;
    }

    .flight-card-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }

    .flight-aircraft-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        order: 5;
        padding: 0.75rem;
        background: var(--gray-50);
        border-radius: 8px;
        margin: 0.5rem 0;
    }

    .flight-aircraft-container .flight-aircraft {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0;
        background: transparent;
        margin: 0;
        width: auto;
        order: unset;
    }

    .flight-aircraft-container .flight-aircraft-image {
        display: flex;
        width: auto;
        order: unset;
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .flight-card-content > div {
        width: 100%;
        text-align: left;
        padding: 0;
        min-width: unset;
    }

    .mobile-label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: var(--gray-400);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }

    .flight-duration.mobile-position {
        display: flex;
        order: 3;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 0.75rem;
        background: var(--gray-50);
        border-radius: 8px;
        margin: 0.5rem 0;
    }

    .flight-duration.desktop-position {
        display: none;
    }

    .flight-departure {
        order: 2;
    }

    .flight-destination {
        order: 4;
    }

    .aircraft-image-container {
        width: 100%;
        height: 100px;
        padding: 0.5rem;
        background: var(--gray-50);
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    .aircraft-image-wrapper {
        height: 120px;
    }

    .aircraft-image-large {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
        cursor: default; /* Remove zoom cursor on mobile */
    }

    /* Disable all aircraft hover effects on mobile */
    .aircraft-image-large:hover + .aircraft-image-popup,
    .aircraft-image-popup:hover {
        transform: translate(-50%, -50%) scale(0); /* Keep hidden */
        opacity: 0;
        pointer-events: none;
    }

    /* Disable flight list aircraft image hover scale */
    .flight-list-aircraft-image:hover {
        transform: none;
        cursor: default;
    }

    /* Disable shared aircraft popup on mobile */
    .shared-aircraft-popup,
    .shared-aircraft-popup.active {
        display: none !important;
        opacity: 0;
        pointer-events: none;
    }

    /* Disable aircraft wrapper hover effect */
    .aircraft-image-wrapper:hover {
        background: inherit;
        box-shadow: none;
    }

    .flight-card-content .aircraft-image-container {
        width: 100%;
        height: 80px;
    }

    .shared-aircraft-popup {
        max-width: min(300px, 70vw);
        max-height: min(250px, 35vh);
    }

    .shared-aircraft-popup img {
        max-height: calc(min(250px, 35vh) - 30px);
    }

    .aircraft-image-popup {
        max-width: min(92vw, 500px);
        max-height: min(65vh, 400px);
    }

    .aircraft-image-popup img {
        max-height: calc(min(65vh, 400px) - 40px);
    }

    .aircraft-section {
        min-height: auto;
        overflow: visible;
    }

    .aircraft-section .aircraft-details {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .aircraft-section .aircraft-image-wrapper {
        width: 100%;
        height: 120px;
        margin-bottom: 8px;
    }

    .aircraft-section .aircraft-info {
        width: 100%;
        text-align: left;
    }

    .aircraft-section .aircraft-specs {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .aircraft-section .spec-item {
        font-size: 10px;
        gap: 6px;
    }

    .aircraft-section .spec-item i {
        font-size: 10px;
    }

    .flight-departure,
    .flight-destination {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        min-width: auto;
    }

    .flight-departure .airport-code,
    .flight-destination .airport-code {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--gray-900);
        min-width: 60px;
    }

    .flight-departure .city-name,
    .flight-destination .city-name {
        font-size: 0.875rem;
        color: var(--gray-600);
        flex: 1;
    }

    .flight-datetime {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        background: var(--gray-50);
        border-radius: 8px;
        width: 100%;
        min-width: auto;
        order: 1;
    }

    .flight-datetime .date {
        font-weight: 600;
        color: var(--gray-800);
    }

    .flight-datetime .time {
        color: var(--gray-600);
    }

    .flight-duration,
    .flight-ratings,
    .flight-price {
        width: 100%;
        text-align: left;
        min-width: auto;
    }

    .flight-aircraft .aircraft-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .flight-aircraft .aircraft-model {
        font-size: 13px;
        font-weight: 600;
        color: var(--gray-800);
    }

    .flight-aircraft .aircraft-category {
        font-size: 11px;
        color: var(--gray-600);
    }

    .flight-aircraft .aircraft-seats {
        font-size: 11px;
        color: var(--gray-600);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .flight-aircraft .aircraft-seats i {
        font-size: 10px;
    }

    .flight-aircraft-image {
        order: 6;
        width: auto;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .flight-aircraft-image .aircraft-image-container {
        width: 100%;
        height: 100%;
        min-height: 48px;
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: 6px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .flight-aircraft-image .aircraft-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .flight-actions {
        order: 7;
        display: flex;
        width: 100%;
        gap: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--gray-200);
        min-width: auto;
    }

    .flight-actions .action-btn {
        flex: 1;
        padding: 0.625rem;
        font-size: 12px;
        justify-content: center;
        min-height: 44px;
    }

    .results-section {
        max-width: 100%;
        margin-top: 1rem;
        padding: 0 0.5rem;
    }

    .results-header {
        padding: 1rem 0.5rem;
        margin-bottom: 0.75rem;
    }

    .results-title {
        font-size: 1.125rem;
    }

    .results-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .share-results-btn {
        margin-left: 0.5rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .count-badge {
        font-size: 1rem;
    }

    .flights-list {
        padding: 0;
        gap: 0.75rem;
    }

    .loading-overlay {
        background: rgba(255, 255, 255, 0.95);
    }

    .flight-card-compact:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .action-btn:active,
    .popup-btn:active,
    .show-flights-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    .route-details {
        gap: 12px;
    }

    .airport-detail {
        padding: 10px;
    }

    .flight-path {
        padding: 6px 0;
        gap: 12px;
    }

    .airport-code-large {
        font-size: 20px;
    }

    .airport-detail .airport-name {
        font-size: 13px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
    }

    .airport-detail .airport-location {
        font-size: 12px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
        flex-wrap: wrap;
    }

    .aircraft-details {
        flex-direction: column;
        align-items: center;
    }

    .detail-items {
        grid-template-columns: 1fr;
    }

    .popup-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 10001;
    }

    /* Removed .flight-actions and .action-buttons wrappers in popup footer */

    .popup-footer .action-btn {
        flex: 0 0 auto;
        min-height: 44px;
        font-size: var(--text-base);
        padding: 10px 20px;
        justify-content: center;
        width: auto;
    }
}

/* Ensure popup footer buttons do not stretch at medium widths */
@media (max-width: 768px) {
    .popup-footer .action-btn {
        width: auto;
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    /* Contact buttons maintain consistent padding */
    .contact-btn {
        padding: 0.3rem 0.5rem; /* Same as desktop for consistency */
        min-height: auto; /* Override the 44px min-height to match desktop appearance */
    }

    /* Compact icon-only buttons widths on small screens */
    .popup-footer .action-btn:not(.book-btn) {
        padding: 10px;
        min-width: 40px;
    }

    /* Remove borders from booking card sections on mobile */
    .booking-info-section,
    .price-info-section {
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .booking-card .flight-actions {
        border: none;
        outline: none;
    }

    .container {
        padding: 0 0.75rem;
    }

    .search-container {
        margin: 0.75rem 0;
        border-radius: 8px;
    }

    .search-form {
        padding: 0.875rem;
    }

    .search-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }

    .search-tabs::-webkit-scrollbar {
        display: none;
    }

    .search-tab {
        padding: 0.625rem 1rem;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .tab-text-desktop {
        display: none;
    }

    .tab-text-mobile {
        display: inline;
    }

    .flight-details {
        padding: 1rem;
    }

    .flight-route-details {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .route-detail-row {
        font-size: 13px;
        align-items: flex-start;
    }

    .route-value {
        flex-wrap: wrap;
        word-break: break-word;
        line-height: 1.5;
    }

    .route-value i {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .results-header {
        padding: 0.75rem;
    }

    .results-header h2 {
        font-size: 18px;
    }

    .results-title {
        font-size: 1.1rem;
    }

    .share-results-btn {
        margin-left: 0.4rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }

    .count-badge {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .booking-info-section,
    .price-info-section {
        width: 100%;
        padding: var(--space-sm);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .price-info-section {
        border-left: none;
        border-top: 1px solid var(--gray-200);
        padding-top: var(--space-sm);
        margin-top: var(--space-sm);
    }

    .booking-date-time {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .booking-price {
        margin-bottom: 0.25rem;
        justify-content: center;
        width: 100%;
    }

    .booking-price-label {
        display: none;
    }

    .booking-price-value {
        font-size: 0.9rem;
        font-weight: 700;
    }

    .booking-status {
        margin-top: 0;
        justify-content: center;
        width: 100%;
    }

    .booking-card .action-btn.cancel-btn,
    .booking-card .action-btn.chat-btn {
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 1rem;
        gap: 0.5rem;
        overflow-x: visible;
        max-width: 100vw;
    }

    .contact-label {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .contact-phone {
        display: none;
    }

    /* Contact buttons with consistent padding matching desktop */
    .contact-btn {
        padding: 0.3rem 0.5rem; /* Same as desktop for consistency */
        min-height: auto; /* Override the 44px min-height to match desktop appearance */
    }
}

@media (max-width: 480px) {
    /* Keep contact button padding consistent even on smaller screens */
    .contact-btn {
        padding: 0.3rem 0.5rem; /* Same as desktop for consistency */
        min-height: auto; /* Override the 44px min-height to match desktop appearance */
    }

    .action-buttons {
        gap: 4px;
    }

    .bookings-filters {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .bookings-filters .filter-dropdown-container,
    .bookings-filters .sort-dropdown {
        width: 100%;
    }

    .bookings-filters .filter-dropdown,
    .bookings-filters .sort-dropdown {
        width: 100%;
        min-width: unset;
    }

    .bookings-filters .filter-dropdown-toggle,
    .bookings-filters .sort-dropdown-toggle {
        width: 100%;
    }

    .nav-container {
        padding: 0.625rem 0.75rem;
        height: 56px;
    }

    .search-tab {
        padding: 0.5rem 0.75rem;
        font-size: 12px;
        min-width: auto;
    }

    .search-tab:has(.tab-icon-only) {
        padding: 0.5rem 0.625rem;
    }

    .search-container {
        margin: 0.5rem 0;
    }

    .search-form {
        padding: 0.75rem;
    }

    .form-group label {
        font-size: 10px;
        margin-bottom: 0.25rem;
    }

    .input-wrapper input {
        padding: 0.75rem;
        font-size: 16px;
    }

    .search-actions {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 0.25rem;
    }

    .action-btn {
        flex: 1;
        width: 100%;
        font-size: 12px;
        padding: 0.5rem;
        justify-content: center;
        min-width: unset;
    }

    /* In popup footer keep Book compact on very small screens */
    .popup-footer .book-btn {
        flex: 0 0 auto;
        width: auto;
    }

    .show-flights-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
        font-size: 14px;
    }

    .results-section {
        padding: 0 0.25rem;
        margin-top: 0.75rem;
    }

    .results-header {
        text-align: left;
        margin-bottom: 0.75rem;
        padding: 0.5rem;
    }

    .results-title {
        font-size: 1rem;
    }

    .share-results-btn {
        display: block;
        margin-top: 0.5rem;
        margin-left: 0;
        width: auto;
    }

    .flight-card-compact {
        padding: 10px;
    }

    .flight-departure .airport-code,
    .flight-destination .airport-code {
        font-size: 1.1rem;
    }

    .flight-departure .city-name,
    .flight-destination .city-name {
        font-size: 0.8rem;
    }

    .flight-price .price {
        font-size: 1.1rem;
    }

    .popup-content {
        padding: 0.75rem;
        padding-top: 60px; /* Space for fixed close button - override shorthand */
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); /* Space for fixed footer + safe area - override shorthand */
    }

    .info-section {
        padding: 0.75rem;
    }

    .section-title {
        font-size: 14px;
    }

    .popup-section-title {
        font-size: 14px;
    }

    .flights-list {
        gap: var(--space-md);
    }

    .container {
        padding: var(--space-sm);
    }
}

.bookmarks-list {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.remove-btn {
    background: rgba(30, 41, 59, 0.05);
    color: var(--gray-600);
    border: 1px solid rgba(30, 41, 59, 0.15);
    font-family: var(--font-body);
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-cancelled);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.no-bookmarks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--gray-500);
    width: 100%;
    box-sizing: border-box;
}

.no-bookmarks i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-bookmarks h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 0.5rem;
}

.no-bookmarks p {
    max-width: 400px;
    line-height: 1.6;
}

.bookmarks-list .loading,
.bookmarks-list .error {
    text-align: center;
    padding: var(--space-2xl);
    font-size: 1.1rem;
}

.bookmarks-list .loading {
    color: var(--gray-600);
}

.bookmarks-list .error {
    color: var(--status-cancelled);
}

.bookings-section {
    display: none;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fade-in 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.flight-card-compact.booking-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    cursor: pointer;
    transform: none;
}

.flight-card-compact.booking-card.status-pending:hover {
    background: rgba(245, 158, 11, 0.06);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: none;
}

.flight-card-compact.booking-card.status-confirmed:hover {
    background: rgba(34, 197, 94, 0.06);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: none;
}

.flight-card-compact.booking-card.status-cancelled:hover {
    background: rgba(239, 68, 68, 0.06);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: none;
}

.flight-card-compact.booking-card.status-completed:hover {
    background: rgba(59, 130, 246, 0.06);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: none;
}

.booking-status-indicator {
    position: absolute;
    top: -3px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 var(--radius-lg) 0 var(--radius);
    font-size: 0.75rem;
    z-index: 1;
}

.booking-status-indicator .status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.booking-card.status-pending .status-badge {
    background: rgba(245, 158, 11, 0.1);
    color: var(--status-warning-dark);
}

.booking-card.status-confirmed .status-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.booking-card.status-cancelled .status-badge {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-cancelled-dark);
}

.booking-status-indicator .booked-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.15rem 0.4rem;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.booking-status-indicator .booking-date {
    color: var(--gray-500);
    font-size: 0.7rem;
    margin-right: 0.5rem;
}

.booking-card .flight-actions {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.booking-info-section {
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.price-info-section {
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-left: 1px solid var(--gray-200);
}

.booking-date-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.booking-value {
    font-size: 0.85rem;
    color: var(--gray-750);
    font-weight: 500;
    white-space: nowrap;
}

.booking-price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.booking-price-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.85rem;
}

.booking-price-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

.booking-status {
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
}

.booking-status .status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.booking-status .status-badge.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--status-warning-dark);
}

.booking-status .status-badge.status-confirmed {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.booking-status .status-badge.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-cancelled-dark);
}

/* New booking status styles */
.booking-status .status-badge.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.booking-status .status-badge.status-declined {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-cancelled-dark);
}

.booking-status .status-badge.status-completed {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

/* FP Flight status badge */
.status-badge.fp-flight {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    font-weight: 600;
}

.booking-card .action-btn.cancel-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-cancelled-dark);
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    margin-top: var(--space-xs);
    width: 100%;
    justify-content: center;
}

.booking-card .action-btn.cancel-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--status-cancelled);
    transform: translateY(-1px);
}

.booking-card .action-btn.chat-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    margin-top: var(--space-xs);
    width: 100%;
    justify-content: center;
}

/* Mobile-specific styles for booking card buttons - must be after desktop styles */
@media (max-width: 640px) {
    .booking-card .flight-actions {
        flex-direction: row !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }

    .booking-card .flight-actions .action-btn {
        flex: 1;
        margin-top: 0;
        width: auto !important;
    }

    .booking-card .action-btn.cancel-btn,
    .booking-card .action-btn.chat-btn {
        margin-top: 0 !important;
    }
}

.no-bookings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--gray-500);
    width: 100%;
    box-sizing: border-box;
}

.no-bookings i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-bookings h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 0.5rem;
}

.no-bookings p {
    max-width: 400px;
    line-height: 1.6;
}

.bookings-list .loading,
.bookings-list .error {
    text-align: center;
    padding: 3rem 2rem;
}

.bookings-list .loading {
    color: var(--primary);
}

.bookings-list .error {
    color: var(--status-cancelled-dark);
}

.booking-details-popup {
    max-width: 800px;
}

.booking-modal-header {
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.02) 0%,
        rgba(30, 41, 59, 0.02) 100%
    );
    border-bottom: 1px solid rgba(30, 41, 59, 0.1);
    margin: -1.5rem -1.5rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.booking-modal-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.booking-modal-status .booking-status-badge {
    position: static;
    display: inline-flex;
}

.booking-modal-ref {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-family: "Courier New", monospace;
}

.booking-modal-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.booking-modal-date i {
    color: var(--primary);
}

.booking-modal-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
}

.booking-modal-price i {
    color: var(--primary);
}

.booking-modal-price span {
    background: var(--primary-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.route-details-modal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius);
    gap: 2rem;
}

.airport-info-modal {
    flex: 1;
    text-align: center;
}

.route-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    position: relative;
}

.route-arrow i {
    font-size: 1.5rem;
    z-index: 2;
}

.route-line {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary) 50%,
        transparent 100%
    );
    top: 50%;
    transform: translateY(-50%);
}

.price-booking {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(13, 174, 156, 0.2);
}

@media (max-width: 1024px) {
    .booking-info-section {
        width: 140px;
        padding: var(--space-sm);
        gap: 0.25rem;
        align-items: center;
    }

    .price-info-section {
        align-items: center;
    }

    .booking-date-time {
        justify-content: center;
    }

    .booking-price {
        font-size: 0.8rem;
        justify-content: center;
    }

    .booking-status {
        justify-content: center;
    }

    .booking-value {
        font-size: 0.75rem;
    }

    .booking-price-label {
        font-size: 0.75rem;
    }

    .booking-price-value {
        font-size: 0.85rem;
    }

    .booking-status .status-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .booking-card .action-btn.cancel-btn,
    .booking-card .action-btn.chat-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.45rem;
    }
}

.selection-info {
    padding: 0.75rem;
}

.selected-city-header,
.selected-airport-header {
    padding: 0.75rem;
    background: linear-gradient(
        135deg,
        rgba(13, 174, 156, 0.05) 0%,
        rgba(13, 174, 156, 0.08) 100%
    );
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.selected-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
    font-size: 14px;
}

.selected-indicator i {
    color: var(--primary-green);
    font-size: 16px;
}

.selected-indicator strong {
    font-weight: 600;
}

.location-detail {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 400;
}

.selected-airports-list {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.airports-in-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.airport-code-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(13, 174, 156, 0.1);
    color: var(--primary);
    border: 1px solid rgba(13, 174, 156, 0.2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: "Outfit", monospace;
}

.clear-selection-option {
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--status-cancelled);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.clear-selection-option:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.clear-selection-option i {
    font-size: 12px;
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--gray-250);
    margin-top: 80px;
    padding: 60px 0 40px;
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Roboto",
        sans-serif;
    position: relative;
    min-height: 300px;
    box-shadow: 0 100vh 0 100vh #fff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    color: var(--gray-500);
}

.footer-title {
    color: var(--gray-850);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--gray-850);
}

.footer-links a[title="Coming Soon"]::after {
    content: "•";
    margin-left: 6px;
    color: var(--gray-350);
    font-size: 10px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-item i {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 3px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact-label {
    font-size: 12px;
    color: var(--gray-450);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-value:hover {
    color: var(--gray-850);
}

.footer-about {
    grid-column: span 1;
}

.footer-description {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-stat {
    color: var(--gray-500);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-stat i {
    color: var(--gray-450);
    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-250);
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--gray-450);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal a {
    color: var(--gray-450);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--gray-700);
}

.footer-separator {
    color: var(--gray-350);
    font-size: 10px;
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 20px;
        padding: 24px 0 0;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        padding: 16px 0;
        border-bottom: 1px solid var(--gray-200);
    }

    .footer-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        padding: 6px 0;
        display: block;
        font-size: 13px;
    }

    .footer-about {
        order: -1;
        max-width: none;
        padding-top: 0;
    }

    .footer-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .footer-stats {
        gap: 6px;
    }

    .footer-stat {
        font-size: 12px;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .contact-item {
        padding: 8px 0;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-item i {
        font-size: 14px;
        margin-top: 2px;
    }

    .contact-item div {
        flex: 1;
    }

    .footer-contact-label {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .contact-value {
        font-size: 13px;
    }

    .footer-bottom {
        padding: 16px 0;
        margin-top: 8px;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .footer-copyright {
        font-size: 12px;
        order: 1;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 10px;
        order: 2;
    }

    .footer-legal a {
        font-size: 12px;
        padding: 4px 6px;
    }

    .footer-separator {
        display: none;
    }
}

.policy-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.policy-modal-container {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.policy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.policy-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.policy-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.policy-modal-close:hover {
    color: var(--gray-700);
}

.policy-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Termly embed iframe styling */
.policy-modal-content [name="termly-embed"] {
    min-height: 500px;
    max-width: 100%;
}

.policy-modal-content [name="termly-embed"] iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none;
}

/* DSAR modal specific styles */
.dsar-modal-container {
    max-width: 800px;
}

.dsar-modal-content {
    padding: 0;
    min-height: 600px;
}

.dsar-modal-content iframe {
    width: 100% !important;
    height: 600px !important;
    border: none;
    display: block;
}

/* Mobile terms content styling */
.mobile-terms-content {
    line-height: 1.6;
}

.mobile-terms-content h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.mobile-terms-content p {
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.mobile-terms-content a {
    color: var(--primary);
    text-decoration: none;
}

.mobile-terms-content a:hover {
    text-decoration: underline;
}

/* Termly Loading State Styles */
.termly-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    min-height: 200px;
}

.termly-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: termly-spin 1s linear infinite;
}

.termly-loading p {
    margin-top: 1rem;
    color: var(--gray-600);
    font-size: 14px;
}

@keyframes termly-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error message styling */
.policy-modal-content .error-message {
    text-align: center;
    padding: 2rem;
    color: var(--danger);
    font-size: 16px;
}

/* Improved modal animations */
.policy-modal-overlay[style*="flex"] {
    animation: fade-in 0.2s ease-in-out;
}

.policy-modal-overlay[style*="flex"] .policy-modal-container {
    animation: slide-up 0.3s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Focus styles for accessibility */
.policy-modal-close:focus,
.footer-legal-links a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hide loader when content is loaded */
.policy-modal-content:has([name="termly-embed"] iframe) .termly-loading,
.dsar-modal-content:has(iframe[src]) .termly-loading {
    display: none;
}

@media (max-width: 768px) {
    .policy-modal-overlay {
        padding: 10px;
    }

    .policy-modal-container {
        max-height: 95vh;
    }

    .policy-modal-header {
        padding: 1rem;
    }

    .policy-modal-header h2 {
        font-size: 1.25rem;
    }

    .policy-modal-content {
        padding: 1rem;
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-about {
        grid-column: span 2;
    }
}

@media (min-width: 1025px) {
    .footer-about {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    button,
    a,
    input,
    select,
    textarea {
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(13, 174, 156, 0.1);
    }

    * {
        -webkit-overflow-scrolling: touch;
    }

    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .container {
        overflow-x: hidden;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
    }

    .airport-dropdown {
        max-height: 50vh;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    }

    .no-bookmarks,
    .no-bookings {
        padding: 2rem 1rem;
    }

    .no-bookmarks h3,
    .no-bookings h3 {
        font-size: 1.25rem;
    }

    .no-bookmarks p,
    .no-bookings p {
        font-size: 0.875rem;
    }

    .auth-modal-content {
        width: calc(100% - 2rem);
        max-width: 400px;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    .booking-details-popup {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
        max-height: 100vh;
    }

    input:focus,
    select:focus,
    textarea:focus {
        outline-offset: 2px;
        outline-width: 2px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="date"],
    input[type="datetime-local"],
    select,
    textarea {
        font-size: 16px;
    }

    button:active,
    a.btn:active,
    .btn:active {
        opacity: 0.8;
    }

    .nav-container,
    .container,
    .footer-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .popup-footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

.currency-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.currency-loading-overlay.active {
    opacity: 1;
}

.currency-loading-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: scale-in 0.3s ease;
}

.currency-loading-spinner {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.currency-loading-spinner i {
    animation: spin 1s linear infinite;
}

.currency-loading-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes scale-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile-warning-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.profile-warning-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.profile-warning-popup {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.profile-warning-overlay.show .profile-warning-popup {
    transform: scale(1);
}

.popup-warning-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.profile-warning-popup h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.profile-warning-popup p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.popup-warning-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-warning-buttons button,
.popup-warning-buttons a {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-block;
}

.btn-continue {
    background: rgba(30, 41, 59, 0.05);
    color: var(--gray-600);
    border: 1px solid rgba(30, 41, 59, 0.15);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition:
        background var(--transition-fast) ease,
        color var(--transition-fast) ease,
        border-color var(--transition-fast) ease,
        box-shadow var(--transition-fast) ease,
        transform var(--transition-fast) ease;
    text-decoration: none;
}

.btn-continue:hover {
    background: rgba(13, 174, 156, 0.1);
    color: var(--primary);
    border-color: rgba(13, 174, 156, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 174, 156, 0.15);
}

.btn-complete-profile {
    background: var(--primary);
    color: white;
}

.btn-complete-profile:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
}

.booking-warning-banner {
    background: #fef3c7;
    border: 2px solid var(--status-warning);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slide-down 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-warning-banner .warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.booking-warning-banner .warning-text {
    flex: 1;
    color: #92400e;
    font-size: 15px;
    line-height: 1.4;
}

.booking-warning-banner .complete-profile-link {
    color: var(--status-warning-dark);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 5px;
    white-space: nowrap;
}

.booking-warning-banner .complete-profile-link:hover {
    color: #b45309;
}

@media (max-width: 768px) {
    .profile-warning-popup {
        padding: 20px;
        max-width: 95%;
    }

    .popup-warning-buttons {
        flex-direction: column;
    }

    .popup-warning-buttons button,
    .popup-warning-buttons a {
        width: 100%;
    }

    .booking-warning-banner {
        flex-direction: column;
        text-align: center;
    }
}

.action-btn.booked,
.btn-primary.booked,
.book-btn.booked {
    background: var(--primary-green) !important;
    cursor: not-allowed !important;
    opacity: 0.9;
}

.action-btn.booked:hover,
.btn-primary.booked:hover,
.book-btn.booked:hover {
    transform: none !important;
    background: var(--primary-green) !important;
}

/* Small screens - intermediate sizing */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 0.75rem;
        height: 52px;
    }

    .currency-selector-btn {
        padding: 0.3rem 0.35rem;
        font-size: 0.8rem;
        min-height: 30px;
    }

    .login-btn {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.8rem !important;
        min-height: 30px;
    }
}

/* Very small screens - fix login button visibility */
@media (max-width: 400px) {
    /* Reduce nav container padding */
    .nav-container {
        padding: 0.4rem;
        height: 48px;
    }

    /* Make currency selector more compact */
    .currency-selector-btn {
        padding: 0.25rem 0.3rem;
        font-size: 0.75rem;
        min-height: 28px;
    }

    /* Hide currency code, show only symbol */
    .currency-selector-btn .currency-code {
        display: none;
    }

    /* Reduce currency selector margin */
    .currency-selector-wrapper {
        margin-right: 0.25rem;
    }

    /* Make login button more compact */
    .login-btn {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.75rem !important;
        min-height: 28px;
    }

    /* Reduce gap between nav items */
    .nav-menu {
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    /* Hide login button icon on very small screens */
    .login-btn i {
        display: none;
    }
}
