/* Single Vehicle Page - AutoTrader Style */

.atss-single-vehicle-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
}

/* Back Link */
.atss-back-link {
    margin-bottom: 20px;
}

.atss-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.atss-back-link a:hover {
    color: #005177;
}

.atss-back-link .dashicons,
.atss-back-link .fas,
.atss-back-link .far {
    font-size: 16px;
    width: auto;
    height: auto;
    margin-right: 6px;
}

/* Card Link */
.atss-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.atss-card-link:hover {
    color: #005177;
}

/* Vehicle Header */
.atss-vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.atss-header-left {
    flex: 1;
}

.atss-vehicle-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.atss-variant {
    display: block;
    font-size: 20px;
    font-weight: 400;
    color: #646970;
    margin-top: 8px;
}

.atss-key-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.atss-spec-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f1;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
}

/* Price Box */
.atss-price-box {
    background: #0073aa;
    padding: 25px;
    border-radius: 8px;
    text-align: right;
    color: #fff;
    min-width: 280px;
}

.atss-price-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.atss-price {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.atss-price-finance {
    display: block;
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.9;
}

/* Main Content Layout */
.atss-vehicle-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Left Column */
.atss-content-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Gallery */
.atss-gallery-section {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.atss-main-image {
    width: 100%;
    height: 600px;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.atss-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    padding: 15px;
}

.atss-thumbnail {
    height: 80px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.atss-thumbnail:hover {
    border-color: #0073aa;
}

.atss-thumbnail.active {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.atss-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Sections */
.atss-info-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.atss-info-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

/* Features Grid */
.atss-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.atss-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.atss-feature-item .dashicons,
.atss-feature-item .fas,
.atss-feature-item .far {
    font-size: 22px;
    width: auto;
    min-width: 24px;
    height: auto;
    color: #0073aa;
    flex-shrink: 0;
    margin-top: 2px;
    text-align: center;
}

.atss-feature-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.atss-feature-item strong {
    font-size: 14px;
    color: #646970;
    font-weight: 500;
}

.atss-feature-item span {
    font-size: 16px;
    color: #1d2327;
    font-weight: 600;
}

/* Description */
.atss-description {
    font-size: 15px;
    line-height: 1.7;
    color: #1d2327;
}

/* Specs Table */
.atss-specs-table {
    display: flex;
    flex-direction: column;
}

.atss-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.atss-spec-label {
    font-size: 15px;
    color: #646970;
    font-weight: 500;
}

.atss-spec-value {
    font-size: 15px;
    color: #1d2327;
    font-weight: 600;
}

.atss-specification {
    font-size: 14px;
    line-height: 1.8;
    color: #1d2327;
}

/* Right Column - Sticky Cards */
.atss-content-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 20px;
}

.atss-sticky-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.atss-sticky-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 20px 0;
}

/* Contact Card Buttons */
.atss-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    min-height: 52px;
    box-sizing: border-box;
}

.atss-btn:last-child {
    margin-bottom: 0;
}

.atss-btn .dashicons,
.atss-btn .fas,
.atss-btn .far {
    font-size: 18px;
    width: auto;
    height: auto;
    margin-right: 8px;
}

.atss-btn-primary {
    background: #0073aa;
    color: #fff;
}

.atss-btn-primary:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.atss-btn-secondary {
    background: #fff;
    color: #0073aa;
    border: 2px solid #0073aa;
}

.atss-btn-secondary:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

/* Finance Card */
.atss-finance-option {
    padding: 20px;
    background: #f6f7f7;
    border-radius: 6px;
    margin-bottom: 15px;
}

.atss-finance-option:last-of-type {
    margin-bottom: 15px;
}

.atss-finance-header {
    margin-bottom: 12px;
}

.atss-finance-header strong {
    font-size: 16px;
    color: #1d2327;
}

.atss-finance-monthly {
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 15px;
}

.atss-finance-monthly span {
    font-size: 16px;
    font-weight: 400;
    color: #646970;
}

.atss-finance-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.atss-finance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.atss-finance-row span {
    color: #646970;
}

.atss-finance-row strong {
    color: #1d2327;
}

.atss-finance-note {
    font-size: 12px;
    color: #646970;
    margin: 0;
    font-style: italic;
}

/* Info Card */
.atss-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atss-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.atss-info-item:last-child {
    border-bottom: none;
}

.atss-info-item span {
    font-size: 14px;
    color: #646970;
}

.atss-info-item strong {
    font-size: 14px;
    color: #1d2327;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .atss-vehicle-content {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 992px) {
    .atss-vehicle-content {
        grid-template-columns: 1fr;
    }
    
    .atss-content-right {
        position: static;
    }
    
    .atss-vehicle-header {
        flex-direction: column;
    }
    
    .atss-price-box {
        width: 100%;
        text-align: left;
    }
    
    .atss-main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .atss-vehicle-title {
        font-size: 24px;
    }
    
    .atss-price {
        font-size: 28px;
    }
    
    .atss-features-grid {
        grid-template-columns: 1fr;
    }
    
    .atss-main-image {
        height: 300px;
    }
    
    .atss-info-section {
        padding: 20px;
    }
}

/* Contact Form Modal */
.atss-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.atss-modal-overlay.active {
    display: flex;
}

.atss-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.atss-modal-header {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.atss-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.atss-modal-header p {
    margin: 10px 0 0 0;
    color: #646970;
    font-size: 14px;
}

.atss-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.atss-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.atss-modal-close .dashicons,
.atss-modal-close .fas,
.atss-modal-close .far {
    font-size: 18px;
    width: auto;
    height: auto;
    color: #1d2327;
}

.atss-modal-body {
    padding: 30px;
}

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

.atss-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.atss-form-group label .required {
    color: #d63638;
    margin-left: 3px;
}

.atss-form-group input[type="text"],
.atss-form-group input[type="email"],
.atss-form-group input[type="tel"],
.atss-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.atss-form-group input:focus,
.atss-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

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

.atss-vehicle-info-box {
    background: #f6f7f7;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.atss-vehicle-info-box strong {
    display: block;
    color: #1d2327;
    font-size: 16px;
    margin-bottom: 5px;
}

.atss-vehicle-info-box span {
    color: #646970;
    font-size: 14px;
}

.atss-form-submit {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.atss-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    background: #f6f7f7;
}

.atss-modal-footer .atss-btn {
    width: auto;
    min-width: 120px;
    min-height: 48px;
    padding: 12px 24px;
    font-size: 14px;
    margin-bottom: 0;
}

.atss-form-submit {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.atss-form-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.atss-form-message.success {
    background: #d5f4e6;
    color: #00712b;
    border: 1px solid #00a32a;
    display: block;
}

.atss-form-message.error {
    background: #fcf0f1;
    color: #912023;
    border: 1px solid #d63638;
    display: block;
}

@media (max-width: 768px) {
    .atss-modal {
        max-width: 100%;
        margin: 20px;
    }
    
    .atss-modal-header,
    .atss-modal-body,
    .atss-modal-footer {
        padding: 20px;
    }
}
