/* Temel Ayarlar ve Değişkenler */
:root {
    --primary-color: #6f42c1; /* Mor */
    --secondary-color: #fd7e14; /* Portakal */
    --text-color: #333;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth; /* Yumuşak kaydırma */
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.section { padding: 40px 0; }

/* =========================================
   SABİT VE BEYAZ HEADER (MENÜ)
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white); /* Artık her zaman beyaz */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Her zaman hafif gölgeli */
    padding: 15px 0; /* İnce ve zarif boşluk */
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--primary-color); /* Yazı logoları için her zaman renkli */
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
}

.logo span { color: var(--secondary-color); }

nav ul {
    list-style: none;
    display: flex;
}

nav ul li { margin-left: 20px; }

nav ul li a {
    color: var(--text-color); /* Linkler her zaman koyu gri/siyah okunabilir renk */
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover { 
    color: var(--secondary-color); /* Üzerine gelince portakal rengi olur */
}

.mobile-menu-icon {
    display: none;
    color: var(--primary-color); /* Mobil ikon her zaman mor/renkli */
    font-size: 24px;
    cursor: pointer;
}
/* =========================================
   LOGO TASARIMI VE BOYUTLANDIRMASI
   ========================================= */

.site-logo {
    height: 55px; /* Yüksekliği artırıldı */
    width: inherit;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: flex;
}

/* Mouse ile üzerine gelince çok hafif ve şık bir parlama/büyüme efekti */
.site-logo:hover {
    transform: scale(1.05);
}

/* Mobil Görünüm (Cep Telefonları) İçin İnce Ayar */
@media (max-width: 768px) {
    .site-logo {
        height: 55px; /* Mobilde ekranı çok kaplamaması için küçültüldü */
    }
}

/* =========================================
   YENİ SABİT HERO BANNER (SOLDA WIDGET)
   ========================================= */

.hero-banner {
    position: relative;
    height: auto;
    min-height: 600px;
    padding-top: 140px; /* Menünün altında kalmaması için boşluk */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

/* Hero Banner Arka Plan ve Slider Ayarları */
.hero-banner .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Başlangıçta görünmez */
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-banner .slide.active {
    opacity: 1; /* Sadece aktif olan resim görünür */
}

/* Resmin üzerine gelen siyah tül */
.hero-banner .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 2;
}

/* ARTIK SAĞ TARAF: Yazılar ve Butonlar */
.hero-text-side {
    flex: 1.2;
    color: white;
    text-align: right; /* Yazıları sağa yaslar */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* İçeriği sağ kenara iter */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 450px;
    color: #f1f2f6;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end; /* Butonları sağa hizalar */
}

.btn-white-solid {
    background-color: #ffffff;
    color: #2c3e50;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-white-solid:hover {
    background-color: #f1f2f6;
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ARTIK SOL TARAF: Widget */
.hero-widget-side {
    flex: 1;
    display: flex;
    justify-content: flex-start; /* Widget'ı sola yaslar */
}

/* Widget Container Stilleri */
.hero-banner .ticket-widget {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 420px; /* 450px'den 420px'e düşürdük, standart PC'lerde taşmaz */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    text-align: left;
    border-top: 5px solid var(--secondary-color);
    
    position: relative;
    /* Sabit pikselleri SİLİYORUZ, hizalamayı kapsayıcıya (flex) bırakıyoruz */
    left: 0; 
    top: 0;
    margin: 0;
}
/* =========================================
   STANDART BİLGİSAYARLAR VE LAPTOPLAR İÇİN İNCE AYAR
   ========================================= */
@media (max-width: 1200px) {
    .hero-banner {
        min-height: 500px; /* Ekran yüksekliğini laptoplara göre daralt */
    }
    .hero-content-wrapper {
        gap: 20px; /* Widget ile yazılar arasındaki devasa boşluğu azalt */
    }
    .hero-title {
        font-size: 2.8rem; /* Başlığı bir tık küçült ki ekrana sığsın */
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-banner .ticket-widget {
        max-width: 380px; /* Standart PC'lerde widget bir tık daralsın ve tam otursun */
    }
}
/* Mobil Cihazlar İçin Ayarlar (Banner) */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column; 
        text-align: center;
    }
    
    /* Sizin verdiğiniz px değerlerini mobilde sıfırlar ki kutu taşmasın */
    .hero-banner .ticket-widget {
        left: 0 !important;
        top: 0 !important;
        margin: 0 auto !important;
    }

    .hero-text-side {
        margin-top: 40px;
        text-align: center; 
        align-items: center;
    }
    .hero-subtitle {
        margin: 0 auto 30px auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-widget-side {
        justify-content: center;
        width: 100%;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Genel Buton Stilleri */
.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background: #e06c00;
    transform: translateY(-3px);
}

/* Kartlar (Seferler) - Popüler Seferler Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Popüler Seferler Özel Kart Tasarımı */
.route-card {
    padding: 0 !important; /* Eski .card padding'ini eziyoruz */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: none;
}

.route-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.route-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.route-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.route-card:hover .route-img img {
    transform: scale(1.1); /* Zoom efekti */
}

.route-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.route-info {
    padding: 25px 20px;
    text-align: center;
}

.route-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.route-info p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Rezervasyon Formu (Sayfa İçi) */
.booking-form {
    max-width: 800px;
    margin: 40px auto 0;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* İletişim ve Harita */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.contact-info p { font-size: 18px; margin-bottom: 15px; }
.contact-info i { color: var(--primary-color); margin-right: 10px; }

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Animasyon Sınıfları */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Genel Mobil Uyum Ayarları */
@media (max-width: 768px) {
    .booking-form, .contact-grid { grid-template-columns: 1fr; }
  
    .mobile-menu-icon { display: block; }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    nav.active { display: block; }
    
    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    nav ul li { margin: 15px 0; text-align: center; }
    nav ul li a { color: var(--text-color); }
}

/* --- WIDGET İÇERİK STİLLERİ --- */

.widget-tabs {
    display: flex;
    background-color: transparent;
    padding: 10px 20px 0 20px;
    border-bottom: 1px solid #eee;
}
.widget-tab {
    flex: 1;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #9ca3af;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
    padding: 12px;
    border-radius: 0;
    margin: 0;
    position: relative;
    font-size: 1rem;
}
.widget-tab.active {
    color: var(--primary-color);
    background-color: transparent;
    box-shadow: none;
    border-bottom: 3px solid var(--primary-color);
}
.widget-tab:hover { background-color: transparent; color: var(--primary-color); }

.widget-content {
    padding: 25px;
    display: none;
}
.widget-content.active { display: block; }

/* Arama Formu İçi */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.direction {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check-input {
    accent-color: var(--secondary-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.station, .datepicker .departure, .datepicker .return {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 12px 12px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--white);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
    outline: none;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    flex: 1;
}

.btn-white {
    background-color: #f8f9fa;
    color: var(--text-color);
    border: 1px solid #d1d5db;
}

.btn-white:hover {
    background-color: #e2e6ea;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    flex: 2;
}

/* PNR Formu İç İkonlar */
.pnr-form .form-group {
    margin-bottom: 15px;
    position: relative;
}

.pnr-form .form-control {
    padding-left: 40px;
}

.pnr-form i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
}

.d-none { display: none !important; }
.w-100 { width: 100%; }

/* Filomuz ve Hizmetlerimiz Bölümü Stilleri */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.feature-box {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid #3498db;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: #e8f4fd;
    color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px auto;
    transition: background-color 0.3s, color 0.3s;
}

.feature-box:hover .feature-icon {
    background-color: #3498db;
    color: #ffffff;
}

.feature-box h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-box p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   WHATSAPP BALONU VE ANİMASYONLARI
   ========================================= */

.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.whatsapp-tooltip {
    background-color: #ffffff;
    color: #2c3e50;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-right: 15px;
    position: relative;
    animation: float-tooltip 3s ease-in-out infinite;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.whatsapp-float {
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes float-tooltip {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    .whatsapp-tooltip {
        font-size: 12px;
        padding: 8px 12px;
        margin-right: 10px;
    }
}