/* ====== DESIGN TOKENS & GLOBALS ====== */
:root {
    --primary-color: #2F9E44; /* Vibrant Green */
    --primary-hover: #238435;
    --secondary-color: #0E1A14; /* Deep dark green/black */
    --accent-color: #FFB300; /* Warm sunny accent */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --bg-main: #F9FAFB;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: #E5E7EB;
    --danger: #EF4444;
    --success: #10B981;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

/* ====== COMPONENTS ====== */

/* Buttons */
.btn-primary, .btn-outline, .btn-danger, .btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* Pill shape */
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(47, 158, 68, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 158, 68, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-full {
    width: 100%;
}

/* Glassmorphism utilities */
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* ====== LAYOUT ====== */

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo i {
    color: var(--primary-color);
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-links a:not(.btn-primary):not(.btn-outline) {
    color: var(--text-secondary);
    font-weight: 500;
}
.nav-links a:not(.btn-primary):not(.btn-outline):hover {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ====== AUTH PAGES ====== */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
    background: url('https://images.unsplash.com/photo-1586227740560-8cf2732c1531?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
}
.auth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 26, 20, 0.6); /* Dark overlay */
}
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}
.auth-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}
.auth-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}
.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
}
.input-icon input, .input-icon select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-family: var(--font-main);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}
.input-icon input:focus, .input-icon select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.1);
}
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

/* ====== HOME PAGE ====== */
.hero {
    padding: 6rem 1.5rem;
    text-align: center;
    /*background: linear-gradient(rgba(14, 26, 20, 0.8), rgba(14, 26, 20, 0.8)), url('https://images.unsplash.com/photo-1588668214407-6ea9a6d8c272?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;*/
    background: linear-gradient(rgba(14, 26, 20, 0.4), rgba(14, 26, 20, 0.4)), url('https://images.unsplash.com/photo-1588668214407-6ea9a6d8c272?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: white;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Hero Swiper */
.hero-swiper {
    width: 100%;
    height: 80vh;
    min-height: 500px;
}
.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 2rem !important;
}

/* Statistics Ribbon */
.stats-container {
    max-width: 1000px;
    margin: -4rem auto 4rem auto; /* Negative top margin to overlap hero */
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
}
.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.stats-card:hover {
    transform: translateY(-5px);
}
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
        margin-top: -2rem;
        margin-bottom: 2rem;
    }
}

/* Vehicle Grid */
.section-title {
    font-size: 2.25rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
}
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.vehicle-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.vehicle-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.vehicle-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-glass);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--secondary-color);
}
.vehicle-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.vehicle-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.vehicle-specs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;   /* was space-between */
    gap: 1rem;                     /* adjust this to taste */
    margin-bottom: 1.5rem;
    justify-content: center;
    
}

.vehicle-specs2 {
    display: grid;
    /* min(100%, 200px) prevents overflow on very narrow screens */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-main);
    border-radius: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;              /* lets long text wrap instead of overflowing */
    word-break: break-word;
}

.spec-item i {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

/* Tablets: 2 columns */
@media (max-width: 768px) {
    .vehicle-specs2 {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.25rem;
        gap: 0.75rem;
    }
}

/* Phones: 1 column, tighter spacing */
@media (max-width: 480px) {
    .vehicle-specs2 {
        grid-template-columns: 1fr;
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 0.75rem;
    }
    .spec-item {
        font-size: 0.95rem;
    }
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.spec-item i {
    color: var(--primary-color);
}

/* ====== BOOKING PAGE ====== */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
#map {
    height: 500px;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

/* ====== DASHBOARD & CHAT ====== */
.dashboard-layout {
    display: flex;
    gap: 2rem;
}
.sidebar {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.sidebar a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}
.sidebar a:hover, .sidebar a.active {
    background: var(--primary-color);
    color: white;
}
.dashboard-content {
    flex: 1;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.table-responsive {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-main);
}

/* Chat Box */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
}
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
}
.message.sent {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}
.message.received {
    background: white;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 0;
    box-shadow: var(--shadow-sm);
}
.chat-input {
    display: flex;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}
.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-family: var(--font-main);
}
.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.chat-input button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger);
}
.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success);
}
.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-requested { background: #DBEAFE; color: #1E40AF; }
.badge-quoted { background: #FEF3C7; color: #92400E; }
.badge-paid, .badge-completed { background: #D1FAE5; color: #065F46; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 0;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}
.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--accent-color);
}
.footer-col p {
    color: #9CA3AF;
}
.footer-col a {
    display: block;
    color: #9CA3AF;
    margin-bottom: 0.75rem;
}
.footer-col a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 1.5rem;
    color: #9CA3AF;
}

@media (max-width: 768px) {
    /* Layouts */
    .booking-layout, .dashboard-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    /* Sidebar */
    .sidebar {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Navbar */
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero {
        padding: 4rem 1rem;
    }

    /* Container padding */
    .container {
        padding: 1rem;
    }
    
    /* Forms */
    .auth-card, .glass-effect {
        padding: 1.5rem;
    }
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    /* Maps */
    #map {
        height: 350px;
    }
    
    /* Chat Box */
    .chat-container {
        height: 350px;
    }
    
    /* Tables */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table {
        min-width: 600px;
    }
}

/* ====== SEAMLESS EXPERIENCE ====== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.experience-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}
.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.experience-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(14, 154, 91, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}
.experience-card .icon-wrapper i {
    font-size: 1.8rem;
    color: var(--primary-color);
}
.experience-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.experience-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}
