/* ========= HOME HERO ========= */
.home-hero-section {
    padding: 0;
}

.home-hero {
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
        url("/static/images/dealer.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.home-hero .container {
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-content {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    min-height: 576px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    text-align: center;
}

.home-hero-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.home-hero-title {
    margin: 0 auto;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    color: #FFFFFF;
    text-align: center;
}

.home-hero-subtitle {
    width: 100%;
    max-width: 303px;
    margin: 0 auto;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #FFFFFF;
    text-align: center;
}

.home-hero-search {
    width: 100%;
    max-width: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-hero-search-input-wrap {
    flex: 1 1 520px;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-hero-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #656B72;
    flex-shrink: 0;
}

.home-hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #1F2024;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.home-hero-search-input::placeholder {
    color: #7A808A;
}

.home-hero-search-btn {
    min-width: 140px;
    min-height: 52px;
    
}


.home-hero-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.home-hero-btn {
    width: 260px;
    min-height: 40px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .home-hero .container {
        width: min(var(--container-width), calc(100% - 48px));
        max-width: none;
        padding: 0;
    }

    .upgrade-section .container-wide,
    .car-types-section .container-wide,
    .explore-cars-section .container-wide {
        width: calc(100% - 192px);
        max-width: none;
        padding: 0;
    }
}

/* ========= UPGRADE YOUR RIDE ========= */
.upgrade-ride-section {
    padding: 72px 0 88px;
}

.upgrade-ride-header {
    display: flex;
    align-items: center;
    padding-left: 4px;
    margin-bottom: 24px;
}

.upgrade-ride-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text-heading);
    margin: 0;
}

.upgrade-ride-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.upgrade-card {
    min-height: 450px;
    padding: 8px;
    background: var(--color-surface);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upgrade-card-image {
    width: 100%;
    height: 139px;
    border-radius: 16px;
    overflow: hidden;
}

.upgrade-card-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upgrade-card-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 8px;
}

.upgrade-card-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upgrade-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: var(--color-text-heading);
    margin: 0;
}

.upgrade-card-meta {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-muted);
    margin: 0;
}

.upgrade-card-price {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: var(--color-text-heading);
    margin: 0;
}

.upgrade-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upgrade-card-btn {
    width: 100%;
    min-height: 36px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
}

.upgrade-card-actions .btn-primary {
    width: 100%;
    min-height: 36px;
    padding: 8px 16px;
    font-size: 12px;
    line-height: 20px;
}

.upgrade-card-btn-ai {
    width: 100%;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(132deg, #295CA3 14%, #1D4377 34%, #122A4B 72%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.upgrade-card-btn-ai:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.upgrade-card-btn-ai-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upgrade-card-btn-ai-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1200px) {
    .upgrade-ride-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-hero-search {
        max-width: 100%;
        gap: 10px;
    }

    .home-hero-search-input-wrap {
        flex-basis: 100%;
        min-height: 50px;
    }

    .home-hero-search-btn {
        width: 100%;
        min-height: 48px;
    }

    .home-hero,
    .home-hero .container {
        min-height: 520px;
    }

    .home-hero-content {
        min-height: 520px;
        gap: 28px;
        padding: 32px 20px;
    }

    .home-hero-title {
        font-size: 34px;
    }

    .home-hero-actions {
        gap: 12px;
    }

    .home-hero-btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .upgrade-ride-section {
        padding: 56px 0 72px;
    }

    .upgrade-ride-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .upgrade-card {
        min-height: auto;
    }
}
