/* =========================================================
   1. GENEL AYARLAR VE DEĞİŞKENLER
   ========================================================= */
:root {
    --primary-color: #008B8B; /* Turkuaz */
    --secondary-color: #DAA520; /* Altın Sarısı */
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
    overflow-x: hidden; /* Yatay taşmayı engelle */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    line-height: 1.3;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Konteyner Yapısı */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-padding { padding: 60px 0; }

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: #006666; transform: translateY(-2px); }

.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background: var(--primary-color); color: #fff; }

.btn-green { background: #25d366; color: #fff; } /* WhatsApp Yeşili */
.btn-green:hover { background: #128c7e; }

.full-width { width: 100%; }

/* =========================================================
   2. HEADER VE NAVİGASYON (MOBİL UYUMLU)
   ========================================================= */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo */
.logo {
    flex: 1; /* Sol tarafın genişleyebildiği kadar genişlemesini sağlar */
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

/* Orta Taraf (Navigasyon) */
.navbar {
    flex: 1; /* Orta taraf sadece içeriği kadar yer kaplasın */
}

/* Navigasyon Linkleri (Masaüstü) */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Para Birimi ve Mobil Menü Butonu */
.header-right {
    flex: 1; /* Sağ taraf da sol tarafla EŞİT oranda genişler */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* İçindekileri en sağa yasla */
    gap: 15px;
}

.para-birimi-kutusu select {
    background: #f1f1f1;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none; /* Masaüstünde gizli */
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* =========================================================
   3. HERO BANNER VE SAYFA BAŞLIKLARI
   ========================================================= */
.hero-section {
    height: 100vh; /* Tam ekran */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding-top: 70px; /* Header payı */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Sayfa Üst Başlıkları (Page Header) */
.page-header {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-top: 70px;
}

.page-header .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}

/* =========================================================
   4. ANA SAYFA - GENİŞLEYEN KARTLAR (EXPLORE SECTION)
   ========================================================= */
.explore-section {
    display: flex;
    width: 100%;
    height: 600px; /* Sabit yükseklik */
    overflow: hidden;
    background: #000;
}

.panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    flex: 1; /* Hepsi eşit başlar */
    margin: 0;
    position: relative;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.7;
}

.panel.active {
    flex: 5; /* Aktif olan genişler */
    opacity: 1;
}

.panel h3 {
    font-size: 1.5rem;
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    opacity: 1;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.panel p, .explore-btn {
    display: none; /* Sadece aktifte göster */
}

.panel.active p {
    display: block;
    position: absolute;
    bottom: 80px;
    left: 20px;
    font-size: 1rem;
    max-width: 80%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.panel.active .explore-btn {
    display: inline-block;
    position: absolute;
    bottom: 30px;
    right: 20px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* =========================================================
   5. TURLAR SAYFASI (LİSTELEME) - GÜNCELLENEN ALAN
   ========================================================= */
.tour-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar Düzenlemesi - Sticky ve Scroll Özelliği */
.sidebar {
    flex: 1;
    min-width: 250px;
    position: sticky;
    top: 90px;
    /* Uzun listeler için içerik scroll olsun, sayfa uzamasın */
    max-height: calc(100vh - 110px); 
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox için ince scrollbar */
}

/* Webkit Scrollbar (Chrome, Safari, Edge) */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.2); border-radius: 3px; }

.filter-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-box h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.filter-box ul li a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #555;
    font-weight: 600;
}

.filter-box ul li a:hover, .filter-box ul li a.active {
    color: var(--primary-color);
    padding-left: 5px;
}

.tours-list {
    flex: 3;
    width: 100%;
}

/* Yatay Tur Kartı */
.tour-card-horizontal {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.tour-card-horizontal:hover { transform: translateY(-5px); }

.th-img {
    flex: 2;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.th-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.th-content {
    flex: 3;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.th-content h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.th-features {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.th-feature-item {
    font-size: 0.85rem;
    background: #f4f4f4;
    padding: 5px 10px;
    border-radius: 4px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.th-feature-item i { color: var(--primary-color); }

.th-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.th-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.th-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* =========================================================
   6. TUR DETAY SAYFASI
   ========================================================= */
.detail-layout {
    display: flex;
    gap: 40px;
}

.detail-content { flex: 2; width: 100%; }
.booking-sidebar { flex: 1; width: 100%; }

.detail-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.detail-section h3 {
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

/* Tur Programı */
.day-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 20px;
}

.day-number {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--secondary-color);
    min-width: 80px;
}

/* Rezervasyon Kartı (Sağ) */
.booking-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.price-area {
    text-align: center;
    margin-bottom: 20px;
}

.price-area .price {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
}

/* =========================================================
   7. İLETİŞİM VE HAKKIMIZDA
   ========================================================= */
.contact-layout, .about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info, .contact-form, .about-text, .about-img {
    flex: 1;
    width: 100%;
}

.about-img img { border-radius: 15px; }

/* Formlar */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* Harita */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 40px;
}
.map-container iframe { width: 100% !important; height: 100% !important; }

/* Hakkımızda İstatistikler */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Tane yan yana */
    gap: 20px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9; /* Üstüne ince çizgi */
}

.stat-item {
    text-align: center; /* Ortala */
    padding: 15px 5px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background: #fff;
    border: 1px solid transparent;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-item p {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* =========================================================
   8. FOOTER (ALT KISIM)
   ========================================================= */
.footer-section {
    background: #222;
    color: #bbb;
    padding-top: 60px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-logo h2 { color: #fff; }
.footer-logo span { color: var(--primary-color); }

.social-links a {
    display: inline-flex;
    width: 35px; height: 35px;
    background: #333;
    color: #fff;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 10px;
}
.social-links a:hover { background: var(--primary-color); }

.footer-links li a { color: #bbb; display: block; margin-bottom: 10px; }
.footer-links li a:hover { color: #fff; padding-left: 5px; }

.newsletter-form { display: flex; position: relative; }
.newsletter-form input {
    background: #333; border: none; color: #fff;
    padding: 12px; width: 100%; border-radius: 4px;
}
.newsletter-form button {
    position: absolute; right: 5px; top: 5px;
    background: var(--primary-color); color: #fff;
    border: none; padding: 7px 12px; border-radius: 4px;
}

.footer-bottom {
    background: #111;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* =========================================================
   9. MOBİL UYUMLULUK (RESPONSIVE) - KRİTİK BÖLÜM
   ========================================================= */
@media (max-width: 991px) {
    /* Tablet ve Küçük Laptoplar */
    .tour-layout, .detail-layout { flex-direction: column; }
    
    /* GÜNCELLEME: Sidebar Mobil Düzeni */
    .sidebar { 
        width: 100%; 
        position: relative; /* Sticky kaldır */
        top: 0;
        max-height: none; 
        margin-bottom: 20px;
        z-index: 1;
    }

    /* GÜNCELLEME: Mobil Filtre Alanı - Yatay Scroll Yapısı */
    .filter-box {
        padding: 15px;
        border-radius: 8px;
    }

    .filter-box h3 {
        font-size: 1rem;
        margin-bottom: 10px;
        border-bottom: none; /* Alt çizgiyi kaldır */
    }

    .filter-box ul {
        display: flex;
        overflow-x: auto; /* Yatay kaydırma */
        gap: 10px;
        padding-bottom: 5px; /* Scrollbar için boşluk */
        -webkit-overflow-scrolling: touch; /* Mobilde akıcı kaydırma */
    }

    .filter-box ul li {
        width: auto;
        flex-shrink: 0;
    }

    .filter-box ul li a {
        border: 1px solid #e0e0e0;
        border-radius: 50px; /* Hap (Pill) şekli */
        padding: 8px 16px;
        background: #fff;
        display: block;
        white-space: nowrap; /* Metin taşmasın */
        font-size: 0.9rem;
        text-align: center;
        border-bottom: 1px solid #e0e0e0; /* Orijinal stili ezmek için */
    }

    .filter-box ul li a:hover, .filter-box ul li a.active {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
        padding-left: 16px; /* Desktop'taki hover kaymasını sıfırla */
    }

    .booking-sidebar { width: 100%; }
    .booking-card { position: static; margin-top: 30px; }
    
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    /* Cep Telefonları */
    
    /* Header & Menü */
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: fixed;
        right: -100%; /* Menüyü sağa gizle */
        top: 70px;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        width: 80%;
        max-width: 300px;
        padding: 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
    }
    
    .nav-links.active { right: 0; } /* Menüyü aç */
    
    /* Hero */
    .hero-content h1 { font-size: 2.2rem; }
    .page-header h1 { font-size: 2rem; }
    .page-header { height: 250px; }

    /* Anasayfa Genişleyen Kartlar (Panel) - Mobil Düzeltme */
    .explore-section {
        flex-direction: column;
        min-height: 600px;
    }
    .panel {
        width: 100%;
        height: 60px;
        flex: none;
        position: relative;
    }
    .panel.active {
        flex-grow: 1;
        height: auto;
    }
    /* Panel İçeriği - Üst Üste Binmeyi Önleme */
    .panel h3 {
        font-size: 1.1rem;
        position: absolute;
        top: 20px;
        left: 20px;
        bottom: auto;
        margin: 0;
        opacity: 1;
        transform: rotate(0deg);
        width: 85%;
        text-align: left;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }
    .panel.active p {
        display: block;
        position: absolute;
        bottom: 20px;
        left: 20px;
        font-size: 0.9rem;
        line-height: 1.4;
        max-width: 65%; /* Butona yer aç */
        margin: 0;
        text-shadow: 0 2px 4px rgba(0,0,0,0.9);
        opacity: 0;
        animation: yaziGel 0.5s ease-in-out 0.3s forwards;
    }
    .panel.active .explore-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        padding: 0;
        background: var(--primary-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        font-size: 0;
        transition: transform 0.2s;
    }
    .panel.active .explore-btn::after {
        content: '\f061';
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 1.2rem;
        color: #fff;
    }
    .panel.active .explore-btn:active { transform: scale(0.9); }
    
    /* Tur Listesi */
    .tour-card-horizontal {
        flex-direction: column;
    }
    .th-img {
        min-width: 100%;
        height: 200px;
    }
    .th-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Hakkımızda & İletişim */
    .contact-layout, .about-content {
        flex-direction: column;
    }
    
    .stats {
        grid-template-columns: 1fr; /* Mobilde alt alta diz */
        gap: 15px;
        text-align: center;
    }
    
    .stat-item {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr; /* Tek kolon */
        text-align: center;
    }
    .newsletter-form { max-width: 100%; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
}