:root {
    --accent-road: #f97316;
    --accent-road-glow: rgba(249, 115, 22, 0.4);
    --road-bg-dark: #020617;
    --road-glass: rgba(15, 23, 42, 0.6);
    --road-glass-border: rgba(255, 255, 255, 0.1);
}

.roadways-body {
    background-color: var(--road-bg-dark);
    color: white;
}

.immersive-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background-image: url('https://images.unsplash.com/photo-1545147986-a9d6f67a58a8?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    filter: brightness(0.2) saturate(1.2) contrast(1.1);
    transition: background-image 0.5s ease;
}

.overlay-gradient-road {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(2, 6, 23, 0.5) 0%, rgba(2, 6, 23, 0.8) 100%);
    pointer-events: none;
}

.app-container {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    min-height: 100vh;
}

/* Alerts Ticker */
.alerts-ticker {
    background: rgba(220, 38, 38, 0.2);
    border-bottom: 1px solid rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 40px;
    backdrop-filter: blur(10px);
}

.ticker-label {
    background: #dc2626;
    color: white;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 10px 0 15px rgba(0,0,0,0.3);
}

.ticker-content {
    display: flex;
    gap: 3rem;
    animation: ticker-move var(--ticker-duration, 300s) linear infinite;
    padding-left: 100%;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #fca5a5;
}

@keyframes ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.road-hero {
    padding: 4rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-road) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.highlight-road {
    color: var(--accent-road);
    font-weight: 700;
    text-shadow: 0 0 15px var(--accent-road-glow);
}

.country-selector {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.country-btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--road-glass-border);
    background: var(--road-glass);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.country-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-road);
    transform: translateY(-2px);
}

.country-btn.active {
    background: var(--accent-road);
    border-color: var(--accent-road);
    box-shadow: 0 0 20px var(--accent-road-glow);
    color: white;
}

.dashboard-card {
    background: var(--road-glass);
    border: 1px solid var(--road-glass-border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-road), transparent);
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.4);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--road-glass-border);
    backdrop-filter: blur(10px);
}

.search-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--road-glass-border);
    padding: 0 1rem;
    border-radius: var(--radius-pill);
    flex-grow: 1;
    max-width: 500px;
    transition: border-color 0.3s ease;
}

.search-group:focus-within {
    border-color: var(--accent-road);
    box-shadow: 0 0 0 2px var(--accent-road-glow);
}

.search-group i {
    color: var(--text-secondary);
    margin-right: 10px;
}

.search-group input {
    background: transparent;
    border: none;
    color: var(--text-primary, #f8fafc);
    padding: 0.8rem 0;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

.search-group input::placeholder {
    color: var(--text-tertiary, #64748b);
    opacity: 1;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.select-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--road-glass-border);
    padding: 0 1rem;
    border-radius: var(--radius-pill);
    transition: border-color 0.3s ease;
}

.select-wrapper:focus-within {
    border-color: var(--accent-road);
}

.select-wrapper i {
    color: var(--text-secondary);
    margin-right: 10px;
    font-size: 0.8rem;
}

.select-wrapper select {
    background: transparent;
    border: none;
    color: var(--text-primary, #f8fafc);
    padding: 0.6rem 0;
    outline: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color-scheme: light dark;
}

.select-wrapper select option {
    background-color: var(--bg-elevated, #0f172a);
    color: var(--text-primary, #f8fafc);
    padding: 0.4rem 0.75rem;
}

/* Light theme overrides for the action-bar controls */
body[data-theme="light"] .search-group {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.15);
}

body[data-theme="light"] .search-group input {
    color: #0f172a;
}

body[data-theme="light"] .search-group input::placeholder {
    color: #64748b;
}

body[data-theme="light"] .select-wrapper {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.15);
}

body[data-theme="light"] .select-wrapper select {
    color: #0f172a;
}

body[data-theme="light"] .select-wrapper select option {
    background-color: #ffffff;
    color: #0f172a;
}

body[data-theme="light"] .view-toggle {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.15);
}

.view-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--road-glass-border);
}

.view-toggle button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active {
    background: var(--accent-road);
    color: white;
    box-shadow: 0 0 10px var(--accent-road-glow);
}

/* Service Content */
.services-section {
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.road-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
    padding-bottom: 4rem;
}

.road-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card {
    background: var(--road-glass);
    border: 1px solid var(--road-glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.road-grid.list-view .service-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.road-grid.list-view .service-card .card-header {
    flex-direction: row;
    gap: 20px;
    margin-bottom: 0;
}

.road-grid.list-view .service-card .card-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-road);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(15, 23, 42, 0.8);
}

.fuel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.road-grid.list-view .fuel-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.fuel-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fuel-item span:last-child {
    color: #fbbf24;
    font-weight: 700;
}

.brand-tag {
    background: rgba(249, 115, 22, 0.15);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.brand-tag img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.brand-tag:hover {
    background: var(--accent-road);
    color: white;
    border-color: var(--accent-road);
}

@media (max-width: 992px) {
    .road-hero { grid-template-columns: 1fr; text-align: center; }
    .country-selector { justify-content: center; }
    .action-bar { flex-direction: column; align-items: stretch; }
    .search-group { max-width: none; }
}

@media (max-width: 768px) {
    .road-hero { padding: 3rem 1rem; }
    .hero-text h1 { font-size: 2.2rem; }
    .road-grid { grid-template-columns: 1fr; }
    .road-grid.list-view .service-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .road-grid.list-view .fuel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
