/* Case Addons - Vehicle Dealer Frontend Styles */

/* Grid Layout */
.pxl-vehicles-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
    box-sizing: border-box;
}

.pxl-vehicles-grid * {
    box-sizing: border-box;
}

.pxl-vcols-2 { grid-template-columns: repeat(2, 1fr); }
.pxl-vcols-3 { grid-template-columns: repeat(3, 1fr); }
.pxl-vcols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .pxl-vcols-4, .pxl-vcols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .pxl-vcols-4, .pxl-vcols-3, .pxl-vcols-2 { grid-template-columns: 1fr; }
}

/* Vehicle Card */
.pxl-vehicle-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.pxl-vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Card Media & Badges */
.pxl-vcard-media {
    position: relative;
    width: 100%;
    height: 220px;
    background: #111;
    overflow: hidden;
}

.pxl-vcard-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.pxl-vcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pxl-vehicle-card:hover .pxl-vcard-img {
    transform: scale(1.05);
}

.pxl-vcard-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    background: #f4f5f7;
    color: #999;
}

.pxl-vcard-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.pxl-vbadge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pxl-vbadge-sale { background: #e02b20; }
.pxl-vbadge-sold { background: #6c757d; }
.pxl-vbadge-reserved { background: #f39c12; }
.pxl-vbadge-featured { background: #28a745; }

/* Card Content */
.pxl-vcard-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pxl-vcard-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #777;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.pxl-vbrand {
    color: #2271b1;
}

.pxl-vcard-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.pxl-vcard-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pxl-vcard-title a:hover {
    color: #2271b1;
}

/* Pricing */
.pxl-vcard-pricing {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pxl-vprice {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.pxl-vprice.pxl-vsale {
    color: #e02b20;
}

.pxl-vprice.pxl-vask {
    font-size: 16px;
    color: #2271b1;
}

.pxl-voldprice {
    font-size: 14px;
    color: #888;
}

/* Specs Row */
.pxl-vcard-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
    font-size: 12px;
    color: #555;
}

.pxl-vspec-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pxl-vicon {
    font-size: 13px;
}

/* Actions */
.pxl-vcard-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.pxl-vbtn-detail {
    flex: 1;
    background: #1a1a1a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pxl-vbtn-detail:hover {
    background: #333;
    color: #fff;
}

.pxl-vbtn-whatsapp {
    background: #25d366;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.2s ease;
}

.pxl-vbtn-whatsapp:hover {
    background: #1ebe57;
    color: #fff;
}

/* Single Vehicle Details View */
.pxl-vehicle-single-details {
    margin: 30px 0;
    font-family: inherit;
}

.pxl-vehicle-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.pxl-vprice-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.pxl-vprice-lbl {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.pxl-vprice-big {
    font-size: 32px;
    font-weight: 800;
    color: #111;
}

.pxl-vprice-big.pxl-vsale {
    color: #e02b20;
}

.pxl-voldprice-big {
    font-size: 20px;
    color: #888;
}

.pxl-vbadge-big {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.pxl-vbadge-avail { background: #d4edda; color: #155724; }
.pxl-vbadge-sold { background: #f8d7da; color: #721c24; }
.pxl-vbadge-reserved { background: #fff3cd; color: #856404; }

/* Specs Table */
.pxl-vsection-title {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #111;
}

.pxl-vspecs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.pxl-vspec-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

.pxl-vspec-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
}

.pxl-vspec-val {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* Gallery Grid */
.pxl-vgallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 35px;
}

.pxl-vgallery-thumb {
    display: block;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pxl-vgallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pxl-vgallery-thumb:hover img {
    transform: scale(1.06);
}

/* Dealer Card */
.pxl-vehicle-dealer-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.pxl-vdealer-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pxl-vdealer-icon {
    font-size: 38px;
}

.pxl-vdealer-name {
    margin: 0 0 5px;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
}

.pxl-vdealer-loc {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.pxl-vdealer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pxl-vbtn-call {
    background: #334155;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.pxl-vbtn-call:hover {
    background: #475569;
    color: #fff;
}

.pxl-vbtn-wa-large {
    background: #25d366;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.pxl-vbtn-wa-large:hover {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-2px);
}
