/* ==========================================================================
   Tuareg Tours — ortak public bileşenler
   Sözleşme: docs/DESIGN-SYSTEM.md §3. Tüm değerler tt-tokens.css'ten.
   Temanın kendi bileşenleri (.btn-wrap.btn-2, .tf-btn-icon, .card-project)
   olduğu gibi kalır; burası temadan sonra eklenen ekranların ortak dilidir.
   ========================================================================== */

/* ---------- Buton ----------
   Temanın birincil butonuyla aynı: koyu hap, 48px, 16/600.
   .tt-btn--brand  : marka vurgulu (fiyat/teklif)
   .tt-btn--ghost  : çerçeveli ikincil
   .tt-btn--block  : tam genişlik
   .tt-btn--sm     : 44px (dokunma hedefi tabanı)                          */
.tt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--tt-control-h);
    padding: 0 24px;
    border: 1px solid var(--tt-ink);
    border-radius: var(--tt-radius-pill);
    background: var(--tt-ink);
    color: var(--tt-on-dark);
    font-family: var(--tt-font);
    font-size: var(--tt-fs-body);
    font-weight: var(--tt-fw-head);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.tt-btn:hover,
.tt-btn:focus-visible { background: var(--tt-brand); border-color: var(--tt-brand); color: var(--tt-on-dark); }
.tt-btn:focus-visible { outline: 2px solid var(--tt-ink); outline-offset: 2px; }
.tt-btn:disabled,
.tt-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; background: var(--tt-ink); border-color: var(--tt-ink); }

.tt-btn--brand { background: var(--tt-brand); border-color: var(--tt-brand); }
.tt-btn--brand:hover,
.tt-btn--brand:focus-visible { background: var(--tt-brand-hover); border-color: var(--tt-brand-hover); }

.tt-btn--ghost { background: var(--tt-paper); border-color: var(--tt-line); color: var(--tt-ink); }
.tt-btn--ghost:hover,
.tt-btn--ghost:focus-visible { background: var(--tt-paper); border-color: var(--tt-ink); color: var(--tt-ink); }

.tt-btn--block { display: flex; width: 100%; }
.tt-btn--sm { height: var(--tt-touch); padding: 0 20px; font-size: var(--tt-fs-small); }

/* ---------- Form alanı (kutulu) ----------
   Çok alanlı formlar: checkout, teklif modalları, Seçili Turlar talebi.
   48px, 1px çizgi, radius 8, label 14/600, hata altında 14px.            */
.tt-field .form-label,
.tt-label {
    display: block;
    margin: 0 0 8px;
    font-family: var(--tt-font);
    font-size: var(--tt-fs-small);
    font-weight: var(--tt-fw-head);
    color: var(--tt-body);
}

.tt-field .form-control,
.tt-field .form-select,
.tt-control {
    height: var(--tt-control-h);
    padding: 0 12px;
    font-family: var(--tt-font);
    font-size: var(--tt-fs-body);
    color: var(--tt-ink);
    background-color: var(--tt-paper);
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius-field);
    box-shadow: none;
    box-sizing: border-box;
}

.tt-field textarea.form-control,
textarea.tt-control { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; }

.tt-field .form-control:focus,
.tt-field .form-select:focus,
.tt-control:focus { border-color: var(--tt-ink); box-shadow: var(--tt-focus-ring); outline: none; }

.tt-field .form-check-label { font-size: var(--tt-fs-small); color: var(--tt-muted); }
.tt-field .form-check-label a { color: var(--tt-ink); text-decoration: underline; }
.tt-field hr { border-color: var(--tt-line); opacity: 1; }

.tt-req { color: var(--tt-danger); }
.tt-error { margin: 4px 0 0; font-size: var(--tt-fs-small); color: var(--tt-danger); }

/* ---------- Bildirim kutusu (form sonucu) ---------- */
.tt-alert { padding: 12px 14px; border: 0; border-radius: var(--tt-radius-card); font-size: var(--tt-fs-small); }
.tt-alert--ok { background: var(--tt-ok-bg); color: var(--tt-ok); }
.tt-alert--danger { background: var(--tt-danger-bg); color: var(--tt-danger); }
/* JS'in fadeIn/hide ile yönettiği kutu: başta gizli (!important yok, jQuery inline display'i ezer) */
.tt-alert--js { display: none; }

/* ---------- Modal ----------
   Bootstrap .modal üzerine sınıf: <div class="modal fade tt-modal">.
   Kabuk: radius 20, beyaz, kenarlıksız; başlık 20/600 + kısa marka çizgisi. */
.tt-modal { --tt-accent: var(--tt-brand); }   /* kulüp rengi gibi bağlam rengi style ile ezilebilir */

.tt-modal .modal-content {
    border: 0;
    border-radius: var(--tt-radius-card);
    background: var(--tt-paper);
    overflow: hidden;
}

.tt-modal .modal-header { border-bottom: 0; align-items: flex-start; }
.tt-modal__head { display: flex; flex-direction: column; gap: 8px; }
.tt-modal__accent { width: 24px; height: 2px; background: var(--tt-accent); }

.tt-modal .modal-title {
    margin: 0;
    font-family: var(--tt-font);
    font-size: var(--tt-fs-card);
    font-weight: var(--tt-fw-head);
    line-height: var(--tt-lh-snug);
    color: var(--tt-heading);
}

.tt-modal__lead { margin: 0; font-size: var(--tt-fs-small); color: var(--tt-muted); }

/* ---------- Kart ----------
   Tema tour-card ile aynı yüzey: beyaz, radius 20, ince çizgi, kart gölgesi. */
.tt-card {
    background: var(--tt-paper);
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius-card);
    box-shadow: var(--tt-shadow-card);
}

/* ---------- Sayfa hero'su (görsel + karartma + kırıntı + başlık) ----------
   Turlar, Seçili Turlar, Fly & Drive aynı kalıbı inline style ile üç kez yazıyordu. */
.tt-page-hero { position: relative; width: 100%; height: 220px; overflow: hidden; border-radius: var(--tt-radius-card); background: var(--tt-ink); margin-bottom: 32px; }
.tt-page-hero--lg { height: 260px; }
.tt-page-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--tt-overlay) 100%); }
.tt-page-hero__body { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 10; display: flex; align-items: center; gap: 12px; }
.tt-page-hero--lg .tt-page-hero__body { bottom: 28px; }
.tt-page-hero__bar { flex-shrink: 0; width: 4px; height: 44px; border-radius: var(--tt-radius-pill); background: linear-gradient(180deg, var(--tt-brand) 0%, var(--tt-brand-tint-bd) 100%); }
.tt-page-hero--lg .tt-page-hero__bar { height: 56px; }
.tt-page-hero__text { min-width: 0; }
.tt-page-hero__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.tt-page-hero__crumb,
.tt-page-hero__current { font-size: var(--tt-fs-micro); font-weight: var(--tt-fw-medium); letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }
.tt-page-hero__crumb { color: var(--tt-on-dark-muted); }
.tt-page-hero__crumb:hover { color: var(--tt-on-dark); }
.tt-page-hero__current { color: var(--tt-on-dark); }
.tt-page-hero__sep { font-size: var(--tt-fs-micro); color: var(--tt-on-dark-strong); }
.tt-page-hero__title { margin: 0; font-family: var(--tt-font); font-size: var(--tt-fs-subtitle); font-weight: var(--tt-fw-head); line-height: var(--tt-lh-heading); letter-spacing: -0.5px; color: var(--tt-on-dark); }
.tt-page-hero__lead { max-width: 560px; margin-top: 6px; font-size: var(--tt-fs-body); color: var(--tt-on-dark-muted); }

/* ---------- Anasayfa bantları (La Liga, Seçili Turlar, Fly & Drive) ---------- */
.tt-band-gap { margin-bottom: 80px; }
.tt-accent-text { color: var(--tt-brand); }
.flydrive-band { background: var(--tt-ink); border-radius: var(--tt-radius-card); }
.flydrive-band__eyebrow { color: var(--tt-brand); font-weight: var(--tt-fw-strong); letter-spacing: 2px; font-size: var(--tt-fs-small); }
.flydrive-band__title { font-size: var(--tt-fs-section); font-weight: var(--tt-fw-head); line-height: var(--tt-lh-heading); letter-spacing: -1px; color: var(--tt-on-dark); }
.flydrive-band__lead { font-size: var(--tt-fs-body); line-height: 1.6; color: var(--tt-on-dark-muted); }

/* Hizmet kartı ikonu (anasayfa + hakkımızda) */
.tt-service-icon { display: inline-block; width: 52px; height: 52px; color: var(--tt-brand); }
.tt-service-icon svg { width: 100%; height: 100%; display: block; }
.tt-cover { width: 100%; height: 100%; object-fit: cover; }
.tt-icon-lg { font-size: var(--tt-fs-card); }

/* ---------- Sayfa içi bölüm başlığı ----------
   Kısa çizgi + başlık (tur detayı, genel şartlar). Tema .text-body-1 ölçeği, 600. */
.tt-section-head { display: flex; flex-direction: column; gap: 8px; }
.tt-section-head__bar { width: 40px; height: 3px; background: var(--tt-heading); }
.tt-section-head__bar--sm { width: 24px; height: 2px; }
.tt-section-head__bar--brand { background: var(--tt-brand); }
.tt-section-title {
    margin: 0;
    font-family: var(--tt-font);
    font-size: var(--tt-fs-subtitle);
    font-weight: var(--tt-fw-head);
    line-height: var(--tt-lh-heading);
    letter-spacing: -0.5px;
    color: var(--tt-heading);
    text-wrap: balance;
}
.tt-section-title--sm { font-size: var(--tt-fs-card); }

/* Uzun metin (açıklama, şartlar) */
.tt-prose { font-size: var(--tt-fs-body); line-height: 1.75; color: var(--tt-body); }

/* ---------- Boş durum ---------- */
.tt-empty { text-align: center; padding: 64px 16px; color: var(--tt-muted); font-size: var(--tt-fs-body); }
.tt-empty__icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--tt-muted-2); display: block; }
.tt-empty__title { margin: 0 0 8px; font-size: var(--tt-fs-card); font-weight: var(--tt-fw-head); color: var(--tt-ink); }
.tt-empty__text { margin: 0 0 24px; }
.tt-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Header ----------
   Nav vurgu hapı (Fly & Drive, La Liga): tek stil — marka tonlu zemin,
   aktif/hover marka dolgu. Eskiden header.blade.php içi <style> ile iki
   farklı hap (kırmızı tint + siyah) vardı.                               */
.tf-header-3 .flydrive-nav,
.tf-header-3 .laliga-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-height: 40px;
    padding: 0 16px;
    line-height: 1;
    border-radius: var(--tt-radius-pill);
    color: var(--tt-brand) !important;
    background: var(--tt-brand-tint-bg);
    border: 1px solid var(--tt-brand-tint-bd);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.tf-header-3 .flydrive-nav:hover,
.tf-header-3 .flydrive-nav.active,
.tf-header-3 .laliga-nav:hover,
.tf-header-3 .laliga-nav.active {
    background: var(--tt-brand);
    border-color: var(--tt-brand);
    color: var(--tt-on-dark) !important;
}

.flydrive-nav__icon,
.laliga-nav__icon { flex-shrink: 0; transition: transform .25s ease; }
.flydrive-nav:hover .flydrive-nav__icon { transform: translateX(2px); }
.laliga-nav:hover .laliga-nav__icon { transform: rotate(90deg); }

.tf-header-3 .logo-site img { height: 34px; width: auto; }

/* Mobil menü logosu: header ile aynı yükseklik */
.mobile-logo-img { height: 34px; width: auto; }

/* Footer güven rozetleri ve ödeme logoları (gerçek marka görselleri, boyut korunur) */
.footer-logo { display: block; object-fit: contain; }
.footer-logo--tursab { width: 100px; height: 55px; }
.footer-logo--thy { width: 80px; height: 80px; }
.footer-logo--pegasus { width: 110px; height: 55px; }
.footer-pay-logo { height: 24px; object-fit: contain; }

/* 992–1399px: tema kolonları (3/6/3) 7 menü öğesini sığdıramıyor, menü
   logonun üstüne taşıyordu. Yan kolonlar içeriği kadar, menü kalan alanı alır. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .tf-header-3 .header-inner .row { flex-wrap: nowrap; }
    .tf-header-3 .header-inner .row > .col-lg-3 { flex: 0 0 auto; width: auto; }
    .tf-header-3 .header-inner .row > .col-lg-6 { flex: 1 1 0; width: auto; min-width: 0; }
    .tf-header-3 .box-nav-menu { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .flydrive-nav__icon, .laliga-nav__icon { transition: none; }
}

/* ---------- Başlık satır yüksekliği ----------
   Tema h3/h4 line-height'ı (72px) küçük punto başlıklara miras kalmasın:
   proje başlıkları kendi rolünün satır yüksekliğini taşır.
   Özgüllük eleman düzeyinde (:where + :is): tema h1–h6'yı ezer (sonra
   yüklenir), bileşenin kendi sınıf kuralını ezmez.                        */
:where(.ll, .st, .tt-modal, .cw-section) :is(h1, h2, h3, h4, h5, h6) { line-height: var(--tt-lh-snug); }
