﻿/* Genel Ayarlar */
body, .flight-container, .popover, .flight-card, .detailed-flight-card, .increment-decrement, .btn-group {
    box-sizing: border-box;
}
/* Başlıklar (h1 - h6) için Poppins yazı tipi */
h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
}

/* a, button, ve label etiketleri için Poppins yazı tipi */
a, button, label {
    font-family: "Montserrat", sans-serif;
}

/* Normal metin ve body için Lato yazı tipi */
body, p {
    font-family: "Montserrat", sans-serif;
}
.date-display {
    font-size: 20px;
}

/* Genel Popover Ayarları */
.popover {
    max-width: 550px !important;
    width: 550px !important;
    max-height: 300px;
    overflow-x: hidden !important; /* Yatay scroll'u engelle */
    overflow-y: auto !important; /* Sadece dikey scroll */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popover-header {
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Popover İçindeki Liste Ayarları */
.popover-body ul, .popover-list {
    padding: 0;
    list-style: none;
    margin: 0;
}

.popover-content {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.popover-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 5px 0;
    width: 100%;
}

.popover-buttons a {
    text-decoration: none;
    color: black;
    display: block;
    padding: 8px 12px;
    text-align: center;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid #dee2e6;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

/* Tablet Görünümü (768px ve altı) */
@media (max-width: 768px) {
    .popover {
        max-width: 90vw !important;
        width: 90vw !important;
        max-height: 70vh;
        margin: 0 auto;
    }

    .popover-header {
        font-size: 16px;
        padding: 8px;
    }

    .popover-content {
        padding: 8px;
    }

    .popover .popover-content .popover-list {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        display: grid !important;
    }

    .popover-buttons a {
        padding: 10px 8px;
        font-size: 13px;
        white-space: normal;
        line-height: 1.3;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #dee2e6;
    }
}

/* Mobil Görünümü (480px ve altı) */
@media (max-width: 480px) {
    .popover {
        max-width: 95vw !important;
        width: 95vw !important;
        max-height: 60vh;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: fixed !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 9999;
    }

    .popover-header {
        font-size: 15px;
        padding: 8px;
    }

    .popover-content {
        padding: 8px;
    }

    .popover .popover-content .popover-list {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        display: grid !important;
    }

    .popover-buttons a {
        padding: 12px 10px;
        font-size: 14px;
        white-space: normal;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        word-wrap: break-word;
    }


    .popover::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
        pointer-events: none;
    }
}

/* Çok küçük ekranlar (360px ve altı) */
@media (max-width: 360px) {
    .popover {
        max-width: 98vw !important;
        width: 98vw !important;
        max-height: 55vh;
    }

    .popover-content {
        padding: 6px;
    }

    .popover-list {
        gap: 5px;
    }

    .popover-buttons a {
        padding: 10px 8px;
        font-size: 13px;
        min-height: 40px;
    }
}

/* Landscape modunda mobil cihazlar için */
@media (max-height: 500px) and (orientation: landscape) {
    .popover {
        max-height: 80vh !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .popover-header {
        padding: 6px;
        font-size: 14px;
    }

    .popover-content {
        padding: 6px;
    }

    .popover-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px;
    }

    .popover-buttons a {
        padding: 8px 6px;
        font-size: 12px;
        min-height: 36px;
    }
}

/* Custom Scrollbar Styling */
.popover::-webkit-scrollbar {
    width: 6px;
}


/* Yetişkin, Çocuk ve Bebek Sayısı Ayarlama Butonları */
.increment-decrement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px;
}

.increment-decrement .label {
    font-size: 16px;
}

.increment-decrement .value {
    font-weight: bold;
}

.increment-decrement .controls a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ced4da;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.increment-decrement .controls a:hover {
    background-color: #f1f1f1;
}
/* Büyük Ekranlar için (992px ve üzeri) */
@media (min-width: 992px) {
    .top-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .flight-time .left, .flight-time .middle, .flight-time .right {
        display: block;
    }
}
/* Kart İçeriklerini Yatay Hale Getirmek İçin Mobil Görünüm Ayarlamaları */
@media (max-width: 768px) {
    /* Paket seçenekleri kutusunu soldan hizalamak için */
    .d-flex.justify-content-between {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start; /* Soldan hizalama */
        gap: 10px; /* Paketler arası boşluk */
    }

    .package-option {
        max-width: calc(50% - 10px); /* Ekranın %50'sini kullan, boşluklar için -10px */
        flex: 1 1 calc(50% - 10px); /* Satırda yer varsa 2 paket yan yana gelecek şekilde ayarla */
        margin: 5px 0; /* Üst ve alt boşluk */
        padding: 10px;
        box-sizing: border-box;
        border: 2px solid #ddd;
        border-radius: 10px;
    }

    .package-option h6 {
        margin: 0 5px 0 0;
        font-size: 14px;
    }

 
    .package-option p {
        margin: 0;
        font-size: 14px;
        color: #4A60FB;
        font-weight: bold;
    }
    /* Kart içeriğini tek kolon olarak hizalamak için */
    .flight-list-box .top-content {
        display: flex;
        flex-direction: column; /* Dikey olarak hizala */
        align-items: flex-start;
        gap: 10px;
        width: 100%; /* Tam genişlikte */
    }
    /* Logoyu ve Pegasus yazısını yan yana yerleştirmek için */
    .top-content {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    /* Logo ve fiyatlandırma bilgisini yan yana getirmek için */
    .flight-logo, .pricing {
        display: flex;
        align-items: center;
    }
    .flight-logo {
        margin-right: 10px;
    }
    .pricing {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    /* Diğer öğelerin düzenini optimize etme */
    .flight-time, .flight-detils, .trip, .book-now {
        width: 100%;
        text-align: left;
    }
    /* Logoyu küçük ekranlarda daha uygun boyutta gösterme */
    .flight-logo img {
        width: 40px; /* Küçük ekranlar için logo boyutu */
        height: auto;
    }
    /* İçerik bileşenlerini tam genişliğe yaymak */
    .pricing, .flight-time, .flight-detils, .trip, .book-now {
        width: 100%; /* Her bileşenin tam genişlikte görünmesi için */
        text-align: left;
    }
    /* Görsel boyutunu küçük ekranlara uygun hale getirmek */
    .flight-logo img {
        width: 40px;
        height: auto;
    }

    /* Fiyat ve buton genişlik ayarları */
    .trip span, .book-now a {
        width: 100%; /* Tam genişlikte görünsün */
        text-align: center;
    }
    .book-now a {
        padding: 8px 20px;
        font-size: 14px;
        margin-top: 10px;
    }
}



/* Orta Boy Ekranlar (Tabletler) için (768px - 991px arası) */
@media (max-width: 991px) and (min-width: 768px) {
    .top-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .flight-time {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .flight-logo img {
        width: 50px;
    }

    .book-now a {
        font-size: 12px;
        padding: 6px 15px;
    }
}

/* Küçük Ekranlar (Telefonlar) için (576px - 767px arası) */
@media (max-width: 767px) and (min-width: 576px) {
    .flight-list-box {
        padding: 10px;
    }

    .top-content {
        align-items: flex-start;
    }

    .flight-time .left, .flight-time .middle, .flight-time .right {
        flex-direction: column;
        align-items: center;
    }

    .trip span, .book-now a {
        font-size: 12px;
    }

    .pricing h5, .pricing p {
        font-size: 14px;
    }

    .flight-time span {
        font-size: 12px;
    }
    .date-display {
        font-size: 14px;
    }
}

/* Ekstra Küçük Ekranlar (Telefonlar için daha küçük, 575px ve altı) */
@media (max-width: 575px) {
    .top-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .top-banner button, .date-display {
        font-size: 12px;
    }

    .top-content {
        flex-direction: column;
    }

    .flight-logo img {
        width: 40px;
    }

    .package-option {
        width: 100%;
        margin-bottom: 10px;
    }
}


/* Ekonomi ve Business Buton Grubu */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.btn-group .btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

    .btn-group .btn.selected {
        background-color: #07045F; /* Seçili olduğunda yeşil arka plan */
        color: white !important;
        font-weight: bold;
        border-color: #07045F;
    }

/* Tamam Butonu */
.action-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #07045F;
    color: white;
    font-size: 16px;
    text-align: center;
    border-radius: 8px;
    margin-top: 15px;
    text-decoration: none;
}

    .action-button:hover {
        background-color: #1b0f61 !important;
        color:white !important;
    }


/* Yolcu Sayısı Ayarları */
.popover-input {
    width: 240px;
    height: 50px;
    margin-left: 16px;
    border: 1px solid #ced4da;
    border-radius: 50px;
    background-color: white;
    font-size: 16px;
    color: #495057;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s;
}
.popular-cities {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sütun oluşturur */
    gap: 8px; /* Öğeler arasındaki boşluk */
    padding: 0;
    list-style: none;
    text-align: center;
}
.popular-cities li {
    display: flex;
    justify-content: center;
}
.popover-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.popular-cities .btn {
    width: 100%; /* Butonları sütun genişliğine göre esnek yapar */
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
}
/* Popover List Hover */
.popover-list:hover, .increment-decrement .controls a:hover, .btn-group .btn:hover, .action-button:hover {
    background-color: lightgray;
}
/* Mobil görünüm için düzenleme */
@media (max-width: 768px) {
    .rt-modal-input {
        width: 100%; /* Kartlar tam genişlikte */
    }

    .package-option {
        width: 100%; /* Kart genişliğini doldur */
        margin: 0 auto; /* Ortala */
    }

    .modalPackage {
        flex-direction: column; /* Kartları dikey hizala */
        gap: 20px; /* Kartlar arasında boşluk */
    }
}

.btn-group {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }

        .btn-group .btn {
            flex: 1;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s, color 0.3s;
            text-align: center;
        }

            .btn-group .btn.selected {
                background-color: #080460; /* Seçili olduğunda yeşil arka plan */
                color: white;
                font-weight: bold;
                border-color: #080460;
            }

    /* Tamam Butonu */
.action-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #080460;
    color: white;
    font-size: 16px;
    text-align: center;
    border-radius: 8px;
    margin-top: 15px;
    text-decoration: none;
}

        .action-button:hover {
            background-color: #218838;
        }

/* Gidiş - Dönüş Kart Ayarları */
#pageContent {
    width: 100%;
}
/* Checkbox ve yazıyı aynı hizaya getirmek için */
.form-check-inline {
    display: flex;
    align-items: center;
    gap: 8px; /* Checkbox ve yazı arasında boşluk için */
}
/* Fiyat Butonu */
.fiyatbutton {
    background-color: #080460; /* Yeşil arka plan */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
}
.flight-container {
    display: flex;
    gap: 10px;
    width: 100%;
}
/* Flight Timeline */
.flight-timeline {
    position: relative;
    padding-left: 30px; /* Sol tarafta boşluk bırakıyoruz */
}
.flight-items span{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width:100%;
}
.flight-items .flight-time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Dikey çizgi */
.flight-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 15px; /* Çizgiyi biraz sola kaydırıyoruz */
    width: 2px;
    height: 42px;
    background-color: green; /* Çizgi rengi */
}
/* Daireler */
.flight-dot {
    position: absolute;
    left: 11px; /* Çizgiden biraz sola kaydırıyoruz */
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    top:3px;
}
.flight-dot2 {
    position: absolute;
    left: 11px; /* Çizgiden biraz sola kaydırıyoruz */
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    top:42px;
}
.duration {
    font-weight: bold;
}
/* Önceki/Sonraki Gün Ayarları */
.top-banner {
    background-color: #556080;
    padding: 10px;
    color: white;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 20px;
}
.btn {
    background-color: white;
    border: 1px solid #ccc;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}
.flight-header {
    position: relative; /* Kapsayıcı olarak konumlandırma */
    align-items: center;
    gap: 10px;
}
.flight-select {
    position: absolute;
    bottom: 0;
    right: 0;
    top: 9px;
}
    .flight-select button {
        background-color: #080460; /* Yeşil arka plan rengi */
        color: white;
        border: none;
        padding: 5px 10px;
        width: 60px;
        border-radius: 5px;
        font-size: 16px;
    }
.flight-select {
    margin-left: auto;
    padding: 10px;
}
.flight-item {
    margin-bottom: 5px;
}
.flight-time {
    font-weight: bold;
}
.collapse {
    margin-top: 10px;
}
.flight-notes {
    margin-top: 10px;
}


/*filtreleme styleları*/
.button-group {
    display: flex;
    gap: 7px; /* Butonlar arasına 7px boşluk eklenir */
    align-items: center;
    margin-bottom:12px;
}

/* Butonlar */
.button {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    background: #f9f9f9;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Simge ile metin arasına boşluk ekler */
    border-radius: 5px; /* Daha yumuşak köşeler için */
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

/* Aktif buton */
.button.active {
    background: #1a3b82; /* Mavi arka plan */
    color: white;
    font-weight: bold;
}

/* Dropdown için */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    min-width: 120px;
}

.dropdown-menu .dropdown-item {
    padding: 10px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    background: #f9f9f9;
    text-align: left;
    color: #333;
}

.dropdown-menu .dropdown-item:hover {
    background: #e6e6e6;
}

.button.dropdown:hover + .dropdown-menu,
.dropdown-menu:hover {
    display: flex;
}

.arrow {
    font-size: 10px;
    margin-left: 5px;
}

/*uçuş paket collapseları düzenleme*/
.package-option {
    position: relative;
    border: 2px solid #ddd;
    border-left-width: 20px;
    border-radius: 8px;
    padding: 20px;
    width: 33%;
    text-align: left;
    margin-right: 10px;
}

.package-option:last-child {
    margin-right: 0;
}

.package-option.super-eko {
    border-color: green;
}
.package-option.avantaj {
    border-color: dimgray;
}
.package-option.comfort-flex {
    border-color: red;
}
.package-option .price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: inherit;
}
.package-option.super-eko .price {
    color: green;
}
.package-option.avantaj .price {
    color: #333;
}
.package-option.comfort-flex .price {
    color: red;
}
.package-option input[type="radio"]:checked + h6 {
    color: green;
    font-weight: bold;
}
.package-option h6 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: normal;
    color: #000;
}
.package-option ul {
    padding: 0;
    font-size: 14px;
    margin-left:5px;
    color: #555;
}
.package-option ul li {
    margin-bottom: 5px;
}

.package-option label {
    cursor: pointer;
    display: block;
}
.package-option:hover {
    background-color: #f9f9f9;
    border-color: #aaa;
}

