/* ============================================
   VER (DETAIL PAGE) - MODERN STYLES
   Vehicle detail page with image gallery
   ============================================ */

:root {
    --primary-color: #2061a8;
    --primary-hover: #1a4f8a;
    --success-color: #28a745;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.2);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-title {
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    transition: width var(--transition-speed) ease;
}

.hero-title:hover::after {
    width: 100%;
}

.h1link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.h1link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* ============================================
   VEHICLE DETAILS
   ============================================ */
.publish-info {
    font-size: 0.875rem;
    color: #6c757d;
    margin: var(--spacing-sm) 0;
    line-height: 1.6;
}

.vehicle-description {
    margin: var(--spacing-md) 0;
    line-height: 1.8;
    color: #333;
}

.vehicle-price {
    margin: var(--spacing-md) 0;
    font-weight: 600;
}

.price-label {
    font-size: 1.125rem;
    color: #333;
}

.price-value {
    color: var(--success-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-seller {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.contact-seller:hover {
    background: var(--primary-hover);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

/* ============================================
   IMAGE GALLERY
   ============================================ */
.gallery-container {
    margin: var(--spacing-lg) 0;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm);
}

.gallery-counter {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.gallery-nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow-sm);
}

.gallery-nav-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: var(--box-shadow-md);
}

.gallery-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.gallery-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.gallery-main {
    position: relative;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity var(--transition-speed) ease;
}

.gallery-main.loading img {
    opacity: 0.5;
}

.gallery-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
}

/* Keyboard navigation indicators */
.gallery-main:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* ============================================
   SINGLE IMAGE (PARTS) - NO GALLERY
   ============================================ */
.part-image-container {
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.part-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-md);
    transition: transform var(--transition-speed) ease;
}

.part-image:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

/* ============================================
   SEARCH SIDEBAR
   ============================================ */
.search-container-ver {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--box-shadow-sm);
    margin-bottom: var(--spacing-md);
}

.search-header-ver {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-speed) ease;
}

.search-header-ver:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.search-form-ver {
    display: block;
}

.search-form-ver.hidden {
    display: none;
}

.form-group-ver {
    margin-bottom: var(--spacing-sm);
}

.form-group-ver label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.25rem;
}

.search-input-ver {
    width: 100%;
    padding: 0.625rem;
    border: 2px solid #ddd;
    border-radius: calc(var(--border-radius) - 2px);
    font-size: 0.9375rem;
    transition: all var(--transition-speed) ease;
}

.search-input-ver:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32, 97, 168, 0.1);
}

.btn-search-ver {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: calc(var(--border-radius) - 2px);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    margin-top: var(--spacing-sm);
    box-shadow: var(--box-shadow-sm);
}

.btn-search-ver:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

/* ============================================
   PROMO BOX
   ============================================ */
.promo-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.promo-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-xs);
    transition: color var(--transition-speed) ease;
}

.promo-link:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.promo-text {
    font-size: 0.875rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   SIMILAR VEHICLES
   ============================================ */
.similar-section {
    margin: var(--spacing-md) 0;
}

.similar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--primary-color);
}

.similar-title a {
    color: inherit;
    text-decoration: none;
}

.similar-title a:hover {
    color: var(--primary-hover);
}

.similar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.similar-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.similar-item:last-child {
    border-bottom: none;
}

.similar-link {
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-speed) ease;
    display: block;
}

.similar-link:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(5px);
}

/* ============================================
   OTHER LINKS
   ============================================ */
.other-links-section {
    margin: var(--spacing-md) 0;
}

.other-links-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: var(--spacing-sm);
}

.other-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.other-links-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.other-links-item:last-child {
    border-bottom: none;
}

.other-link {
    color: #555;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-speed) ease;
    display: block;
}

.other-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* ============================================
   SOCIAL SHARE
   ============================================ */
.share-container {
}

/* ============================================
   LAYOUT
   ============================================ */
.ver-layout {
    display: grid;
    grid-template-columns: 200px 1fr 360px;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (max-width: 1200px) {
    .ver-layout {
        grid-template-columns: 1fr 360px;
    }
    
    .ver-layout .sidelv {
        display: none;
    }
}

@media (max-width: 768px) {
    .ver-layout {
        grid-template-columns: 1fr;
    }
    
    .ver-layout .sidelv,
    .ver-layout .siderv {
        display: none;
    }
    
    .gallery-header {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .gallery-nav-btn {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   PERFORMANCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
