/* Explore Cars Page Styles */

/* Base body pattern for enhanced background */
body {
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Adaptive Header for different backgrounds */
.adaptive-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.adaptive-header .nav-logo,
.adaptive-header .nav-link {
    color: #ffffff !important;
    mix-blend-mode: difference;
    transition: color 0.3s ease;
}

.adaptive-header .nav-logo:hover,
.adaptive-header .nav-link:hover {
    opacity: 0.8 !important;
}

.adaptive-header .hamburger .bar {
    background-color: #ffffff;
    mix-blend-mode: difference;
}

/* When scrolled over dark sections */
.adaptive-header.on-dark {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.adaptive-header.on-dark .nav-logo:hover,
.adaptive-header.on-dark .nav-link:hover {
    opacity: 0.8 !important;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 140px 0 50px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}
/* Decorative overlay removed due to missing asset; can be re-enabled when added */
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(600px 300px at 20% 20%, rgba(255,255,255,0.05), transparent 60%),
        linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.02) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.02) 75%);
    background-size: auto, 40px 40px;
    opacity: 1;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffd700;
}

.breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.6;
}

.breadcrumb .current {
    color: #ffd700;
    font-weight: 500;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Search and Filters */
    .search-filters {
        background: #f8f9fa;
        padding: 30px 0;
        border-bottom: 1px solid #e9ecef;
        position: relative;
    }

.search-filters::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 24%, rgba(255,255,255,0.4) 25%, rgba(255,255,255,0.4) 26%, transparent 27%, transparent 74%, rgba(255,255,255,0.4) 75%, rgba(255,255,255,0.4) 76%, transparent 77%);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.6;
}

.search-bar {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 55px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.3);
}

.clear-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    opacity: 0;
    transition: all 0.3s ease;
}

.clear-search.visible {
    opacity: 1;
}

.clear-search:hover {
    color: #666;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.filter-label i {
    color: #ffd700;
    width: 16px;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.reset-filters {
    padding: 12px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.reset-filters:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Results Info */
.results-info {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.results-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(0,0,0,0.01) 35px,
            rgba(0,0,0,0.01) 36px
        );
    pointer-events: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.results-count {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

/* Cars Grid */
.cars-grid-section {
    padding: 40px 0 60px;
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    position: relative;
}

.cars-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .cars-grid-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .cars-grid-container {
        padding: 0 10px;
    }
}

.cars-grid-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.12) 1px, transparent 0),
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.4) 50%, transparent 50%, transparent 70%, rgba(255,255,255,0.4) 70%, rgba(255,255,255,0.4) 90%, transparent 90%),
        repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(0,0,0,0.02) 20px, rgba(0,0,0,0.02) 21px);
    background-size: 12px 12px, 40px 40px, 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 15px;
    justify-items: center;
}

.car-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.car-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 4px;
}

.car-card:hover .car-card-image img {
    transform: scale(1.1);
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.car-availability {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.car-availability.unavailable {
    background: #dc3545;
}

.car-card-content {
    padding: 20px;
}

.car-card-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.car-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.car-category {
    color: #6c757d;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.car-category::before {
    content: "•";
    color: #28a745;
    font-weight: bold;
}

.car-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.car-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #495057;
    font-weight: 500;
    background: #f8f9fa;
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.car-feature i {
    color: #28a745;
    width: 14px;
    text-align: center;
    font-size: 13px;
}

.car-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    margin-top: 4px;
}

.car-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-amount::before {
    content: "₹";
    font-size: 1.1rem;
    color: #28a745;
    font-weight: 600;
}

.price-period {
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.car-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin-top: 4px;
}

.stars {
    color: #ffc107;
    font-size: 14px;
}

.view-details-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* WhatsApp and Ask buttons in card footer */
.whatsapp-btn,
.ask-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.whatsapp-btn {
    background: #25D366;
    color: #fff;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn i { 
    font-size: 14px; 
    margin-right: 2px;
}
.ask-btn i { 
    font-size: 14px; 
    margin-right: 2px;
}

.whatsapp-btn:hover {
    background: #128C7E;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.ask-btn {
    background: #6c757d;
    color: #fff;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.ask-btn:hover {
    background: #5a6268;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Loading and No Results States */
.loading-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.loading-spinner {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Modal Custom Styles */
.modal-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.modal-car-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: #28a745;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.feature-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.car-extra-features {
    margin-top: 25px;
}

.car-extra-features h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    border-left: 4px solid #ffd700;
    padding-left: 10px;
}

/* Car Detail Modal Override */
#carDetailModal.modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#carDetailModal .modal-content {
    max-width: 800px;
    width: 100%;
    margin: 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

#carDetailModal .modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: #fff;
    z-index: 10;
}

#carDetailModal .close {
    position: static;
    font-size: 28px;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

#carDetailModal .close:hover {
    color: #ff385c;
}

#carDetailModal .modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-car-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.modal-image-container {
    position: relative;
    margin-bottom: 25px;
}

.modal-image-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 64px;
}

.car-detail-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.car-detail-info h3, 
.additional-details h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 700;
}

.car-detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.car-detail-info .car-feature {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
    border-bottom: none;
    color: #495057;
    font-size: 13px;
}

.car-detail-pricing {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
    align-self: start;
}

.car-detail-pricing h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #666;
}

.car-detail-pricing .price-amount {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 5px;
    justify-content: center;
}

.additional-details {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.car-extra-features, 
.car-description {
    margin-bottom: 25px;
}

.car-extra-features p, 
.car-description p {
    color: #555;
    line-height: 1.7;
    font-size: 14px;
}

.book-now-btn {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    width: 100%;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.book-now-btn.ask-btn {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.book-now-btn.ask-btn:hover {
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .car-detail-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .modal-car-image, .modal-image-placeholder {
        height: 250px;
    }
    
    .car-detail-pricing {
        order: -1;
    }
    
    .car-detail-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    #carDetailModal.modal {
        padding: 5px;
    }
    
    #carDetailModal .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    #carDetailModal .modal-body {
        padding: 15px;
    }
    
    .modal-car-image, .modal-image-placeholder {
        height: 180px;
    }
    
    .car-detail-features {
        grid-template-columns: 1fr;
    }
    
    .car-detail-pricing .price-amount {
        font-size: 2rem;
    }
    
    .book-now-btn {
        padding: 12px 15px;
        font-size: 13px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (min-width: 1400px) {
    .cars-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .cars-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .cars-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 70px 0 40px;
        margin-top: 0;
    }
    
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
    
    .search-filters {
        padding: 20px 0 12px;
    }
    
    .filters-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .reset-filters {
        grid-column: span 2;
        justify-self: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .results-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .results-count {
        font-size: 16px;
    }

    .sort-options {
        gap: 5px;
    }

    .sort-label {
        font-size: 14px;
    }

    .sort-select {
        min-width: 140px;
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .cars-grid { 
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px; 
        justify-items: center;
    }
    
    .car-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-input {
        padding: 15px 50px 15px 45px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 50px 0 30px;
        margin-top: 0;
    }

    .breadcrumb {
        margin-top: 10px;
        margin-bottom: 8px;
        font-size: 11px;
    }

    .page-title {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .page-subtitle {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .search-filters {
        padding: 20px 0 15px;
    }

    .search-bar {
        margin-bottom: 15px;
    }

    .search-input {
        padding: 8px 40px 8px 35px;
        font-size: 13px;
    }

    .search-icon {
        left: 12px;
        font-size: 14px;
    }

    .filters-container {
        gap: 6px;
    }

    .filter-label {
        font-size: 10px;
        margin-bottom: 2px;
        gap: 4px;
    }

    .filter-label i {
        font-size: 9px;
    }

    .filter-select {
        padding: 5px 4px;
        font-size: 11px;
        border-radius: 4px;
    }

    .reset-filters {
        padding: 5px 10px;
        font-size: 11px;
        margin-top: 3px;
        justify-content: center;
    }

    .results-info {
        padding: 12px 0;
    }

    .results-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
    }

    .results-count {
        font-size: 12px;
    }

    .sort-options {
        gap: 5px;
    }

    .sort-label {
        display: none; 
    }

    .sort-select {
        min-width: 110px;
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .car-card-content {
        padding: 15px;
    }

    .car-card-image {
        height: 160px;
    }
    
    .car-features {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 15px;
    }
    
    .modal-content {
        margin: 5px;
        max-height: calc(100vh - 10px);
    }
}

/* Footer alignment tweaks for explore page */
.footer .footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.footer .footer-content { align-items: start; }

.footer .footer-bottom .footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    justify-content: center;
}
