/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #fafafa;
    --bg-spec-box: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --accent: #25d366;
    --accent-hover: #20ba5a;
    --border: #e9ecef;
    --available: #10b981;
    --sold: #ef4444;
    --shadow: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent text selection on buttons and interactive elements */
button,
.car-card,
.carousel-arrow {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

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

/* Header */
.header {
    background-color: var(--bg-secondary);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    background-color: var(--bg-card);
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    object-position: center;
    margin-right: 0.75rem;
    border: 2px solid var(--border);
    padding: 4px;
}

.logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.35rem; /* Slightly smaller */
    font-weight: 700; /* Reduce from 800 to 700 */
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.02em; /* Reduce spacing for cleaner look */
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo-img {
        width: 50px;
        height: 50px;
        margin-right: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.15rem;
        letter-spacing: 0.015em;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 45px;
        height: 45px;
        margin-right: 0.4rem;
    }
    
    .logo-text {
        font-size: 1rem;
        letter-spacing: 0.01em;
    }
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--text-primary);
}

.admin-link {
    color: var(--accent) !important;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video,
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-video {
    display: block;
    /* Ensure video doesn't go fullscreen on mobile */
    -webkit-playsinline: true;
    playsinline: true;
    /* Smooth video playback */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Smooth transition when switching from video to image */
    transition: opacity 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.3rem;
    color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* Inventory Section */
.inventory {
    padding: 5rem 0;
}

.cars-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--bg-primary);
}

/* Car Card */
.car-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
}

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.car-card-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* Only top corners rounded */
}

.car-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
    border-radius: 12px 12px 0 0; /* Only top corners rounded */
}

.car-card:hover .car-card-image {
    transform: scale(1.05);
}

.car-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.car-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
}

.badge-available {
    background-color: var(--available);
    color: white;
}

.badge-available::before {
    background-color: white;
}

.badge-sold {
    background-color: var(--sold);
    color: white;
}

.badge-sold::before {
    background-color: white;
}

.car-name-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 1.5rem 1rem;
    gap: 0.5rem;
    width: 100%;
}

.car-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.3;
    flex: 1;
    margin: 0;
    text-align: left;
}

.car-price {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #16a34a;
    letter-spacing: -0.01em;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    text-align: right;
}

.car-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 0 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.6;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 2);
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 0.75rem; /* Adjust based on reference spacing */
    padding: 0 1.5rem 1.5rem;
    width: 100%;
}

.car-detail-specs .spec-icon {
    width: 20px; /* Match reference - small but visible */
    height: 20px;
    color: #1a1a1a; /* Black */
    stroke-width: 2;
    flex-shrink: 0;
    margin-bottom: 0.5rem; /* Space between icon and text */
    margin-top: 0; /* Align at top */
    align-self: center; /* Center icon horizontally */
}

.spec-item {
    display: flex;
    flex-direction: column; /* Vertical layout - icon above text */
    align-items: center; /* Center icon and text horizontally */
    text-align: center; /* Center align content */
    padding: 0.875rem 1rem; /* Adequate padding */
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    justify-content: center; /* Center content vertically */
    min-height: 70px; /* Adequate height for rectangular shape */
    width: 100%; /* Full width of grid cell */
}

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

.spec-label {
    display: none;
}

.spec-value {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem; /* Match reference size */
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin-top: 0;
    text-align: center; /* Center text below icon */
    line-height: 1.4;
}

.spec-icon {
    width: 20px; /* Match reference - small but visible */
    height: 20px;
    color: #1a1a1a; /* Black */
    stroke-width: 2;
    flex-shrink: 0;
    margin-bottom: 0.5rem; /* Space between icon and text */
    margin-top: 0; /* Align at top */
    align-self: center; /* Center icon horizontally */
}

.car-actions {
    padding: 0 1.5rem 1.75rem;
}

.btn-contact {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn-contact:hover {
    background-color: var(--accent-hover);
}

.btn-contact svg {
    width: 20px;
    height: 20px;
}

.btn-phone {
    flex: 1;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-phone:hover {
    background-color: var(--border);
    border-color: var(--text-primary);
}

.btn-phone svg {
    width: 20px;
    height: 20px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Floating Contact Buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-btn-whatsapp {
    background-color: var(--accent);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.floating-btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-btn-call {
    background-color: var(--available);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.floating-btn-call:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.floating-btn svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
    }
    
    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Car Detail Page Styles */
.car-detail {
    min-height: 100vh;
    padding: 2rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s;
    font-weight: 500;
}

.back-button:hover {
    color: var(--text-primary);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-card);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    touch-action: pan-y pinch-zoom;
}

.carousel-slide {
    min-width: 100%;
    height: 600px;
    touch-action: pan-y pinch-zoom;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
    user-select: none;
    pointer-events: auto;
}

.carousel-slide img:hover {
    opacity: 0.9;
}

.carousel-slide img:hover {
    opacity: 0.9;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-arrow.prev {
    left: 1rem;
}

.carousel-arrow.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--bg-card);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-dot.active {
    background-color: var(--accent);
    transform: scale(1.2);
}

.car-detail-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.car-detail-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    width: 100%;
}

.car-detail-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    flex: 1;
    text-align: left;
    line-height: 1.3;
    color: var(--text-primary);
}

.car-detail-price {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #16a34a;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.car-detail-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
    padding: 0 1.5rem 1.5rem;
    width: 100%;
}

.car-detail-specs .spec-item {
    display: flex;
    flex-direction: column; /* Vertical layout - icon above text */
    align-items: center; /* Center icon and text horizontally */
    text-align: center; /* Center align content */
    padding: 0.875rem 1rem; /* Adequate padding */
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    justify-content: center; /* Center content vertically */
    min-height: 70px; /* Adequate height for rectangular shape */
    width: 100%;
}

.car-detail-specs .spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.car-detail-specs .spec-label {
    display: none;
}

.car-detail-specs .spec-value {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem; /* Match reference size */
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin-top: 0;
    text-align: center; /* Center text below icon */
    line-height: 1.4;
}

.car-detail-description {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.car-detail-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.car-detail-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.car-features {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.car-features h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.car-features ul {
    list-style: none;
    padding: 0;
}

.car-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 1.5rem;
}

.car-features li:last-child {
    border-bottom: none;
}

.car-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.car-detail-actions {
    margin-top: 3rem;
}

.btn-whatsapp-large {
    width: 100%;
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background-color 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.btn-whatsapp-large:hover {
    background-color: var(--accent-hover);
}

.btn-whatsapp-large svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-secondary);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 100;
        border-left: 1px solid var(--border);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        font-size: 1.1rem;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    /* Header */
    .header {
        padding: 1rem 0;
    }

    .header .container {
        position: relative;
    }
    
    /* Container padding reduction for tablet */
    .container {
        padding: 0 1rem; /* 16px instead of 20px */
    }

    /* Hero */
    .hero {
        padding: 4rem 0;
        min-height: 400px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .inventory,
    .about,
    .contact {
        padding: 3rem 0;
    }

    /* Improve Floating Buttons */
    .floating-btn {
        width: 52px;
        height: 52px;
        bottom: 1.5rem;
    }

    .floating-btn svg {
        width: 26px;
        height: 26px;
    }

    /* Car Cards */
    .cars-grid {
        gap: 1.5rem;
    }

    .car-card {
        border-radius: 12px;
        overflow: hidden;
    }

    .car-card-image-container {
        height: 280px;
    }

    /* Car Name Price */
    .car-name-price {
        padding: 1.5rem 1.25rem 0.75rem;
    }

    .car-name {
        font-size: 1.5rem;
    }

    .car-price {
        font-size: 1.25rem;
    }

    .spec-value {
        font-size: 0.95rem;
    }

    .spec-icon {
        width: 16px; /* Even smaller on mobile */
        height: 16px;
        margin-bottom: 0;
        margin-top: 2px;
    }

    /* Improve Badge */
    .car-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        border-radius: 16px;
    }

    /* Specs Grid - Keep 4 columns on mobile with smaller gap */
    .car-specs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.625rem; /* Slightly tighter gap on mobile */
        padding: 0 1rem 1rem;
    }

    .spec-item {
        padding: 0.75rem 0.875rem; /* Slightly less padding */
        min-height: 65px; /* Slightly less height but still rectangular */
    }

    .spec-icon {
        width: 18px; /* Slightly smaller on mobile */
        height: 18px;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }

    .spec-label {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .spec-value {
        font-size: 0.95rem;
        font-weight: 600;
    }

    /* Improve Contact Button */
    .car-actions {
        padding: 0 1.25rem 1.25rem;
    }

    .btn-contact {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 8px;
    }


    /* Improve Carousel */
    .carousel-container {
        margin-bottom: 2rem;
        border-radius: 0;
    }

    .carousel-slide {
        height: 350px;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        background-color: rgba(0, 0, 0, 0.7);
    }

    .carousel-arrow.prev {
        left: 0.75rem;
    }

    .carousel-arrow.next {
        right: 0.75rem;
    }

    .carousel-dots {
        padding: 0.875rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    /* Contact */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Improve Car Detail Header */
    .car-detail-info {
        padding: 0 1rem;
    }

    .car-detail-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        gap: 0.75rem;
    }

    .car-detail-name {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0;
        flex: 1;
    }

    .car-detail-price {
        font-size: 1.5rem;
        margin-left: auto;
    }

    /* Car Detail Specs - Keep 4 columns on mobile with smaller gap */
    .car-detail-specs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.625rem; /* Slightly tighter gap on mobile */
        padding: 0 1rem 1rem;
    }

    .car-detail-specs .spec-item {
        padding: 0.75rem 0.875rem; /* Slightly less padding */
        min-height: 65px; /* Slightly less height but still rectangular */
    }

    .car-detail-specs .spec-icon {
        width: 18px; /* Slightly smaller on mobile */
        height: 18px;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }

    .car-detail-specs .spec-label {
        display: none;
    }

    .car-detail-specs .spec-value {
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* Improve Description and Features */
    .car-detail-description,
    .car-features {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .car-detail-description h3,
    .car-features h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .car-detail-description p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .car-features li {
        font-size: 0.95rem;
        padding: 0.75rem 0;
        padding-left: 1.5rem;
    }

    /* Improve WhatsApp Button */
    .car-detail-actions {
        margin-top: 2rem;
    }

    .btn-whatsapp-large {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        min-height: 52px;
        border-radius: 12px;
    }

    /* Improve Back Button */
    .back-button {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0.5rem 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Improve Car Detail Section */
    .car-detail {
        padding: 1.5rem 0;
    }

    /* Mobile-Specific Improvements */
    .car-card {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        user-select: none;
        -webkit-user-select: none;
    }

    .car-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    .car-card-image {
        -webkit-touch-callout: none;
    }

    .carousel-slide img {
        -webkit-touch-callout: none;
    }

    /* Touch improvements */
    .car-card,
    .btn-whatsapp,
    .btn-whatsapp-large,
    .carousel-arrow {
        -webkit-tap-highlight-color: transparent;
    }

    /* Better touch targets */
    .carousel-arrow {
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    /* Container padding reduction for mobile */
    .container {
        padding: 0 0.75rem; /* 12px for small mobile */
    }
    
    /* Extra Small Devices */
    .hero {
        padding: 3rem 0;
        min-height: 350px;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

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

    .inventory {
        padding: 2.5rem 0;
    }

    .cars-grid {
        gap: 1.25rem;
    }

    .car-card {
        border-radius: 12px;
    }

    .car-card-image-container {
        height: 250px;
    }

    /* Improve Car Overlay */
    .car-overlay {
        padding: 1.75rem 1rem 1rem;
    }

    .car-name {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .car-price {
        font-size: 1.35rem;
    }

    /* Improve Badge */
    .car-badge {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Specs Grid - Keep 4 columns on small mobile with smaller gap */
    .car-specs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem; /* Tighter gap for very small screens */
        padding: 0 0.75rem 1rem; /* Match container padding */
    }
    
    .car-name-price {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 0.75rem 0.75rem; /* Match container padding */
        gap: 0.5rem;
        width: 100%;
    }
    
    .car-name {
        font-size: 1.35rem;
        margin-bottom: 0;
        flex: 1;
        text-align: left;
    }
    
    .car-price {
        font-size: 1.15rem;
        margin-left: auto;
        text-align: right;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .car-description {
        padding: 0 0.75rem; /* Match container padding */
        margin-bottom: 1rem;
    }
    
    .car-actions {
        padding: 0 0.75rem 1rem; /* Match container padding */
    }

    .spec-item {
        padding: 0.7rem 0.75rem; /* Reduced padding for very small screens */
        min-height: 60px; /* Slightly reduced height */
    }

    .spec-icon {
        width: 16px; /* Smaller on mobile */
        height: 16px;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }

    .spec-label {
        display: none;
    }

    .spec-value {
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* Improve WhatsApp Button */

    .btn-whatsapp {
        padding: 0.95rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
        border-radius: 10px;
    }

    /* Improve Carousel */
    .carousel-slide {
        height: 280px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-arrow.prev {
        left: 0.5rem;
    }

    .carousel-arrow.next {
        right: 0.5rem;
    }

    /* Improve Car Detail Header */
    .car-detail-info {
        padding: 0 0.75rem;
    }

    .car-detail-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.25rem;
        gap: 0.5rem;
    }

    .car-detail-name {
        font-size: 1.5rem;
        margin-bottom: 0;
        flex: 1;
    }

    .car-detail-price {
        font-size: 1.35rem;
        margin-left: auto;
    }

    /* Car Detail Specs - Keep 4 columns on small mobile with smaller gap */
    .car-detail-specs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.625rem; /* Slightly tighter gap on mobile */
        padding: 0 1rem 1rem;
    }

    .car-detail-specs .spec-item {
        padding: 0.75rem 0.875rem; /* Slightly less padding */
        min-height: 65px; /* Slightly less height but still rectangular */
    }

    .car-detail-specs .spec-icon {
        width: 18px; /* Slightly smaller on mobile */
        height: 18px;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }

    .car-detail-specs .spec-label {
        display: none;
    }

    .car-detail-specs .spec-value {
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* Improve Description and Features */
    .car-detail-description,
    .car-features {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
    }

    .car-detail-description h3,
    .car-features h3 {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }

    .car-detail-description p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .car-features li {
        font-size: 0.9rem;
        padding: 0.65rem 0;
        padding-left: 1.25rem;
    }

    /* Improve WhatsApp Button */
    .car-detail-actions {
        margin-top: 1.75rem;
    }

    .btn-whatsapp-large {
        padding: 1.15rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 10px;
    }

    /* Improve Back Button */
    .back-button {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    /* Improve Car Detail Section */
    .car-detail {
        padding: 1.25rem 0;
    }

    /* Improve Floating Buttons */
    .floating-btn {
        width: 48px;
        height: 48px;
        bottom: 1.25rem;
    }

    .floating-btn svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .nav {
        width: 100%;
        right: -100%;
    }

    .logo-img {
        width: 40px;
        height: 40px;
        margin-right: 0.3rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
}

/* Contact Modal Styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 50%;
}

.contact-modal-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.contact-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-modal-title svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.contact-modal-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-modal-option {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    font-family: inherit;
}

.contact-modal-option:hover,
.contact-modal-option:focus {
    border-color: var(--accent);
    background-color: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    outline: none;
}

.contact-modal-option:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.contact-modal-option-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.contact-modal-option-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .contact-modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .contact-modal-title {
        font-size: 1.25rem;
    }
    
    .contact-modal-option {
        padding: 1.25rem;
    }
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 4px;
}

.skip-to-content:focus {
    top: 0;
}

/* Search functionality */
.search-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    margin-left: 1rem;
}

.search-toggle:hover {
    color: var(--accent);
}

.search-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.search-container.active {
    display: flex;
    max-height: 300px;
    opacity: 1;
}

#searchInput {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem; /* Add right padding for clear button */
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.search-container > div:first-child {
    position: relative;
    width: 100%;
}

#searchInput:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}

.search-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    font-family: inherit;
}

.filter-chip:hover,
.filter-chip.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.btn-clear-filters {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-clear-filters:hover {
    background-color: var(--accent-hover);
}

/* Footer social links */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Facebook - Blue Glow */
.social-link-facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.6), 0 0 40px rgba(24, 119, 242, 0.4);
}

.social-link-facebook:active {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.5);
}

/* Instagram - Gradient Glow */
.social-link-instagram:hover {
    background: linear-gradient(45deg, #833AB4, #E1306C, #F77737);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(131, 58, 180, 0.6), 0 0 40px rgba(225, 48, 108, 0.4);
}

.social-link-instagram:hover svg {
    stroke: white;
    fill: white;
}

.social-link-instagram:active {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(131, 58, 180, 0.5);
}

/* TikTok - Black/Red Glow */
.social-link-tiktok:hover {
    background-color: #000000;
    border-color: #FF0050;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.6), 0 0 40px rgba(0, 0, 0, 0.8);
}

.social-link-tiktok:active {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 80, 0.5);
}

/* General hover fallback for other social links */
.social-link:hover:not(.social-link-facebook):not(.social-link-instagram):not(.social-link-tiktok) {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .search-toggle {
        margin-left: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .search-container {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
    }
}

/* Image Modal / Lightbox Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10001;
}

.image-modal-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none; /* Prevent dragging */
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 2rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10002;
    padding: 0;
    font-family: inherit;
    backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
}

.image-modal-close:hover,
.image-modal-close:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    outline: none;
}

.image-modal-prev,
.image-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 3rem;
    line-height: 1;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10002;
    padding: 0;
    font-family: inherit;
    backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.image-modal-prev {
    left: 1.5rem;
}

.image-modal-next {
    right: 1.5rem;
}

.image-modal-prev:hover,
.image-modal-prev:focus,
.image-modal-next:hover,
.image-modal-next:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    outline: none;
}

.image-modal-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10002;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile optimizations for image modal */
@media (max-width: 768px) {
    .image-modal-content {
        padding: 1rem;
    }
    
    .image-modal-img {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .image-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .image-modal-prev,
    .image-modal-next {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }
    
    .image-modal-prev {
        left: 0.5rem;
    }
    
    .image-modal-next {
        right: 0.5rem;
    }
    
    .image-modal-counter {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .image-modal-img {
        max-width: 100vw;
        max-height: 80vh;
    }
    
    .image-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .image-modal-prev,
    .image-modal-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .image-modal-prev {
        left: 0.25rem;
    }
    
    .image-modal-next {
        right: 0.25rem;
    }
    
    .image-modal-counter {
        bottom: 0.75rem;
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* Very Small Screens (360px and below) */
@media (max-width: 360px) {
    .car-name-price {
        padding: 1rem 0.75rem 0.5rem;
    }
    
    .car-specs {
        gap: 0.375rem;
        padding: 0 0.75rem 0.75rem;
    }
    
    .spec-item {
        padding: 0.75rem 0.875rem; /* Slightly less padding */
        min-height: 65px; /* Slightly less height but still rectangular */
    }
    
    .spec-icon {
        width: 18px; /* Slightly smaller on very small screens */
        height: 18px;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }
    
    .spec-value {
        font-size: 0.85rem;
    }
    
    .car-actions {
        padding: 0 0.75rem 1rem;
    }
    
    .car-detail-header {
        gap: 0.375rem;
    }
    
    .car-detail-name {
        font-size: 1.35rem;
    }
    
    .car-detail-price {
        font-size: 1.2rem;
    }
    
    .car-detail-specs {
        gap: 0.375rem;
        padding: 0 0.75rem 1rem;
    }
    
    .car-detail-specs .spec-item {
        padding: 0.75rem 0.875rem; /* Slightly less padding */
        min-height: 65px; /* Slightly less height but still rectangular */
    }
    
    .car-detail-specs .spec-icon {
        width: 18px; /* Slightly smaller on very small screens */
        height: 18px;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }
    
    .car-detail-specs .spec-value {
        font-size: 0.85rem;
    }
}

