/*
 Theme Name: GeneratePress Child
 Template: generatepress
*/

/* Car Featured Image */
.car-featured-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.car-featured-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}

/* Single Car Page - White Background */
.single-car article {
    background-color: #ffffff;
    padding: 40px;
    margin-bottom: 20px;
}

/* Mobile responsive padding */
@media (max-width: 768px) {
    .single-car article {
        padding: 20px;
    }
}

/* Car Additional Content from Editor */
.car-additional-content {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* Offer Card - Clean Professional Design */
.offer-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 8px;
}

.offer-type-badge {
    font-weight: 600;
    color: #1565c0;
    font-size: 0.9rem;
}

.offer-total-badge {
    background: #2e7d32;
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.offer-benefits {
    padding: 12px 16px;
}

.benefit-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

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

.benefit-label {
    color: #555;
    font-size: 0.9rem;
}

.benefit-value {
    font-weight: 600;
    color: #333;
}

.offer-variants {
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
}

.variants-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.variant-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 0;
}

.variant-name {
    color: #333;
}

.variant-benefits {
    color: #2e7d32;
    font-weight: 500;
}

.offer-validity {
    padding: 10px 16px;
    background: #fff8e1;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #6d4c00;
}

.validity-icon {
    margin-right: 6px;
}

.offer-notes {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #e0e0e0;
    font-style: italic;
}

/* Offer Highlight Section */
.offer-highlight {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-left: 4px solid #1976d2;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.offer-highlight-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.offer-highlight-text strong {
    color: #1565c0;
}

/* Brand Archive Page */
.brand-description {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #555;
}

.brand-offers {
    margin-top: 2rem;
}

.brand-offers h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.brand-offer-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

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

/* Car offers group */
.car-offers-group {
    margin-bottom: 2.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.car-offers-group .offer-car-name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1565c0;
}

.car-offers-group .offer-car-name a {
    font-size: 1.4rem;
    color: #1565c0;
    text-decoration: none;
    font-weight: 600;
}

.car-offers-group .offer-car-name a:hover {
    text-decoration: underline;
}

.offer-count {
    background: #1565c0;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.car-group-image {
    margin-bottom: 1rem;
    text-align: center;
}

.car-group-image img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}

.car-offers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.car-offers-list .brand-offer-item {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.offer-car-name {
    font-size: 1.3rem;
    color: #1565c0;
    margin-bottom: 0.5rem;
}

.offer-section-title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-offers {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.cars-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
}

.cars-list li a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
}

.cars-list li a:hover {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
}

/* Taxonomy Brand Page - White Background */
.tax-brand article {
    background-color: #ffffff;
    padding: 40px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .tax-brand article {
        padding: 11px;
    }

    /* Reduce car group padding on mobile */
    .car-offers-group {
        padding: 12px;
        margin-bottom: 1.5rem;
    }

    /* Reduce inner card padding on mobile */
    .car-offers-list .brand-offer-item {
        padding: 10px;
    }

    /* Smaller offer card padding */


    /* Smaller car name font on mobile */
    .car-offers-group .offer-car-name a {
        font-size: 1.2rem;
    }

    /* Smaller offer title on mobile */
    .offer-section-title {
        font-size: 0.95rem;
    }


}

/* ========================================
   HOMEPAGE STYLES
   ======================================== */

/* Hero Section */
.home-hero {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    padding: 60px 24px;
    text-align: center;
    margin: -40px -40px 30px -40px;
    border-radius: 0 0 24px 24px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.2rem;
    color: #fff;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
}

/* Search Bar */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto 28px;
}

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

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    z-index: 1;
    pointer-events: none;
}

.car-search-input {
    width: 100%;
    padding: 16px 52px 16px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    outline: none;
    transition: box-shadow 0.2s;
}

.car-search-input:focus {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.car-search-input::placeholder {
    color: #888;
}

/* Search Results Dropdown */
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.15s;
}

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

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item img {
    width: 100px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    border-radius: 4px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.search-result-item span {
    font-weight: 500;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: #666;
}

/* Filter Buttons */
.car-filters {
    margin-top: 24px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 4px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #fff;
    color: #1565c0;
    border-color: #fff;
}

/* Brand context filters (non-hero) */
.car-filters[data-context="brand"] {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.car-filters[data-context="brand"] .filter-label {
    color: #555;
}

.car-filters[data-context="brand"] .filter-btn {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

.car-filters[data-context="brand"] .filter-btn:hover,
.car-filters[data-context="brand"] .filter-btn.active {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
}

/* Brands Section */
.brands-section {
    padding: 10px 0;
}

.section-title {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 24px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.brand-card:hover {
    background: #fff;
    border-color: #1565c0;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
    transform: translateY(-2px);
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.brand-count {
    font-size: 0.8rem;
    color: #666;
}

.no-brands {
    text-align: center;
    color: #666;
    padding: 40px;
}

/* Homepage Mobile Responsive */
@media (max-width: 768px) {
    .home-hero {
        padding: 40px 16px;
        margin: -20px -20px 20px -20px;
        border-radius: 0 0 16px 16px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .car-search-input {
        padding: 14px 46px 14px 18px;
        font-size: 0.95rem;
    }

    .filter-group {
        flex-direction: column;
        gap: 10px;
    }

    .filter-label {
        margin-right: 0;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .brand-card {
        padding: 16px 12px;
    }

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