/*
 Description: Modern Style for Multi-Category Home page
 Author: Updated for Modern Design
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #bde0ed 0%, #a8d5e2 100%);
    color: #2c3e50;
    padding: 40px 0;
    margin-bottom: 40px;
    transition: all 0.2s ease;
    opacity: 1;
    transform: translateY(0);
}

.hero-section.hidden {
    opacity: 0;
    transform: translateY(-20px);
    margin-bottom: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    color: #2c3e50;
}

.hero-subtitle {
    font-size: 1.0rem;
    margin-bottom: 25px;
    opacity: 0.8;
    color: #34495e;
}

/* Category Landing Section */
.category-landing {
    padding: 40px 0;
    background: #f8f9fa;
    transition: all 0.5s ease;
    opacity: 1;
    transform: translateY(0);
}

.category-landing.hidden {
    opacity: 0;
    transform: translateY(-20px);
    margin-bottom: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

.category-landing .section-label {
    display: block;
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #0E7490;
}

.category-card.active {
    border-color: #0E7490;
    background: linear-gradient(135deg, #0E7490 0%, #0284C7 100%);
    color: white;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #0E7490;
}

.category-card.active .category-icon {
    color: white;
}

h2.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

.category-description {
    color: #6c757d;
    line-height: 1.6;
}

.category-card.active .category-description {
    color: rgba(255,255,255,0.9);
}

.category-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.category-card.active .category-stats {
    border-top-color: rgba(255,255,255,0.3);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0E7490;
}

.category-card.active .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.category-card.active .stat-label {
    color: rgba(255,255,255,0.8);
}

/* Category Go Button */
.category-go-btn {
    width: 100%;
    padding: 12px 20px;
    margin-top: 20px;
    background: linear-gradient(135deg, #bde0ed 0%, #a8d5e2 100%);
    color: #2c3e50;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-go-btn:hover {
    background: linear-gradient(135deg, #a8d5e2 0%, #92c5d7 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(189, 224, 237, 0.4);
}

.category-card.active .category-go-btn {
    background: rgba(255,255,255,0.9);
    color: #0E7490;
}

.category-card.active .category-go-btn:hover {
    background: white;
    color: #0c5f7a;
}

/* Category Sections */
.category-section {
    padding: 60px 0;
    background: white;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.category-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0E7490;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 600;
}

.section-title i {
    margin-right: 15px;
    color: #0E7490;
    font-size: 2.5rem;
}

.section-toggle {
    background: #0E7490;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.section-toggle:hover {
    background: #0c5f7a;
    transform: scale(1.05);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

/* Latest Products */
.latest-products {
    background: white;
    width: 100%;
}

/* Sidebar Content */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start; /* Prevents the sidebar from stretching to match the main content height */
    position: sticky;
    top: 20px; /* Optional: makes sidebar sticky during scroll */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    justify-items: center;
}

/* Specific styling for car grid to match car-card-box dimensions */
#cars-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
    max-width: 700px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-content {
    padding: 20px;
}

.product-brand {
    font-size: 0.9rem;
    color: #0E7490;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #0E7490;
}

/* News Section */
.news-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

/* Car News Sections */
.car-news-section {
    margin-top: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.car-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.car-news-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.car-news-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.car-news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

.car-news-meta i {
    margin-right: 5px;
}

.car-news-title {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.car-news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.car-news-title a:hover {
    color: #0E7490;
}

.car-news-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-subtitle i {
    margin-right: 10px;
    color: #0E7490;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

.news-meta i {
    margin-right: 5px;
}

.news-title {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #0E7490;
}

/* Popular Rankings */
.popular-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin: 0; /* Remove top margin since parent .sidebar-content handles spacing */
}

.popular-section .section-subtitle {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ranking-list {
    background: transparent; /* Remove duplicate background since parent has it */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: #f8f9fa;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 10px;
}

.rank-number {
    width: 30px;
    height: 30px;
    background: #0E7490;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

.rank-content {
    flex: 1;
}

.rank-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.3;
}

.rank-score {
    font-size: 0.9rem;
    color: #0E7490;
    font-weight: 600;
}

.progress-bar {
    width: 100px;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-left: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0E7490, #0284C7);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Responsive car cards - 2x3 on tablets */
    .car-card-box {
        width: 180px;
        margin: 15px 8px;
    }
    
    #cars-products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
    
    .car-news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .category-landing {
        padding: 30px 0;
    }
    
    .category-section {
        padding: 40px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 20px;
    }
    
    /* Mobile car cards - single column */
    .car-card-box {
        width: 160px;
        margin: 10px 5px;
    }
    
    #cars-products-grid {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .car-news-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.p-4 { padding: 2rem; }

/* Car Card Styling - Matching style-list-car.css */
.car-card-box {
    width: 188px;
    height: 270px;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid #aaa;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fff8 0%, #eaffea 100%);
    margin: 12px 12px;
    padding: 0;
    box-shadow: none;
    transition: box-shadow 0.3s, background 0.3s, border-color 0.3s;
    text-align: center;
    display: inline-block;
    vertical-align: top;
    position: relative;
    /* Glassy effect */
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    background: linear-gradient(135deg, rgba(248,255,248,0.85) 0%, rgba(234,255,234,0.85) 100%);
    border: 1px solid rgba(170,170,170,0.35);
}

.car-card-box:hover {
    box-shadow: 0 12px 32px rgba(0, 255, 0, 0.12), 0 3px 12px #00FF00;
    background: linear-gradient(135deg, rgba(234,255,234,0.95) 0%, rgba(248,255,248,0.95) 100%);
    border-color: #00FF00;
    transform: translateY(-5px);
}

.car-card-box a {
    text-decoration: none !important;
    color: inherit;
}

.car-card-box a:hover {
    text-decoration: none !important;
}

.car-result {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    box-sizing: border-box;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    text-align: center;
    text-decoration: none;
}

.car-result a {
    text-decoration: none;
    color: inherit;
}

.car-result a:hover {
    text-decoration: none;
}

.car-model-name {
    height: 45%;
    min-height: 45%;
    max-height: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #222;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: wrap;
    padding: 0 8px;
    transition: all 0.3s;
}

.car-model-name:hover {
    white-space: normal;
    overflow: visible;
    background: transparent;
    z-index: 2;
}

.car-year-info {
    height: 10%;
    min-height: 10%;
    max-height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    color: #666;
    font-weight: 400;
    padding: 0 8px;
    transition: all 0.3s;
    background: transparent;
}

.car-year-info.car-ended {
    color: #c77;
}

.car-row {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    background: #f4faff;
    border-top: 1px solid #e0eaf6;
    transition: all 0.3s;
}

.car-meta-row {
    height: 20%;
    min-height: 20%;
    max-height: 20%;
}

.car-meta-row .car-details-box {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: normal;
    border-radius: 0;
    margin: 0;
    border-right: none;
    transition: all 0.3s;
}

.car-engine-row {
    font-size: 1.0em;
    height: 12.5%;
    min-height: 12.5%;
    max-height: 12.5%;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.car-engine-row .car-details-box {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-content: center;
    transition: all 0.3s;
}

.car-power-row {
    height: 12.5%;
    min-height: 12.5%;
    max-height: 12.5%;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.car-power-row .car-details-box {
    width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-content: center;
    transition: all 0.3s;
}

.car-details-box {
    border-radius: 0;
    padding: 0px 2px;
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(59,174,218,0.07);
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.car-engine-row .car-details-box,
.car-power-row .car-details-box {
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    border-right: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-power-row .car-details-box {
    height: 100%;
}

.car-power-row .car-details-box:first-child {
    border-right: 1px solid #e0eaf6;
}

.car-meta-row .car-details-box:first-child {
    border-right: 1px solid #e0eaf6;
}

.car-details-box.car-ended {
    background: #ffeaea;
}

.car-details-box.platform-suv {
    background: #e3f0ff;
    color: #1565c0;
}

.car-details-box.platform-mpv {
    background: #f7ecd9;
    color: #8d6e63;
}

.car-details-box.platform-sedan {
    background: #fffde7;
    color: #bfa600;
}

.car-details-box.car-drivetrain {
    background: #f0f8ff;
    color: #2e5b9e;
}

/* Car Comparison Section Styling */
.car-comparison-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 0px;
    margin-top: 20px;
    border: none;
    box-shadow: none;
}

.home-box-banding {
    position: relative;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-box-banding-form-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
    
}

.banding-box-home-div {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 150px;
    max-width: none;
    transition: flex-basis 0.3s ease;
}

/* Default width for fields - will be overridden by JavaScript */
.banding-box-home-div:not(.sumpet) {
    flex-basis: 45%;
}

.banding-box-home-div.sumpet {
    display: none;
}

.vs-separator.sumpet {
    display: none;
}

.vs-separator {
    color: #0E7490;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 8px;
    flex-shrink: 0;
}

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.banding-box-home {
    width: 100% !important;
    padding: 12px 30px 12px 15px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    background: white !important;
    color: #2c3e50 !important;
    box-shadow: none !important;
    margin: 6px !important;
}

.banding-box-home:focus {
    outline: none;
    border-color: #0E7490;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: none;
}

.banding-box-home::placeholder {
    color: #999;
    font-weight: 400;
}

.closer {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    z-index: 2;
}

.closer:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: scale(1.1);
}

.closer i {
    font-size: 12px;
}

.more-sign {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0E7490;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    box-shadow: none;
    border: none;
    flex-shrink: 0;
}

.more-sign:hover {
    background: #0c5f7a;
    transform: scale(1.1);
}

.more-sign i {
    font-size: 16px;
    font-weight: normal;
}

.home-box-banding-form-submit {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.home-box-banding-form-submit input[type="submit"] {
    background: #0E7490;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    min-width: auto;
    white-space: nowrap;
}

.home-box-banding-form-submit input[type="submit"]:hover {
    background: #0c5f7a;
    transform: none;
    box-shadow: none;
}

/* Enhanced visual feedback */
.banding-box-home-div:not(.sumpet) {
    animation: none;
}

/* Responsive behavior */
@media screen and (max-width: 767px) {
    .home-box-banding-form-container {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .banding-box-home-div:not(.sumpet) {
        flex-basis: 100% !important;
        max-width: none;
    }
    
    .vs-separator {
        display: none;
    }
    
    .more-sign {
        order: -1;
        margin-bottom: 10px;
    }
    
    .home-box-banding-form-submit {
        flex-basis: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* UI Autocomplete Styling for Cars */
.ui-autocomplete {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.ui-autocomplete .ui-menu-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
}

.ui-autocomplete .ui-menu-item:hover {
    background: #f8f9fa;
}

.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.ui-autocomplete-category {
    background: #e9ecef;
    font-weight: bold;
    color: #495057;
    padding: 6px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Car Comparison */
@media (max-width: 768px) {
    .car-comparison-container {
        padding: 20px;
        margin: 15px 0 20px;
    }
    
    .home-box-banding-form-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .banding-box-home-div {
        max-width: none;
        min-width: auto;
    }
    
    .banding-box-home {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
    
    .closer {
        width: 18px;
        height: 18px;
    }
    
    .closer i {
        font-size: 12px;
    }
    
    .more-sign {
        width: 28px;
        height: 28px;
        margin: 5px auto;
    }
    
    .more-sign i {
        font-size: 16px;
    }
    
    .home-box-banding-form-submit input[type="submit"] {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .car-comparison-container {
        padding: 15px;
        margin: 10px 0 15px;
        border-radius: 10px;
    }
    
    .banding-box-home {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
    
    .closer {
        width: 16px;
        height: 16px;
    }
    
    .closer i {
        font-size: 10px;
    }
    
    .more-sign {
        width: 26px;
        height: 26px;
    }
    
    .more-sign i {
        font-size: 14px;
    }
    
    .home-box-banding-form-submit input[type="submit"] {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Phone Card Styling - Light Blueish Theme */
.phone-card-box {
    background: linear-gradient(135deg, #f8fcff 0%, #e8f4fd 100%);
    border: 1px solid #cce7ff;
    border-radius: 12px;
    padding: 0;
    margin: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    width: 100%;
    max-width: 220px;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.phone-card-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
    border-color: #a8d8ff;
}

.phone-card-box a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.phone-card-box a:hover {
    color: inherit;
}

.phone-result {
    padding: 0;
    background: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.phone-result a {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.phone-result a:hover {
    color: inherit;
}

.phone-model-name {
    text-align: center;
    font-weight: 600;
    color: #000000;
    font-size: 1.2em;
    line-height: 1.5;
    height: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-bottom: 1px solid #e0f2ff;
    background: rgba(25, 118, 210, 0.03);
}

.phone-model-name:hover {
    color: #333333;
}

.phone-year-info {
    text-align: center;
    font-size: 0.85rem;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    height: 10%;
    border-bottom: 1px solid #e0f2ff;
}

.phone-year-info.phone-recent {
    background-color: #f8f9fa;
    color: #6c757d;
}

.phone-year-info.phone-older {
    background-color: #fff8e1;
    color: #f57f17;
}

.phone-row {
    display: flex;
    justify-content: space-between;
    margin: 0;
    flex-wrap: nowrap;
    border-bottom: 1px solid #e0f2ff;
    align-items: stretch;
}

.phone-row:last-child {
    border-bottom: none;
}

.phone-meta-row {
    height: 12.5%;
}

.phone-specs-row {
    height: 12.5%;
}

.phone-camera-row {
    height: 25%;
}

.phone-meta-row .phone-details-box {
    font-size: 0.8rem;
    background: #f8f9fa;
    color: #6c757d;
    border: none;
    border-right: 1px solid #e0f2ff;
}

.phone-meta-row .phone-details-box:last-child {
    border-right: none;
}

.phone-engine-row {
    height: 12.5%;
}

.phone-engine-row .phone-details-box {
    font-size: 0.75rem;
    background: #f8f9fa;
    color: #6c757d;
    border: none;
    border-right: 1px solid #e0f2ff;
}

.phone-engine-row .phone-details-box:last-child {
    border-right: none;
}

.phone-camera-row .phone-details-box {
    font-size: 0.75rem;
    background: #f8f9fa;
    color: #6c757d;
    border: none;
    border-right: 1px solid #e0f2ff;
}

.phone-camera-row .phone-details-box:last-child {
    border-right: none;
}

.phone-details-box {
    padding: 4px 6px;
    border-radius: 0;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
    background: #f8f9fa;
    color: #6c757d;
    border: none;
    border-right: 1px solid #e0f2ff;
    margin: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-details-box:last-child {
    border-right: none;
}

.phone-engine-row .phone-details-box,
.phone-camera-row .phone-details-box {
    font-size: 0.75rem;
    padding: 3px 5px;
}

.phone-details-box.phone-screen {
    background: #f8f9fa;
    color: #6c757d;
}

.phone-details-box.phone-storage {
    background: #f8f9fa;
    color: #6c757d;
}

.phone-details-box.phone-ram {
    background: #f8f9fa;
    color: #6c757d;
}

.phone-details-box.phone-camera {
    background: #f8f9fa;
    color: #6c757d;
    overflow: hidden;
    align-items: flex-start;
}

.phone-details-box.phone-battery {
    background: #f8f9fa;
    color: #6c757d;
}

/* Specific styling for phone grid to match layout */
#phones-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Design for Phone Cards */
@media (max-width: 768px) {
    #phones-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 500px;
    }
    
    .phone-card-box {
        max-width: 85%;
        height: 240px;
    }
    
    .phone-model-name {
        font-size: 0.85rem;
        min-height: 35px;
    }
    
    .phone-details-box {
        font-size: 0.8rem !important;
        margin: 0;
        min-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .phone-details-box.phone-camera{
        justify-content: left;
    }
}

@media (max-width: 480px) {
    .phone-year-info {
        font-size: 0.7rem; font-weight: 600;
    }

    .car-news-section {
        padding: 20px 8px;
    }

    #phones-products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 95%;
    }
    
    .phone-card-box {
        max-width: 95%;
        height: 180px;
    }
    
    .phone-model-name {
        font-size: 0.85rem;
        min-height: 35px;
    }
    
    .phone-details-box {
        font-size: 0.7rem !important;
        margin: 0;
        min-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .phone-details-box.phone-camera{
        justify-content: left;
    }
}

/* ===== MOTORCYCLE CARD STYLING ===== */

/* Motorcycle Card Styling - Orange/Red Theme */
.motorcycle-card-box {
    background: linear-gradient(135deg, rgba(248,255,248,0.85) 0%, rgba(234,255,234,0.85) 100%);
    border: 1px solid #ffcc99;
    border-radius: 12px;
    padding: 0;
    margin: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.08);
    width: 100%;
    max-width: 220px;
    height: 280px;
    display: flex;
    flex-direction: column;
    /* Glassy effect for motorcycles */
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid rgba(234, 255, 253, 0.85);
}

.motorcycle-card-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.15);
    border-color: #ff9800;
    background: linear-gradient(135deg, rgba(255,238,224,0.95) 0%, rgba(255,248,240,0.95) 100%);
}

.motorcycle-card-box a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.motorcycle-card-box a:hover {
    color: inherit;
    text-decoration: none;
}

.motorcycle-result {
    padding: 0;
    background: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    text-align: center;
    text-decoration: none;
}

.motorcycle-result a {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.motorcycle-result a:hover {
    color: inherit;
    text-decoration: none;
}

.motorcycle-model-name {
    height: 45%;
    min-height: 45%;
    max-height: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #222;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: wrap;
    padding: 0 8px;
    transition: all 0.3s;
    background: rgba(255, 152, 0, 0.03);
}

.motorcycle-model-name:hover {
    white-space: normal;
    overflow: visible;
    background: transparent;
    z-index: 2;
    color: #333;
}

.motorcycle-year-info {
    height: 10%;
    min-height: 10%;
    max-height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    color: #666;
    font-weight: 400;
    padding: 0 8px;
    transition: all 0.3s;
    background: transparent;
    border-bottom: 1px solid #d1fff9;
}

.motorcycle-year-info.motorcycle-launch {
    background: transparent;
}

.motorcycle-year-info.motorcycle-ended {
    background: transparent;
}

.motorcycle-row {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border-top: 1px solid #d1fff9;
    transition: all 0.3s;
}

.motorcycle-meta-row {
    height: 20%;
    min-height: 20%;
    max-height: 20%;
}

.motorcycle-meta-row .motorcycle-details-box {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: normal;
    border-radius: 0;
    margin: 0;
    border-right: none;
    transition: all 0.3s;
}

.motorcycle-engine-row {
    font-size: 1.0em;
    height: 12.5%;
    min-height: 12.5%;
    max-height: 12.5%;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.motorcycle-engine-row .motorcycle-details-box {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-content: center;
    transition: all 0.3s;
}

.motorcycle-power-row {
    height: 12.5%;
    min-height: 12.5%;
    max-height: 12.5%;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.motorcycle-power-row .motorcycle-details-box {
    width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-content: center;
    transition: all 0.3s;
}

.motorcycle-details-box {
    border-radius: 0;
    padding: 0px;
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(255, 152, 0, 0.07);
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
}

.motorcycle-engine-row .motorcycle-details-box,
.motorcycle-power-row .motorcycle-details-box {
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    border-right: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.motorcycle-power-row .motorcycle-details-box {
    height: 100%;
}

.motorcycle-power-row .motorcycle-details-box:first-child {
    border-right: 1px solid #d1fff9;
}

.motorcycle-meta-row .motorcycle-details-box:first-child {
    border-right: 1px solid #d1fff9;
}

.motorcycle-details-box.motorcycle-ended {
    background: #ffebee;
    color: #c62828;
}

.motorcycle-details-box.type-sport {
    background: #e8f5e8;
    color: #000;
}

.motorcycle-details-box.type-cruiser {
    background: #fff3e0;
    color: #000;
}

.motorcycle-details-box.type-touring {
    background: #e3f2fd;
    color: #000;
}

.motorcycle-details-box.type-scooter {
    background: #f6fdd6;
    color: #000;
}

.motorcycle-details-box.type-naked {
    background: #f3e5f5;
    color: #000;
}

.motorcycle-details-box.motorcycle-displacement {
    background: transparent;
    color: #000;
}

.motorcycle-details-box.motorcycle-power {
    background: transparent;
    color: #000;
}

.motorcycle-details-box.motorcycle-torque {
    background: transparent;
    color: #000;
}

/* Specific styling for motorcycle grid to match layout */
#motorcycles-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Design for Motorcycle Cards */
@media (max-width: 768px) {
    #motorcycles-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 500px;
    }
    
    .motorcycle-card-box {
        max-width: 180px;
        margin: 5px;
        height: 260px;
    }
    
    .motorcycle-model-name {
        font-size: 1.0em;
        min-height: 40px;
    }
    
    .motorcycle-details-box {
        font-size: 0.8em;
        padding: 3px 4px;
    }

    .motorcycle-row {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #motorcycles-products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 95%;
    }
    
    .motorcycle-card-box {
        max-width: 200px;
        height: 200px;
    }
    
    .motorcycle-model-name {
        font-size: 0.9em;
        min-height: 35px;
    }
    
    .motorcycle-row {
        align-items: center;
        font-size: 0.9rem;
    }
    
    .motorcycle-details-box {
        margin: 2px 0;
        min-width: 80px;
        font-size: 0.75em;
    }
}

/* Hero Search Styling */
.hero-search-container {
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-form-wrapper {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: all 0.1s ease;
}

.search-form-wrapper:focus-within {
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.unified-search-form {
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #0E7490;
    display: flex;
    align-items: center;
    z-index: 2;
}

.search-icon .material-icons {
    font-size: 2.25rem;
}

.unified-search-input {
    flex: 1;
    border: none;
    padding: 16px 120px 16px 60px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
    font-family: 'Inter', sans-serif;
    color: #2c3e50;
}

.unified-search-input::placeholder {
    color: #95a5a6;
}

.search-submit-btn {
    position: absolute;
    right: 8px;
    background: linear-gradient(135deg, #0E7490 0%, #0284C7 100%);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    color: white;
}

.search-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.search-submit-btn .material-icons {
    font-size: 24px;
}

.search-hint {
    text-align: center;
    font-size: 13px;
    color: #4f6b79;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Autocomplete Dropdown Styling */
.ui-autocomplete {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: none;
    font-family: 'Inter', sans-serif;
    z-index: 9999 !important;
    background: white;
}

.ui-autocomplete .ui-menu-item {
    border: none;
    padding: 0;
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-state-active {
    background: linear-gradient(135deg, #0E7490 0%, #0284C7 100%) !important;
    color: white !important;
    border: none !important;
    margin: 0 !important;
}

.ui-autocomplete .ui-menu-item-wrapper:hover *,
.ui-autocomplete .ui-state-active * {
    color: white !important;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-category.cat-car {
    background: #3498db;
    color: white;
}

.search-result-category.cat-motorcycle {
    background: #e74c3c;
    color: white;
}

.search-result-category.cat-phone {
    background: #2ecc71;
    color: white;
}

.ui-state-active .search-result-category {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 2px;
}

.ui-state-active .search-result-name {
    color: white !important;
}

.search-result-details {
    font-size: 12px;
    color: #7f8c8d;
}

.ui-state-active .search-result-details {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Category Group Headers */
.ui-autocomplete-category {
    padding: 10px 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f8f9fa;
    color: #0E7490;
    border-bottom: 2px solid #0E7490;
    cursor: default;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-search-container {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .unified-search-input {
        padding: 14px 100px 14px 50px;
        font-size: 14px;
        width: 100%;
    }
    
    .search-icon {
        left: 15px;
    }
    
    .search-icon .material-icons {
        font-size: 20px;
    }
    
    .search-submit-btn {
        width: 42px;
        height: 42px;
    }
    
    .search-hint {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .ui-autocomplete {
        max-height: 300px;
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
    }
}

/* Loading State */
.unified-search-input.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 50 50'%3E%3Cpath fill='%23667eea' d='M25,5A20.14,20.14,0,0,1,45,22.88a2.51,2.51,0,0,0,2.49,2.26h0A2.52,2.52,0,0,0,50,22.33a25.14,25.14,0,0,0-50,0,2.52,2.52,0,0,0,2.5,2.81h0A2.51,2.51,0,0,0,5,22.88,20.14,20.14,0,0,1,25,5Z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 70px center;
    background-size: 20px;
}

.icon-check-circle {
  vertical-align: -0.15em !important;     /* nudge down ≈2–3px at 16px font */
}

/* ===================================
   Smart Chip Comparison Search Styles
   =================================== */

/* Search Input Group with Chips */
.search-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}

/* Chips Container */
.search-chips-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Individual Chip/Pill */
.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0E7490 0%, #0284C7 100%);
    color: white;
    padding: 6px 8px 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    animation: chipSlideIn 0.1s ease-out;
    transition: all 0.1s ease;
}

.search-chip:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

@keyframes chipSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.chip-label {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chip-remove {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.chip-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chip-remove .material-icons {
    font-size: 16px;
}

/* Adjust input when chip is present */
.search-chips-container:not(:empty) ~ .unified-search-input {
    flex: 1;
    min-width: 200px;
}

/* Dual Action Search Result Item */
.search-result-dual-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 !important;
}

.search-result-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    border-radius: 8px 0 0 8px;
}

.search-result-link:hover {
    background: rgba(102, 126, 234, 0.05);
}

.search-result-compare-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0E7490 0%, #0284C7 100%);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.1s ease;
    white-space: nowrap;
    height: 100%;
}

.search-result-compare-btn:hover {
    background: linear-gradient(135deg, #0c5f7a 0%, #0266a8 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.search-result-compare-btn .material-icons {
    font-size: 1.1rem;
}

/* Compare Mode Styling */
.search-result-compare-mode {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 3px solid #0E7490;
    cursor: pointer;
    transition: all 0.1s ease;
}

.search-result-compare-mode:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.search-result-compare-mode .search-result-action {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Ensure proper stacking in autocomplete */
.ui-autocomplete .ui-menu-item {
    padding: 0;
}

.ui-autocomplete .ui-menu-item .ui-menu-item-wrapper {
    padding: 0;
    border: none;
}

/* Mobile Responsiveness for Smart Chips */
@media (max-width: 768px) {
    .search-chip {
        font-size: 0.85rem;
        padding: 5px 6px 5px 10px;
    }
    
    .chip-label {
        max-width: 150px;
    }
    
    .search-result-compare-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .search-result-compare-btn span {
        display: none; /* Hide text, show only icon on mobile */
    }
    
    .search-result-compare-btn .material-icons {
        font-size: 1.2rem;
    }
    
    .search-chips-container:not(:empty) ~ .unified-search-input {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .chip-label {
        max-width: 120px;
    }
    
    .search-result-dual-action {
        gap: 8px;
    }
    
    .search-result-link {
        padding: 10px 8px;
    }
}

/* ===================================
   Smart Chip Positioning Fix
   =================================== */

/* Position chips above the search input */
.search-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chips container positioned above form */
.search-chips-container {
    min-height: 0;
    transition: all 0.1s ease;
}

.search-chips-container:empty {
    display: none;
}

.search-chips-container:not(:empty) {
    padding: 8px 3%;
    border-radius: 12px;
}

/* Remove the previous flex adjustments that caused overlap */
.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Ensure input takes full width */
.unified-search-input {
    flex: 1;
}

/* Mobile adjustments for chip container */
@media (max-width: 768px) {
    .search-form-wrapper {
        gap: 10px;
    }
    
    .search-chips-container:not(:empty) {
        padding: 6px 10px;
    }
}

/* ====================================
   Popular Search Shortcuts
   ==================================== */
.popular-searches {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding: 0;
}

.popular-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.search-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.search-shortcut {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-shortcut:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-shortcut:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Search active state adjustments */
.hero-section.search-active .popular-searches {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .popular-searches {
        gap: 10px;
        margin-top: 16px;
    }
    
    .popular-label {
        font-size: 0.825rem;
    }
    
    .search-shortcuts {
        gap: 6px;
        flex-wrap: nowrap
    }
    
    .search-shortcut {
        flex: 1;
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 16px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .popular-searches {
        gap: 8px;
        margin-top: 12px;
    }
    
    .popular-label {
        font-size: 0.75rem;
    }
    
    .search-shortcuts {
        gap: 5px;
    }
    
    .search-shortcut {
        padding: 5px 10px;
        font-size: 0.75rem;
        border-radius: 14px;
    }
}


/* ====================================
   Mobile Full-Width Search When Active
   ==================================== */
@media (max-width: 768px) {
    /* Make search container full width on mobile when active */
    .hero-section.search-active .hero-search-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section.search-active .search-form-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-section.search-active .unified-search-form {
        max-width: 100%;
    }
    
    .hero-section.search-active .search-input-group {
        max-width: 100%;
        border-radius: 12px;
    }
    
    /* Make autocomplete dropdown full width on mobile */
    .hero-section.search-active .ui-autocomplete {
        width: calc(100vw - 30px) !important;
        left: 15px !important;
        max-width: 100%;
        border-radius: 12px;
    }
    
    /* Hide popular searches when active on mobile to save space */
    .hero-section.search-active .popular-searches {
        display: none;
    }
    
    /* Ensure chips container is also full width */
    .hero-section.search-active .search-chips-container {
        max-width: 100%;
    }
}

.hero-subtitle svg {
    margin-right: 8px; 
    vertical-align: middle; 
    margin-bottom: 4px; 
    color: #3b82f6; 
}
