/**
 * Best Border Crossing - Styles
 * Find Your Fastest Border Crossing Tool
 */

/* CSS Variables */
:root {
    --bc-accent: #10b981;
    --bc-accent-light: #34d399;
    --bc-accent-dark: #059669;
    --bc-fastest: #10b981;
    --bc-medium: #f59e0b;
    --bc-slower: #ef4444;
    --bc-restricted: #6b7280;

    --bc-bg-primary: #0f172a;
    --bc-bg-secondary: #1e293b;
    --bc-bg-card: #1e293b;
    --bc-text-primary: #f8fafc;
    --bc-text-secondary: #94a3b8;
    --bc-text-muted: #64748b;
    --bc-border: rgba(148, 163, 184, 0.1);

    --bc-font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --bc-font-body: 'DM Sans', system-ui, sans-serif;

    --bc-radius-sm: 8px;
    --bc-radius-md: 12px;
    --bc-radius-lg: 16px;
    --bc-radius-xl: 24px;

    --bc-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --bc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --bc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --bc-shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
}

/* Light mode overrides */
[data-theme="light"] {
    --bc-bg-primary: #f8fafc;
    --bc-bg-secondary: #ffffff;
    --bc-bg-card: #ffffff;
    --bc-text-primary: #0f172a;
    --bc-text-secondary: #475569;
    --bc-text-muted: #94a3b8;
    --bc-border: rgba(15, 23, 42, 0.1);
    --bc-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --bc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --bc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Landing Page */
.bc-landing {
    font-family: var(--bc-font-body);
    color: var(--bc-text-primary);
    position: relative;
    overflow-x: hidden;
}

/* Background */
.bc-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bc-bg-primary);
}

.bc-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}

.bc-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bc-bg-map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    opacity: 0.3;
}

.bc-map-lines {
    width: 100%;
    height: 100%;
}

.bc-route {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: bc-route-draw 8s ease-in-out infinite;
}

.bc-route--2 { animation-delay: 2s; }
.bc-route--3 { animation-delay: 4s; }

@keyframes bc-route-draw {
    0%, 100% { stroke-dashoffset: 1000; }
    50% { stroke-dashoffset: 0; }
}

/* Hero Section */
.bc-hero {
    padding: 60px 0 40px;
    position: relative;
}

.bc-hero__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.bc-hero__title {
    font-family: var(--bc-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--bc-text-primary) 0%, var(--bc-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bc-hero__subtitle {
    font-size: 1.125rem;
    color: var(--bc-text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Component */
.bc-search {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto 24px;
    padding: 8px;
    background: var(--bc-bg-card);
    border-radius: var(--bc-radius-xl);
    border: 1px solid var(--bc-border);
    box-shadow: var(--bc-shadow-lg), var(--bc-shadow-glow);
}

.bc-search__input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.bc-search__icon {
    position: absolute;
    left: 16px;
    color: var(--bc-text-muted);
    width: 20px;
    height: 20px;
}

.bc-search__icon svg {
    width: 100%;
    height: 100%;
}

.bc-search__input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 1rem;
    font-family: var(--bc-font-body);
    background: transparent;
    border: none;
    color: var(--bc-text-primary);
    outline: none;
}

.bc-search__input::placeholder {
    color: var(--bc-text-muted);
}

.bc-search__suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--bc-bg-card);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-md);
    box-shadow: var(--bc-shadow-lg);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
}

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

.bc-suggestion:hover {
    background: rgba(16, 185, 129, 0.1);
}

.bc-suggestion--recent {
    background: rgba(16, 185, 129, 0.05);
    border-left: 2px solid var(--bc-accent);
}

.bc-suggestion--popular {
    background: rgba(245, 158, 11, 0.05);
    border-left: 2px solid #f59e0b;
}

.bc-suggestion--popular .bc-suggestion__icon {
    color: #f59e0b;
}

.bc-suggestion__icon {
    width: 16px;
    height: 16px;
    color: var(--bc-accent);
}

.bc-suggestion__icon svg {
    width: 100%;
    height: 100%;
}

.bc-suggestion__name {
    color: var(--bc-text-primary);
}

.bc-search__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--bc-font-display);
    color: white;
    background: linear-gradient(135deg, var(--bc-accent) 0%, var(--bc-accent-dark) 100%);
    border: none;
    border-radius: var(--bc-radius-lg);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.bc-search__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.bc-search__btn-icon {
    transition: transform 0.2s;
}

.bc-search__btn:hover .bc-search__btn-icon {
    transform: translateX(4px);
}

/* Vehicle Type Selector */
.bc-vehicle-type {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.bc-vehicle-type__label {
    color: var(--bc-text-muted);
    font-size: 0.875rem;
}

.bc-vehicle-type__options {
    display: flex;
    gap: 8px;
}

.bc-vehicle-type__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-family: var(--bc-font-body);
    color: var(--bc-text-secondary);
    background: var(--bc-bg-secondary);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.bc-vehicle-type__btn:hover {
    color: var(--bc-accent);
    border-color: var(--bc-accent);
    background: rgba(16, 185, 129, 0.05);
}

.bc-vehicle-type__btn.active {
    color: var(--bc-accent);
    border-color: var(--bc-accent);
    background: rgba(16, 185, 129, 0.15);
}

.bc-vehicle-type__btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Pedestrian Note */
.bc-pedestrian-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--bc-accent);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--bc-radius-md);
    animation: fadeIn 0.3s ease;
}

.bc-pedestrian-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Destination Countries - uses same styles as .bc-vehicle-type */
.bc-destination.bc-vehicle-type {
    flex-wrap: nowrap;
    width: 100%;
}

.bc-destination .bc-vehicle-type__options {
    position: relative;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.bc-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

/* More dropdown - hidden by default, shown dynamically via JS when items overflow */
.bc-destination__more {
    position: relative;
    flex-shrink: 0;
    display: none; /* JS will set display: block when there are hidden items */
}

.bc-destination__more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.bc-destination__more-btn.open svg {
    transform: rotate(180deg);
}

.bc-destination__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    max-width: 200px;
    background: var(--bc-bg-card);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-md);
    box-shadow: var(--bc-shadow-lg);
    padding: 8px;
    z-index: 1000;
    flex-direction: column;
    gap: 4px;
}

.bc-destination__dropdown.open {
    display: flex;
}

.bc-destination__dropdown .bc-vehicle-type__btn {
    width: 100%;
    justify-content: flex-start;
}

.bc-destination__dropdown .bc-vehicle-type__btn:hover,
.bc-destination__dropdown .bc-vehicle-type__btn:focus {
    background: var(--bc-bg-hover);
    outline: none;
}

.bc-destination__dropdown .bc-vehicle-type__btn:focus-visible {
    outline: 2px solid var(--bc-primary);
    outline-offset: -2px;
}

.bc-destination__dropdown .bc-vehicle-type__btn span {
    display: inline !important;
}

/* More button focus styles */
.bc-destination__more-btn:focus {
    outline: 2px solid var(--bc-primary);
    outline-offset: 2px;
}

/* Hide overflowed items */
.bc-destination__btn.bc-overflow-hidden {
    display: none !important;
}

/* Disabled destination buttons (filtered out based on city's country) */
.bc-destination__btn--disabled {
    display: none !important;
}

/* Popular Cities */
.bc-popular {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bc-popular__label {
    color: var(--bc-text-muted);
    font-size: 0.875rem;
}

.bc-popular__city {
    padding: 6px 14px;
    font-size: 0.875rem;
    font-family: var(--bc-font-body);
    color: var(--bc-text-secondary);
    background: var(--bc-bg-secondary);
    border: 1px solid var(--bc-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
}

.bc-popular__city:hover {
    color: var(--bc-accent);
    border-color: var(--bc-accent);
    background: rgba(16, 185, 129, 0.1);
}

/* Legacy list support */
.bc-popular__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Popular Routes Section - SEO Content */
.bc-routes {
    padding: 60px 0;
    background: var(--bc-bg-secondary);
    border-top: 1px solid var(--bc-border);
}

.bc-routes__title {
    font-family: var(--bc-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bc-text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.bc-routes__subtitle {
    font-size: 1rem;
    color: var(--bc-text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

.bc-routes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.bc-routes__country {
    background: var(--bc-bg-card);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-lg);
    padding: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bc-routes__country:hover {
    border-color: var(--bc-accent);
    box-shadow: var(--bc-shadow-glow);
}

.bc-routes__country-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bc-border);
}

.bc-routes__country-header h3 {
    font-family: var(--bc-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bc-text-primary);
    margin: 0;
}

.bc-routes__flag {
    width: 28px;
    height: auto;
    border-radius: 3px;
}

.bc-routes__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bc-routes__list li {
    margin-bottom: 8px;
}

.bc-routes__list li:last-child {
    margin-bottom: 0;
}

.bc-routes__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--bc-text-secondary);
    text-decoration: none;
    background: rgba(148, 163, 184, 0.05);
    border-radius: var(--bc-radius-sm);
    transition: all 0.2s;
}

.bc-routes__link:hover {
    color: var(--bc-accent);
    background: rgba(16, 185, 129, 0.1);
}

.bc-routes__city {
    font-weight: 500;
    color: var(--bc-text-primary);
}

.bc-routes__link:hover .bc-routes__city {
    color: var(--bc-accent);
}

.bc-routes__arrow {
    color: var(--bc-accent);
    font-weight: 600;
}

.bc-routes__dest {
    font-size: 0.875rem;
    color: var(--bc-text-muted);
}

/* Results Section */
.bc-results {
    padding: 40px 0 60px;
    background: var(--bc-bg-secondary);
    border-top: 1px solid var(--bc-border);
}

.bc-results__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.bc-results__title {
    font-family: var(--bc-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bc-results__city {
    color: var(--bc-accent);
}

.bc-results__close {
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: var(--bc-bg-card);
    border: 1px solid var(--bc-border);
    border-radius: 50%;
    color: var(--bc-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.bc-results__close:hover {
    color: var(--bc-text-primary);
    border-color: var(--bc-text-muted);
}

/* Route Via Indicator (for multi-leg routes) */
.bc-route-via {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--bc-radius-md);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.bc-route-via svg {
    width: 24px;
    height: 24px;
    color: var(--bc-accent);
    flex-shrink: 0;
}

.bc-route-via__text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--bc-text-primary);
}

.bc-route-via__text strong {
    color: var(--bc-text-secondary);
    font-weight: 500;
}

.bc-route-via__schengen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--bc-accent-light);
    margin-left: auto;
}

.bc-route-via__schengen svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .bc-route-via {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bc-route-via__schengen {
        margin-left: 0;
    }
}

/* Loading State */
.bc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
    color: var(--bc-text-secondary);
}

.bc-loading__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--bc-border);
    border-top-color: var(--bc-accent);
    border-radius: 50%;
    animation: bc-spin 0.8s linear infinite;
}

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

/* Error State */
.bc-error {
    text-align: center;
    padding: 40px;
    color: var(--bc-text-secondary);
    background: var(--bc-bg-card);
    border-radius: var(--bc-radius-md);
    border: 1px solid var(--bc-border);
}

/* Result Cards */
.bc-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .bc-cards {
        grid-template-columns: 1fr;
    }
}

.bc-card {
    position: relative;
    padding: 24px;
    background: var(--bc-bg-card);
    border-radius: var(--bc-radius-lg);
    border: 2px solid var(--bc-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bc-shadow-lg);
}

.bc-card--fastest {
    border-color: var(--bc-fastest);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.bc-card--medium {
    border-color: var(--bc-medium);
}

.bc-card--slower {
    border-color: var(--bc-slower);
}

.bc-card__rank {
    position: absolute;
    top: -12px;
    left: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bc-font-display);
    font-weight: 800;
    font-size: 1rem;
    color: white;
    border-radius: 50%;
}

.bc-card--fastest .bc-card__rank {
    background: var(--bc-fastest);
}

.bc-card--medium .bc-card__rank {
    background: var(--bc-medium);
}

.bc-card--slower .bc-card__rank {
    background: var(--bc-slower);
}

.bc-card__header {
    margin-bottom: 20px;
    padding-top: 8px;
}

.bc-card__name {
    font-family: var(--bc-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Ukrainian name in parentheses for multi-leg routes: "Korchova (Krakivets)" */
.bc-name-ua {
    font-weight: 400;
    font-size: 0.85em;
    color: var(--bc-text-muted);
    opacity: 0.8;
}

.bc-card__country {
    font-size: 0.875rem;
    color: var(--bc-text-muted);
}

.bc-card__times {
    margin-bottom: 16px;
}

.bc-card__time {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bc-card__time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bc-text-muted);
}

.bc-card__time-value {
    font-family: var(--bc-font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.bc-card__time-value--total {
    font-size: 1.75rem;
}

.bc-card--fastest .bc-card__time-value--total {
    color: var(--bc-fastest);
}

.bc-card--medium .bc-card__time-value--total {
    color: var(--bc-medium);
}

.bc-card--slower .bc-card__time-value--total {
    color: var(--bc-slower);
}

.bc-card__time-breakdown {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bc-border);
}

.bc-card__time--small .bc-card__time-value {
    font-size: 1rem;
}

.bc-card__time-plus {
    color: var(--bc-text-muted);
}

/* Multi-leg route intermediate border styling */
.bc-card__time--intermediate {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

.bc-card__time--schengen {
    background: rgba(59, 130, 246, 0.1);
}

.bc-schengen-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bc-schengen-badge::before {
    content: "✓";
    font-size: 0.65rem;
}

.bc-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bc-card__distance {
    font-size: 0.875rem;
    color: var(--bc-text-secondary);
}

.bc-card__status {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 100px;
}

.bc-card__status--open {
    color: var(--bc-fastest);
    background: rgba(16, 185, 129, 0.15);
}

.bc-card__status--slow,
.bc-card__status--busy {
    color: var(--bc-medium);
    background: rgba(245, 158, 11, 0.15);
}

.bc-card__status--closed,
.bc-card__status--limited {
    color: var(--bc-slower);
    background: rgba(239, 68, 68, 0.15);
}

.bc-card__link {
    display: block;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    color: var(--bc-accent);
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--bc-radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}

.bc-card__link:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* Results Table */
.bc-table-container {
    background: var(--bc-bg-card);
    border-radius: var(--bc-radius-lg);
    border: 1px solid var(--bc-border);
    overflow: hidden;
}

.bc-table__title {
    padding: 20px 24px;
    font-family: var(--bc-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    border-bottom: 1px solid var(--bc-border);
}

.bc-table-scroll {
    overflow-x: auto;
}

.bc-table {
    width: 100%;
    border-collapse: collapse;
}

.bc-table th,
.bc-table td {
    padding: 14px 20px;
    text-align: left;
    white-space: nowrap;
}

.bc-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bc-text-muted);
    background: rgba(0, 0, 0, 0.1);
}

.bc-table td {
    border-top: 1px solid var(--bc-border);
}

.bc-table__row--highlight {
    background: rgba(16, 185, 129, 0.05);
}

.bc-table__link {
    color: var(--bc-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.bc-table__link:hover {
    color: var(--bc-accent);
}

.bc-table__total {
    font-weight: 700;
    color: var(--bc-accent);
}

.bc-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 100px;
}

.bc-status--open {
    color: var(--bc-fastest);
    background: rgba(16, 185, 129, 0.15);
}

.bc-status--slow,
.bc-status--busy {
    color: var(--bc-medium);
    background: rgba(245, 158, 11, 0.15);
}

.bc-status--closed,
.bc-status--limited {
    color: var(--bc-slower);
    background: rgba(239, 68, 68, 0.15);
}

/* Section Headers */
.bc-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.bc-section__title {
    font-family: var(--bc-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

/* How It Works */
.bc-how {
    padding: 80px 0;
}

.bc-how__steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .bc-how__steps {
        flex-direction: column;
        align-items: center;
    }

    .bc-step__connector {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    /* Hide flags on mobile (768px and below) - show only country names */
    .bc-destination .bc-flag {
        display: none !important;
    }
}

.bc-step {
    flex: 1;
    max-width: 260px;
    text-align: center;
    position: relative;
}

.bc-step__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    color: var(--bc-accent);
}

.bc-step__icon svg {
    width: 28px;
    height: 28px;
}

.bc-step__number {
    position: absolute;
    top: 0;
    right: calc(50% - 40px);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bc-font-display);
    font-weight: 800;
    font-size: 0.75rem;
    color: white;
    background: var(--bc-accent);
    border-radius: 50%;
}

.bc-step__title {
    font-family: var(--bc-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.bc-step__desc {
    font-size: 0.9rem;
    color: var(--bc-text-secondary);
    line-height: 1.5;
}

.bc-step__connector {
    flex-shrink: 0;
    width: 60px;
    margin-top: 32px;
    color: var(--bc-text-muted);
}

.bc-step__connector svg {
    width: 100%;
    height: auto;
}

/* Tips Section */
.bc-tips {
    padding: 80px 0;
    background: var(--bc-bg-secondary);
}

.bc-tips__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .bc-tips__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .bc-tips__grid {
        grid-template-columns: 1fr;
    }
}

.bc-tip {
    padding: 24px;
    background: var(--bc-bg-card);
    border-radius: var(--bc-radius-lg);
    border: 1px solid var(--bc-border);
}

.bc-tip__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bc-radius-md);
    margin-bottom: 16px;
}

.bc-tip__icon svg {
    width: 24px;
    height: 24px;
}

.bc-tip__icon--emerald {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.bc-tip__icon--amber {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.bc-tip__icon--cyan {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
}

.bc-tip__icon--rose {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.15);
}

.bc-tip__title {
    font-family: var(--bc-font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.bc-tip__desc {
    font-size: 0.875rem;
    color: var(--bc-text-secondary);
    line-height: 1.5;
}

.bc-tip__link {
    display: inline;
    margin-left: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bc-accent);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.bc-tip__link:hover {
    color: var(--bc-accent-hover, #4f46e5);
    text-decoration: underline;
}

/* FAQ Section */
.bc-faq {
    padding: 80px 0;
}

.bc-faq__list {
    max-width: 700px;
    margin: 0 auto;
}

.bc-faq__item {
    border-bottom: 1px solid var(--bc-border);
}

.bc-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--bc-font-display);
    text-align: left;
    color: var(--bc-text-primary);
    background: transparent;
    border: none;
    cursor: pointer;
}

.bc-faq__question:hover {
    color: var(--bc-accent);
}

.bc-faq__chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--bc-text-muted);
    transition: transform 0.3s;
}

.bc-faq__question[aria-expanded="true"] .bc-faq__chevron {
    transform: rotate(180deg);
}

.bc-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}

.bc-faq__answer--open {
    max-height: 500px;
    padding-bottom: 20px;
}

.bc-faq__answer p {
    color: var(--bc-text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.bc-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.bc-cta__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.bc-cta__title {
    font-family: var(--bc-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.bc-cta__subtitle {
    color: var(--bc-text-secondary);
    margin-bottom: 32px;
}

/* Buttons */
.bc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bc-font-display);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.bc-btn--primary {
    padding: 16px 32px;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--bc-accent) 0%, var(--bc-accent-dark) 100%);
    border-radius: var(--bc-radius-lg);
}

.bc-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.bc-btn--large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.bc-btn__arrow {
    transition: transform 0.2s;
}

.bc-btn:hover .bc-btn__arrow {
    transform: translateX(4px);
}

/* Data Footer */
.bc-data-footer {
    padding: 16px 0;
    background: var(--bc-bg-secondary);
    border-top: 1px solid var(--bc-border);
}

.bc-data-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.bc-data-footer__source,
.bc-data-footer__updated {
    font-size: 0.875rem;
    color: var(--bc-text-muted);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .bc-hero {
        padding: 40px 0 30px;
    }

    .bc-search {
        flex-direction: column;
        padding: 12px;
    }

    .bc-search__btn {
        width: 100%;
        justify-content: center;
    }

    .bc-vehicle-type {
        flex-direction: column;
        gap: 8px;
    }

    .bc-vehicle-type__options {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bc-vehicle-type__btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .bc-vehicle-type__btn span {
        display: none;
    }

    /* Destination - inline with overflow dropdown on mobile */
    .bc-destination.bc-vehicle-type {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
    }

    .bc-destination .bc-vehicle-type__label {
        flex-shrink: 0;
    }

    .bc-destination .bc-vehicle-type__options {
        flex: 1;
        min-width: 0;
        flex-wrap: nowrap;
        overflow: hidden;
        justify-content: flex-start;
        gap: 6px;
    }

    .bc-destination .bc-destination__more {
        flex-shrink: 0;
    }

    .bc-destination .bc-vehicle-type__btn span {
        display: inline;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Hide flags on mobile - show only country names */
    .bc-destination .bc-flag {
        display: none;
    }

    .bc-destination .bc-vehicle-type__btn {
        padding: 6px 10px;
        flex-shrink: 0;
    }

    /* Dynamic overflow handled by JS */

    .bc-popular {
        flex-direction: column;
    }

    .bc-popular__list {
        justify-content: center;
    }

    .bc-popular__city {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    /* Routes section mobile */
    .bc-routes {
        padding: 40px 0;
    }

    .bc-routes__title {
        font-size: 1.4rem;
    }

    .bc-routes__subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .bc-routes__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bc-routes__country {
        padding: 16px;
    }

    .bc-routes__link {
        padding: 8px 10px;
    }

    .bc-cards {
        gap: 16px;
    }

    .bc-card {
        padding: 20px;
    }

    .bc-table th,
    .bc-table td {
        padding: 12px 16px;
    }

    .bc-how,
    .bc-tips,
    .bc-faq,
    .bc-cta {
        padding: 60px 0;
    }
}
