:root {
    --ink: #1c2430;
    --muted: #6b7684;
    --line: #e4e8ee;
    --bg: #f5f7fa;
    --card: #ffffff;
    --accent: #0b7a75;
    --accent-ink: #ffffff;
    --accent-soft: #e3f3f2;
    --price: #c2410c;
    --radius: 14px;
}

html { font-size: 15px; }
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); }

.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: -.02em; color: var(--ink) !important; display: flex; align-items: center; gap: .5rem; }
.brand-accent { color: var(--accent); }
.brand-mark { color: var(--accent); }
.topbar .nav-link { color: var(--muted); font-weight: 500; }
.topbar .nav-link:hover { color: var(--ink); }

.footer-note { color: var(--muted); font-size: .85rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }

.btn-accent { background: var(--accent); color: var(--accent-ink); border: none; }
.btn-accent:hover { background: #096661; color: var(--accent-ink); }

/* Arama paneli */
.search-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}
.search-panel .form-label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }

.result-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.result-head h1 { font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.result-head .count { color: var(--muted); }

/* Tur kartı */
.tour-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .15s;
    color: inherit;
    text-decoration: none;
}
.tour-card:hover { box-shadow: 0 8px 24px rgba(28, 36, 48, .1); transform: translateY(-2px); color: inherit; }
.tour-card .thumb { aspect-ratio: 16 / 10; background: #dfe5ec center / cover no-repeat; position: relative; }
.tour-card .provider-badge {
    position: absolute; top: .6rem; left: .6rem;
    background: rgba(255,255,255,.92); color: var(--ink);
    font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px;
}
.tour-card .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tour-card .title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-card .meta { color: var(--muted); font-size: .85rem; }
.tour-card .footer { margin-top: auto; padding-top: .5rem; display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; }
.tour-card .date { font-size: .85rem; }
.tour-card .date small { color: var(--muted); display: block; }
.price { color: var(--price); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.price-label { color: var(--muted); font-size: .72rem; display: block; text-align: right; font-weight: 500; }

.chip { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; }

.empty-state { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 3rem 1rem; text-align: center; color: var(--muted); }

/* Detay */
.detail-hero { border-radius: var(--radius); overflow: hidden; background: #dfe5ec center / cover no-repeat; aspect-ratio: 16 / 9; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.dates-table td, .dates-table th { vertical-align: middle; }
.dates-table .past { color: var(--muted); text-decoration: line-through; }
.trend-down { color: #15803d; font-weight: 600; }
.trend-up { color: #b91c1c; font-weight: 600; }

/* Yönetim */
.status-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .35rem; }
.status-ok { background: #16a34a; }
.status-fail { background: #dc2626; }
.status-run { background: #f59e0b; }
.table-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-panel table { margin: 0; }
.table-panel th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #fafbfc; }
code.sel { font-size: .8rem; }

.pagination .page-link { color: var(--accent); }
.pagination .active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Benzer turun kaç firmada olduğunu gösteren rozet (kart görselinin sağ üstü) */
.compare-badge {
    position: absolute;
    top: .6rem;
    right: .6rem;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 999px;
}
.dates-table .current-row td { background: var(--accent-soft); }

/* Ana sayfa üst arama alanı */
.hero {
    background: linear-gradient(135deg, var(--accent) 0%, #0e5f73 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
}
.hero h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .35rem; }
.hero p { opacity: .9; margin-bottom: 1.1rem; max-width: 46rem; }
.hero-search { display: flex; gap: .5rem; max-width: 46rem; }
.hero-search .form-control { border: none; }
.hero .btn-accent { background: #f59e0b; color: #1c2430; font-weight: 600; }
.hero .btn-accent:hover { background: #d97706; color: #1c2430; }
@media (max-width: 575.98px) { .hero { padding: 1.25rem 1rem; } .hero h1 { font-size: 1.35rem; } }

/* Tür sekmeleri */
.kind-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.kind-tabs a {
    padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem;
}
.kind-tabs a span { color: var(--muted); font-size: .8rem; margin-left: .2rem; }
.kind-tabs a:hover { border-color: var(--accent); }
.kind-tabs a.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kind-tabs a.active span { color: var(--accent-soft); }

/* Sonuç başlığı, sıralama ve etkin filtreler */
.result-head { align-items: center; }
.sort-select { width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.filter-chip {
    display: inline-flex; gap: .35rem; align-items: center; padding: .2rem .65rem; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 600; text-decoration: none;
}
.filter-chip:hover { background: #cfeae8; color: var(--accent); }
.filter-chip span { font-size: 1rem; line-height: 1; }

/* Yönetim: üst menü ve özet kartları */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.admin-head h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.admin-tabs { display: flex; gap: .25rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .2rem; }
.admin-tabs a { padding: .35rem .85rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9rem; }
.admin-tabs a.active { background: var(--accent); color: var(--accent-ink); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.stat {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem;
    display: flex; flex-direction: column; color: inherit; text-decoration: none;
}
.stat-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .82rem; }
.stat-warn { border-color: #fecaca; background: #fef2f2; }
.stat-warn .stat-value { color: #b91c1c; }
th[data-dir="asc"]::after { content: " ▲"; }
th[data-dir="desc"]::after { content: " ▼"; }

/* Kart görseli <img> (tembel yükleme) ve kart başlığı h3 */
.tour-card .thumb img, .detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-card .title { font-size: 1rem; margin: 0; }
.detail-hero { position: relative; }

/* Altbilgi: iç bağlantılar */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: 2.5rem 0 2rem; margin-top: 2rem; }
.site-footer .brand { font-size: 1.05rem; }
.footer-title { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; font-size: .9rem; }
.footer-links-1 { columns: 1; }
.footer-links li { break-inside: avoid; padding: .15rem 0; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* Rota / bölge sayfaları */
.breadcrumb a { color: var(--muted); text-decoration: none; }
.hub-hero {
    border-radius: calc(var(--radius) * 1.3); overflow: hidden; color: #fff; position: relative;
    background: var(--hub-img, linear-gradient(135deg, #0b7a75, #0e5f73)) center / cover no-repeat;
}
.hub-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4, 24, 28, .92) 0%, rgba(4, 24, 28, .7) 55%, rgba(4, 24, 28, .25) 100%); }
.hub-hero-body { position: relative; padding: 2.2rem 1.8rem; max-width: 52rem; }
.hub-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.hub-hero h1 span { color: #7fe0d8; font-weight: 600; }
.hub-hero p { color: #d6ebe9; max-width: 44rem; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1.2rem 0 1.4rem; }
.hub-stats strong { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.hub-stats span { color: #a9cfcb; font-size: .82rem; }
.hub-cta { background: #f59e0b; color: #1c2430; font-weight: 700; }
.hub-cta:hover { background: #d97706; color: #1c2430; }
.month-bars { display: flex; align-items: flex-end; gap: .3rem; height: 140px; }
.month-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .3rem; }
.month-bar .bar { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .85; }
.month-bar { min-width: 0; }
.month-bar .label { font-size: .62rem; color: var(--muted); white-space: nowrap; overflow: hidden; max-width: 100%; }
.faq details { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: .5rem 0 0; color: #3b4654; }

/* Ana sayfa: popüler rotalar */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.route-link { display: flex; flex-direction: column; padding: .7rem .9rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.route-link:hover { border-color: var(--accent); color: var(--ink); }
.route-link span { font-weight: 600; }
.route-link small { color: var(--muted); }

/* Detay görseli: küçük önizlemeler bulanık arka plan üzerinde, pikselleşmeden */
.detail-hero { overflow: hidden; display: flex; align-items: center; justify-content: center; }
.detail-hero::before {
    content: ""; position: absolute; inset: -30px;
    background: var(--hero-img, none) center / cover no-repeat;
    filter: blur(28px) brightness(.85) saturate(1.1);
}
.detail-hero img { position: relative; }
.detail-hero img.small { object-fit: contain; border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }

/* Yatay taşma güvenliği: hiçbir bileşen sayfayı sağa kaydırmasın */
html, body { overflow-x: clip; }

/* Görseli olmayan turlar: boş gri alan yerine markalı yer tutucu */
.tour-card .thumb { background: linear-gradient(140deg, #0b7a75 0%, #0e5f73 60%, #082a30 100%); }
.thumb-empty {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    color: #d6ebe9; font-weight: 600; text-align: center; padding: 1rem;
}
.thumb-empty img { width: 40px; height: 40px; opacity: .55; }
.detail-hero.empty { aspect-ratio: 16 / 6; background: linear-gradient(140deg, #0b7a75 0%, #0e5f73 60%, #082a30 100%); }
.detail-hero.empty .thumb-empty { font-size: 1.1rem; }
.chip-link { text-decoration: none; transition: background .15s; }
.chip-link:hover { background: #cfeae8; color: var(--accent); }

/* Hakkımızda / iletişim */
.prose h2 { font-size: 1.15rem; font-weight: 700; margin: 1.8rem 0 .6rem; }
.prose li { margin-bottom: .35rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.25rem; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.25rem; font-size: .88rem; color: var(--muted); }
.footer-bottom a { color: var(--ink); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Döviz fiyatların TL karşılığı */
.price-try { display: block; text-align: right; color: var(--muted); font-size: .75rem; font-weight: 500; white-space: nowrap; }

/* Bütçe sayfası */
.budget-hero { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.budget-form { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)) auto; gap: .6rem; max-width: 68rem; }
@media (max-width: 767.98px) { .budget-form { grid-template-columns: 1fr; } }
.chip-link.active { background: var(--accent); color: var(--accent-ink); }

/* Panel: günlük yönlendirme grafiği */
.click-bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; }
.click-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.click-bar span { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }

/* Bayram ve tatil sayfaları */
.holiday-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.holiday-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.holiday-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.holiday-days { align-self: flex-start; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; }
.holiday-name { font-weight: 700; font-size: 1.08rem; }
.holiday-dates { color: var(--muted); font-weight: 500; }
.holiday-count { margin-top: auto; padding-top: .4rem; color: var(--accent); font-weight: 600; }

/* Vize rozetleri */
.chip-visa.vizesiz { background: #dcfce7; color: #166534; }
.chip-visa.kolay { background: #fef3c7; color: #92400e; }
.chip-visa.schengen, .chip-visa.vize { background: #eef2f7; color: #475569; }

/* TÜRSAB belge rozeti */
.tursab-badge { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .8rem; font-weight: 600; color: #1e3a8a; background: #e0e7ff; border-radius: 999px; padding: .2rem .7rem; }
.tursab-badge a { color: inherit; font-weight: 500; opacity: .8; }
.hub-hero .tursab-badge { background: rgba(255,255,255,.92); margin-bottom: .6rem; }

/* Fiyat endeksi: aylara göre fiyat */
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
.season-bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.season-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.season-bar span { display: block; width: 100%; background: #cbd5e1; border-radius: 3px 3px 0 0; }
.season-bar.cheapest span { background: #16a34a; }
.season-bar small { font-size: .62rem; color: var(--muted); }

/* Doğal dille arama notu */
.nl-note { background: var(--accent-soft); border-radius: 12px; padding: .7rem 1rem; font-size: .92rem; }
.nl-note a { margin-left: .4rem; white-space: nowrap; }
