/* Vehicle Selection Page Styles */

/* Page Layout */
.vehicle-selection-page {
    padding: 120px 0 80px 0; /* Navbar payı */
    background-color: #f5f7fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2-Column Layout */
.selection-layout {
    display: grid;
    grid-template-columns: 65% 32%; /* Sol: %65, Sağ: %32 */
    gap: 3%;
    align-items: start;
}

/* Summary Column (Right) */
.summary-column {
    position: sticky;
    top: 100px; /* Sticky pozisyon */
}

.summary-card {
    background: #fff;
    padding: 20px; /* Reduced from 25px */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.page-title {
    font-size: 1.4rem; /* Reduced from 1.8rem */
    color: var(--text-main);
    margin-bottom: 0.2rem; /* Reduced from 0.5rem */
    text-align: left;
}

.page-subtitle {
    color: #666;
    margin-bottom: 1.2rem; /* Reduced from 2rem */
    font-size: 0.9rem; /* Reduced from 1rem */
    text-align: left;
}

/* Route Summary Styling */
.route-summary {
    margin-bottom: 15px; /* Reduced from 20px */
}

.route-point {
    display: flex;
    align-items: flex-start;
    gap: 12px; /* Reduced from 15px */
    margin-bottom: 10px; /* Reduced from 15px */
}

.route-point i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: 0.9rem;
}

.route-point .label {
    display: block;
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: #888;
    margin-bottom: 1px;
}

.route-point .value {
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    font-size: 0.95rem;
}

.route-line {
    width: 2px;
    height: 15px; /* Reduced from 20px */
    background: #eee;
    margin-left: 6px; /* Adjusted alignment */
    margin-top: -8px;
    margin-bottom: 2px;
}

/* Trip Details */
.trip-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px; /* Reduced from 20px */
    padding: 12px 0; /* Reduced from 15px */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    font-size: 0.85rem; /* Reduced from 0.9rem */
    color: #555;
}

/* Map Container */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px; /* Reduced from 20px */
    border: 1px solid #eee;
}

.btn-edit-full {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px; /* Reduced from 12px */
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-edit-full:hover {
    background: var(--primary-color);
    color: #fff;
}

/* List Layout (Vehicles Column) */
.vehicles-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Vehicle Card (Horizontal) */
.vehicle-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: row; /* Yan yana */
    align-items: stretch; /* Yükseklikleri eşitle */
    border: 1px solid #eee;
}

.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* Slider Styles */
.vehicle-image-slider {
    position: relative;
    width: 280px; /* Biraz genişletildi */
    min-height: 180px; /* Minimum yükseklik */
    height: auto; /* İçeriğe göre uzasın */
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: absolute; /* Absolute kalsın ki slider çalışsın */
    top: 0;
    left: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi alana yay */
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s;
    color: var(--primary-color);
}

.vehicle-image-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: #fff;
    color: #000;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.vehicle-type {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    background: rgba(15, 125, 92, 0.9); /* Primary color */
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
}

.vehicle-content {
    padding: 15px 20px; /* Daha kompakt padding */
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-info {
    flex: 1;
}

.vehicle-name {
    font-size: 1.15rem; /* Biraz küçültüldü */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px; 
}

.vehicle-features {
    display: flex;
    gap: 12px;
    margin-bottom: 8px; /* Daha az boşluk */
    color: #666;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem; /* Biraz küçültüldü */
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.feature i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* Vehicle Services List */
.vehicle-services {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #eee;
}

.vehicle-services h4 {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.vehicle-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px; /* Daha sıkı gap */
}

.vehicle-services li {
    font-size: 0.8rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.vehicle-services li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.vehicle-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding-left: 20px;
    border-left: 1px solid #eee;
    min-width: 140px;
}

.price-info {
    color: var(--primary-color);
    font-weight: 700;
    text-align: right;
}

.price-info .currency {
    font-size: 1rem;
    vertical-align: top;
}

.price-info .amount {
    font-size: 1.6rem;
    line-height: 1;
}

.btn-select {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-select:hover {
    background: #0b5c43;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .selection-layout {
        grid-template-columns: 1fr; /* Mobilde ve tablette tek sütun */
        gap: 30px;
    }

    .summary-column {
        position: static; /* Sticky özelliğini kaldır */
        order: 1; /* En alta al (veya order'ı kaldırabilirsin çünkü HTML'de zaten sonda) */
    }

    .vehicle-selection-page {
        padding-top: 100px;
    }

    .vehicle-card {
        flex-direction: column; 
        align-items: stretch;
    }

    .vehicle-image-slider {
        width: 100%; /* Mobilde tam genişlik */
        min-height: 220px; /* Biraz daha yüksek olsun */
        height: auto;
    }

    .vehicle-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 20px;
    }

    .vehicle-footer {
        width: 100%;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .btn-select {
        width: auto;
    }
}

@media (max-width: 768px) {
    .vehicle-selection-page {
        padding-top: 90px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .container {
        padding: 0 5px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    /* Vehicle Card Mobile Optimization */
    .vehicle-card {
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    }

    .vehicle-image-slider {
        min-height: 200px;
    }

    .vehicle-content {
        padding: 15px;
        gap: 15px;
    }

    .vehicle-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .vehicle-features {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    .feature {
        font-size: 0.75rem;
        padding: 4px 8px;
        flex: 2 2 40%; /* 2 sütunlu grid gibi davran */
        justify-content: center;
        white-space: nowrap;
    }

    .vehicle-footer {
        flex-direction: row; /* Fiyat ve buton yan yana */
        align-items: center;
        gap: 10px;
        padding-top: 15px;
    }

    .price-info .amount {
        font-size: 1.4rem;
    }

    .btn-select {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}
