/* vehicle-detail.css - MOBİL OPTİMİZASYONLU */
.vehicle-detail-main {
    padding: 15px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 160px);
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

.vehicle-detail-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.vd-title-bar {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.vd-title-bar h1 {
    font-size: 1.4rem;
    color: #1a2530;
    line-height: 1.3;
}

.vd-contact-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 4px;
}

/* FOTOĞRAFLAR BÖLÜMÜ - MOBİL UYUMLU */
.vehicle-images-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.main-image-container {
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-vehicle-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 4px;
}

.image-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch; /* iOS için smooth scroll */
}

.image-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.image-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.thumbnail {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0; /* Küçük resimlerin boyutunun değişmesini engelle */
}

.thumbnail.active {
    border-color: #e74c3c;
}

/* BİLGİLER BÖLÜMÜ - MOBİL UYUMLU */
.vehicle-info-section {
    background: white;
    border-radius: 8px;
    padding: 20px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.vehicle-header {
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.vehicle-header h1 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.vehicle-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e74c3c;
}

.vehicle-specs {
    margin-bottom: 20px;
}

.vehicle-specs h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.specs-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    overflow: hidden;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #eef0f3;
    flex-wrap: wrap;
}

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

.spec-label {
    color: #6b7684;
    font-weight: 600;
    flex: 1;
    min-width: 120px;
}

.spec-value {
    color: #1a2530;
    font-weight: 700;
    flex: 1;
    text-align: right;
    min-width: 120px;
}

.vehicle-description {
    margin-bottom: 20px;
}

.vehicle-description h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.vehicle-description p {
    color: #5a6c7d;
    line-height: 1.6;
    word-wrap: break-word;
}

.contact-section {
    padding: 16px;
}

.contact-section h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.contact-seller {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eef0f3;
}

.contact-seller-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-seller strong {
    display: block;
    color: #1a2530;
}

.contact-seller-sub {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.contact-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.contact-phone-btn:hover {
    background: #c0392b;
}

.contact-safety-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef0f3;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    padding: 5px 0;
}

.contact-item strong {
    color: #2c3e50;
    margin-bottom: 3px;
}

.contact-item span,
.contact-item p {
    color: #5a6c7d;
    word-wrap: break-word;
}

/* MOBİL DETAY - EKRAN KÜÇÜLDÜKÇE */
@media (max-width: 768px) {
    .vehicle-detail-main {
        padding: 10px 0;
    }
    
    .vehicle-detail-container {
        gap: 15px;
        margin: 0;
        padding: 0 10px;
    }
    
    .vehicle-images-section,
    .vehicle-info-section {
        padding: 12px;
        margin: 0;
        border-radius: 6px;
    }
    
    .main-image-container {
        padding: 8px;
    }
    
    .main-vehicle-image {
        max-height: 250px;
    }
    
    .thumbnail {
        width: 55px;
        height: 40px;
    }
    
    .vehicle-header h1 {
        font-size: 1.3rem;
    }
    
    .vehicle-price {
        font-size: 1.4rem;
    }
    
    .spec-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .spec-label,
    .spec-value {
        text-align: left;
        min-width: auto;
    }
    
    .spec-value {
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .vehicle-detail-main {
        padding: 8px 0;
    }
    
    .vehicle-detail-container {
        padding: 0 8px;
        gap: 12px;
    }
    
    .vehicle-images-section,
    .vehicle-info-section {
        padding: 10px;
    }
    
    .vehicle-header h1 {
        font-size: 1.2rem;
    }
    
    .vehicle-price {
        font-size: 1.3rem;
    }
    
    .main-vehicle-image {
        max-height: 220px;
    }
    
    .thumbnail {
        width: 50px;
        height: 35px;
    }
    
    .specs-grid {
        gap: 5px;
    }
    
    .spec-item {
        padding: 8px 0;
    }
    
    .contact-section {
        padding: 12px;
    }
}

/* ÇOK KÜÇÜK EKRANLAR İÇİN */
@media (max-width: 360px) {
    .vehicle-header h1 {
        font-size: 1.1rem;
    }
    
    .vehicle-price {
        font-size: 1.2rem;
    }
    
    .main-vehicle-image {
        max-height: 200px;
    }
    
    .thumbnail {
        width: 45px;
        height: 30px;
    }
    
    .vehicle-images-section,
    .vehicle-info-section {
        padding: 8px;
    }
}

/* YATAY MOD İÇİN OPTİMİZASYON */
@media (max-height: 500px) and (orientation: landscape) {
    .vehicle-detail-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .vehicle-images-section {
        flex: 1;
        min-width: 200px;
    }
    
    .vehicle-info-section {
        flex: 1;
        min-width: 200px;
    }
    
    .main-vehicle-image {
        max-height: 200px;
    }
}

/* YÜKSEK ÇÖZÜNÜRLÜKLÜ EKRANLAR İÇİN */
@media (min-width: 769px) {
    .vehicle-detail-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .vehicle-images-section {
        flex: 1;
        position: sticky;
        top: 20px;
    }
    
    .vehicle-info-section {
        flex: 1;
    }
}

/* TAM EKRAN STİLLERİ */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.fullscreen-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
}

.fullscreen-image:active {
    cursor: grabbing;
}

.fullscreen-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10000;
}

.fullscreen-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Ana görsel için tıklanabilir stil */
.main-vehicle-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-vehicle-image:hover {
    transform: scale(1.02);
}

/* Tam ekran butonu */
.zoom-btn {
    padding: 10px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoom-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.zoom-btn:active {
    transform: translateY(0);
}

/* Mobil için tam ekran kontrolleri */
@media (max-width: 768px) {
    .fullscreen-controls {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .fullscreen-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .image-counter {
        bottom: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .zoom-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .fullscreen-controls {
        top: 5px;
        right: 5px;
        gap: 5px;
    }
    
    .fullscreen-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .image-counter {
        bottom: 5px;
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

/* Küçük resimler için hover efekti */
.thumbnail {
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}