/* =============================================
   SHIPDAY LOGISTICS — FLEET & VEHICLES SYSTEM
   Primary Green Accent: #3d9119 | Navy: #031D58
   ============================================= */

/* Page Header / Hero for Vehicles Page */
.vehicles-hero {
    background: linear-gradient(135deg, #031D58 0%, #0A2973 100%);
    color: var(--white);
    padding: var(--space-20) 0 var(--space-16) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.vehicles-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(61, 145, 25, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.vehicles-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(61, 145, 25, 0.15);
    border: 1px solid rgba(61, 145, 25, 0.4);
    color: #4ADE80;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
    backdrop-filter: blur(8px);
}

.vehicles-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.vehicles-hero h1 span {
    color: #3d9119;
}

.vehicles-hero p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto var(--space-8) auto;
    line-height: 1.6;
}

/* Quick Filter / Jump Bar */
.fleet-jump-nav {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--space-6);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    max-width: 1100px;
    margin: -40px auto 0 auto;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border);
}

.fleet-jump-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    background: var(--light);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.fleet-jump-link:hover,
.fleet-jump-link.active {
    background: #3d9119;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 145, 25, 0.25);
}

/* =============================================
   DEDICATED VEHICLES PAGE — ALTERNATING SHOWCASE
   ============================================= */

.vehicles-showcase-section {
    padding: var(--space-20) 0;
    background: #F8FAFC;
}

.vehicle-showcase-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
}

/* Alternating Row */
.vehicle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    scroll-margin-top: 100px;
}

.vehicle-row:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(61, 145, 25, 0.3);
}

/* Reverse Column Order for Alternating Layout */
.vehicle-row.reverse {
    grid-template-columns: 1fr 1fr;
}

.vehicle-row.reverse .vehicle-image-wrapper {
    order: 2;
}

.vehicle-row.reverse .vehicle-content-wrapper {
    order: 1;
}

/* Image Wrapper */
.vehicle-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, #F1F5F9 0%, #E2E8F0 100%);
    padding: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.vehicle-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    transition: var(--transition-slow);
    filter: drop-shadow(0 12px 18px rgba(3, 29, 88, 0.12));
}

.vehicle-row:hover .vehicle-image-wrapper img {
    transform: scale(1.04);
}

.vehicle-image-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: #3d9119;
    color: var(--white);
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(61, 145, 25, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-capacity-tag {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    background: rgba(3, 29, 88, 0.88);
    color: var(--white);
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Content Wrapper */
.vehicle-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.vehicle-category-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3d9119;
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vehicle-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.vehicle-desc {
    font-size: var(--font-size-base);
    color: var(--gray);
    line-height: 1.6;
}

/* Specs Chips Grid */
.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin: var(--space-2) 0;
}

.spec-chip {
    background: var(--light);
    border-radius: var(--radius);
    padding: var(--space-3);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.vehicle-row:hover .spec-chip {
    background: var(--white);
    border-color: rgba(61, 145, 25, 0.2);
}

.spec-chip-icon {
    color: #3d9119;
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
}

.spec-chip-val {
    font-size: var(--font-size-base);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.spec-chip-lbl {
    font-size: 11px;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Best Suited Box */
.vehicle-best-for {
    background: rgba(61, 145, 25, 0.06);
    border-left: 4px solid #3d9119;
    padding: var(--space-4) var(--space-5);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.vehicle-best-for-title {
    font-size: var(--font-size-xs);
    font-weight: 800;
    color: #3d9119;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.vehicle-best-for-text {
    font-size: var(--font-size-sm);
    color: var(--dark);
    font-weight: 500;
    line-height: 1.5;
}

/* Vehicle Features List */
.vehicle-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2) var(--space-4);
    list-style: none;
    margin: 4px 0;
}

.vehicle-feature-list li {
    font-size: var(--font-size-sm);
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.vehicle-feature-list li i {
    color: #3d9119;
    font-size: 14px;
}

/* Vehicle Actions */
.vehicle-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.btn-green {
    background: #3d9119;
    color: var(--white) !important;
    border: 2px solid #3d9119;
}

.btn-green:hover {
    background: #327814;
    border-color: #327814;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61, 145, 25, 0.3);
}

/* =============================================
   HOMEPAGE FLEET SECTION STYLES
   ============================================= */

.homepage-fleet-section {
    padding: var(--space-20) 0;
    background: var(--white);
    position: relative;
}

.homepage-fleet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.homepage-fleet-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.homepage-fleet-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: #3d9119;
}

.homepage-fleet-card-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(61, 145, 25, 0.12);
    color: #3d9119;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.homepage-fleet-img-wrap {
    background: linear-gradient(135deg, #F8FAFC 0%, #EDF2F7 100%);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
}

.homepage-fleet-img-wrap img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 6px 12px rgba(3, 29, 88, 0.08));
}

.homepage-fleet-card:hover .homepage-fleet-img-wrap img {
    transform: scale(1.05);
}

.homepage-fleet-title {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.homepage-fleet-subtitle {
    font-size: var(--font-size-xs);
    color: var(--gray);
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.homepage-fleet-mini-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: var(--light);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-5);
    text-align: center;
}

.mini-spec-item strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--dark);
}

.mini-spec-item span {
    font-size: 10px;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
}

.homepage-fleet-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: #3d9119;
    border: 1.5px solid #3d9119;
    background: transparent;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.homepage-fleet-btn:hover {
    background: #3d9119;
    color: var(--white);
}

.homepage-fleet-banner {
    margin-top: var(--space-12);
    background: linear-gradient(135deg, #031D58 0%, #0A2973 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    gap: var(--space-6);
    box-shadow: var(--shadow-lg);
}

.homepage-fleet-banner-content h4 {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: 6px;
}

.homepage-fleet-banner-content p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE DESIGN FOR VEHICLES & FLEET */
@media (max-width: 1024px) {
    .vehicle-row,
    .vehicle-row.reverse {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: var(--space-6);
    }

    .vehicle-row.reverse .vehicle-image-wrapper {
        order: 1;
    }

    .vehicle-row.reverse .vehicle-content-wrapper {
        order: 2;
    }

    .homepage-fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vehicle-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .homepage-fleet-grid {
        grid-template-columns: 1fr;
    }

    .homepage-fleet-banner {
        flex-direction: column;
        text-align: center;
    }

    .vehicle-actions {
        flex-direction: column;
        width: 100%;
    }

    .vehicle-actions .btn {
        width: 100%;
    }
}
