/* ==========================================
   ARAÇ DETAY SAYFASI
   Dosya: arac.php
   Açıklama: Tekil araç detay sayfası stilleri
   ========================================== */

/* =========================
   GENEL LAYOUT
   ========================= */

body {
    background: #f8f9fa;
}

.car-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================
   GERİ DÖN BUTONU
   ========================= */

.car-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.car-detail-back:hover {
    background: #f8f9fa;
    color: #c8102e;
    transform: translateX(-5px);
}

/* =========================
   İÇERİK LAYOUT
   ========================= */

.car-detail-content {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 30px;
}

.car-detail-left {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.car-detail-right {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* =========================
   ARAÇ GÖRSELLER
   ========================= */

.car-image-section {
    position: relative;
    background: #ffffff;
    padding: 40px;
    text-align: center;
}

.car-image-section img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

.car-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.car-thumbnail {
    width: 80px;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.car-thumbnail:hover,
.car-thumbnail.active {
    border-color: #c8102e;
}

.car-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   ARAÇ ÖZELLİKLERİ
   ========================= */

.car-specs-section {
    padding: 30px;
}

.specs-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.specs-column h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c8102e;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item i {
    color: #c8102e;
    font-size: 1.2rem;
    width: 24px;
}

.spec-item span {
    color: #666;
    font-size: 0.95rem;
}

/* =========================
   REZERVASYON KARTI
   ========================= */

.car-info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 30px;
}

.car-category-badge {
    display: inline-block;
    background: #c8102e;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.car-info-card h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.car-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

/* =========================
   KİRALAMA TARİHLERİ
   ========================= */

.rental-dates-section h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.rental-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.date-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.date-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.date-group input:focus {
    outline: none;
    border-color: #c8102e;
}

/* =========================
   FİYAT ALANI
   ========================= */

.price-section {
    text-align: center;
    padding: 25px 0;
    margin-bottom: 25px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.price-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #c8102e;
    line-height: 1;
}

.price-period {
    color: #999;
    font-size: 0.9rem;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #d4edda;
    color: #155724;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 600;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.discount-badge {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 600;
}

/* =========================
   REZERVASYON BUTONLARI
   ========================= */

.reservation-actions {
    display: grid;
    gap: 12px;
}

/* Eğer her iki buton da varsa yan yana */
.reservation-actions.two-buttons {
    grid-template-columns: 1fr 1fr;
}

/* Eğer tek buton varsa tam genişlik */
.reservation-actions.one-button {
    grid-template-columns: 1fr;
}

.btn-reserve {
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-reserve-call {
    background: linear-gradient(135deg, #c8102e 0%, #c8102e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-reserve-call:hover {
    background: linear-gradient(135deg, #c8102e 0%, #c8102e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-reserve-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-reserve-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* =========================
   MOBİL RESPONSIVE
   ========================= */

@media (max-width: 992px) {
    .car-detail-content {
        grid-template-columns: 1fr;
    }
    
    .car-detail-right {
        position: static;
        order: -1; /* Rezervasyon kartı üste */
    }
    
    .car-detail-left {
        order: 1; /* Araç detayları alta */
    }
    
    /* Mobilde resim + rezervasyon + detaylar sıralaması için */
    .car-detail-content {
        display: flex;
        flex-direction: column;
    }
    
    .car-image-section {
        order: -2; /* Resim en üstte */
    }
    
    .car-specs-section {
        order: 2; /* Özellikler en altta */
    }
    
    .specs-tabs {
        grid-template-columns: 1fr;
    }
    
    .rental-dates-grid {
        grid-template-columns: 1fr;
    }
}
