/* ===== MODERN TRANSIT MEDIA UI STYLES ===== */

/* Import Inter font for better typography */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* CSS Custom Properties - Modern Design System */
:root {
    /* Colors */
    --primary-color: #c82419;
    --primary-hover: #a01e15;
    --primary-light: #fef2f2;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;

    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-overlay: rgba(31, 41, 55, 0.8);

    /* Border Colors */
    --border-color: #e2e8f0;
    --border-focus: var(--primary-color);
    --border-error: var(--error-color);
    --border-success: var(--success-color);

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Typography */
    --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;

    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-normal: 250ms ease-out;
    --transition-slow: 350ms ease-out;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

.modern-search-section {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: auto;
    padding: var(--space-xl) 0;
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Enhanced Header Section */
.search-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.header-content {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
}

.header-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.1;
}

.decoration-line {
    position: absolute;
    top: 50%;
    left: -50px;
    right: -50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Enhanced Search Form */
.modern-search-form-container {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.form-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin: 0;
}

.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    align-items: end;
}

/* Modern Form Groups */
.modern-form-group {
    position: relative;
}

.input-wrapper {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.input-wrapper:hover {
    background: var(--bg-tertiary);
}

.input-wrapper.focused {
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-wrapper.has-value {
    background: var(--bg-primary);
}

.input-wrapper.valid {
    border-color: var(--border-success);
}

.input-wrapper.invalid {
    border-color: var(--border-error);
    background: rgba(239, 68, 68, 0.05);
}

.input-wrapper.disabled {
    background: var(--bg-tertiary);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modern Select Styling */
.modern-select {
    width: 100%;
    padding: var(--space-lg) var(--space-xl) var(--space-lg) 3.5rem;
    border: none;
    background: transparent;
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: all var(--transition-normal);
    min-height: 56px;
}

.modern-select:disabled {
    cursor: not-allowed;
    color: var(--text-muted);
}

.modern-select option {
    padding: var(--space-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Modern Input Styling */
.modern-input,
.modern-textarea {
    width: 100%;
    padding: var(--space-lg) var(--space-xl) var(--space-lg) 3.5rem;
    border: none;
    background: transparent;
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-normal);
    min-height: 56px;
    resize: none;
}

.modern-textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: var(--space-xl);
}

/* Modern Labels */
.modern-label {
    position: absolute;
    left: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    pointer-events: none;
    background: var(--bg-primary);
    padding: 0 var(--space-xs);
    border-radius: var(--radius-sm);
    z-index: 999;
}

.input-wrapper.has-value .modern-label,
.input-wrapper.focused .modern-label,
.modern-label.active {
    top: 0;
    left: 2.5rem;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--primary-color);
    transform: translateY(-50%);
    background: var(--bg-primary);
    z-index: 999;
}

.input-wrapper.invalid .modern-label {
    color: var(--error-color);
}

.label-text {
    display: inline-block;
}

.required-indicator {
    color: var(--error-color);
    font-weight: 600;
    margin-left: var(--space-xs);
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    transition: all var(--transition-normal);
    z-index: 2;
}

.input-wrapper.focused .input-icon {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper.invalid .input-icon {
    color: var(--error-color);
}

/* Input Border Animation */
.input-border {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: transparent; /* Make the background transparent */
    border: 2px solid var(--border-color); /* Always show a border */
    transform: scale(1); /* Always visible */
    transition: all var(--transition-normal);
    border-radius: var(--radius-lg);
    pointer-events: none; /* Ensure clicks pass through */
    z-index: 1; /* Ensure it's behind the input/select */
}

.input-wrapper.focused .input-border {
    border-color: var(--border-focus); /* Change border color on focus */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); /* Add a subtle shadow on focus */
}

.input-wrapper.invalid .input-border {
    background: var(--error-color);
    transform: scaleX(1);
}

/* Error Messages */
.error-message {
    display: none;
    font-size: var(--font-size-sm);
    color: var(--error-color);
    font-weight: 500;
    margin-top: var(--space-sm);
    padding-left: var(--space-lg);
    animation: slideInUp 0.3s ease-out;
}

.input-wrapper.invalid ~ .error-message {
    display: block;
}

/* Modern Buttons */
.modern-search-button,
.duration-apply-button,
.action-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
    min-height: 56px;
    white-space: nowrap;
}

.modern-search-button {
    background: var(--primary-color);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.modern-search-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.duration-apply-button {
    background: var(--success-color);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.duration-apply-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-button.primary {
    background: var(--primary-color);
    color: var(--text-inverse);
    box-shadow: var(--shadow-md);
}

.action-button.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-button.secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.action-button.secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.action-button.loading {
    pointer-events: none;
}

/* Button Content */
.button-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 2;
}

.button-icon {
    font-size: var(--font-size-lg);
    transition: transform var(--transition-normal);
}

.modern-search-button:hover .button-icon,
.duration-apply-button:hover .button-icon,
.action-button:hover .button-icon {
    transform: scale(1.1);
}

.button-text {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Button Ripple Effect */
.button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
    pointer-events: none;
}

.button-ripple.animate {
    width: 300px;
    height: 300px;
}

/* Button Loader */
.button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 3;
}

.action-button.loading .button-loader {
    display: flex;
}

.action-button.loading .button-content {
    opacity: 0;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--text-inverse);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Main Content Layout */
.main-content-area {
    margin-top: var(--space-2xl);
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-2xl);
    align-items: start;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-column {
    position: sticky;
    top: var(--space-xl);
}

/* Enhanced Statistics Section */
.statistics-section {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.stats-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.stats-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.stats-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card.pulse {
    animation: pulse 0.6s ease-out;
}

.stat-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.3;
    animation: pulse-ring 2s infinite;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--success-color);
    font-weight: 500;
}

/* Duration Section */
.duration-section {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin: 0;
}

.duration-options {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-lg);
    align-items: end;
    margin-bottom: var(--space-xl);
}

.duration-summary {
    animation: slideInUp 0.3s ease-out;
}

.summary-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.summary-icon {
    color: var(--info-color);
    font-size: var(--font-size-lg);
}

.summary-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: 600;
}

.summary-value.price {
    color: var(--success-color);
    font-size: var(--font-size-lg);
}

/* Vehicles Section */
.vehicles-section {
    border: none;
    padding: 0;
    box-shadow: none;
}

.vehicles-list {
    margin-top: var(--space-lg);
}

.modern-vehicles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-md);
}

/* Compact list variant */
.modern-vehicles-list.compact {
    display: flex;
}

.vehicle-item.compact-row {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    transition: background var(--transition-fast);
    cursor: default;
}

.vehicle-item.compact-row:hover {
    background: var(--bg-secondary);
}

.modern-vehicles-list.compact .vehicle-number {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.vehicle-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateX(-20px);
}

.vehicle-item.show {
    opacity: 1;
    transform: translateX(0);
}

.vehicle-item:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.vehicle-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.vehicle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.vehicle-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.vehicle-number {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
}

.vehicle-status {
    font-size: var(--font-size-sm);
    color: var(--success-color);
    font-weight: 500;
}

/* Action Section */
.action-section {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

/* Results Section */
.results-section {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.no-results {
    text-align: center;
    padding: var(--space-2xl);
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--text-muted);
    font-size: var(--font-size-2xl);
}

.no-results-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.no-results-text {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin: 0;
}

/* Related Routes Section */
.related-routes-section {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.related-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.related-route-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.related-route-card.show {
    opacity: 1;
    transform: translateY(0);
}

.related-route-card:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.route-card-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.route-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.route-info {
    flex: 1;
    min-width: 0;
}

.route-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.route-price {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
}

.route-price .price {
    color: var(--success-color);
    font-weight: 600;
}

.route-select-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.route-select-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Category Sidebar */
.category-sidebar {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: sticky;
    top: var(--space-xl);
}

.category-showcase {
    text-align: center;
}

.showcase-header {
    margin-bottom: var(--space-xl);
}

.showcase-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.showcase-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin: 0;
}

.showcase-gallery {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-image:hover img {
    transform: scale(1.05);
}

.showcase-icon {
    margin-bottom: var(--space-xl);
}

.showcase-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.showcase-features {
    margin-bottom: var(--space-xl);
    text-align: left;
}

.features-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
}

@media only screen and (max-width: 600px) {
    .features-list {
        flex-direction: column;
    }
}


.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: var(--primary-light);
}

.feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-xs);
    flex-shrink: 0;
}

.feature-text {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: 500;
}

.showcase-cta {
    margin-top: var(--space-xl);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    background: var(--primary-color);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Enhanced Modal Styles */
.modern-modal .modal-dialog {
    max-width: 900px;
    margin: var(--space-lg) auto;
}

.modern-modal-content {
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modern-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--text-inverse);
    padding: var(--space-xl);
    border-bottom: none;
}

.modal-title-wrapper {
    flex: 1;
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.modal-subtitle {
    font-size: var(--font-size-base);
    opacity: 0.9;
    margin: 0;
}

.modern-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.modern-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modern-modal-body {
    padding: var(--space-2xl);
    max-height: 70vh;
    overflow-y: auto;
}

.modern-modal-footer {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-lg);
    justify-content: flex-end;
}

/* Modern Booking Form */
.modern-booking-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.form-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

/* Service Options */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.service-option {
    position: relative;
}

.service-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-label {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-label:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-checkbox:checked + .service-label {
    background: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.service-checkbox:checked + .service-label.selected {
    background: var(--primary-light);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.service-checkbox:checked + .service-label .service-icon {
    background: var(--success-color);
    transform: scale(1.1);
}

.service-content {
    flex: 1;
    min-width: 0;
}

.service-name {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.service-price {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--success-color);
    font-weight: 500;
}

.service-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: scale(0);
}

.service-checkbox:checked + .service-label .service-check {
    background: var(--success-color);
    opacity: 1;
    transform: scale(1);
}

/* Price Breakdown */
.price-breakdown {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
}

.price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.price-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.price-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--info-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-base);
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-row.total {
    padding-top: var(--space-md);
    border-top: 2px solid var(--border-color);
    font-size: var(--font-size-lg);
}

.price-label {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 500;
}

.price-row.total .price-label {
    color: var(--text-primary);
    font-weight: 600;
}

.price-value {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-weight: 600;
}

.price-row.total .price-value {
    color: var(--success-color);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.price-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--space-sm) 0;
}

/* Modern Alerts */
.modern-alerts {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-tooltip);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 400px;
}

.modern-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid;
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-normal);
}

.modern-alert.show {
    transform: translateX(0);
    opacity: 1;
}

.modern-alert.hide {
    transform: translateX(100%);
    opacity: 0;
}

.modern-alert.alert-success {
    border-left-color: var(--success-color);
}

.modern-alert.alert-error {
    border-left-color: var(--error-color);
}

.modern-alert.alert-warning {
    border-left-color: var(--warning-color);
}

.modern-alert.alert-info {
    border-left-color: var(--info-color);
}

.alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: var(--font-size-sm);
    color: var(--text-inverse);
}

.alert-success .alert-icon {
    background: var(--success-color);
}

.alert-error .alert-icon {
    background: var(--error-color);
}

.alert-warning .alert-icon {
    background: var(--warning-color);
}

.alert-info .alert-icon {
    background: var(--info-color);
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-message {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.alert-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.alert-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Swiper Customizations */
.category-gallery-swiper {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.category-gallery-swiper .swiper-pagination {
    bottom: var(--space-md);
}

.category-gallery-swiper .swiper-pagination-bullet {
    background: var(--text-inverse);
    opacity: 0.5;
    width: 8px;
    height: 8px;
}

.category-gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

.category-gallery-swiper .swiper-button-prev,
.category-gallery-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: var(--text-inverse);
    font-size: var(--font-size-sm);
    margin-top: -20px;
}

.category-gallery-swiper .swiper-button-prev:hover,
.category-gallery-swiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.category-gallery-swiper .swiper-button-prev::after,
.category-gallery-swiper .swiper-button-next::after {
    font-size: var(--font-size-sm);
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.animate-in {
    animation: slideInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

/* Responsive Design - Mobile First */
@media (max-width: 576px) {
    .search-container {
        padding: 0 var(--space-md);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
    }

    .modern-nav-tabs {
        flex-direction: column;
        width: 100%;
    }

    .modern-tab-link {
        justify-content: center;
        padding: var(--space-md);
    }

    .modern-search-form-container {
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }

    .search-form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .sidebar-column {
        position: static;
        order: -1;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .stat-card {
        padding: var(--space-lg);
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }

    .stat-number {
        font-size: var(--font-size-xl);
    }

    .duration-options {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .related-routes-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .modern-modal .modal-dialog {
        margin: var(--space-sm);
        max-width: none;
    }

    .modern-modal-body {
        padding: var(--space-lg);
        max-height: 60vh;
    }

    .modern-modal-footer {
        padding: var(--space-lg);
        flex-direction: column;
    }

    .modern-alerts {
        top: var(--space-md);
        right: var(--space-md);
        left: var(--space-md);
        max-width: none;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .search-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-button-group {
        grid-column: 1 / -1;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .sidebar-column {
        position: static;
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .duration-options {
        grid-template-columns: 2fr 1fr;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .search-form-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-button-group {
        grid-column: 1 / -1;
    }

    .content-layout {
        grid-template-columns: 2fr 1fr;
        gap: var(--space-xl);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-routes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .search-form-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .content-layout {
        grid-template-columns: 1fr 350px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-routes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
        --primary-color: #0000ff;
        --bg-secondary: #ffffff;
    }

    .input-wrapper {
        border: 2px solid var(--border-color);
    }

    .modern-tab-link {
        border: 1px solid var(--border-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .stat-pulse {
        animation: none;
    }

    .loader-spinner {
        animation: none;
        border: 2px solid var(--primary-color);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #60a5fa;
        --primary-hover: #3b82f6;
        --primary-light: #1e3a8a;

        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        --text-inverse: #0f172a;

        --bg-primary: #1e293b;
        --bg-secondary: #334155;
        --bg-tertiary: #475569;
        --bg-overlay: rgba(248, 250, 252, 0.8);

        --border-color: #475569;
        --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    }

    .modern-search-section {
        background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    }
}

/* Focus Visible for Better Accessibility */
.modern-input:focus-visible,
.modern-textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remove focus outlines for selects to avoid double borders */
.modern-select:focus,
.modern-select:focus-visible {
    outline: none;
    box-shadow: none;
}

/* The input-border is now always present, so no need to hide it */

.modern-search-button:focus-visible,
.duration-apply-button:focus-visible,
.action-button:focus-visible,
.cta-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.modern-tab-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modern-search-section {
        background: white !important;
        color: black !important;
    }

    .modern-alerts,
    .button-ripple,
    .button-loader {
        display: none !important;
    }

    .modern-search-form-container,
    .statistics-section,
    .duration-section,
    .vehicles-section,
    .results-section,
    .category-sidebar {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}

/* Performance Optimizations */
.stat-card,
.vehicle-item,
.related-route-card,
.service-label {
    will-change: transform;
}

.button-ripple {
    will-change: width, height;
}

.modern-alert {
    will-change: transform, opacity;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Force Light Theme regardless of OS preference */
.force-light {
    --primary-color: #c82419;
    --primary-hover: #a01e15;
    --primary-light: #fef2f2;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-overlay: rgba(31, 41, 55, 0.8);
    --border-color: #e2e8f0;
    --border-focus: #c82419;
    --border-error: #ef4444;
    --border-success: #10b981;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.category-gallery-swiper {
    flex-shrink: 0; /* Prevent it from growing beyond its content */
}
.category-gallery-swiper .swiper-wrapper {
    width: 100%; /* Ensure wrapper takes full width of its container */
}
.category-gallery-swiper .swiper-slide {
    width: 100% !important; /* Force slides to take full width of the wrapper */
}

.category-gallery-swiper {
    width: 100%;
    overflow: hidden;
}
.swiper {
    max-width: 100%;
}