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

:root {
    --primary: #d4af37;
    --primary-dark: #b8941f;
    --secondary: #1a1a1a;
    --text: #333;
    --text-light: #666;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

/* Navigation */
.navbar {
    background: var(--secondary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

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

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

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.admin-link {
    background: var(--primary);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.admin-link:hover {
    background: var(--primary-dark);
    color: white;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 10;
}

.nav-spacer {
    display: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, #2c2c2c 100%);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
    height: 45px;
    width: auto;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.mobile-menu-links {
    padding: 30px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--primary);
    padding-left: 40px;
}

.mobile-nav-link i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 30px;
}

.mobile-menu-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.mobile-menu-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #25d366;
    color: white;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.mobile-menu-contact:hover {
    background: #20ba5a;
    transform: scale(1.02);
}

.mobile-menu-contact i {
    font-size: 1.8rem;
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.mobile-menu-social a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.mobile-menu-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('BANNER.jpeg') center center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, white, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #2c2c2c;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Cars Section */
.cars-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.car-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

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

.car-image-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-info {
    padding: 1.5rem;
}

.car-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.car-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-pricing {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.price-label {
    color: var(--text-light);
}

.price-value {
    font-weight: 600;
    color: var(--primary);
}

.price-row.highlight {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.price-row.highlight .price-value {
    font-size: 1.3rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary);
}

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

.feature {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary);
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--primary);
}

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp Bubble */
.whatsapp-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    z-index: 999;
    text-decoration: none;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 1100px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s;
}

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

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-gallery {
    position: relative;
    overflow: hidden; /* Prevent overflow on desktop */
    max-width: 100%;
}

/* Fade effect on thumbnails to indicate scrollability */
.gallery-thumbnails::after {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 10px;
    width: 40px;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-thumbnails:not(:hover)::after {
    opacity: 1;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 0 10px 0;
    max-width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative; /* For fade effect */
    /* Hide scrollbar on desktop but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f0f0f0;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    min-width: 80px; /* Prevent shrinking */
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: var(--primary);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.modal-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.pricing-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.price-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.price-item.total {
    font-size: 1.2rem;
    font-weight: 700;
}

.price-item .price-value {
    color: var(--primary);
    font-weight: 600;
}

/* Image Expand Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    animation: fadeIn 0.3s;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.image-modal-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.image-modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-modal-prev {
    left: 30px;
}

.image-modal-next {
    right: 30px;
}

/* Admin Styles */
.admin-section {
    min-height: calc(100vh - 60px);
    padding: 3rem 0;
    background: var(--bg-light);
}

.login-box {
    max-width: 400px;
    margin: 5rem auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
}

.login-box i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.login-box h2 {
    margin-bottom: 2rem;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
    text-align: left;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.error-message {
    color: var(--danger);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.success-message {
    color: var(--success);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h2 {
    font-size: 2rem;
    color: var(--secondary);
}

.admin-header p {
    color: var(--text-light);
}

.admin-actions {
    margin-bottom: 2rem;
}

.admin-cars-list {
    display: grid;
    gap: 1.5rem;
}

.admin-car-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow);
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.admin-car-image {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-light);
}

.admin-car-info h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.admin-car-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.admin-car-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.no-cars {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-cars i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border);
}

.no-cars h3 {
    margin-bottom: 0.5rem;
}

/* Car Form */
.car-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-help {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.image-upload-area:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.upload-placeholder span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

.pricing-preview {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.pricing-preview-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.pricing-preview-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pricing-preview-item strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }
    
    .modal-content {
        margin: 0;
        max-height: 100vh;
        overflow-y: auto;
        border-radius: 0;
    }
    
    .modal.active {
        padding: 0;
        align-items: flex-start;
    }
    
    .gallery-main {
        height: 350px;
        border-radius: 0;
        margin-bottom: 0;
    }
    
    .gallery-thumbnails {
        padding: 15px;
        background: #f5f5f5;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .admin-car-card {
        grid-template-columns: 120px 1fr;
    }
    
    .admin-car-actions {
        grid-column: 2;
    }
}

@media (max-width: 968px) {
    /* Mobile Navigation */
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 1;
    }
    
    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo-image {
        height: 45px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .nav-spacer {
        display: block;
        width: 40px;
        order: 3;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-car-card {
        grid-template-columns: 1fr;
    }
    
    .admin-car-actions {
        grid-column: 1;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .whatsapp-bubble {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    /* Modal Fixes for Mobile */
    .modal {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal.active {
        padding: 0;
        align-items: flex-start;
        overflow-y: scroll;
    }
    
    .modal-content {
        border-radius: 0;
        max-height: none;
        min-height: 100vh;
        width: 100%;
        margin: 0;
    }
    
    .modal-body {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .modal-gallery {
        width: 100%;
        order: 1;
    }
    
    .gallery-main {
        height: 350px;
        border-radius: 0;
        margin-bottom: 0;
    }
    
    .gallery-main img {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }
    
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-thumbnails {
        padding: 15px;
        background: #f8f8f8;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .gallery-thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .modal-info {
        width: 100%;
        order: 2;
        padding: 20px;
        background: white;
    }
    
    .modal-close {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
        z-index: 2001;
        background: rgba(0, 0, 0, 0.85);
        border: 2px solid white;
    }
    
    .modal-info h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .modal-info p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .pricing-details {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        background: #f8f8f8;
        border-radius: 10px;
    }
    
    .price-item {
        display: block;
        margin-bottom: 1.2rem;
        padding-bottom: 1.2rem;
        border-bottom: 1px solid #ddd;
    }
    
    .price-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .price-item .price-label {
        display: block;
        font-size: 0.95rem;
        color: #666;
        margin-bottom: 5px;
    }
    
    .price-item .price-value {
        display: block;
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--primary);
    }
    
    .price-item.total {
        background: white;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
    }
    
    .price-item.total .price-label {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
    }
    
    .price-item.total .price-value {
        font-size: 1.8rem;
    }
    
    .btn-block {
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 38px;
    }
    
    .mobile-menu-btn {
        font-size: 1.6rem;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .car-form {
        padding: 1.5rem;
    }
    
    /* Small phone modal adjustments */
    .gallery-main {
        height: 280px;
    }
    
    .gallery-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .gallery-thumbnail {
        width: 70px;
        height: 52px;
    }
    
    .modal-info {
        padding: 15px;
    }
    
    .modal-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-info p {
        font-size: 0.95rem;
    }
    
    .pricing-details {
        padding: 1.2rem;
    }
    
    .price-item .price-label {
        font-size: 0.9rem;
    }
    
    .price-item .price-value {
        font-size: 1.3rem;
    }
    
    .price-item.total .price-label {
        font-size: 1rem;
    }
    
    .price-item.total .price-value {
        font-size: 1.6rem;
    }
    
    .btn-block {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .modal-close {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }
}

