/* vMarket Price List Plugin Styles */

/* General Plugin Styles */
.vmarket-price-list {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Admin Styles */
.price-list-admin {
    background-color: #f8f9fa;
}

.price-list-admin .widget-box {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.price-list-admin .widget-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.price-list-admin .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.price-list-admin .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40,167,69,0.3);
}

/* Modal Styles */
.price-list-modal .modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-bottom: none;
}

.price-list-modal .modal-title {
    font-weight: 600;
}

.price-list-modal .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.price-list-modal .close:hover {
    opacity: 1;
}

.price-list-modal .form-control {
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

.price-list-modal .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.price-list-modal .btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 10px 20px;
}

/* Frontend Brand Listing Styles */
.price-list-brand-header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin-bottom: 40px;
}

.price-list-brand-header .brand-logo {
    max-height: 80px;
    margin-bottom: 20px;
}

.price-list-brand-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.price-list-brand-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 20px;
}

.price-list-brand-header .lead {
    font-size: 1.1rem;
    color: #495057;
    max-width: 800px;
    margin: 0 auto;
}

/* Car Item Grid Styles */
.price-list-cars-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .price-list-cars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .price-list-cars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .price-list-cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .price-list-cars-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.price-list-car-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.price-list-car-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.price-list-car-item:hover::before {
    transform: scaleX(1);
}

.price-list-car-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.car-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-link:hover {
    text-decoration: none;
    color: inherit;
}

.car-image {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.car-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.price-list-car-item:hover .car-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    color: #6c757d;
    font-size: 14px;
}

.no-image-placeholder i {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
}

.car-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.car-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #2c3e50;
}

.car-year {
    margin-bottom: 15px;
}

.car-year small {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
}

.car-price {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.price-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #c00;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Car Detail Page Styles */
.car-detail-page {
    padding: 20px 0;
}

.car-detail-header {
    margin-bottom: 40px;
}

.car-detail-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.car-detail-header .lead {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Car Images Section */
.car-images {
    margin-bottom: 30px;
}

/* Car Images Styles */
.main-image-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.main-car-image {
    max-width: 100%;
    /* max-height: 100%; */
    object-fit: cover;
}

.no-main-image {
    text-align: center;
    color: #6c757d;
}

.no-main-image i {
    font-size: 64px;
    display: block;
    margin-bottom: 10px;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* Calculator Styles */
.price-calculation-section {
    position: sticky;
    top: 20px;
}

.calculator-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.calculator-card .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.calculator-card .card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.calculator-card .card-header i {
    margin-right: 8px;
}

.calculator-card .card-body {
    padding: 20px;
}

.price-results {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.price-results h5 {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.price-results .table {
    margin-bottom: 0;
    font-size: 14px;
}

.price-results .table td {
    padding: 8px 12px;
    border-top: 1px solid #dee2e6;
}

.price-results .table tr:first-child td {
    border-top: none;
}

/* New 2-Column Price Layout Styles */
.price-column {
    background: #ffffff;
    border-radius: 6px;
    height: 100%;
}

.price-item {
    transition: background-color 0.2s ease;
}

.price-item:hover {
    background-color: #f8f9fa;
}

.price-label {
    font-size: 14px;
    color: #495057;
    text-transform: none;
}

.price-value {
    font-size: 14px;
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.price-value.font-weight-bold {
    font-weight: 600;
}

.price-results {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 20px;
}

/* Enhanced form controls */
.form-control-lg {
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-lg:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Reference price styling */
#reference-price-section .alert {
    border-left: 4px solid #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
}

.car-description {
    margin-top: 30px;
}

.car-description h3.desc-car-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    /* border-bottom: 2px solid #007bff; */
    padding-bottom: 8px;
}

.description-content {
    margin-top: 15px;
    line-height: 1.6;
}

.description-content p {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 991px) {
    .price-calculation-section {
        position: static;
        margin-top: 30px;
    }
    
    .main-image-container {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .gallery-thumb {
        width: 60px;
        height: 45px;
    }
    
    .calculator-card .card-body {
        padding: 15px;
    }
    
    .main-image-container {
        height: 200px;
    }
}