/* =====================================================
   FOOTER MODULE - Premium Platform Premium Level
   ===================================================== */

.footer {
    background: var(--text-dark);
    color: var(--white-pure);
    padding: 3rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-popular-tours .footer-all-tours {
    margin-top: 10px;
    font-weight: 600;
}

.footer-section h2, .footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--white-pure);
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: var(--white-soft);
    text-decoration: none;
    line-height: 1.8;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: var(--white-pure);
    transform: translateX(3px);
}

.footer-section a i {
    margin-inline-end: 8px;
    width: 16px;
    text-align: center;
}

/* Contact/Reservation Icons - Orijinal Renkler */
.footer-section a[href*="tel"] i {
    color: #34a853 !important; /* Google Green */
}

.footer-section a[href*="whatsapp"] i,
.footer-section a[href*="wa.me"] i {
    color: #25d366 !important; /* WhatsApp Green */
}

.footer-section a[href*="mailto"] i {
    color: #ea4335 !important; /* Gmail Red */
}

.footer-section a[href*="maps"] i,
.footer-section a[href*="google.com/maps"] i {
    color: #4285f4 !important; /* Google Maps Blue */
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    padding: 12px;
    background: none;
    border: none;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white-soft);
    text-decoration: none;
    transition: var(--transition);
}

/* Orijinal Social Media Icon Renkleri - Sabit Brand Colors */
.social-link[href*="facebook"] i {
    color: #1877f2 !important; /* Facebook Official Blue */
}

.social-link[href*="instagram"] i {
    color: #e4405f !important; /* Instagram Official Pink/Red */
}

.social-link[href*="twitter"] i,
.social-link[href*="x.com"] i {
    color: #1da1f2 !important; /* Twitter Official Blue */
}

.social-link[href*="youtube"] i {
    color: #ff0000 !important; /* YouTube Official Red */
}

.social-link[href*="linkedin"] i {
    color: #0a66c2 !important; /* LinkedIn Official Blue */
}

.social-link[href*="tiktok"] i {
    color: #ffffff !important; /* TikTok White (footer dark bg) */
}

.social-link[href*="telegram"] i {
    color: #0088cc !important; /* Telegram Official Blue */
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-link i {
    font-size: 20px;
    line-height: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* =====================================================
   RESPONSIVE DESIGN - TÜM MOBİL CİHAZLAR İÇİN
   Premium Platform/Viator Seviyesi Footer Mobile Experience
   ===================================================== */

/* TABLET (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1.5rem;
    }
}

/* STANDARD MOBİL (768px ve altı) */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem; /* Daha kompakt */
        margin-bottom: 0; /* Bottom nav'ın altında kalmaması için */
        position: relative;
        z-index: 1; /* Bottom nav'dan düşük z-index */
    }
    
    /* FOOTER CONTENT MOBİL UYUMLU */
    .footer-content {
        grid-template-columns: 1fr; /* 4 kolon → 1 kolon */
        gap: 2rem;
        text-align: center;
        padding: 0 1rem; /* Yan padding */
        margin-bottom: 1.5rem; /* Daha az margin */
    }
    
    /* FOOTER SECTIONS MOBİL UYUMLU */
    .footer-section {
        padding: 1.5rem 0; /* Padding ekle */
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Ayırıcı çizgi */
    }
    
    .footer-section:last-child {
        border-bottom: none; /* Son section'da çizgi yok */
    }
    
    .footer-section h2, .footer-section h3 {
        margin-bottom: 1.25rem;
        font-size: 1.1rem; /* Küçült */
        color: var(--white-pure);
        font-weight: 600;
    }
    
    .footer-section p,
    .footer-section a {
        color: var(--white-soft); /* Daha koyu */
        line-height: 1.8;
        font-size: 0.95rem; /* Küçült */
        display: block;
        padding: 0.25rem 0; /* Touch-friendly spacing */
        transition: color var(--motion-fast) ease;
    }
    
    .footer-section a:hover,
    .footer-section a:active {
        color: var(--white-pure); /* Hover'da beyaz */
        text-decoration: underline;
    }
    
    /* FOOTER LOGO SECTION MOBİL */
    .footer-section:first-child {
        padding-bottom: 2rem;
    }
    
    .footer-section:first-child h2, .footer-section:first-child h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        /* Koyu altbilgi zemininde okunur (marka rengi bu zeminde okunmuyordu); geniş ekranla aynı renk. */
        color: var(--white-pure);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-section:first-child h2::before, .footer-section:first-child h3::before {
        content: "✈️";
        font-size: 1.2rem;
    }
    
    /* FOOTER SOCIAL MOBİL UYUMLU */
    .footer-social {
        justify-content: center;
        gap: 1.5rem; /* Daha geniş gap */
        margin-top: 1.5rem;
        flex-wrap: wrap;
    }
    
    .footer-social a {
        padding: 16px; /* Touch-friendly size (Apple/Google guidelines) */
        background: none;
        border: none;
        border-radius: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--white-soft);
        font-size: 1.4rem;
        transition: var(--transition);
    }
    
    /* Mobilde de orijinal brand renkler */
    .footer-social a[href*="facebook"] i {
        color: #1877f2 !important; /* Facebook Official Blue */
    }

    .footer-social a[href*="instagram"] i {
        color: #e4405f !important; /* Instagram Official Pink/Red */
    }

    .footer-social a[href*="twitter"] i,
    .footer-social a[href*="x.com"] i {
        color: #1da1f2 !important; /* Twitter Official Blue */
    }

    .footer-social a[href*="youtube"] i {
        color: #ff0000 !important; /* YouTube Official Red */
    }

    .footer-social a[href*="linkedin"] i {
        color: #0a66c2 !important; /* LinkedIn Official Blue */
    }

    .footer-social a[href*="tiktok"] i {
        color: #ffffff !important; /* TikTok White (footer dark bg) */
    }

    .footer-social a[href*="telegram"] i {
        color: #0088cc !important; /* Telegram Official Blue */
    }
    
    .footer-social a:hover,
    .footer-social a:active {
        transform: translateY(-3px) scale(1.1);
    }
    
    /* CONTACT INFO MOBİL UYUMLU */
    .footer-section .contact-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .footer-section .contact-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.75rem;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius-md);
        transition: var(--transition-fast);
    }
    
    .footer-section .contact-item:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .footer-section .contact-item i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }

    /* Contact/Reservation Icons - Mobilde de orijinal renkler */
    .footer-section .contact-item a[href*="tel"] i {
        color: #34a853 !important; /* Google Green - Phone */
    }

    .footer-section .contact-item a[href*="whatsapp"] i,
    .footer-section .contact-item a[href*="wa.me"] i {
        color: #25d366 !important; /* WhatsApp Green */
    }

    .footer-section .contact-item a[href*="mailto"] i {
        color: #ea4335 !important; /* Gmail Red */
    }

    .footer-section .contact-item a[href*="maps"] i,
    .footer-section .contact-item a[href*="google.com/maps"] i {
        color: #4285f4 !important; /* Google Maps Blue */
    }
    
    /* FOOTER BOTTOM MOBİL UYUMLU */
    .footer-bottom {
        padding-top: 1.5rem; /* Daha az padding */
        margin-top: 1.5rem;
        text-align: center;
        font-size: 0.85rem; /* Küçült */
        line-height: 1.6;
        color: rgba(255,255,255,0.6);
    }
    
    .footer-bottom .copyright {
        margin-bottom: 0.75rem;
    }
    
    .footer-bottom .legal-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .footer-bottom .legal-links a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        padding: 0.5rem;
        border-radius: var(--radius-sm);
        transition: var(--transition-fast);
        font-size: 0.8rem;
    }
    
    .footer-bottom .legal-links a:hover {
        color: var(--white-pure);
        background: rgba(255,255,255,0.1);
    }
}

/* KÜÇÜK MOBİL (480px ve altı) */
@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem; /* Daha da kompakt */
    }
    
    .footer-content {
        gap: 1.5rem;
        padding: 0 0.75rem; /* Daha az yan padding */
    }
    
    .footer-section {
        padding: 1.25rem 0;
    }
    
    .footer-section h2, .footer-section h3 {
        font-size: 1rem; /* Daha küçük */
        margin-bottom: 1rem;
    }
    
    .footer-section:first-child h2, .footer-section:first-child h3 {
        font-size: 1.2rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem; /* Daha küçük */
        line-height: 1.7;
    }
    
    /* SOCIAL ICONS KÜÇÜK MOBİL */
    .footer-social {
        gap: 1rem; /* Daha az gap */
    }
    
    .footer-social a {
        padding: 14px; /* Touch-friendly ama küçük */
        font-size: 1.2rem;
    }
    
    /* CONTACT ITEMS KÜÇÜK MOBİL */
    .footer-section .contact-item {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .footer-section .contact-item i {
        font-size: 1rem;
        width: 18px;
    }
    
    /* FOOTER BOTTOM KÜÇÜK MOBİL */
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.25rem;
    }
    
    .footer-bottom .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-bottom .legal-links a {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ÇOK KÜÇÜK EKRANLAR (360px ve altı) */
@media (max-width: 360px) {
    .footer {
        padding: 1.25rem 0 0.75rem;
    }
    
    .footer-content {
        padding: 0 0.5rem;
        gap: 1.25rem;
    }
    
    .footer-section {
        padding: 1rem 0;
    }
    
    .footer-section h2, .footer-section h3 {
        font-size: 0.95rem;
    }
    
    .footer-section:first-child h2, .footer-section:first-child h3 {
        font-size: 1.1rem;
    }
    
    .footer-social a {
        padding: 12px;
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
    }
}

/* LANDSCAPE ORİENTASYON (Yatay tutma) */
@media (max-height: 500px) and (orientation: landscape) {
    .footer {
        padding: 1rem 0 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr); /* 2 kolon yatayda */
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-section {
        padding: 0.75rem 0;
        border-bottom: none; /* Çizgileri kaldır */
    }
    
    .footer-section h2, .footer-section h3 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
        line-height: 1.5;
        padding: 0.125rem 0;
    }
    
    .footer-social {
        gap: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .footer-social a {
        padding: 10px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.7rem;
    }
}

/* CROSS-BROWSER MOBİL UYUMLULUK */
/* iOS Safari özel düzeltmeler */
@supports (-webkit-touch-callout: none) {
    .footer-social a {
        -webkit-tap-highlight-color: rgba(0,102,204,0.2);
    }
    
    .footer-section a {
        -webkit-tap-highlight-color: rgba(255,255,255,0.1);
    }
    
    /* iOS safe area için ek padding */
    @media screen and (max-height: 812px) and (max-width: 414px) {
        .footer {
            padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        }
    }
}

/* Android WebView özel düzeltmeler */
@media screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px) {
    .footer-social a {
        min-width: 48px; /* Android için daha büyük */
        min-height: 48px;
    }
    
    .footer-section .contact-item {
        min-height: 44px;
    }
}

/* =====================================================
   FOOTER TEK BİLEŞEN (10-20 — Ender Bey: "bu footer görünümü ne", "ne düzen var ne başka bir şey", "hem desktop hem mobil, TÜM HATLARA";
   MURPH M-18750/M-18755/M-18756/M-18757/M-18759/M-18765). Bu blok TÜM HATLARDA BİREBİR AYNI (travel v1/v2/v3 · cafe · commerce · transfer).
   Önce (ölçüldü, canlı CBP): 390 px'te footer 2721 px — tek sütun ortalı, her bağlantı blok + .25rem dolgu + 1.8 satır + <br> ⇒ bağlantı başı ~45 px;
   "Find us on" ' • ' ile düz metin, GYG 40-48 px logo; sosyal ikonlar dolguyla boyutlanıyor, Instagram svg-icon-runtime ile çizgili SVG'ye
   dönüşüp gri/büyük kalıyordu (ikonlar artık data-svg-iconized ile dönüştürücü dışı — hepsi aynı FA seti).
   Bölümler işaretlemede adlı: --firma · --hizli · --turlar · --iletisim · --bilgi (SSR html-transform.js = istemci footer.js).
   Ağırlık bilerek ".footer …": eski 768/480/360 kurallarını ve mobile-ux-reset.css'teki "footer …" !important kurallarını yener.
   ===================================================== */
/* Masaüstü: 5 sütun TEK SATIR ızgara (eski flex tabanları 1080 + 4×40 boşluk = 1240 px ⇒ 1366'da 'Bilgi' alt satıra düşüyordu, 10-20 ölçüldü).
   Firma sütunu en az 328 px = en çok 7 sosyal ikon (7×40 + 6×8) tek satır — "yalnız kalan tek ikon YOK" (MURPH M-18757). */
.footer .footer-content { display: grid; grid-template-columns: minmax(328px, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; align-items: start; }
.footer .footer-section { min-width: 0; margin: 0; }
/* Popüler Turlar bölümü yoksa (travel v2/v3 · turu olmayan kiracı) 4 sütun — boş sütun kalmaz. Yalnız masaüstü (mobil ızgarayı ezmez). */
@media (min-width: 1101px) {
    .footer .footer-content:not(:has(.footer-section--turlar)) { grid-template-columns: minmax(328px, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 0.9fr); }
}
/* Ara genişlik (769–1100): firma tam satır, diğer dört bölüm 2×2. */
@media (min-width: 769px) and (max-width: 1100px) {
    .footer .footer-content { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
    .footer .footer-section--firma { grid-column: 1 / -1; }
}
.footer .footer-section br { display: none; }
/* Başlık boyutu footer'a özgü: base.css mobilde h2/h3 boyutunu !important ile sabitliyor (≤480 h2 1.5rem · h3 1.3rem) ⇒ footer kuralı
   hiçbir hatta uygulanmıyordu (10-20 ölçüldü: firma başlığı transfer/commerce 24px, travel/cafe 20.8px). Tek kural: !important. */
.footer .footer-section h3, .footer .footer-section h2 { font-size: 1rem !important; line-height: 1.3; margin: 0 0 0.75rem; }
.footer .footer-section a { display: block; margin: 0; padding: 5px 0; line-height: 1.4; font-size: 0.9rem; }
.footer .footer-section a:hover { transform: none; }
.footer .footer-section--firma p { margin: 0 0 1rem; line-height: 1.55; font-size: 0.9rem; }
.footer .footer-section--iletisim a { display: flex; align-items: flex-start; gap: 8px; }
.footer .footer-section--iletisim a > i, .footer .footer-section--iletisim a > svg { flex: 0 0 16px; width: 16px; margin: 3px 0 0; text-align: center; }
/* Uzun e-posta/adres/bağlantı sütun içinde kalır — esnek satırdaki metin daralabilir (min-width: 0) ve kelime içinden kırılır.
   10-20 MURPH M-18865: 1280/1366'da 'cappadociaballoonprice@gmail.com' komşu sütundaki 'KVKK' üzerine biniyordu. */
.footer .footer-section a, .footer .footer-section p, .footer .footer-section span { overflow-wrap: anywhere; }
.footer .footer-section--iletisim a > span { flex: 1 1 auto; min-width: 0; }
.footer .footer-section--turlar .footer-all-tours { margin-top: 4px; font-weight: 600; }

/* Sosyal: EŞİT DAİRE, aynı renk ve boy (marka rengi üzerine gelince) — 7 ikon 360 px'te tek satıra sığar (7×40 + 6×8 = 328). */
.footer .footer-social { display: flex !important; flex-wrap: wrap; gap: 8px !important; margin: 0 0 1rem; justify-content: flex-start; }
.footer .footer-social .social-link {
    width: 40px; height: 40px; flex: 0 0 40px; padding: 0 !important; margin: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18);
}
.footer .footer-social .social-link i { font-size: 18px !important; width: 18px; height: 18px; line-height: 18px; margin: 0; text-align: center; color: #ffffff !important; }
.footer .footer-social .social-link:hover { transform: none; background: rgba(255, 255, 255, 0.20); }

/* Find us on: EŞİT ÇİP — her platform aynı biçim: 16 px tek renkli ikon + adı (logo/görsel yok, ayraç yok). */
.footer .footer-reviews { margin: 0 0 1rem; }
.footer .footer-reviews-baslik { font-size: 12px; color: var(--white-soft); margin: 0 0 8px; }
.footer .review-platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.footer .footer-section .review-platforms .review-link {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.06);
    font-size: 13px; line-height: 1; white-space: nowrap; color: var(--white-soft);
}
.footer .footer-section .review-platforms .review-link:hover { background: rgba(255, 255, 255, 0.14); text-decoration: none; }
.footer .footer-section .review-platforms .review-ikon { width: 16px; height: 16px; flex: 0 0 16px; font-size: 15px; line-height: 16px; margin: 0; text-align: center; color: currentColor !important; fill: currentColor; }

/* Masaüstü/tablet (≥769): alt bilgi tek blok. */
.footer .footer-bottom { padding-top: 1.25rem; margin-top: 0.5rem; line-height: 1.5; }
.footer .footer-bottom p { margin: 0 0 0.25rem; }

/* MOBİL (≤768): firma tam genişlik ortalı · Hızlı Bağlantılar + Bilgi YAN YANA 2 sütun · Popüler Turlar ve İletişim tam genişlik · sıkı ritim. */
@media (max-width: 768px) {
    .footer .footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; text-align: start; padding: 0; margin-bottom: 0.5rem; }
    .footer .footer-section { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
    .footer .footer-section--firma { grid-column: 1 / -1; order: 1; text-align: center; padding-top: 0; }
    .footer .footer-section--hizli { order: 2; }
    .footer .footer-section--bilgi { order: 3; }
    .footer .footer-section--turlar { grid-column: 1 / -1; order: 4; }
    .footer .footer-section--iletisim { grid-column: 1 / -1; order: 5; border-bottom: none; }
    .footer .footer-section h3, .footer .footer-section h2 { font-size: 0.95rem !important; margin-bottom: 6px; text-align: start; }
    .footer .footer-section--firma h3, .footer .footer-section--firma h2 { font-size: 1.15rem !important; justify-content: center; text-align: center; margin-bottom: 8px; }
    .footer .footer-section a { padding: 6px 0; font-size: 0.875rem; line-height: 1.35; }
    .footer .footer-section--firma p { font-size: 0.875rem; margin-bottom: 12px; }
    /* Firma tanıtımı 4 satır + 'Devamı' (footer.js devamiKur — yalnız taşıyorsa; JS yoksa metin tam). */
    /* padding 0: eski mobil kural (.footer-section p { padding: 0.25rem 0 }) dolgu bırakıyordu; overflow dolgu kutusunda kırptığı için 5. satırın
       üstü (Ü/İ işaretleri) 4. satırın altında görünüyordu (10-21 ölçüldü: 5. satır 11146.7 < kutu altı 11148.7). */
    .footer .footer-section--firma p.footer-kisa { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; padding: 0; margin-bottom: 4px; }
    .footer .footer-devami { display: inline-flex; align-items: center; min-height: 32px; margin: 0 0 12px; padding: 0 4px; background: none; border: 0; color: var(--white-soft); font: inherit; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
    .footer .footer-devami[hidden] { display: none; }
    .footer .footer-social, .footer .review-platforms { justify-content: center !important; }
    .footer .footer-reviews-baslik { text-align: center; }
    .footer .footer-bottom { padding-top: 12px !important; margin-top: 0; font-size: 12px; }
}
