/* Vehicle Detail Page Styles */

.page-header-detail {
    background: linear-gradient(135deg, #05141f 0%, #1a2332 100%);
    color: white;
    padding: 30px 0;
    margin-top: 0;
}

.page-header-detail h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.breadcrumb-nav {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.breadcrumb-nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.vehicle-detail-section {
    padding: 40px 0;
}

.vehicle-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Gallery */
.vehicle-gallery {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.gallery-main {
    width: 100%;
    min-height: 400px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.gallery-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #bb162b;
    transform: translateY(-2px);
}

/* Specifications */
.vehicle-specifications,
.vehicle-features {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.vehicle-specifications h2,
.vehicle-features h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #05141f;
}

.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.spec-group h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #bb162b;
    border-bottom: 2px solid #bb162b;
    padding-bottom: 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table td {
    padding: 12px 0;
}

.specs-table .spec-label {
    font-weight: 600;
    color: #666;
    width: 40%;
}

.specs-table .spec-value {
    color: #333;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.features-list li {
    padding: 8px 0;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.features-list i {
    color: #bb162b;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Right Column Cards */
.price-card,
.contact-card,
.navigation-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.price-card .price-header h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #05141f;
}

.main-price {
    font-size: 36px;
    font-weight: 700;
    color: #bb162b;
    margin-bottom: 10px;
}

.vat-note {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.stock-status {
    color: #28a745;
    font-weight: 600;
    margin: 15px 0 0 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.contact-card h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #05141f;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-contact-primary,
.btn-contact-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-contact-primary {
    background: #bb162b;
    color: white;
}

.btn-contact-primary:hover {
    background: #9a1223;
}

.btn-contact-secondary {
    background: #05141f;
    color: white;
}

.btn-contact-secondary:hover {
    background: #0a1f31;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #e0e0e0;
}

/* MOBILE RESPONSIVE */
@media (max-width: 968px) {
    .vehicle-detail-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    .vehicle-detail-left,
    .vehicle-detail-right {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .vehicle-detail-right {
        position: static !important;
        top: auto !important;
    }
}

@media (max-width: 768px) {
    .page-header-detail {
        padding: 20px 0;
    }
    
    .page-header-detail h1 {
        font-size: 24px;
    }
    
    .vehicle-detail-section {
        padding: 20px 0;
    }
    
    .gallery-main {
        min-height: 250px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .gallery-thumb {
        height: 70px;
    }
    
    .vehicle-specifications,
    .vehicle-features {
        padding: 20px 15px;
    }
    
    .vehicle-specifications h2,
    .vehicle-features h2 {
        font-size: 20px;
    }
    
    .spec-group h3 {
        font-size: 16px;
    }
    
    .specs-table td {
        padding: 10px 0;
        font-size: 14px;
    }
    
    .features-list {
        display: block;
        gap: 0;
    }
    
    .features-list li {
        font-size: 14px;
        padding: 6px 0 6px 28px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: block;
        position: relative;
    }
    
    .features-list li i {
        position: absolute;
        left: 0;
        top: 6px;
    }
    
    .price-card,
    .contact-card,
    .navigation-card {
        padding: 20px 15px;
    }
    
    .main-price {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .page-header-detail h1 {
        font-size: 20px;
    }
    
    .breadcrumb-nav {
        font-size: 12px;
    }
    
    .gallery-main {
        min-height: 200px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
    }
    
    .gallery-thumb {
        height: 60px;
    }
    
    .vehicle-specifications h2,
    .vehicle-features h2 {
        font-size: 18px;
    }
    
    .spec-group h3 {
        font-size: 15px;
    }
    
    .specs-table td {
        padding: 8px 0;
        font-size: 13px;
    }
    
    .features-list li {
        font-size: 13px;
    }
    
    .main-price {
        font-size: 24px;
    }
}




/* Contact persons grid - side by side */
.contact-persons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Contact person styling - compact */
.contact-person {
    /* No bottom margin/border needed */
}

.contact-person h3 {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

/* Contact buttons container */
.contact-buttons {
    display: flex;
    gap: 4px;
}

/* Base button style */
.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid;
    flex: 1; /* Both buttons equal size */
}

.btn-contact i {
    font-size: 13px;
}

/* Phone button */
.btn-phone {
    background-color: #05141f;
    color: white;
    border-color: #05141f;
}

.btn-phone:hover {
    background-color: #0a1f2e;
}

/* Email button - same size as phone */
.btn-email {
    background-color: #bb162b;
    color: white;
    border-color: #bb162b;
}

.btn-email:hover {
    background-color: #9a1223;
}

/* Mobile - stack vertically */
@media (max-width: 768px) {
    .contact-persons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-person h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .btn-contact {
        padding: 10px 12px;
        font-size: 13px;
    }
}
