:root {
    /* Color Tokens - Placeholders for now, will update in Phase 2 */
    --primary: #1a73e8;
    --primary-hover: #1765cc;
    --accent: #1a73e8;
    --accent-hover: #1765cc;
    --success: #1e8e3e;
    --warning: #ea8600;
    --error: #d93025;
    --text: #202124;
    --text-secondary: #5f6368;
    --text-muted: #999;
    --border: #dadce0;
    --border-light: #eee;
    --background: #fff;
    --background-gray: #f8f9fa;
    --background-hover: #f5f5f5;

    /* Spacing Scale - Mathematical progression */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;

    /* Typography Scale */
    --font-xs: 0.8rem;
    --font-sm: 0.85rem;
    --font-base: 0.9rem;
    --font-md: 1rem;
    --font-lg: 1.1rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.8rem;
    --font-3xl: 2.5rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.18);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--text);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
}

.search-icon, .menu-icon {
    font-size: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.search-icon:hover, .menu-icon:hover {
    opacity: 0.7;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
    margin-right: 10px;
}

h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.025em;
}

main {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

form {
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.location-input {
    display: flex;
}

.location-input input {
    flex-grow: 1;
    margin-right: 10px;
}

.location-input button {
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"] {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: var(--accent-hover);
}

/* Loading Animation Styles */
.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.airplane {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

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

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

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

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

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.recommendation {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #e8f4fd;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.error {
    color: #ff0000;
    font-weight: bold;
}
/* Add this to your existing styles.css */

.date-selection {
    display: flex;
    gap: 20px;
}

.date-selection input[type="radio"] {
    display: none;
}

.date-selection label {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.date-selection input[type="radio"]:checked + label {
    background-color: var(--accent);
    color: white;
}
/* Add these styles to your existing styles.css file */

.timeline {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--accent);
  top: 0;
  bottom: 0;
  left: 10px;
  margin-left: -1px;
}

.timeline-event {
  position: relative;
  margin-bottom: 25px;
}

.timeline-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 2px solid var(--accent);
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content {
  margin-left: 35px;
  background-color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.1em;
}

.timeline-content p {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #333;
}

@media screen and (min-width: 600px) {
  .timeline {
    max-width: 600px;
    padding: 30px 0;
  }
  
  .timeline-content {
    margin-left: 35px;
    padding: 20px 25px;
  }
}


/* Flight cards for results page - Turbli style rectangular cards */
.flight-card {
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 8px;
    background: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.flight-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(74, 74, 255, 0.15);
    transform: translateY(-2px);
}

.flight-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Back button styling */
.back-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

/* Timeline styles for results */
.timeline {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--accent);
  top: 0;
  bottom: 0;
  left: 10px;
  margin-left: -1px;
}

.timeline-event {
  position: relative;
  margin-bottom: 25px;
}

.timeline-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 2px solid var(--accent);
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content {
  margin-left: 35px;
  background-color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.2s ease;
}

.timeline-content:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.1em;
}

.timeline-content p {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #333;
}

/* Advanced settings styling */
.advanced-settings {
  margin-bottom: 1rem;
}

.advanced-toggle {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: #333;
  transition: all 0.2s ease;
}

.advanced-toggle:hover {
  background: #e9ecef;
  border-color: #ccc;
}

.advanced-toggle.expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.advanced-toggle-text {
  font-weight: 500;
}

.advanced-toggle-icon {
  transition: transform 0.2s ease;
  font-size: 0.8rem;
}

.advanced-toggle.expanded .advanced-toggle-icon {
  transform: rotate(180deg);
}

.advanced-options {
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 16px;
  background: white;
}

.radio-selection {
  display: flex;
  gap: 20px;
}

.radio-selection input[type="radio"] {
  display: none;
}

.radio-selection label {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: normal;
}

.radio-selection input[type="radio"]:checked + label {
  background-color: var(--accent);
  color: white;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-item label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

/* Timeline enhancements */
.timeline-content.highlight {
  background-color: #f0f8ff;
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  min-height: 70px;
}

.timeline-content.highlight h3 {
  font-size: 1.3em;
  font-weight: 600;
}

/* Airport fields side by side */
.airport-pair {
  display: flex;
  gap: 2.5rem;
  width: 100%;
}

.airport-input {
  flex: 1;
}

.airport-input label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.airport-input input {
  width: 100%;
}

.airport-input small {
  display: block;
  margin-top: 0.25rem;
}


/* Flight Info Button */
.flight-info-button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.flight-info-button:hover {
    background-color: #e8e8e8;
    border-color: #ccc;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-modal:hover {
    background-color: #f0f0f0;
}

.modal-body {
    padding: 20px;
}

.flight-detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.flight-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.flight-detail-label {
    font-weight: bold;
    color: var(--accent);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.flight-detail-value {
    color: #333;
    font-size: 1.1em;
}

/* Airport code inputs - remove uppercase transform to allow normal typing */
.airport-code-input::placeholder {
    text-transform: none;
}

/* Airport autocomplete dropdown */
.airport-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}

.airport-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.15s;
}

.airport-option:hover,
.airport-option.selected {
    background-color: #f5f5f5;
}

.airport-code {
    font-weight: 600;
    font-size: 1em;
    color: var(--accent);
    min-width: 40px;
}

.airport-name {
    font-size: 0.9em;
    color: #666;
}

/* Mobile-specific fixes */
@media screen and (max-width: 768px) {
    /* Make radio buttons wrap properly on mobile */
    .radio-selection {
        flex-wrap: wrap;
        gap: 10px;
    }

    .radio-selection label {
        padding: 8px 12px;
        font-size: 0.9rem;
        flex: 1 1 auto;
        min-width: fit-content;
        text-align: center;
    }

    /* Ensure airport pair stacks on mobile */
    .airport-pair {
        flex-direction: column;
        gap: 1rem;
    }

    /* Smaller heading on mobile */
    h2 {
        font-size: 1.8rem;
    }
}

/* Trust Banner Responsive Display */
/* Desktop: show full banner, hide compact */
@media screen and (min-width: 769px) {
    .trust-banner-compact {
        display: none !important;
    }

    .trust-banner-full {
        display: flex !important;
    }
}

/* Mobile and Tablet: show compact banner, hide full */
@media screen and (max-width: 768px) {
    .trust-banner-compact {
        display: flex !important;
    }

    .trust-banner-full {
        display: none !important;
    }
}

/* ========================================
   COMPONENT CLASSES - Clean Architecture
   ======================================== */

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: var(--space-xl);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    min-width: 200px;
}

.dropdown-menu.is-open {
    display: block;
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-light);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color var(--transition-base);
}

.dropdown-menu a:hover {
    background-color: var(--background-hover);
}

.dropdown-menu__header {
    padding: var(--space-sm) var(--space-lg);
    color: var(--text-muted);
    font-size: var(--font-sm);
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-menu__link--airport {
    color: #555;
    font-weight: 400;
}

.dropdown-menu__link--primary {
    color: var(--primary);
    font-weight: 600;
}

.dropdown-menu__item--bordered-top {
    border-top: 1px solid var(--border-light);
}

/* Trust Banners */
.trust-banner {
    background: var(--background-gray);
    color: var(--text-secondary);
    padding: 10px var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    text-align: center;
    font-size: var(--font-sm);
    border: 1px solid var(--border);
}

.trust-banner-compact {
    white-space: nowrap;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
}

.trust-banner-full {
    display: none;
}

.trust-banner-full__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
}

.trust-banner__item {
    display: inline-flex;
    align-items: center;
}

.trust-banner__item--full {
    display: flex;
    align-items: center;
}

.trust-banner__icon {
    display: inline-block;
    width: 20px;
    text-align: right;
}

.trust-banner__icon--large {
    font-size: 1.2em;
    width: 28px;
}

.trust-banner__label {
    margin-left: var(--space-xs);
}

.trust-banner__label--bold {
    font-weight: 600;
    color: #333;
    font-size: var(--font-base);
    margin-left: var(--space-sm);
}

/* Utility Links */
.link-secondary {
    color: #666;
    font-size: var(--font-xs);
    text-decoration: none;
    transition: color var(--transition-base);
}

.link-secondary:hover {
    color: #1a73e8;
}

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: 0.75rem;
}

.mt-xs {
    margin-top: var(--space-xs);
}

/* Search Toggle Button */
.search-toggle {
    background: none;
    border: none;
    color: #666;
    font-size: var(--font-base);
    text-decoration: underline;
    cursor: pointer;
    padding: var(--space-sm);
    transition: color var(--transition-base);
}

.search-toggle:hover {
    color: var(--primary);
}

/* Airport Input Hints */
.input-hint {
    color: #4A4AFF;
    font-size: var(--font-sm);
    display: block;
    margin-top: var(--space-xs);
}

/* Value Preview Section */
.value-preview {
    background: var(--background-gray);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.value-preview__title {
    text-align: center;
    margin-bottom: 18px;
    color: #333;
}

.value-preview__grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 15px;
}

.value-preview__item {
    flex: 1;
    min-width: 100px;
}

.value-preview__icon {
    font-size: 2.5em;
    margin-bottom: var(--space-sm);
}

.value-preview__heading {
    font-weight: 600;
    color: #333;
    margin-bottom: var(--space-xs);
}

.value-preview__description {
    font-size: var(--font-sm);
    color: #666;
}

.value-preview__separator {
    font-size: 2em;
    color: var(--text-muted);
}

.value-preview__footer {
    text-align: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: #666;
    font-size: var(--font-base);
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 1rem;
    background: var(--background-gray);
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: var(--font-sm);
    color: #666;
}

.site-footer__nav {
    margin: 0 0 0.5rem 0;
}

.site-footer__link {
    color: var(--primary);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color var(--transition-base);
}

.site-footer__link:hover {
    color: var(--primary-hover);
}

.site-footer__copyright {
    margin: 0;
    font-size: var(--font-xs);
    color: var(--text-muted);
}

/* Advanced Settings Description */
.settings-description {
    text-align: center;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--font-sm);
    color: #666;
}
