/* Car Detail Page Styles */
.car-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* Main Car Details Section */
.car-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Left Side - Image Gallery */
.car-images-section {
    position: relative;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-car-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.65);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.image-nav-btn:hover {
    background: rgba(16, 24, 40, 0.82);
    transform: translateY(-50%) scale(1.05);
}

.image-nav-prev {
    left: 12px;
}

.image-nav-next {
    right: 12px;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item.active {
    border-color: #007bff;
}

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

/* Owner Profile under gallery */
.owner-profile {
    margin-top: 16px;
}

.owner-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.owner-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Alignment and text styles */
.owner-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner-label {
    font-weight: 600;
    color: #333;
}

.owner-name {
    font-weight: 600;
    color: #333;
}

/* Right Side - Car Information */
.car-info-section {
    padding: 20px 0;
}

.car-header {
    margin-bottom: 16px;
}

.title-favorite-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.car-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.stock-indicator--detail {
    flex-shrink: 0;
    font-size: 15px;
    padding: 6px 12px;
    gap: 7px;
}

.stock-indicator--detail .stock-indicator-icon {
    font-size: 14px;
}

.favorite-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    padding: 0 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.favorite-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.06);
}

.favorite-icon {
    width: 24px;
    height: 22.5px;
    transition: all 0.3s ease;
}

/* Car Description */
.car-description {
    margin-bottom: 32px;
}

.car-description p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 16px;
}

/* Car Specifications */
.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.spec-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* Pricing Section */
.pricing-section {
    margin-bottom: 32px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.price-period {
    font-size: 18px;
    color: #666;
}

.price-original {
    margin-top: 8px;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

/* Rent Button */
.rent-button {
    width: 100%;
    max-width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.rent-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.contact-response-hint {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 500;
    color: #007bff;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.description-expand {
    margin-top: -16px;
    margin-bottom: 48px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e7ecf3;
    border-radius: 14px;
}

.description-expand h3 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #1f2937;
}

.description-expand-box {
    color: #4b5563;
    line-height: 1.65;
    font-size: 15px;
}

.description-expand-box p {
    margin: 0;
}

.description-expand-box.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.description-toggle {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.description-toggle:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .car-detail-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .car-header {
        flex-direction: column;
        gap: 12px;
    }

    .title-favorite-container {
        align-items: flex-start;
    }

    .car-specs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .car-detail-container {
        padding: 16px;
    }

    .description-expand {
        padding: 16px;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .car-title {
        font-size: 24px;
    }

    .price-amount {
        font-size: 28px;
    }

    .rent-button {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Related Vehicles Section */
.related-vehicles-section {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eee;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.related-vehicles-header {
    margin-bottom: 32px;
    text-align: center;
}

.related-vehicles-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Related vehicles: 2 columns on desktop (cards are ~650px wide otherwise → 1 col) */
.related-vehicles-section .vehicle-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.related-vehicles-section .vehicle-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 200px;
}

.show-more-container {
    text-align: center;
}

.show-more-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Responsive design for related vehicles */
@media (max-width: 768px) {
    .car-images-section,
    .car-info-section,
    .main-image-container,
    .thumbnail-gallery,
    .owner-profile,
    .related-vehicles-section,
    .related-vehicles-section .vehicle-list {
        min-width: 0;
    }

    .main-car-image {
        height: clamp(220px, 52vw, 320px);
    }

    .image-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .related-vehicles-section .vehicle-list {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 20px;
        grid-template-columns: unset;
    }

    .related-vehicles-section .vehicle-card {
        width: 320px;
        max-width: 320px;
        height: 450px;
        min-height: 450px;
    }

    .related-vehicles-section {
        margin-top: 28px;
        padding: 28px 0 16px;
    }

    .related-vehicles-header h2 {
        font-size: 24px;
    }
} 