* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo h1 {
    color: #0066ff;
    font-size: 28px;
    margin: 0;
    transition: opacity 0.3s;
}

.logo a:hover h1 {
    opacity: 0.8;
}

.logo span {
    font-size: 14px;
    color: #666;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* Hero ve Arama Formu */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('https://as2.ftcdn.net/jpg/05/23/60/51/1000_F_523605108_MRN7kumlZX1CnFdBx4GUXrP5arzAn8Ov.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 40px;
}

.search-form {
    background: white;
    color: #333;
    border-radius: 12px;
    padding: 30px;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
}

.stations {
    display: flex;
    align-items: end;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.input-group {
    flex: 1;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 10;
    display: none;
}

.suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:hover {
    background-color: #f0f8ff;
}

.swap-btn {
    background: #0066ff;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    flex-shrink: 0;
}

.trip-type {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.type-btn {
    padding: 10px 20px;
    border: 2px solid #0066ff;
    background: white;
    color: #0066ff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.type-btn.active {
    background: #0066ff;
    color: white;
}

.dates {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.return-date {
    opacity: 0.6;
}

.search-btn {
    background: #00c1b5;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.search-btn:hover {
    background: #00a89d;
}

/* Popüler Rotalar, Hakkımızda, Hizmetler */
.popular-routes { padding: 80px 0; background: #f8f9fa; }
.popular-routes h3 { text-align: center; margin-bottom: 50px; font-size: 32px; color: #333; }
.routes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.route-card { height: 200px; border-radius: 12px; overflow: hidden; position: relative; background-size: cover; background-position: center; }
.route-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.route-card .content { position: absolute; bottom: 20px; left: 20px; color: white; z-index: 2; }
.route-card h4 { font-size: 20px; margin-bottom: 8px; }
.route-card p { font-size: 22px; }

.about-section { padding: 80px 0; background: white; text-align: center; }
.about-section h2 { font-size: 36px; margin-bottom: 30px; color: #0066ff; }
.about-main-text p { font-size: 18px; line-height: 1.6; max-width: 800px; margin: 0 auto 20px; color: #333; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.team-card { background: #f0f8ff; padding: 20px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.services-section { padding: 80px 0; background: #f8f9fa; text-align: center; }
.services-section h2 { font-size: 36px; margin-bottom: 20px; color: #0066ff; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 40px 20px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: transform 0.3s; }
.service-card:hover { transform: translateY(-10px); }

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Canlı Destek */
.live-support-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #00c1b5;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
}

.live-support-btn:hover { transform: scale(1.1); }

.live-support-chat {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.live-support-chat.active { display: flex; }

.chat-header {
    background: #00c1b5;
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 { margin: 0; font-size: 18px; }
.close-chat { cursor: pointer; font-size: 24px; font-weight: bold; }

.chat-body { padding: 20px; flex-grow: 1; background: #f8f9fa; max-height: 300px; overflow-y: auto; }
.chat-footer { padding: 15px; display: flex; gap: 10px; border-top: 1px solid #eee; }
.chat-footer input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 8px; }
.chat-footer button { background: #00c1b5; color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: not-allowed; }

/* Yükleme Ekranı */
/* Yükleme Ekranı - DÜZELTİLDİ (Tam Ortalanmış) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;     /* Dikey ortalama */
    justify-content: center; /* Yatay ortalama */
    z-index: 1000;
    flex-direction: column;  /* İç elementleri alt alta dizer */
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner i {
    color: #0066ff;
    font-size: 58px;         /* Biraz büyüttük, daha belirgin olsun */
    margin-bottom: 20px;
    animation: spin 1.5s linear infinite; /* Opsiyonel: dönen animasyon ekledik */
}

.loading-spinner p {
    margin-top: 0;
    font-size: 22px;
    font-weight: bold;
    color: #0066ff;
    letter-spacing: 0.5px;
}

/* Dönen animasyon (isteğe bağlı ama güzel duruyor) */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Seferler Modal */
.sefers-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.sefers-modal.active { display: flex; }

.sefers-content {
    background: white;
    border-radius: 25px;
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    animation: modalZoomIn 0.4s ease-out;
}

@keyframes modalZoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.close-sefers {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 45px;
    cursor: pointer;
    color: #aaa;
    z-index: 10;
    transition: color 0.3s;
}

.close-sefers:hover { color: #333; }

.sefers-content h2 { text-align: center; font-size: 38px; margin: 40px 0 15px; color: #0066ff; font-weight: bold; }
#sefer-route { text-align: center; font-size: 28px; font-weight: bold; color: #0066ff; margin-bottom: 40px; }

.sefers-list { padding: 0 50px 60px; }

.sefer-item {
    background: linear-gradient(135deg, #f0f8ff, #e8f4ff);
    border: 2px solid #bbdfff;
    border-radius: 20px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 12px 30px rgba(0,102,255,0.15);
    transition: all 0.4s ease;
}

.sefer-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,102,255,0.3);
    border-color: #0066ff;
}

.sefer-info p {
    margin: 15px 0;
    font-size: 20px;
    line-height: 1.6;
}

.sefer-info strong {
    color: #0066ff;
    font-size: 22px;
}

.sefer-info p:last-child {
    font-size: 32px;
    color: #0066ff;
    font-weight: bold;
    margin-top: 20px;
}

.sefer-btn {
    background: #0066ff;
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0,102,255,0.3);
}

.sefer-btn:hover {
    background: #0050c0;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,102,255,0.4);
}

/* Koltuk Seçim Modal */
.seat-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.seat-modal.active { display: flex; }

.seat-content {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    padding: 30px;
}

.close-seat {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    cursor: pointer;
    color: #999;
}

.close-seat:hover { color: #333; }

.seat-content h2 { text-align: center; font-size: 32px; margin-bottom: 30px; color: #0066ff; }

.seat-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 25px;
    background: #f0f8ff;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 17px;
    font-weight: bold;
}

.header-item.price { font-size: 28px; color: #0066ff; }

.wagon {
    background: #ffffff;
    border: 6px solid #0066ff;
    border-radius: 30px;
    padding: 60px 50px 50px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,102,255,0.2);
    display: inline-block;
    min-width: 700px;
}

.wagon-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0066ff;
    color: white;
    padding: 15px 60px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.seats-container { display: flex; flex-direction: column; gap: 35px; }
.seat-row { display: flex; justify-content: center; align-items: center; gap: 80px; }
.seat-group.left { display: flex; gap: 30px; justify-content: flex-end; }
.seat-group.right { display: flex; gap: 30px; justify-content: flex-start; }

.aisle {
    width: 140px;
    height: 6px;
    background: repeating-linear-gradient(90deg, #ccc, #ccc 25px, transparent 25px, transparent 50px);
    border-radius: 3px;
}

.train-seat {
    width: 85px;
    height: 85px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #aaa;
    background: #f8f8f8;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Koltuk Renkleri - Güncellendi (Gri, Mavi, Pembe) */

.train-seat.empty {
    background: #f0f0f0;      /* Boş koltuk - Açık gri */
    border-color: #cccccc;    /* Gri kenarlık */
}

.train-seat.male {
    background: #a0c4ff;      /* Dolu Erkek - Açık mavi */
    border-color: #6ea8fe;     /* Daha belirgin mavi kenarlık */
    cursor: not-allowed;
}

.train-seat.female {
    background: #ffb6c1;      /* Dolu Kadın - Açık pembe */
    border-color: #ff8fab;     /* Canlı pembe kenarlık */
    cursor: not-allowed;
}

.train-seat.selected {
    background: #32cd32;
    color: white;
    border-color: #228b22;
    transform: translateY(-12px) scale(1.15);
    box-shadow: 0 20px 40px rgba(50,205,50,0.5);
}

/* Hover efekti sadece boş koltuklar için */
.train-seat:hover:not(.male):not(.female):not(.selected) {
    background: #e0e0e0;      /* Hover'da biraz daha koyu gri */
    transform: translateY(-12px) scale(1.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Legend (Açıklama Kısmı) */
.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: center;
    margin: 50px 0 40px;
    font-size: 18px;
    font-weight: bold;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Legend'deki örnek koltuklar tıklanamaz ve normal imleç */
.seat-legend .legend-item {
    pointer-events: none;
    user-select: none;
}

.seat-legend .legend-item .train-seat,
.legend-item .train-seat {
    cursor: default;
    pointer-events: none;
    width: 40px;
    height: 40px;
    font-size: 16px;
    box-shadow: none;
    transform: none;
}

/* Legend örnekleri de aynı renkleri alsın */
.legend-item .train-seat.empty { 
    background: #f0f0f0; 
    border-color: #cccccc; 
}
.legend-item .train-seat.male { 
    background: #a0c4ff; 
    border-color: #6ea8fe; 
}
.legend-item .train-seat.female { 
    background: #ffb6c1; 
    border-color: #ff8fab; 
}
.legend-item .train-seat.selected { 
    background: #32cd32; 
    border-color: #228b22; 
}

.approve-btn {
    background: #00c1b5;
    color: white;
    border: none;
    padding: 22px 70px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,193,181,0.4);
}

.approve-btn:hover {
    background: #00a89d;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,193,181,0.5);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    z-index: 1000;
    display: none;
    text-align: center;
}

.cookie-popup.active {
    display: block;
}

.cookie-popup h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.cookie-popup p {
    margin-bottom: 25px;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

#choose-cookies, #accept-cookies {
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 160px;
}

#choose-cookies {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

#choose-cookies:hover {
    background: #e0e0e0;
}

#accept-cookies {
    background: #0066ff;
    color: white;
    border: none;
}

#accept-cookies:hover {
    background: #0052cc;
}

/* Responsive */
@media (max-width: 768px) {
    .sefers-content, .seat-content {
        width: 98%;
        padding: 20px;
        border-radius: 20px;
    }

    .wagon {
        min-width: auto;
        padding: 40px 20px;
    }

    .train-seat {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }

    .aisle {
        width: 60px;
    }

    .seat-header {
        grid-template-columns: 1fr;
        gap: 15px;
        font-size: 15px;
    }

    .header-item.price {
        font-size: 22px;
    }

    .approve-btn {
        padding: 18px 50px;
        font-size: 20px;
    }

    .sefer-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }

    .sefer-btn {
        width: 100%;
        padding: 18px;
    }

    .sefers-content h2 {
        font-size: 30px;
    }

    #sefer-route {
        font-size: 22px;
    }

    .sefer-info p {
        font-size: 18px;
    }

    .sefer-info p:last-child {
        font-size: 28px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    #choose-cookies, #accept-cookies {
        width: 100%;
    }
}
/* Responsive Tasarım - Tüm Site İçin Eklemeler ve Düzeltmeler */

/* Genel Container ve Flex/Grid Responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Menü - Mobilde Hamburger Menü (Basit Çözüm) */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        display: none; /* Başta gizli */
        background: white;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex; /* JS ile açılacak */
    }

    nav li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    /* Hamburger ikon ekle (Font Awesome ile) */
    .mobile-menu-btn {
        display: block;
        font-size: 28px;
        cursor: pointer;
        align-self: flex-end;
    }
}

/* Arama Formu Responsive */
@media (max-width: 992px) {
    .stations {
        flex-direction: column;
    }

    .swap-btn {
        align-self: center;
        margin: 10px 0;
    }

    .dates {
        flex-direction: column;
    }
}

/* Popüler Rotalar Grid */
.routes-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Hakkımızda ve Referanslar */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .logos-grid img {
        max-height: 60px;
    }
}

/* Modal'lar (Seferler ve Koltuk Seçimi) */
@media (max-width: 768px) {
    .sefers-content, .seat-content {
        width: 98%;
        padding: 20px;
        border-radius: 20px;
    }

    .wagon {
        min-width: auto;
        padding: 40px 20px;
    }

    .train-seat {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }

    .aisle {
        width: 60px;
    }

    .seat-header {
        grid-template-columns: 1fr;
        gap: 15px;
        font-size: 15px;
    }

    .header-item.price {
        font-size: 22px;
    }

    .approve-btn {
        padding: 18px 50px;
        font-size: 20px;
    }

    .sefer-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }

    .sefer-btn {
        width: 100%;
        padding: 18px;
    }
}

/* Cookie Popup Mobilde */
@media (max-width: 600px) {
    .cookie-popup {
        width: 95%;
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    #choose-cookies, #accept-cookies {
        width: 100%;
        margin-bottom: 10px;
    }
}
/* Foto Galeri Lightbox (Tıklayınca büyük açılır) */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,102,255,0.3);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
}