* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #003d7a 0%, #2c5682 50%, #8a9ba8 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fefefe;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, #003d7a, #c0c0c0, #8a9ba8);
    color: white;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c0c0c0, #8a9ba8, #c0c0c0);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.logo {
    max-height: 80px;
    max-width: 300px;
    height: auto;
    width: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.content {
    padding: 40px;
}

.car-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.details-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #ff6600;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.price-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.price-option {
    padding: 8px 16px;
    background: #003d7a;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.price-option:hover {
    background: #ff6600;
    border-color: #003d7a;
    transform: translateY(-2px);
}

.car-details {
    list-style: none;
}

.car-details li {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

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

.label {
    font-weight: bold;
    color: #003d7a;
}

.value {
    color: #666;
}

.image-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.main-image img:hover {
    transform: scale(1.05);
}

.image-thumbnails {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #ff6600;
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: #ff6600;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

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

.image-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ff6600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.image-description h3 {
    color: #003d7a;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-section {
    background: linear-gradient(45deg, #003d7a, #2c5682);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c0c0c0, #ff6600, #c0c0c0);
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 5px #ff6600);
}

.contact-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.marketplace-link {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #ff6600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.marketplace-link:hover {
    background-color: #ff6600;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.trades-section {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border-left: 4px solid #ff6600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.trades-title {
    color: #003d7a;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trades-title::before {
    content: "🔄";
    font-size: 1.1rem;
}

.trades-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trades-list li {
    padding: 8px 0;
    color: #666;
    font-size: 1rem;
    position: relative;
    padding-left: 20px;
}

.trades-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
}

@media (max-width: 768px) {
    .car-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content {
        padding: 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .price {
        font-size: 2rem;
    }

    .main-image {
        height: 250px;
    }

    .image-thumbnails {
        gap: 8px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .header {
        padding: 20px;
    }

    .logo {
        max-height: 60px;
        max-width: 250px;
    }
}

/* Extra small phones in portrait */
@media (max-width: 480px) {
    .main-image {
        height: 200px;
    }

    .image-thumbnails {
        gap: 5px;
        justify-content: center;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .content {
        padding: 15px;
    }

    .details-section {
        padding: 20px;
    }

    .contact-section {
        padding: 30px 20px;
    }

    .price {
        font-size: 1.8rem;
    }

    .price-options {
        flex-direction: column;
        gap: 10px;
    }

    .trades-section {
        padding: 15px;
    }
}
