/* =======================================================
   HOME.CSS - SADECE HOME.PHP İÇİN KOMPLE STANDALONE CSS
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ROOT VE GENEL RESETLER */
:root {
    --primary: #006994;       
    --primary-dark: #00507a;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --text: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* GENEL SINIFLAR (home sayfasında kullanılıyor) */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }

/* SECTION TITLE */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h3 { font-size: 2.5rem; margin-bottom: 10px; color: var(--secondary); font-weight: 700; }
.section-title p { color: var(--text-light); font-size: 1.1rem; }

/* SLIDER SYSTEM */
.slider-container { position: relative; display: flex; align-items: center; gap: 20px; }
.slider-track { display: flex; gap: 30px; overflow-x: auto; padding: 20px 5px; scroll-behavior: smooth; width: 100%; scroll-snap-type: x mandatory; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-btn {
    width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--white); color: var(--secondary);
    box-shadow: var(--shadow); cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); z-index: 5; flex-shrink: 0;
}
.slider-btn:hover { background: var(--primary); color: var(--white); }
.slider-prev, .slider-next { /* ek stil yok, zaten slider-btn */ }

/* ROUTE CARDS */
.route-card {
    min-width: 300px; height: 400px; border-radius: var(--radius); overflow: hidden;
    position: relative; scroll-snap-align: center; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
}
.route-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.route-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.route-card:hover .route-img { transform: scale(1.1); }
.route-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px 20px; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end;
}

/* TOUR CARDS */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.tour-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); border: 1px solid #f0f0f0;
}
.tour-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card-image { height: 240px; position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.tour-card:hover .card-image img { transform: scale(1.1); }
.price-tag {
    position: absolute; bottom: 15px; right: 15px; background: var(--primary); color: var(--white);
    padding: 6px 18px; border-radius: 50px; font-weight: 700; font-size: 1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.card-body { padding: 25px; }
.card-body h4 { margin-bottom: 12px; font-size: 1.25rem; color: var(--secondary); }
.card-body p { color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }

/* BUTTONS */
.btn-outline {
    display: block; width: 100%; text-align: center; border: 2px solid var(--primary); color: var(--primary);
    padding: 12px; border-radius: 8px; font-weight: 600; transition: var(--transition); text-decoration: none;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline.style-light {
    border-color: rgba(255,255,255,0.8); color: rgba(255,255,255,0.95);
}
.btn-outline.style-light:hover {
    background: rgba(255,255,255,0.95); color: var(--primary);
}

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.feature-box { padding: 30px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); text-align: center; }
.feature-box:hover { transform: translateY(-5px); }
.feature-box h4 { margin: 15px 0 10px; font-size: 1.15rem; color: var(--secondary); }

/* PARTNERS SECTION */
.partners-section { background: var(--bg-light); }
.partners-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center; }
.partner-item img { filter: grayscale(100%); opacity: 0.6; transition: var(--transition); }
.partner-item img:hover { filter: none; opacity: 1; transform: scale(1.1); }

/* SEO INFO SECTION */
.seo-info-section { background: #fdfdfd; padding: 40px 0; border-top: 1px solid #eee; }

/* ======================================================= 
   HOME SAYFASINA ÖZEL HERO VE ARAMA BÖLÜMÜ
   ======================================================= */

.home-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    /* overflow: hidden;  <-- BU SATIRI SİLİN VEYA AŞAĞIDAKİ GİBİ YAPIN */
    overflow: visible; /* Menünün dışarı taşmasına izin ver */
    z-index: 10; /* Alt bölümün üstünde kalmasını sağla */
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/didim.webp') center/cover;
    opacity: 0.12;
    z-index: 0;
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 105, 148, 0.92) 0%, rgba(44, 62, 80, 0.88) 100%);
    z-index: 1;
}

.home-hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* SOL TARAF - ARAMA KARTI */
.home-search-wrapper {
    animation: homeSlideLeft 0.8s ease;
}

@keyframes homeSlideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.home-search-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    /* AŞAĞIDAKİLERİ EKLEYİN */
    position: relative;
    z-index: 1000; /* Menünün her şeyin üstünde açılmasını garantiye al */
}

.home-search-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.home-search-header i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.home-search-header h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 6px;
    font-weight: 700;
}

.home-search-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* SEFER TİPİ */
.home-trip-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.home-radio input {
    display: none;
}

.home-radio-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
    font-size: 0.9rem;
    color: #666;
}

.home-radio-box i {
    font-size: 1rem;
}

.home-radio input:checked + .home-radio-box {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #0088bb);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 105, 148, 0.25);
}

/* FORM GRUPLARI */
.home-form-group {
    margin-bottom: 16px;
}

.home-form-group label {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.home-form-group label i {
    color: var(--primary);
    margin-right: 6px;
    font-size: 0.9rem;
}

.home-form-group input,
.home-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text);
}

.home-form-group input:focus,
.home-form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 105, 148, 0.08);
    outline: none;
}

/* ROTA SEÇİMİ */
.home-route-wrapper {
    position: relative;
}

.home-route-input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.home-dropdown-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
    font-size: 0.9rem;
}

.home-route-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.home-route-dropdown.active {
    display: block;
    animation: homeDropSlide 0.3s ease;
}

@keyframes homeDropSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-route-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.home-route-option:hover {
    background: #f5f5f5;
}

.home-route-option.selected {
    background: linear-gradient(135deg, var(--primary), #0088bb);
    color: white;
}

.home-route-option i {
    color: var(--primary);
    font-size: 0.9rem;
}

.home-route-option.selected i {
    color: white;
}

/* TARİHLER */
.home-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* YOLCU SEÇİMİ */
.home-passenger-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.home-passenger-trigger:hover {
    border-color: var(--primary);
}

.home-passenger-trigger input {
    border: none;
    cursor: pointer;
    flex: 1;
    padding: 0;
    font-weight: 500;
    background: transparent;
    font-size: 0.95rem;
}

.home-passenger-trigger i {
    color: var(--primary);
    font-size: 0.9rem;
}

.home-passenger-group {
    position: relative;
}

.home-passenger-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
}

.home-passenger-dropdown.active {
    display: block;
    animation: homeDropSlide 0.3s ease;
}

.home-passenger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.home-passenger-item:last-of-type {
    border-bottom: none;
}

.home-passenger-item strong {
    display: block;
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.home-passenger-item small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.home-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-counter button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-counter button:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
}

.home-counter span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    min-width: 25px;
    text-align: center;
}

.home-passenger-done {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.home-passenger-done:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ARAMA BUTONU */
.home-btn-search {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    box-shadow: 0 6px 18px rgba(231, 76, 60, 0.35);
    transition: all 0.3s ease;
}

.home-btn-search:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.45);
}

.home-btn-search i {
    font-size: 1.1rem;
}

/* SAĞ TARAF - HERO İÇERİK */
.home-content-wrapper {
    animation: homeSlideRight 0.8s ease;
    color: white;
}

@keyframes homeSlideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.home-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.home-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.home-description {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 35px;
    max-width: 580px;
}

.home-features {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.home-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.home-feature i {
    font-size: 1.3rem;
    color: #4ade80;
}

.home-feature span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .home-hero-container {
        grid-template-columns: 400px 1fr;
        gap: 50px;
    }
    .home-title { font-size: 3rem; }
}

@media (max-width: 992px) {
    .home-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 20px;
    }
    .home-search-wrapper {
        order: 2;
    }
    .home-content-wrapper {
        order: 1;
        text-align: center;
    }
    .home-features {
        justify-content: center;
    }
    .home-search-card {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .tour-grid, .features-grid { grid-template-columns: 1fr; }
    .slider-btn { display: none; }
}

@media (max-width: 576px) {
    .home-title { font-size: 2.2rem; }
    .home-description { font-size: 1rem; }
    .home-search-card { padding: 28px 22px; }
    .home-date-row { grid-template-columns: 1fr; }
    .home-trip-type { grid-template-columns: 1fr; }
    .home-hero-container { padding: 40px 15px; }
}
/* --- POPÜLER BLOG SLIDER (Draggable & Auto Scroll) --- */
.blog-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    /* Kenarlarda hafif gölgeli fade efekti (Opsiyonel) */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.blog-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    /* Scrollbar'ı gizle ama scroll özelliğini koru */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
    cursor: grab; /* Tutulabilir imleci */
    padding-bottom: 10px; /* Gölge payı */
}

.blog-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.blog-slider-track:active {
    cursor: grabbing; /* Tutunca sıkan el imleci */
}

.blog-slide-card {
    min-width: 270px; /* Kart genişliği daraltıldı */
    width: 270px;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
    user-select: none; /* Sürüklerken metin seçilmesin */
}

.blog-slide-card:hover {
    transform: translateY(-5px);
}

/* Kartın içindeki resimlerin sürüklenmesini engelle (Bug önleyici) */
.blog-slide-card img {
    pointer-events: none; 
}

@media (max-width: 768px) {
    .blog-slide-card {
        min-width: 240px; /* Mobilde daha da dar */
        width: 240px;
    }
}