:root {
    --main: #ffc900;
    --main-dark: #cda504;
    --dark: #2c2c2c;
    --dark-gray: #3a3a3a;
    --light: #ffffff;
    --gray: #666666;
    --border: #e0e0e0;
    --primary-transt: rgba(122, 198, 255, 0.39);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --input-color: #2c3e50;
    --input-border: #e8ecf1;
    --input-shadow: rgba(0, 0, 0, 0.07);
    --input-focus: #007bff;
    --input-focus-shadow: rgba(0, 123, 255, 0.18);
}

/* Modern Search Form Wrapper */
.search-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Popular/Recent vehicle cards: no-image placeholder ── */
.ad-no-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1fb 50%, #f0f4ff 100%);
    border-bottom: 1px solid #e4e8f5;
    transition: background 0.3s ease;
}

.card:hover .ad-no-image {
    background: linear-gradient(135deg, #eef1fb 0%, #e4e8f5 100%);
}

.ad-no-image i {
    font-size: 2.8rem;
    color: var(--main);
    opacity: 0.45;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .ad-no-image i {
    opacity: 0.7;
    transform: scale(1.08);
}

.ad-no-image span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #aab0c6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Logo no-image placeholder ── */
.logo-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-radius: 50%;
}

.logo-no-image i {
    font-size: 1.2rem;
    color: var(--main);
    opacity: 0.6;
}

.modern-search-form {
    width: 100%;
}

/* Search Card - Clean White Design */
.search-card {
    background: var(--light);
    border-radius: 90px;
    box-shadow: var(--shadow);
    padding: 8px;
    border: 1px solid var(--border);
}

/* Search Grid Layout */
.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px;
    align-items: stretch;
}

/* Individual Search Fields */
.search-field {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-right: 1px solid #ffb900;
    cursor: pointer;
    position: relative;
}

.search-field:last-of-type {
    border-right: none;
}

/* Field Icon */
.field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
    border-radius: 30px;
    flex-shrink: 0;
    margin-right: 14px;
}

.field-icon i {
    font-size: 18px;
    color: var(--light);
}

/* Field Content */
.field-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.field-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.field-input {
    border: none;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    width: 100%;
    outline: none;
}

.field-input::placeholder {
    color: var(--gray);
    font-weight: 400;
}

.field-input:focus {
    outline: none;
}

/* Select Field Specific */
.field-select {
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

/* Search Button Wrapper */
.search-button-wrapper {
    display: flex;
    align-items: center;
    padding: 8px;
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Search Submit Button */
.search-submit-btn {
    background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
    color: var(--light);
    border: none;
    border-radius: 90px;
    padding: 18px 32px;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--primary-transt);
    white-space: nowrap;
    width: 250px;
    margin: auto;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, var(--main-dark) 0%, var(--main-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-transt);
}

.search-submit-btn:active {
    transform: translateY(0);
}

.search-submit-btn i {
    font-size: 20px;
}

/* Best styles for .input-option (Location & Keywords Input) */
.input-option {
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid #ffffff;
    border-radius: 14px;
    font-size: 15px;
    color: #b0b6bf;
    font-weight: 500;
    padding: 14px 18px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    backdrop-filter: blur(2px);
    letter-spacing: 0.01em;
}

.input-option::placeholder {
    color: #9ca3af;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.01em;
}

.input-option:focus {
    background: rgba(255, 255, 255, 0.98);
    border-color: #ffffff;
    outline: none;
}

.input-option:disabled {
    background: #f3f4f6;
    color: #bdbdbd;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Section Spacing */
.popular-section {
    margin-top: 25px;
    margin-bottom: 25px;
}

@media (max-width: 640px) {
    .input-option {
        font-size: 1rem;
        border-radius: 10px;
        padding: 10px 12px;
    }
}

/* Animation for better UX */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-card {
    animation: fadeIn 0.5s ease;
}

/* Highlighted Categories Section */
.highlighted-categories-section {
    border-radius: 20px;
    padding: 40px 20px;
    margin: 0 -15px;
    position: relative;
    overflow: hidden;
}

.highlighted-categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(0,170,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
}

.section-header {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
}

.categories-wrapper {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.service-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    justify-content: center;
    gap: 1rem !important;
    width: 100%;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.service-carousel::-webkit-scrollbar {
    display: none;
}

/* Service Card Styles */
.highlighted-categories {
    margin-left: 50px;
    margin-right: 50px;
}

/* Row that holds: [arrow] [carousel] [arrow] */
.carousel-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Each card takes exactly 1/6 of the visible area */
.service-card-wrapper {
    flex: 0 0 calc((100% - 5rem) / 6);
    min-width: calc((100% - 5rem) / 6);
    max-width: calc((100% - 5rem) / 6);
    height: 250px;
    perspective: 1000px;
    box-sizing: border-box;
}

.service-card {
    width: 100%;
    height: 90%;
    background: var(--light);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
}

.card-image-container {
    position: relative;
    height: 140px;
    overflow: hidden;
}

/* ── Carousel card: no-image placeholder ── */
.card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    color: var(--main);
}

.card-no-image i {
    font-size: 2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover .card-no-image i {
    opacity: 1;
    transform: scale(1.1);
}

.card-no-image span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray);
    text-align: center;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 228, 56, 0.8) 0%, rgba(205, 185, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-overlay {
    opacity: 1;
}

.business-count {
    text-align: center;
    color: var(--light);
}

.count-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.count-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 16px;
    text-align: center;
}

.service-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-description {
    font-size: 0.6rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

/* Scroll Buttons */
.scroll-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--dark);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
    z-index: 3;
}

.scroll-btn:hover {
    background: var(--main);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 120, 255, 0.25);
    transform: scale(1.05);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.scroll-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

/* Popular section spacing (Highlighted Categories responsive rules now
   live in the single unified block near the bottom of this file) */
@media (max-width: 1024px) {
    .popular-section {
        margin-top: 25px;
        margin-bottom: 25px;
    }
}

@media (max-width: 575px) {
    /* Most Popular / Most Recent Vehicle: one card per view, swipe left/right */
    #popular-grid,
    #recent-grid {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #popular-grid::-webkit-scrollbar,
    #recent-grid::-webkit-scrollbar {
        display: none;
    }

    #popular-grid>*,
    #recent-grid>* {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: center;
    }
}

@media (min-width: 1440px) {
    .popular-section {
        margin-top: 25px;
        margin-bottom: 25px;
    }
}

/* Responsive Design - Tablet (768px to 1023px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .search-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 1px;
    }

    .search-field {
        border-right: none;
        border-right: 1px solid #ffd000;
        padding: 14px 18px;
    }

    .keywords-field {
        border-bottom: none;
    }

    .search-button-wrapper {
        justify-content: center;
        padding: 16px;
    }

    .search-submit-btn {
        width: 100%;
        justify-content: center;
        font-size: 18px;
        padding: 16px 24px;
        gap: 20px;
    }

    .field-icon {
        width: 42px;
        height: 42px;
        margin-right: 12px;
    }

    .field-icon i {
        font-size: 16px;
    }

    .field-label {
        font-size: 14px;
    }

    .field-input {
        font-size: 12px;
    }

    .input-option {
        font-size: 12px !important;
    }
}

/* Responsive Design - Small Mobile (425px to 767px) */
@media (max-width: 768px) and (min-width: 426px) {
    .hero-wrapper {
        padding-top: 100px;
        padding-bottom: 0px;
    }

    .search-form-wrapper {
        max-width: 450px;
    }

    .search-card {
        padding: 6px;
        border-radius: 16px;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 14px 16px;
    }

    .search-field:last-of-type {
        border-bottom: none;
    }

    .search-button-wrapper {
        padding: 16px;
        justify-content: center;
    }

    .search-submit-btn {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: 16px 20px;
    }

    .field-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        margin-right: 12px;
    }

    .field-icon i {
        font-size: 16px;
    }

    .field-label {
        font-size: 12px;
    }

    .field-input {
        font-size: 14px;
    }

    .service-card {
        height: 100%;
    }
}

/* Responsive Design - Extra Small Mobile (320px to 424px) */
@media (max-width: 425px) {
    .hero-wrapper {
        padding-top: 10px ;
        height: 990px;
    
    }

    .search-card {
        padding: 4px;
        border-radius: 12px;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px 14px;
    }

    .search-field:last-of-type {
        border-bottom: none;
    }

    .search-button-wrapper {
        padding: 14px;
        justify-content: center;
    }

    .search-submit-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 14px 18px;
        gap: 8px;
    }

    .search-submit-btn i {
        font-size: 16px;
    }

    .field-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        margin-right: 10px;
    }

    .field-icon i {
        font-size: 14px;
    }

    .field-label {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .field-input {
        font-size: 13px;
    }

    .input-option {
        font-size: 13px;
        border-radius: 10px;
        padding: 10px 12px;
    }

    .service-card {
        height: 100%;
    }
}

/* ==========================================================================
   Highlighted Categories Section — Unified Responsive (GMGO-225)
   Breakpoints: 1440 / 1024 / 768(mobile) / 425 / 375 / 320
   Desktop: 6 cards  →  1440: 5  →  1024: 3 (tablet, arrows still shown)
   768px and below = MOBILE: 1 card per view, swipe/scroll-snap,
   left/right arrow buttons are hidden (not useful on touch screens)
   ========================================================================== */
@media (max-width: 1440px) {
    .highlighted-categories-section {
        padding: 36px 18px;
    }

    .highlighted-categories {
        margin-left: 40px;
        margin-right: 40px;
    }

    .service-card-wrapper {
        flex: 0 0 calc((100% - 4rem) / 5);
        min-width: calc((100% - 4rem) / 5);
        max-width: calc((100% - 4rem) / 5);
        height: 240px;
    }

    .card-image-container {
        height: 130px;
    }
}

@media (max-width: 1024px) {
    .highlighted-categories-section {
        padding: 30px 15px;
    }

    .highlighted-categories {
        margin-left: 32px;
        margin-right: 32px;
    }

    .service-carousel {
        justify-content: flex-start;
    }

    .service-card-wrapper {
        flex: 0 0 calc((100% - 2rem) / 3);
        min-width: calc((100% - 2rem) / 3);
        max-width: calc((100% - 2rem) / 3);
        height: 230px;
    }

    .card-image-container {
        height: 125px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* MOBILE — one card per view, native swipe/scroll-snap, arrows hidden */
@media (max-width: 768px) {
    .highlighted-categories-section {
        padding: 24px 12px;
    }

    .highlighted-categories {
        margin-left: 0;
        margin-right: 0;
    }

    .carousel-row {
        gap: 0;
    }

    /* Arrow buttons aren't useful on touch devices at this width — hide
       them and let people swipe the carousel instead. !important is
       required here because the carousel JS (updateArrows()) sets an
       inline `display: flex` on these buttons; only an !important rule
       in the stylesheet can override an inline style. */
    .scroll-btn {
        display: none !important;
    }

    .categories-wrapper {
        width: 100%;
    }

    .service-carousel {
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px !important;
    }

    .service-card-wrapper {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 300px;
        scroll-snap-align: center;
    }

    .card-image-container {
        height: 190px;
    }

    .card-content {
        padding: 12px;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-description {
        font-size: 0.8rem;
    }

    .service-card {
        height: 100%;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 425px) {
    .highlighted-categories-section {
        padding: 20px 10px;
    }

    .service-card-wrapper {
        height: 280px;
    }

    .card-image-container {
        height: 175px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 375px) {
    .service-card-wrapper {
        height: 260px;
    }

    .card-image-container {
        height: 160px;
    }

    .section-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 320px) {
    .highlighted-categories-section {
        padding: 16px 8px;
    }

    .service-card-wrapper {
        height: 240px;
    }

    .card-image-container {
        height: 145px;
    }

    .section-title {
        font-size: 1.2rem;
    }
}