/* Dealer Platform Frontend Styles */

/* ============================================
   INVENTORY PAGE
   ============================================ */
.page-content {
    background-color: #ffffff;
    min-height: 100vh;
}

.dealer-inventory-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background-color: #ffffff;
}

/* Inventory Filters */
.dealer-inventory-filters {
    background: #f8f9fa;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.filter-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333333;
    font-size: 14px;
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.2s ease-in-out;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.filter-actions .button {
    padding: 14px 32px;
    border-radius: 0;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease-in-out;
    font-size: 16px;
}

.filter-actions .button-primary {
    background: #2563eb;
    color: #ffffff !important;
}

.filter-actions .button-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.filter-actions .button:not(.button-primary) {
    background: #ffffff;
    color: #666666;
    border: 2px solid #ddd;
}

.filter-actions .button:not(.button-primary):hover {
    background: #f8f9fa;
    border-color: #999999;
}

/* Results Count */
.dealer-inventory-results {
    margin-bottom: 25px;
}

.dealer-inventory-results p {
    font-size: 16px;
    color: #666666;
    font-weight: 600;
}

/* Vehicle Grid */
.dealer-inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.dealer-vehicle-card {
    background: #2563eb;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.dealer-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.vehicle-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
    font-weight: 600;
    font-size: 16px;
}

.vehicle-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2563eb;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-info {
    padding: 20px;
}

.vehicle-title {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.vehicle-subtitle {
    font-size: 14px;
    color: #666666;
    margin: 0 0 15px 0;
}

.vehicle-price {
    font-size: 26px;
    font-weight: 700;
    color: #2563eb;
    margin: 0 0 15px 0;
}

.vehicle-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.vehicle-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666666;
}

.vehicle-meta-icon {
    font-size: 16px;
    color: #2563eb;
}

/* No Results */
.dealer-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 0;
}

.dealer-no-results h3 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 10px;
}

.dealer-no-results p {
    font-size: 16px;
    color: #666666;
}

/* Pagination */
.dealer-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dealer-pagination a,
.dealer-pagination span {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 0;
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.dealer-pagination a:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.dealer-pagination .current {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Responsive */
@media (max-width: 1024px) {
    .dealer-inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dealer-inventory-wrapper {
        padding: 0 15px;
    }
    
    .dealer-inventory-filters {
        padding: 20px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .button {
        width: 100%;
        text-align: center;
    }
    
    .dealer-inventory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vehicle-image {
        height: 200px;
    }
}

/* ============================================
   CONTACT FORM PAGE
   ============================================ */
.dealer-contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.contact-form-intro {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form-intro p {
    font-size: 18px;
    color: #666666;
    line-height: 1.6;
}

.dealer-form {
    background: #ffffff;
    padding: 0;
}

.form-row {
    margin-bottom: 20px;
}

.form-group {
    display: block;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333333;
    font-size: 15px;
}

.form-group .required {
    color: #dc2626;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease-in-out;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.form-actions .button {
    padding: 16px 48px;
    background: #2563eb;
    color: #ffffff !important;
    border: none;
    border-radius: 0;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.form-actions .button:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: #ffffff !important;
}

.form-actions .button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 0;
    display: none;
    text-align: center;
    font-weight: 600;
}

.form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   SINGLE VEHICLE PAGE
   ============================================ */
body.single-vehicle,
body.single-vehicle .site-content,
body.single-vehicle #page,
body.single-vehicle #content {
    background-color: #ffffff !important;
}

.dealer-breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
    max-width: 1400px;
    margin: 0 auto;
}

.dealer-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.dealer-breadcrumbs a:hover {
    text-decoration: underline;
}

.dealer-breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.dealer-vehicle-detail {
    background-color: #ffffff;
    padding: 0 20px 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Ensure top bar matches other pages */
body.single-vehicle .top-bar {
    padding: 20px 0;
}

body.single-vehicle .top-bar-content {
    min-height: auto;
}

.vehicle-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
}

.page-content .vehicle-detail-container {
    background-color: #ffffff;
}

.vehicle-detail-header {
    margin-bottom: 30px;
}

.vehicle-detail-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 10px 0;
}

.vehicle-detail-subtitle {
    font-size: 18px;
    color: #666666;
    margin: 0;
}

.vehicle-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* Gallery Section */
.vehicle-gallery-section {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
}

.vehicle-main-image {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.vehicle-main-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

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

.thumb-button {
    border: 2px solid #e5e7eb;
    padding: 5px;
    cursor: pointer;
    background: #ffffff;
    border-radius: 0;
    transition: all 0.2s ease-in-out;
}

.thumb-button:hover {
    border-color: #2563eb;
}

.thumb-button.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.thumb-button img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Info Section */
.vehicle-info-section {
    background: #ffffff;
}

.vehicle-price-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 0;
    margin: 0 0 25px 0;
    border: 2px solid #e5e7eb;
}

.price-label {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

/* Quick Specs */
.vehicle-quick-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.spec-item {
    padding: 18px;
    background: #f8f9fa;
    border-radius: 0;
    border: 1px solid #e5e7eb;
}

.spec-label {
    font-weight: 600;
    color: #666666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 16px;
    color: #333333;
    font-weight: 600;
}

/* Contact Buttons */
.vehicle-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.contact-button {
    padding: 16px 24px;
    border-radius: 0;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
    display: block;
}

.contact-button.primary {
    background: #2563eb;
    color: #ffffff;
}

.contact-button.primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.contact-button.secondary {
    background: #ffffff;
    color: #2563eb;
    border-color: #2563eb;
}

.contact-button.secondary:hover {
    background: #eff6ff;
}

/* Full Specs */
.vehicle-full-specs {
    margin-top: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 0;
    border: 1px solid #e5e7eb;
}

.vehicle-full-specs h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row-label {
    font-weight: 600;
    color: #666666;
}

.spec-row-value {
    color: #333333;
    font-weight: 500;
}

/* Features */
.vehicle-features-section {
    margin-top: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: 0;
    border: 1px solid #e5e7eb;
}

.vehicle-features-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-size: 15px;
    color: #333333;
    transition: all 0.2s ease-in-out;
}

.feature-item:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.feature-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: #ffffff;
    border-radius: 0;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.feature-text {
    font-weight: 500;
    color: #333333;
}

/* Remove old ::before */
.feature-item::before {
    content: none;
}
}

/* Description */
.vehicle-description-section {
    margin-top: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: 0;
    border: 1px solid #e5e7eb;
}

.vehicle-description-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.vehicle-description-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .vehicle-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vehicle-detail-header h1 {
        font-size: 28px;
    }
    
    .vehicle-quick-specs {
        grid-template-columns: 1fr;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .dealer-contact-form-wrapper {
        padding: 20px 15px;
    }
}

/* ============================================
   OLD SEARCH FORM STYLES (DEPRECATED)
   ============================================ */
    color: #fff;
}

.search-actions .button-primary:hover {
    background: #1d4ed8;
}

.search-actions .button:not(.button-primary) {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.search-actions .button:not(.button-primary):hover {
    background: #f8f9fa;
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.vehicle-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.vehicle-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: #fff;
    padding: 5px 15px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.vehicle-details {
    padding: 20px;
}

.vehicle-details h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.vehicle-details h3 a {
    color: #1e293b;
    text-decoration: none;
}

.vehicle-details h3 a:hover {
    color: #2563eb;
}

.vehicle-price {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin: 10px 0;
}

.vehicle-mileage {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.vehicle-details .button {
    width: 100%;
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    display: block;
    font-weight: 600;
    transition: background 0.3s ease;
}

.vehicle-details .button:hover {
    background: #1d4ed8;
}

/* Pagination */
.dealer-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.dealer-pagination a,
.dealer-pagination span {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    text-decoration: none;
    color: #1e293b;
}

.dealer-pagination .current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.dealer-pagination a:hover {
    background: #f8f9fa;
}

/* Lead Form */
.dealer-lead-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 0;
    margin-top: 30px;
}

.dealer-lead-form h3 {
    margin-top: 0;
}

.dealer-lead-form .form-field {
    margin-bottom: 20px;
}

.dealer-lead-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.dealer-lead-form input,
.dealer-lead-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
}

.dealer-lead-form textarea {
    min-height: 100px;
    resize: vertical;
}

.dealer-lead-form .button {
    padding: 12px 30px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dealer-lead-form .button:hover {
    background: #1d4ed8;
}

.dealer-lead-form .button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.dealer-lead-form .form-message {
    padding: 15px;
    border-radius: 0;
    margin-bottom: 20px;
}

.dealer-lead-form .form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.dealer-lead-form .form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Vehicle Embed */
.dealer-vehicle-embed {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0;
}

.dealer-vehicle-embed .vehicle-thumbnail {
    flex-shrink: 0;
}

.dealer-vehicle-embed .vehicle-thumbnail img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
}

.dealer-vehicle-embed .vehicle-info h3 {
    margin-top: 0;
}

.dealer-vehicle-embed .vehicle-info .price {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .search-fields {
        grid-template-columns: 1fr;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .dealer-vehicle-embed {
        flex-direction: column;
    }
    
    .dealer-vehicle-embed .vehicle-thumbnail img {
        width: 100%;
    }
}

/* Vehicle Features Section */
.vehicle-features-section {
    background: #fff;
    padding: 40px 30px;
    margin: 30px 0;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vehicle-features-section h2 {
    font-size: 24px;
    margin: 0 0 25px 0;
    color: #1e293b;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 0;
    border-left: 3px solid #2563eb;
    transition: all 0.2s;
}

.feature-item:hover {
    background: #eff6ff;
    transform: translateX(3px);
}

.feature-icon {
    flex-shrink: 0;
    color: #2563eb;
}

.feature-item span {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

/* Lightbox Styles */
.vehicle-lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Make main image clickable */
.vehicle-lightbox-trigger {
    display: block;
    cursor: zoom-in;
    position: relative;
}

.vehicle-lightbox-trigger:hover::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 10px 15px;
    }
    
    .lightbox-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
}

/* ============================================
   FINANCING PAGE
   ============================================ */
.dealer-financing-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.financing-header h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333333;
    text-align: center;
}

.financing-intro {
    background: #f8f9fa;
    padding: 30px;
    border: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.financing-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 15px;
}

.financing-intro p:last-child {
    margin-bottom: 0;
}

.financing-lenders {
    margin: 40px 0;
}

.financing-lenders h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333333;
}

.lenders-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.lenders-list li {
    padding: 15px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    color: #333333;
    display: flex;
    align-items: center;
}

.lenders-list li:before {
    content: '✓';
    color: #22c55e;
    font-weight: 700;
    font-size: 18px;
    margin-right: 12px;
}

.financing-credit-info {
    margin: 40px 0;
    background: #eff6ff;
    padding: 30px;
    border: 1px solid #2563eb;
}

.financing-credit-info h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2563eb;
}

.financing-credit-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 10px;
}

.financing-cta {
    text-align: center;
    margin-top: 50px;
}

.financing-cta .button {
    display: inline-block;
    padding: 18px 48px;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.2s ease-in-out;
    border: none;
}

.financing-cta .button:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lenders-list {
        grid-template-columns: 1fr;
    }
    
    .financing-header h1 {
        font-size: 28px;
    }
}

/* ============================================
   LEAD FORM MODAL
   ============================================ */
.dealer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.dealer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.dealer-modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    z-index: 10000;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #666666;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: #333333;
}

.dealer-modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 28px;
    color: #333333;
}

.dealer-modal-content > p {
    margin-bottom: 30px;
    color: #666666;
    font-size: 16px;
}

.dealer-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dealer-form .form-field {
    margin-bottom: 20px;
}

.dealer-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 14px;
}

.dealer-form .required {
    color: #dc2626;
}

.dealer-form input[type="text"],
.dealer-form input[type="email"],
.dealer-form input[type="tel"],
.dealer-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    transition: border-color 0.2s;
}

.dealer-form input:focus,
.dealer-form textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.dealer-form textarea {
    resize: vertical;
    font-family: inherit;
}

.form-messages {
    margin-bottom: 20px;
}

.form-success {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    margin-bottom: 15px;
}

.form-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 12px;
}

.form-actions .button {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.form-loading {
    text-align: center;
    padding: 20px;
}

.form-loading .spinner {
    float: none;
    margin: 0 auto 10px auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dealer-modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .dealer-form .form-row {
        grid-template-columns: 1fr;
    }
}
