/**
 * Vehizo PRO Advanced Shortcodes Styles
 * Modern, flexible vehicle display matching customer requirements
 */

/* ===========================
   CSS Variables (can be overridden)
   =========================== */
:root {
    --vehizo-pro-primary: var(--vehizo-primary, #ff6600);
    --vehizo-pro-primary-hover: var(--vehizo-button-hover, var(--vehizo-primary, #e55a00));
    --vehizo-pro-secondary: var(--vehizo-secondary, #333333);
    --vehizo-pro-accent: var(--vehizo-accent, var(--vehizo-primary, #28a745));
    --vehizo-pro-border: var(--vehizo-card-border, #e9ecef);
    --vehizo-pro-bg-light: var(--vehizo-card-bg, #f8f9fa);
    --vehizo-pro-card-bg: var(--vehizo-card-bg, #ffffff);
    --vehizo-pro-container: var(--vehizo-container-bg, #ffffff);
    --vehizo-pro-heading: var(--vehizo-card-title, #1f2937);
    --vehizo-pro-text: var(--vehizo-text-color, #4b5563);
    --vehizo-pro-text-muted: var(--vehizo-text-color, #6b7280);
    --vehizo-pro-specs-bg: var(--vehizo-specs-bg, #f8fafc);
}

/* ===========================
   Main Wrapper
   =========================== */
.vehizo-pro-vehicles-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===========================
   Filters Section
   =========================== */
.vehizo-pro-filters {
    background: var(--vehizo-pro-container, #ffffff);
    border-radius: var(--vehizo-filter-radius, 8px);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Compact Filters Section (for overlay)
   =========================== */
.vehizo-pro-compact-filters {
    background: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 15px;
    align-items: end;
    max-width: 1000px; /* Limit width for compactness */
    margin: 0 auto; /* Center the filter */
}

.vehizo-pro-compact-filters .vehizo-pro-filter-group {
    margin-bottom: 0; /* Remove default margin */
}

.vehizo-pro-compact-filters .vehizo-pro-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--vehizo-pro-secondary);
    font-weight: 600;
}

.vehizo-pro-compact-filters .vehizo-pro-compact-filter-select,
.vehizo-pro-compact-filters .vehizo-pro-compact-filter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--vehizo-pro-border, #ccc);
    border-radius: 4px;
    font-size: 14px;
    background: var(--vehizo-pro-container, #fff);
    transition: border-color 0.3s;
}

.vehizo-pro-compact-filters .vehizo-pro-compact-filter-select:focus,
.vehizo-pro-compact-filters .vehizo-pro-compact-filter-input:focus {
    outline: none;
    border-color: var(--vehizo-pro-primary);
}

.vehizo-pro-compact-filters .vehizo-pro-filter-range {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vehizo-pro-compact-filters .vehizo-pro-filter-range input {
    flex: 1;
}

.vehizo-pro-compact-filters .vehizo-pro-filter-range span {
    color: var(--vehizo-pro-text-muted, #666);
}

.vehizo-pro-compact-filters .vehizo-pro-filter-actions {
    display: flex;
    gap: 10px;
    grid-column: 1 / -1; /* Span full width */
    justify-content: center;
    margin-top: 10px;
}

.vehizo-pro-compact-filters .vehizo-pro-filter-actions .vehizo-pro-btn {
    width: auto;
    padding: 10px 20px;
    font-size: 14px;
}

.vehizo-pro-filters-header h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--vehizo-pro-heading, #333);
}

.vehizo-pro-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--vehizo-filter-spacing, 15px);
    align-items: end;
}

.vehizo-pro-filter-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--vehizo-pro-text, #666);
    font-weight: 500;
}

.vehizo-pro-filter-select,
.vehizo-pro-filter-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--vehizo-pro-border, #ddd);
    border-radius: 4px;
    font-size: 14px;
    background: var(--vehizo-pro-container, #fff);
    transition: border-color 0.3s;
}

.vehizo-pro-filter-select:focus,
.vehizo-pro-filter-input:focus {
    outline: none;
    border-color: var(--vehizo-pro-primary);
}

.vehizo-pro-filter-checkboxes {
    display: flex;
    gap: 15px;
    align-items: center;
}

.vehizo-pro-filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    color: var(--vehizo-pro-text, #666);
}

.vehizo-pro-filter-checkboxes input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ===========================
   Vehicle Grid
   =========================== */
.vehizo-pro-vehicles-grid {
    display: grid;
    gap: var(--vehizo-card-spacing, 30px);
}

.vehizo-pro-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.vehizo-pro-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.vehizo-pro-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===========================
   Vehicle Card
   =========================== */
.vehizo-pro-vehicle-card {
    background: var(--vehizo-pro-card-bg, #ffffff);
    border-radius: var(--vehizo-card-radius, 12px);
    border: var(--vehizo-card-border-width, 1px) solid var(--vehizo-pro-border, #e5e7eb);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.vehizo-pro-vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Badge */
.vehizo-pro-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--vehizo-pro-primary);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Image */
.vehizo-pro-vehicle-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--vehizo-pro-bg-light, #f5f5f5);
}

.vehizo-pro-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.vehizo-pro-vehicle-card:hover .vehizo-pro-vehicle-image img {
    transform: scale(1.05);
}

.vehizo-pro-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vehizo-pro-bg-light, #e9ecef);
    color: var(--vehizo-pro-text-muted, #999);
    font-size: 14px;
}

/* Content */
.vehizo-pro-vehicle-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vehizo-pro-vehicle-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.vehizo-pro-vehicle-title a {
    color: var(--vehizo-pro-heading, #333);
    text-decoration: none;
    transition: color 0.3s;
}

.vehizo-pro-vehicle-title a:hover {
    color: var(--vehizo-pro-primary);
}

.vehizo-pro-vehicle-subtitle {
    font-size: 13px;
    color: var(--vehizo-pro-text, #666);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Specs */
.vehizo-pro-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.vehizo-pro-spec {
    background: var(--vehizo-pro-bg-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--vehizo-pro-text, #555);
    border: 1px solid var(--vehizo-pro-border);
}

/* Footer */
.vehizo-pro-vehicle-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--vehizo-pro-border);
}

.vehizo-pro-vehicle-price {
    margin-bottom: 15px;
}

.vehizo-pro-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--vehizo-pro-accent);
    display: inline-block;
    margin-right: 5px;
}

.vehizo-pro-price-label {
    font-size: 14px;
    color: var(--vehizo-pro-text, #666);
}

.vehizo-pro-vehicle-actions {
    margin-bottom: 12px;
}

.vehizo-pro-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    width: 100%;
}

.vehizo-pro-btn-primary {
    background: var(--vehizo-pro-primary);
    color: #ffffff;
}

.vehizo-pro-btn-primary:hover {
    background: var(--vehizo-pro-primary-hover);
    color: #ffffff;
}

.vehizo-pro-btn-orange {
    background: var(--vehizo-pro-primary);
    color: #ffffff;
}

.vehizo-pro-btn-orange:hover {
    background: var(--vehizo-pro-primary-hover);
}

.vehizo-pro-vehicle-meta {
    font-size: 12px;
    color: var(--vehizo-pro-text-muted, #999);
}

.vehizo-pro-meta-text {
    margin: 0;
    line-height: 1.4;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1200px) {
    .vehizo-pro-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .vehizo-pro-columns-3,
    .vehizo-pro-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehizo-pro-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vehizo-pro-columns-2,
    .vehizo-pro-columns-3,
    .vehizo-pro-columns-4 {
        grid-template-columns: 1fr;
    }

    .vehizo-pro-filters-grid {
        grid-template-columns: 1fr;
    }

    .vehizo-pro-filters {
        padding: 20px;
    }

    .vehizo-pro-vehicle-image {
        height: 200px;
    }
}

/* ===========================
   Layout Variations
   =========================== */

/* List Layout */
.vehizo-pro-layout-list .vehizo-pro-vehicles-grid {
    grid-template-columns: 1fr;
}

.vehizo-pro-layout-list .vehizo-pro-vehicle-card {
    display: grid;
    grid-template-columns: 300px 1fr;
}

.vehizo-pro-layout-list .vehizo-pro-vehicle-image {
    height: 100%;
}

@media (max-width: 768px) {
    .vehizo-pro-layout-list .vehizo-pro-vehicle-card {
        grid-template-columns: 1fr;
    }
}

/* Style Variations */
.vehizo-pro-style-minimal .vehizo-pro-vehicle-card {
    box-shadow: none;
    border: 1px solid var(--vehizo-pro-border);
}

.vehizo-pro-style-minimal .vehizo-pro-vehicle-card:hover {
    border-color: var(--vehizo-pro-primary);
}

/* ===========================
   SINGLE VEHICLE MODULAR SHORTCODES
   =========================== */

/* Vehicle Gallery */
.vehizo-vehicle-gallery {
    margin-bottom: 30px;
}

.vehizo-gallery-main {
    margin-bottom: 15px;
}

.vehizo-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.vehizo-thumb-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.vehizo-thumb-image:hover {
    transform: scale(1.05);
}

/* Vehicle Title */
.vehizo-vehicle-title-section {
    margin-bottom: 30px;
}

.vehizo-vehicle-main-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--vehizo-pro-heading, #333);
}

.vehizo-vehicle-subtitle {
    font-size: 18px;
    color: var(--vehizo-pro-text, #666);
    margin: 0;
}

/* Vehicle Price */
.vehizo-vehicle-price-section {
    background: var(--vehizo-pro-bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.vehizo-price-main {
    margin-bottom: 8px;
}

.vehizo-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--vehizo-pro-accent);
}

.vehizo-price-vat-info {
    font-size: 14px;
    color: var(--vehizo-pro-text, #666);
    margin: 0;
}

.vehizo-price-request {
    font-size: 24px;
    font-weight: 600;
    color: var(--vehizo-pro-text, #666);
    margin: 0;
}

/* Vehicle Specs */
.vehizo-vehicle-specs-section {
    margin-bottom: 30px;
}

.vehizo-vehicle-specs-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--vehizo-pro-heading, #333);
}

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

.vehizo-specs-table th {
    text-align: left;
    padding: 12px 15px;
    background: var(--vehizo-pro-bg-light);
    font-weight: 600;
    color: var(--vehizo-pro-text, #555);
    width: 40%;
}

.vehizo-specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--vehizo-pro-border);
    color: var(--vehizo-pro-heading, #333);
}

.vehizo-specs-table tr:last-child td {
    border-bottom: none;
}

.vehizo-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.vehizo-spec-item {
    background: var(--vehizo-pro-bg-light);
    padding: 15px;
    border-radius: 6px;
}

.vehizo-spec-label {
    font-size: 12px;
    color: var(--vehizo-pro-text, #666);
    margin-bottom: 5px;
}

.vehizo-spec-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--vehizo-pro-heading, #333);
}

.vehizo-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vehizo-specs-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--vehizo-pro-border);
}

.vehizo-specs-list li:last-child {
    border-bottom: none;
}

/* Vehicle Description */
.vehizo-vehicle-description-section {
    margin-bottom: 30px;
}

.vehizo-vehicle-description-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--vehizo-pro-heading, #333);
}

.vehizo-description-content {
    line-height: 1.8;
    color: var(--vehizo-pro-text, #555);
}

/* Vehicle Contact Form */
.vehizo-vehicle-contact-section {
    background: var(--vehizo-pro-container, #ffffff);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.vehizo-vehicle-contact-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--vehizo-pro-heading, #333);
}

.vehizo-form-group {
    margin-bottom: 20px;
}

.vehizo-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--vehizo-pro-heading, #333);
}

.vehizo-form-group input,
.vehizo-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--vehizo-pro-border, #ddd);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.vehizo-form-group input:focus,
.vehizo-form-group textarea:focus {
    outline: none;
    border-color: var(--vehizo-pro-primary);
}

.vehizo-contact-sidebar {
    position: sticky;
    top: 20px;
}

/* Vehicle Features */
.vehizo-vehicle-features-section {
    margin-bottom: 30px;
}

.vehizo-vehicle-features-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--vehizo-pro-heading, #333);
}

.vehizo-features-columns {
    column-count: 2;
    column-gap: 20px;
}

.vehizo-feature-item {
    padding: 8px 0;
    color: var(--vehizo-pro-text, #555);
}

.vehizo-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vehizo-feature-badge {
    background: var(--vehizo-pro-bg-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--vehizo-pro-text, #555);
}

.vehizo-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vehizo-features-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--vehizo-pro-border);
    color: var(--vehizo-pro-text, #555);
}

.vehizo-features-list li:last-child {
    border-bottom: none;
}

/* Responsive for single vehicle */
@media (max-width: 768px) {
    .vehizo-vehicle-main-title {
        font-size: 24px;
    }

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

    .vehizo-features-columns {
        column-count: 1;
    }

    .vehizo-specs-table th {
        width: 50%;
    }
}

/* ===========================
   Vertical Filters (Sidebar)
   =========================== */
.vehizo-pro-vertical-filters {
    background: var(--vehizo-pro-container, #ffffff);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.vehizo-vertical-filters-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--vehizo-pro-primary);
}

.vehizo-vertical-filters-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: var(--vehizo-pro-secondary);
    font-weight: 600;
}

.vehizo-vertical-filters-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vehizo-vertical-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vehizo-vertical-filter-label {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--vehizo-pro-secondary);
    margin-bottom: 5px;
}

.vehizo-vertical-filter-select,
.vehizo-vertical-filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--vehizo-pro-border);
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background-color: var(--vehizo-pro-container, #fff);
}

.vehizo-vertical-filter-select:focus,
.vehizo-vertical-filter-input:focus {
    outline: none;
    border-color: var(--vehizo-pro-primary);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.vehizo-vertical-filter-select:disabled {
    background-color: var(--vehizo-pro-bg-light, #f5f5f5);
    cursor: not-allowed;
    opacity: 0.6;
}

.vehizo-vertical-filter-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehizo-vertical-filter-range .vehizo-vertical-filter-input {
    flex: 1;
}

.vehizo-range-separator {
    font-weight: 600;
    color: var(--vehizo-pro-secondary);
}

.vehizo-vertical-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.vehizo-vertical-filter-submit,
.vehizo-vertical-filter-reset {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehizo-vertical-filter-submit {
    background-color: var(--vehizo-pro-primary);
    color: #ffffff;
}

.vehizo-vertical-filter-submit:hover {
    background-color: var(--vehizo-pro-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.vehizo-vertical-filter-reset {
    background-color: transparent;
    color: var(--vehizo-pro-secondary);
    border: 1px solid var(--vehizo-pro-border);
}

.vehizo-vertical-filter-reset:hover {
    background-color: var(--vehizo-pro-bg-light, #f8f9fa);
    border-color: var(--vehizo-pro-secondary);
}

/* Responsive Vertical Filter */
@media (max-width: 768px) {
    .vehizo-pro-vertical-filters {
        padding: 15px;
    }

    .vehizo-vertical-filters-header h3 {
        font-size: 1.2em;
    }

    .vehizo-vertical-filter-range {
        flex-direction: column;
        gap: 8px;
    }

    .vehizo-range-separator {
        display: none;
    }
}
