/* Araç Seçici */
.vm-selector {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-sizing: border-box;
}

.vm-selector * {
    box-sizing: border-box;
}

.vm-selector-title {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    color: #333;
    font-size: 24px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.vm-selector-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    min-height: 500px;
}

.vm-selector-options {
    flex: 0 0 350px;
    width: 350px;
}

.vm-preview {
    flex: 1;
    position: relative;
    min-height: 500px;
    min-width: 600px;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    display: none; /* Başlangıçta gizli */
}

.vm-preview.active {
    display: block; /* Aktif olduğunda görünür */
}

.vm-preview-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vm-preview-wrapper {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.vm-preview-wrapper.active {
    display: block;
}

.vm-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vm-preview-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.vm-selector-row {
    margin-bottom: 20px;
}

.vm-selector-row label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.vm-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vm-select:hover {
    border-color: #999;
}

.vm-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

.vm-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.vm-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    z-index: 2;
    transition: background 0.3s ease;
}

.vm-preview-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.vm-preview-nav.prev {
    left: 10px;
}

.vm-preview-nav.next {
    right: 10px;
}

.vm-preview-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.vm-preview-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.vm-preview-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.vm-preview-dot.active {
    background: #fff;
}

/* Yükleme Göstergesi */
.vm-loading-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.vm-loading {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.vm-loading div {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #3498db;
    animation: vm-loading 1.2s linear infinite;
}

.vm-loading div:nth-child(1) {
    top: 6px;
    left: 6px;
    animation-delay: 0s;
}

.vm-loading div:nth-child(2) {
    top: 6px;
    left: 26px;
    animation-delay: -0.4s;
}

.vm-loading div:nth-child(3) {
    top: 6px;
    left: 45px;
    animation-delay: -0.8s;
}

.vm-loading div:nth-child(4) {
    top: 26px;
    left: 6px;
    animation-delay: -0.4s;
}

.vm-loading div:nth-child(5) {
    top: 26px;
    left: 26px;
    animation-delay: -0.8s;
}

.vm-loading div:nth-child(6) {
    top: 26px;
    left: 45px;
    animation-delay: -1.2s;
}

.vm-loading div:nth-child(7) {
    top: 45px;
    left: 6px;
    animation-delay: -0.8s;
}

.vm-loading div:nth-child(8) {
    top: 45px;
    left: 26px;
    animation-delay: -1.2s;
}

.vm-loading div:nth-child(9) {
    top: 45px;
    left: 45px;
    animation-delay: -1.6s;
}

@keyframes vm-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .vm-preview {
        min-width: 400px;
    }
}

@media (max-width: 768px) {
    .vm-selector-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .vm-selector-options {
        flex: none;
        width: 100%;
    }
    
    .vm-preview {
        width: 100%;
        min-width: auto;
        min-height: 400px;
    }

    .vm-selector {
        margin: 10px;
        padding: 15px;
    }

    .vm-selector-title {
        font-size: 20px;
    }

    .vm-select {
        padding: 10px;
        font-size: 14px;
    }

    .vm-preview-caption {
        font-size: 14px;
        padding: 10px;
    }
}

#vm-vehicle-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 en-boy oranı */
    overflow: hidden;
    margin-top: 20px;
}

#vm-vehicle-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

a:where(:not(.wp-element-button)) {
    color: rgb(255 255 255);
    text-decoration: underline;
}

.vehicle-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 en-boy oranı */
    overflow: hidden;
    margin-bottom: 15px;
}

.vehicle-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}   