/*=================================================
BIDUNYABILET - CUSTOM THEME
=================================================*/

:root {
    --bd-primary: #0f2744;
    --bd-primary-hover: #18395f;
    --bd-accent: #2563eb;
    --bd-text: #475467;
    --bd-muted: #667085;
    --bd-dark: #101828;
    --bd-bg: #f6f8fb;
    --bd-soft: #f8fafc;
    --bd-white: #ffffff;
    --bd-border: #e5e7eb;
    --bd-border-soft: #eef2f6;
    --bd-radius: 18px;
    --bd-radius-lg: 24px;
    --bd-shadow: 0 8px 26px rgba(15, 39, 68, 0.07);
    --bd-shadow-hover: 0 14px 34px rgba(15, 39, 68, 0.11);
}

/*=================================================
GENERAL
=================================================*/

body {
    background: #ffffff;
}

.container {
    width: min(100% - 32px, 1500px);
}

.section {
    padding: 38px 0;
}

.section-light {
    background: var(--bd-bg);
}

.btn,
.btn-primary {
    border-radius: 999px;
}

.btn-primary {
    background: var(--bd-primary);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 39, 68, 0.18);
}

.btn-primary:hover {
    background: var(--bd-primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: #ffffff;
    color: var(--bd-primary);
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.btn-outline:hover {
    background: #f8fafc;
    color: var(--bd-primary-hover);
}

/*=================================================
MOBILE HEADER / HAMBURGER MENU
=================================================*/

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .header-inner {
        position: relative;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: auto;
        padding: 14px 0;
    }

    .site-logo {
        font-size: 22px;
        z-index: 30;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        width: 44px;
        height: 44px;
        border: 1px solid var(--bd-border);
        border-radius: 12px;
        background: #ffffff;
        color: var(--bd-primary);
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 900;
        cursor: pointer;
        z-index: 30;
    }

    .main-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid var(--bd-border);
        box-shadow: 0 16px 36px rgba(15, 39, 68, 0.14);
        padding: 16px;
        z-index: 99;
    }

    .main-menu.is-open {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-menu a {
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
        color: var(--bd-dark);
    }
}

/*=================================================
HERO
=================================================*/

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 58px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.home-hero::before,
.home-hero-title::after {
    display: none !important;
}

.home-hero-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--bd-accent);
    border: 1px solid #dbeafe;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none;
}

.home-hero-title {
    max-width: 980px;
    margin: 18px auto 16px;
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    color: var(--bd-dark);
}

.home-hero-text {
    max-width: 780px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
    color: var(--bd-muted);
}

.home-hero-text::after {
    content: " Popüler uçuş rotaları, havayolu rehberleri, destinasyonlar ve seyahat ipuçlarını tek yerden keşfedin.";
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/*=================================================
FLIGHT SEARCH HERO
=================================================*/

.bd-flight-hero {
    position: relative;
    min-height: 560px;
    padding: 46px 0 70px;
    background:
        linear-gradient(180deg, rgba(15,39,68,.60), rgba(15,39,68,.35)),
        url('/uploads/webp/ucak-hero.webp');
    background-size: cover;
    background-position: center;
    overflow: visible;
}

.bd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,18,32,.60), rgba(7,18,32,.20) 45%, rgba(7,18,32,.55));
}

.bd-flight-hero .container {
    position: relative;
    z-index: 2;
}

.bd-hero-top {
    max-width: 980px;
    margin: 0 auto 34px;
    text-align: center;
    color: #fff;
}

.bd-hero-top .hero-badge {
    background: rgba(255,255,255,.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
}

.bd-hero-top h1 {
    margin: 22px 0 12px;
    color: #fff;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.bd-hero-top p {
    margin: 0 auto;
    max-width: 760px;
    color: rgba(255,255,255,.88);
    font-size: 18px;
    line-height: 1.7;
}

.bd-search-panel,
.sticky-search {
    max-width: 1180px;
    margin: 0 auto;
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.bd-search-panel.sticky-search,
.sticky-search {
    position: sticky;
    top: 16px;
    z-index: 80;
}

.bd-trip-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
    color: #334155;
    font-weight: 800;
}

.bd-trip-tabs label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bd-trip-tabs input {
    accent-color: var(--bd-primary);
}

.bd-flight-search {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr .9fr .95fr 170px;
    gap: 10px;
    align-items: stretch;
}

.bd-search-field {
    position: relative;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.bd-search-field span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.bd-search-field input,
.bd-search-field select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.bd-search-btn {
    border: 0;
    border-radius: 12px;
    background: var(--bd-primary);
    color: #fff;
    font-size: 17px;
    font-weight: 950;
    cursor: pointer;
    transition: all .2s ease;
}

.bd-search-btn:hover {
    background: var(--bd-primary-hover);
    transform: translateY(-1px);
}

.bd-search-note {
    margin-top: 14px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.bd-popular-tags {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bd-popular-tags a {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.26);
    font-weight: 800;
    backdrop-filter: blur(8px);
}

/*=================================================
AUTOCOMPLETE
=================================================*/

.autocomplete-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    z-index: 120;
    display: none;
    padding: 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 14px 30px rgba(15, 39, 68, 0.14);
}

.autocomplete-list li {
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    color: var(--bd-dark);
}

.autocomplete-list li:hover {
    background: #f0f4f8;
}

/*=================================================
SECTION HEADINGS
=================================================*/

.section-heading {
    max-width: 820px;
    margin: 0 auto 32px;
    text-align: center;
}

.section-heading span {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--bd-accent);
    border: 1px solid #dbeafe;
    font-size: 13px;
    font-weight: 850;
}

.section-heading h2 {
    margin: 12px 0 8px;
    color: var(--bd-dark);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 0 auto;
    color: var(--bd-muted);
    font-size: 16px;
}

/*=================================================
FLIGHT / ROUTE CARDS
=================================================*/

.flight-deal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.flight-deal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
    padding: 20px;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius-lg);
    background: var(--bd-white);
    box-shadow: var(--bd-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
}

.flight-deal-card::before {
    display: none !important;
}

.flight-deal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bd-shadow-hover);
    border-color: #cbd5e1;
}

.flight-deal-card strong {
    display: block;
    color: var(--bd-dark);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.flight-deal-card span {
    display: block;
    color: var(--bd-muted);
    font-size: 14px;
    font-weight: 700;
}

.flight-deal-card b {
    display: block;
    margin-top: auto;
    color: var(--bd-primary);
    font-size: 25px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.flight-deal-card small {
    display: block;
    color: var(--bd-muted);
    font-size: 13px;
    font-weight: 700;
}

.flight-deal-card .btn {
    min-height: 38px;
    margin-top: 8px;
    padding: 9px 14px;
    font-size: 14px;
    align-self: flex-start;
}

/*=================================================
DESTINATIONS
=================================================*/

.destination-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.destination-card {
    position: relative;
    min-height: 270px;
    border-radius: var(--bd-radius-lg);
    overflow: hidden;
    background: var(--bd-dark);
    box-shadow: var(--bd-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.destination-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bd-shadow-hover);
}

.destination-card img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    transition: transform .24s ease;
}

.destination-card:hover img {
    transform: scale(1.04);
}

.destination-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.05) 20%, rgba(16, 24, 40, 0.78) 100%);
}

.destination-card-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    color: #ffffff;
}

.destination-card-content h3 {
    margin: 0 0 4px;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.destination-card-content span {
    color: rgba(255,255,255,.82);
    font-size: 14px;
    font-weight: 800;
}

/*=================================================
AIRLINES
=================================================*/

.airline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.airline-card {
    display: block;
    min-height: 210px;
    padding: 22px;
    border-radius: var(--bd-radius-lg);
    border: 1px solid var(--bd-border);
    background: var(--bd-white);
    box-shadow: var(--bd-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.airline-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bd-shadow-hover);
    border-color: #cbd5e1;
}

.airline-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 18px;
    background: var(--bd-soft);
    padding: 11px;
    margin-bottom: 16px;
}

.airline-card h3 {
    margin: 0 0 8px;
    color: var(--bd-dark);
    font-size: 21px;
    line-height: 1.25;
}

.airline-card p {
    margin: 0;
    color: var(--bd-muted);
    font-size: 15px;
    line-height: 1.65;
}

/*=================================================
BLOG
=================================================*/

.grid.grid-3 {
    gap: 16px;
}

.blog-card {
    border-radius: var(--bd-radius-lg);
    border: 1px solid var(--bd-border);
    background: var(--bd-white);
    box-shadow: var(--bd-shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bd-shadow-hover);
    border-color: #cbd5e1;
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    background: var(--bd-soft);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 22px;
}

.blog-card h2 {
    margin: 0 0 10px;
    color: var(--bd-dark);
    font-size: 21px;
    line-height: 1.3;
}

.blog-card p {
    color: var(--bd-muted);
    font-size: 15px;
    line-height: 1.65;
}

.read-more {
    color: var(--bd-accent);
    font-weight: 900;
}

/*=================================================
DETAIL PAGES
=================================================*/

.site-breadcrumb {
    background: linear-gradient(135deg, #0f2744, #18395f);
}

.content-box {
    border: 1px solid var(--bd-border);
    box-shadow: var(--bd-shadow);
}

/*=================================================
ROUTE DETAIL
=================================================*/

.route-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 30px;
    align-items: start;
}

.route-summary-card {
    background: var(--bd-primary);
    color: #ffffff;
    border-radius: var(--bd-radius);
    padding: 28px;
    box-shadow: var(--bd-shadow);
}

.route-summary-card p {
    color: rgba(255,255,255,0.78);
    margin-bottom: 12px;
}

.route-price-badge {
    display: inline-flex;
    margin: 18px 0;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--bd-accent);
    color: #ffffff;
    font-weight: 800;
}

.route-flight-list {
    display: grid;
    gap: 14px;
}

.route-flight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    background: var(--bd-white);
}

.route-flight-item strong {
    color: var(--bd-dark);
}

.route-flight-item span {
    color: var(--bd-muted);
}

.route-flight-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--bd-primary);
    white-space: nowrap;
}

.route-mini-info {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.route-mini-info div {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.route-mini-info div:last-child {
    border-bottom: 0;
}

/*=================================================
RESPONSIVE
=================================================*/

@media (max-width: 991px) {
    .container {
        width: min(100% - 24px, 1500px);
    }

    .bd-flight-hero {
        min-height: auto;
        padding: 38px 0 48px;
    }

    .bd-flight-search {
        grid-template-columns: 1fr 1fr;
    }

    .bd-search-btn {
        min-height: 54px;
        grid-column: span 2;
    }

    .flight-deal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .destination-grid,
    .airline-grid,
    .grid.grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 46px 0 38px;
    }

    .home-hero-content,
    .bd-hero-top {
        text-align: left;
    }

    .home-hero-title,
    .bd-hero-top h1 {
        font-size: 34px;
        margin-left: 0;
        margin-right: 0;
    }

    .home-hero-text,
    .bd-hero-top p {
        font-size: 16px;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-actions {
        justify-content: flex-start;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 46px 0;
    }

    .section-heading {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 22px;
    }

    .section-heading h2 {
        margin: 10px 0 8px;
        white-space: normal;
    }

    .section-heading p {
        max-width: 320px;
    }

    .bd-search-panel,
    .sticky-search {
        position: relative;
        top: auto;
        z-index: 2;
        padding: 16px;
        border-radius: 18px;
    }

    .bd-trip-tabs {
        gap: 14px;
        font-size: 14px;
    }

    .bd-flight-search {
        grid-template-columns: 1fr;
    }

    .bd-search-btn {
        grid-column: auto;
        min-height: 52px;
    }

    .bd-search-field {
        margin-bottom: 0;
    }

    .flight-deal-grid,
    .airline-grid,
    .destination-grid,
    .grid.grid-3 {
        display: flex !important;
        overflow-x: auto;
        gap: 14px;
        scroll-snap-type: x mandatory;
        padding: 2px 4px 14px;
        margin-left: -4px;
        margin-right: -4px;
        -webkit-overflow-scrolling: touch;
    }

    .flight-deal-grid::-webkit-scrollbar,
    .airline-grid::-webkit-scrollbar,
    .destination-grid::-webkit-scrollbar,
    .grid.grid-3::-webkit-scrollbar {
        height: 6px;
    }

    .flight-deal-grid::-webkit-scrollbar-thumb,
    .airline-grid::-webkit-scrollbar-thumb,
    .destination-grid::-webkit-scrollbar-thumb,
    .grid.grid-3::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    .flight-deal-card,
    .airline-card,
    .destination-card,
    .blog-card {
        min-width: 82%;
        max-width: 82%;
        scroll-snap-align: start;
    }

    .destination-card,
    .destination-card img {
        min-height: 245px;
    }

    .route-flight-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .flight-deal-card,
    .airline-card,
    .destination-card,
    .blog-card {
        min-width: 88%;
        max-width: 88%;
    }
}
/*=================================================
MOBILE OVERFLOW FIX - BIDUNYABILET
=================================================*/

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

img,
video,
iframe,
table {
    max-width: 100%;
}

@media (max-width: 768px) {

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .header-main,
    .site-breadcrumb,
    .page-content,
    .section,
    .section-light,
    main {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .site-breadcrumb {
        padding: 38px 0 !important;
    }

    .breadcrumb-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .breadcrumb-menu {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .content-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 22px !important;
        overflow-x: hidden !important;
    }

    .content-box h1,
    .content-box h2,
    .content-box h3,
    .lead-text,
    .editor-content,
    .editor-content p {
        max-width: 100% !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .lead-text {
        font-size: 18px !important;
        line-height: 1.65 !important;
    }

    .route-detail-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .route-summary-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 24px;
    }

    .flight-deal-grid,
    .airline-grid,
    .destination-grid,
    .grid.grid-3 {
        max-width: 100% !important;
    }

    .route-flight-item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mobile-menu-toggle {
        margin-left: auto;
    }

    .main-menu {
        left: 0 !important;
        right: 0 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 420px) {
    .content-box {
        padding: 18px !important;
    }

    .breadcrumb-title {
        font-size: 24px !important;
    }

    .content-box h2 {
        font-size: 25px !important;
    }

    .lead-text {
        font-size: 16px !important;
    }
}
/*=================================================
MOBILE MENU VISIBILITY FIX
=================================================*/

@media (max-width: 768px) {
    .header-main {
        position: relative;
        z-index: 9999;
        overflow: visible !important;
    }

    .header-main .container,
    .header-inner {
        overflow: visible !important;
    }

    .main-menu.is-open {
        display: flex !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 16px !important;
        box-shadow: 0 18px 45px rgba(15, 39, 68, 0.18) !important;
        padding: 16px !important;
        z-index: 10000 !important;
    }

    .main-menu.is-open a {
        display: block !important;
        width: 100% !important;
        padding: 12px 10px !important;
        color: #101828 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        border-bottom: 1px solid #eef2f6 !important;
    }

    .main-menu.is-open a:last-child {
        border-bottom: 0 !important;
    }
}