/* Stock Vehicles Page Styles */
.page-header-stock {
    background: linear-gradient(135deg, #05141f 0%, #bb162b 100%);
    padding: 0;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    margin-top: 0;
}

.page-header-stock h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
}

.page-header-stock .subtitle {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
    padding-bottom: 25px;
}

.listing-header {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 5px;
}

.listing-count {
    font-size: 16px;
}

.listing-count strong {
    color: #bb162b;
    font-size: 20px;
}

.filter-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-dropdown, .sort-dropdown {
    flex: 1;
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-dropdown:hover, .sort-dropdown:hover {
    border-color: #bb162b;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.sort-section .sort-dropdown {
    min-width: 180px;
    max-width: 220px;
}

.sort-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Horizontal Stock Vehicle Cards */
.stock-vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.stock-vehicle-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stock-vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.vehicle-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.vehicle-card-content {
    display: flex;
    align-items: stretch;
    min-height: 200px;
}

.vehicle-image-section {
    flex: 0 0 250px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vehicle-thumbnail {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.vehicle-details-section {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
}

.vehicle-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #05141f;
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    margin-bottom: 15px;
}

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

.spec-item {
    display: flex;
    font-size: 13px;
}

.spec-label {
    font-weight: 600;
    color: #666;
    min-width: 130px;
}

.spec-value {
    color: #333;
}

.view-details-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bb162b;
    font-weight: 600;
    font-size: 14px;
}

.view-details-btn i {
    font-size: 16px;
}

.vehicle-price-section {
    flex: 0 0 180px;
    background: #05141f;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.price-label {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

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

.vat-info {
    font-size: 12px;
    opacity: 0.8;
}

/* Vehicle Detail Page */
.page-header-detail {
    background: linear-gradient(135deg, #05141f 0%, #bb162b 100%);
    padding: 0;
    color: white;
    margin-bottom: 30px;
    margin-top: 0;
}

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

.breadcrumb-nav {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb-nav a {
    color: white;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.vehicle-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.vehicle-gallery {
    margin-bottom: 30px;
}

.gallery-main {
    background: #000;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

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

.gallery-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(187,22,43,0.3);
    border-color: #bb162b;
}

.gallery-thumb.active {
    border-color: #bb162b;
    box-shadow: 0 4px 15px rgba(187,22,43,0.4);
}

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

.vehicle-specifications 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;
}

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

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

.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: center;
    gap: 10px;
}

.features-list i {
    color: #bb162b;
    font-size: 16px;
}

.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-card p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.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;
}

.dealer-info {
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.dealer-info p {
    margin: 5px 0;
}

.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;
}

/* Responsive Design */
@media (max-width: 968px) {
    .vehicle-detail-layout {
        grid-template-columns: 1fr;
    }

    .vehicle-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-main {
        min-height: 350px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .gallery-thumb {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .vehicle-card-content {
        flex-direction: column;
    }

    .vehicle-image-section {
        flex: none;
        min-height: 200px;
    }

    .vehicle-price-section {
        flex: none;
        padding: 15px;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-dropdown {
        width: 100%;
        min-width: auto;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
    
    .page-header-detail {
        padding: 20px 0;
    }
    
    .page-header-detail h1 {
        font-size: 24px;
    }
    
    .vehicle-detail-section {
        padding: 20px 0;
    }
    
    .gallery-main {
        min-height: 250px;
        border-radius: 8px;
    }
    
    .gallery-main img {
        max-height: 400px;
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .gallery-thumb {
        height: 70px;
        border-width: 2px;
    }
    
    .vehicle-specifications,
    .vehicle-features {
        padding: 20px 15px;
    }
    
    .vehicle-specifications h2,
    .vehicle-features h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .spec-group h3 {
        font-size: 16px;
    }
    
    .specs-table td {
        padding: 10px 0;
        font-size: 14px;
    }
    
    .specs-table .spec-label {
        min-width: 110px;
        width: 45%;
    }
    
    .price-card,
    .contact-card,
    .navigation-card {
        padding: 20px 15px;
    }
    
    .main-price {
        font-size: 28px;
    }
    
    .contact-buttons {
        gap: 12px;
    }
    
    .btn-contact-primary,
    .btn-contact-secondary {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@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: 14px;
        padding: 6px 0;
    }
    
    .main-price {
        font-size: 24px;
    }
    
    .vehicle-title {
        font-size: 18px;
    }
    
    .vehicle-specs-grid {
        gap: 10px 20px;
    }
    
    .spec-item {
        font-size: 12px;
    }
    
    .spec-label {
        min-width: 100px;
    }
}
