/* Minification failed. Returning unminified contents.
(890,22): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(939,33): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(978,24): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
(1056,22): run-time error CSS1039: Token not allowed after unary operator: '-primary-color'
 */
/* Models Page Styles - Emulates Team Honda /models/ design */

/* ===== Layout ===== */
/* Reset mainContent margin from vehicles.css */
#mainContent.models-page {
    margin-left: 0 !important;
}

.models-page {
    background-color: #f5f5f5;
    min-height: 100vh;
    padding: 30px 0;
}

.models-page .container-fluid {
    max-width: 1600px;
    padding: 0 30px;
    margin: 0 auto;
}

.models-page .row {
    margin: 0;
}

/* ===== Filters Sidebar ===== */
.filters-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.filters-container {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filters-header {
    margin-bottom: 15px;
}

.filters-header h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 15px;
}

/* Body Style Filters */
.body-style-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.body-style-item {
    flex: 1 1 calc(50% - 5px);
    min-width: 80px;
    padding: 12px 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.body-style-item:hover {
    border-color: #666;
}

.body-style-item.active {
    border-color: #003478;
    background: rgba(0, 52, 120, 0.05);
}

.body-style-icon {
    width: 50px;
    height: 28px;
    margin: 0 auto 8px;
}

.body-style-icon svg {
    width: 100%;
    height: 100%;
    fill: #666;
}

.body-style-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(2);
    filter: grayscale(100%) brightness(0.5);
    transition: filter 0.2s ease;
}

.body-style-item.active .body-style-icon svg {
    fill: #003478;
}

.body-style-item.active .body-style-icon img {
    filter: grayscale(0%) brightness(1);
}

.body-style-label {
    font-size: 11px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.body-style-item.active .body-style-label {
    color: #003478;
}

/* Year Filters */
.year-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.year-item {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.year-item:hover {
    border-color: #666;
}

.year-item.active {
    border-color: #003478;
    background: rgba(0, 52, 120, 0.05);
}

.year-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.year-item.active .year-label {
    color: #003478;
}

/* Price Filters */
.price-filter-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.price-display {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.price-display-group {
    flex: 1;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px 15px;
    text-align: center;
}

.price-display-group label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
}

.price-display-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.price-display-value .currency-symbol {
    color: #666;
    font-weight: 400;
}

/* Price Slider */
.price-slider-container {
    position: relative;
    height: 40px;
    margin-top: 10px;
}

.price-slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.price-slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #003478 0%, #002255 100%);
    border-radius: 3px;
    left: 0%;
    width: 100%;
}

.price-slider-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}

.price-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 3px solid #003478;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.price-slider-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #fff;
    border: 3px solid #003478;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.price-slider-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Reset Filters */
.reset-filters-container {
    text-align: center;
    margin-top: 10px;
}

.reset-filters-btn {
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.reset-filters-btn:hover {
    background: #003478;
    border-color: #003478;
    color: #fff;
    text-decoration: none;
}

.reset-icon {
    font-size: 16px;
}

/* ===== Models Content ===== */
.models-content {
    padding-left: 30px;
}

.models-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.sort-container {
    display: flex;
    align-items: center;
}

.sort-select {
    width: auto;
    min-width: 220px;
    height: auto;
    padding: 12px 35px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.sort-select:focus {
    border-color: #003478;
    outline: none;
}

.results-count {
    font-size: 14px;
    color: #666;
}

/* Model Sections */
.model-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003478;
    display: inline-block;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Model Card */
.model-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.model-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.model-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.model-card-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.model-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.model-card:hover .model-card-image img {
    transform: scale(1.05);
}

.model-card-availability {
    padding: 8px 15px;
    font-size: 12px;
}

.in-stock-badge {
    color: #28a745;
    font-weight: 600;
    text-decoration: underline;
}

.in-stock-badge:hover {
    color: #1e7b34;
}

.contact-availability {
    color: #666;
    font-style: italic;
}

.model-card-info {
    padding: 15px;
}

.model-card-title {
    font-size: 16px;
    color: #000000;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.model-card-title strong {
    color: #003478;
}

.model-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.price-value {
    font-size: 20px;
    color: #000000;
}

.price-value strong {
    font-weight: 700;
}

/* Model Card Actions */
.model-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.model-card-actions .btn {
    flex: 1;
    min-width: calc(50% - 4px);
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-explore {
    background: #000;
    color: #fff;
    border: none;
}

.btn-explore:hover {
    background: #333;
    color: #fff;
}

.btn-explore i {
    font-size: 10px;
    margin-left: 3px;
}

.btn-contact {
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
}

.btn-contact:hover {
    background: #003478;
    border-color: #003478;
    color: #fff;
}

.btn-build-price {
    background: #003478;
    color: #fff;
    border: none;
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    text-align: center;
    justify-content: center;
}

.btn-build-price::after {
    display: none !important;
    content: none !important;
}

.btn-build-price:hover {
    background: #002255;
    color: #fff;
}

.btn-build-price:hover::after {
    display: none !important;
    content: none !important;
}

/* ===== Contact Modal ===== */
.contact-vehicle-info {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1010px) {
    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .models-content {
        padding-left: 15px;
    }
    
    .body-style-filters {
        justify-content: center;
    }
    
    .body-style-item {
        flex: 0 1 calc(25% - 8px);
        min-width: 100px;
    }
}

/* ===== Mobile Filter Toggle ===== */
.mobile-filter-toggle-container {
    display: none;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.btn-mobile-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #003478;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-mobile-filters:hover {
    background: #002255;
}

.btn-mobile-filters svg {
    stroke: currentColor;
}

/* Mobile Filter Overlay */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Filters Header */
.mobile-filters-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-filters-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-close-filters {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.btn-close-filters:hover {
    color: #333;
}

/* Body scroll lock when filters open */
body.filters-open {
    overflow: hidden;
}

@media (max-width: 1010px) {
    .mobile-filter-toggle-container {
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .mobile-filter-toggle-container .sort-select-mobile {
        flex: 1;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 332px;
        min-width: 332px;
        max-width: 332px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .mobile-filters-header {
        display: flex;
    }
    
    .models-page .container-fluid {
        padding: 0 15px;
    }
    
    .filters-container {
        padding: 20px;
    }
    
    .body-style-item {
        flex: 0 1 calc(50% - 5px);
    }
    
    /* Hide desktop sort, show mobile sort */
    .models-header .sort-container {
        display: none;
    }
    
    .models-header {
        padding: 15px;
        justify-content: center;
    }
    
    .sort-select-mobile {
        flex: 1;
        max-width: none;
        min-width: 0 !important;
        width: auto !important;
        height: 42px !important;
        line-height: 1.4 !important;
        padding: 10px 35px 10px 12px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }
    
    .models-content {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
        padding: 0;
        justify-content: center;
    }
    
    .model-card-image {
        height: 150px;
    }
    
    .vehicle-type-section {
        padding: 0;
    }
    
    .vehicle-type-section h3 {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .price-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .year-filters {
        justify-content: center;
    }
    
    .filters-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===== Animation ===== */
.model-card {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for grid items */
.models-grid .model-card:nth-child(1) { animation-delay: 0s; }
.models-grid .model-card:nth-child(2) { animation-delay: 0.05s; }
.models-grid .model-card:nth-child(3) { animation-delay: 0.1s; }
.models-grid .model-card:nth-child(4) { animation-delay: 0.15s; }
.models-grid .model-card:nth-child(5) { animation-delay: 0.2s; }
.models-grid .model-card:nth-child(6) { animation-delay: 0.25s; }
.models-grid .model-card:nth-child(7) { animation-delay: 0.3s; }
.models-grid .model-card:nth-child(8) { animation-delay: 0.35s; }

/* ===== Loading State ===== */
.models-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.models-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #003478;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.no-results h4 {
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

/* ===== Modern Form Styling for Models Pages ===== */

/* Modal Container & Visibility Fix - Only apply when modal is shown (Bootstrap 3 uses .in, Bootstrap 4+ uses .show) */
#contactModal.in,
#contactModal.show,
#contactModal.in .modal-dialog,
#contactModal.show .modal-dialog,
#contactModal.in .modal-content,
#contactModal.show .modal-content {
    visibility: visible !important;
    opacity: 1 !important;
}

#contactModal .modal-dialog {
    max-width: 520px !important;
    margin: 30px auto !important;
}

#contactModal .modal-content {
    border: none !important;
    border-radius: 8px !important;
    overflow: visible !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    padding: 0 !important;
}

/* Modal Header */
#contactModal .modal-header {
    background: var(--primary-color, #003478) !important;
    padding: 16px 24px !important;
    border-bottom: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#contactModal .modal-header .modal-title {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    flex-grow: 1 !important;
    order: 1 !important;
}

#contactModal .modal-header .close {
    color: #fff !important;
    opacity: 1 !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    background: transparent !important;
    border: none !important;
    order: 2 !important;
}

#contactModal .modal-header .close:hover {
    opacity: 0.8 !important;
}

/* Modal Body */
#contactModal .modal-body {
    padding: 24px !important;
    background: #fff !important;
}

/* Vehicle Info */
#contactModal #contactVehicleInfo {
    background: #f8f9fa !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
    border-left: 4px solid var(--primary-color, #003478) !important;
}

#contactModal #contactVehicleInfo strong {
    color: #1a1a1a !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Form Labels */
#contactModal .form-group label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #444 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.01em !important;
}

/* Form Inputs */
#contactModal .form-control {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #1a1a1a !important;
    background-color: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

#contactModal .form-control:focus {
    border-color: var(--primary-color, #003478) !important;
    box-shadow: 0 0 0 3px rgba(0, 52, 120, 0.1) !important;
    outline: none !important;
}

#contactModal .form-control::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

#contactModal textarea.form-control {
    min-height: 100px !important;
    resize: vertical !important;
}

/* Form Groups */
#contactModal .form-group {
    margin-bottom: 16px !important;
}

#contactModal .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

#contactModal .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Modal Footer */
#contactModal .modal-footer {
    padding: 16px 24px 16px 0 !important;
    background: #f8f9fa !important;
    border-top: 1px solid #e5e7eb !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Footer Buttons */
#contactModal .modal-footer .btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Hide any chevrons/arrows in buttons */
#contactModal .modal-footer .btn::after,
#contactModal .modal-footer .btn::before,
#contactModal .modal-footer .btn i,
#contactModal .modal-footer .btn svg {
    display: none !important;
}

/* Send/Submit Button - Left side, larger */
#contactModal .modal-footer .btn-outlined-dark,
#contactModal .modal-footer .btn[type="submit"],
#contactModal .modal-footer .btn:last-of-type {
    background: var(--primary-color, #003478) !important;
    color: #fff !important;
    border: none !important;
    order: 1 !important;
    flex: 1 1 auto !important;
    max-width: calc(70% - 6px) !important;
    min-width: auto !important;
}

#contactModal .modal-footer .btn-outlined-dark:hover,
#contactModal .modal-footer .btn[type="submit"]:hover,
#contactModal .modal-footer .btn:last-of-type:hover {
    opacity: 0.9 !important;
}

/* Close Button - Right side, smaller */
#contactModal .modal-footer .btn[data-dismiss="modal"],
#contactModal .modal-footer .btn:first-of-type:not(:last-of-type) {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d0d5dd !important;
    order: 2 !important;
    flex: 0 0 auto !important;
    max-width: calc(30% - 6px) !important;
    min-width: auto !important;
    width: calc(30% - 6px) !important;
}

#contactModal .modal-footer .btn[data-dismiss="modal"]:hover,
#contactModal .modal-footer .btn:first-of-type:not(:last-of-type):hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    #contactModal .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
    
    #contactModal .modal-body {
        padding: 20px !important;
    }
    
    #contactModal .modal-footer {
        padding: 12px 16px 12px 0 !important;
        flex-direction: row !important;
        gap: 10px !important;
    }

    #contactModal .modal-footer .btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
}

