/* ==========================================================
   Clara Stübli — Custom Overrides
   Önce vendors.css + style.css + office701.css yüklenir,
   bu dosya onların üzerine yazar.
   ========================================================== */

/* ----------------------------------------------------------
   1. MARKA RENKLERİ & FONT
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   Popup Modal Tasarımı
   ---------------------------------------------------------- */

#custom-popup .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    margin-top: 28px; /* üstteki X butonu için yer */
}

#custom-popup .modal-header {
    background: var(--theme);
    border-bottom: none;
    padding: 18px 10px 18px 28px;
    position: relative;
    align-items: center;
}

#custom-popup .modal-header .header-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* X butonu — tema override (main.css'teki konum korunur) */
#custom-popup .modal-content .modal-header .btn-close {
    background-color: var(--theme);
    border: 3px solid #fff;
    top: -20px;
    width: 15px;
    height: 15px;
}

#custom-popup .modal-body {
    padding: 24px 28px 20px;
}

/* Görsel dosya — açıklamanın üstünde */
#custom-popup .popup-file-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}

/* PDF iframe */
#custom-popup .popup-file-pdf {
    width: 100%;
    height: 440px;
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
    background: #f8f8f8;
}

/* Açıklama metni */
#custom-popup .popup-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

#custom-popup .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 12px 24px;
    justify-content: flex-end;
    background: #fafafa;
}

/* Kapat butonu */
#custom-popup .btn-popup-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    background: var(--theme);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#custom-popup .btn-popup-close:hover {
    background: var(--title);
    color: #fff;
}

/* ----------------------------------------------------------
   Aktif Menü Öğesi
   ---------------------------------------------------------- */

/* Ana nav'da aktif sayfa linki tema rengiyle vurgulanır */
.header-main .main-menu ul > li.active > a {
    color: var(--theme) !important;
}

/* Aktif dropdown öğesi — hover stiliyle aynı görünüm */
.header-main .main-menu ul li .submenu li.active > a {
    background: var(--theme);
    color: var(--white) !important;
}

:root {
    --cs-primary:      #6b4c3b;   /* koyu toprak kahve */
    --cs-primary-dark: #4e3529;
    --cs-accent:       #c8a97e;   /* açık altın bej */
    --cs-light-bg:     #faf7f4;   /* kremimsi arka plan */
    --cs-text:         #3a3a3a;
    --cs-text-light:   #777;
}

/* ----------------------------------------------------------
   18. DİL SEÇİCİ (Nav içinde .submenu olarak)
   ---------------------------------------------------------- */

/* Aktif dil butonu (flag + kod) */
.cs-lang-nav > a.show-submenu {
    align-items: center;
    gap: 5px;
    padding: 5px 8px !important;
    border: 1px solid rgba(107, 76, 59, 0.25);
    border-radius: 3px;
}

.cs-lang-nav > a.show-submenu:hover {
    border-color: var(--cs-primary);
    color: var(--cs-primary) !important;
}

/* Bayrak görseli — hem nav hem dropdown içinde */
.lang-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    flex-shrink: 0;
    margin-right: 2px;
}

/* Dil dropdown içindeki her satır */
.cs-lang-nav ul li a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Dil kodu (kalın) */
.lang-label {
    font-weight: 700;
    min-width: 22px;
    text-transform: uppercase;
}

/* Dil tam adı (soluk) */
.lang-name {
    color: var(--cs-text-light);
    font-weight: 400;
    font-size: 0.75rem;
}

/* Aktif dil vurgusu */
.cs-lang-item.cs-lang-active {
    background: var(--cs-light-bg);
    color: var(--cs-primary-dark) !important;
    font-weight: 600;
}

.cs-lang-item.cs-lang-active .lang-name {
    color: var(--cs-primary);
}

/* ============================================================
   28. YENİ TEMA UYUM STİLLERİ (Fresheat → Clara Stübli)
   ============================================================ */

/* Header right — flex düzeni (main.css'te eksik olan display:flex tanımı) */
.header-main .header-right {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* Dil Seçici Dropdown */
.cs-lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.cs-lang-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}
.cs-lang-toggle-btn:hover { border-color: #fff; }
.cs-lang-toggle-btn i { font-size: 10px; }

/* Sticky header: koyu arka plana geçilince buton renkleri düzelt */
.sticky .cs-lang-toggle-btn {
    border-color: rgba(0,0,0,0.2);
    color: #333;
}
.sticky .cs-lang-toggle-btn:hover {
    border-color: var(--theme-color, #e63a27);
    color: var(--theme-color, #e63a27);
}
.cs-lang-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    list-style: none;
    padding: 6px 0 8px;
    margin: 0;
    min-width: 120px;
    z-index: 9999;
}
.cs-lang-dropdown:hover .cs-lang-list,
.cs-lang-dropdown.open .cs-lang-list { display: block; }
.cs-lang-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s;
}
.cs-lang-list li a:hover,
.cs-lang-list li a.active { background: #f5f5f5; color: var(--theme-color, #e63a27); }

/* Blog kartları */
.single-blog-wrap.style1 {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: 100%;
}
.single-blog-wrap.style1 .blog-content {
    padding: 20px;
}
.single-blog-wrap.style1 .blog-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
}
.single-blog-wrap.style1 .blog-title a {
    color: inherit;
    text-decoration: none;
}
.single-blog-wrap.style1 .blog-title a:hover { color: var(--theme-color, #e63a27); }
.single-blog-wrap.style1 .blog-meta span {
    font-size: 12px;
    color: #888;
}

/* Galeri görseller hover */
.gallery-thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-thumb img {
    transition: transform 0.4s ease;
}
.gallery-thumb:hover img { transform: scale(1.05); }

/* Galeri büyüteç ikonu */
.gallery-thumb .icon i {
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

/* Hover overlay tıklamaları engellemeyecek; tıklama a.cs-gallery-item'e geçecek */
.gallery-thumb:before {
    pointer-events: none;
}

/* CTA section overlay */
.cta-wrapper.style1 {
    position: relative;
}
.cta-wrapper.style1 .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 0;
}
.cta-wrapper.style1 .container {
    position: relative;
    z-index: 1;
}
.cta-content h6 { color: var(--theme-color2, #e63a27); text-transform: uppercase; letter-spacing: 2px; }
.cta-content h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 10px 0 20px; }

/* ----------------------------------------------------------
   Breadcrumb Section (hakkimizda ve iç sayfalar)
   ---------------------------------------------------------- */
.breadcrumb-section .breadcrumb-wrapper {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    min-height: 280px;
    display: flex;
    align-items: center;
}
.breadcrumb-section .breadcrumb-wrapper .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}
.breadcrumb-section .container {
    position: relative;
    z-index: 1;
}
.breadcrumb-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}
.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.breadcrumb-list li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}
.breadcrumb-list li + li::before {
    content: '/';
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.5);
}
.breadcrumb-list li a {
    color: var(--cs-accent);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-list li a:hover { color: #fff; }
.clara-checkbox {
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 0px !important;
}

/* ==========================
   Menu PDF Cards Styling
   PDF Menü Kartları Stil
   ========================== */

.menu-items-grid {
    margin-top: 40px;
}

.menu-items-grid .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-items-grid .col-lg-6,
.menu-items-grid .col-xl-6 {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
}

.menu-pdf-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-pdf-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Thumbnail Section */
.card-header {
    padding: 14px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.thumbnail-wrapper {
    flex-shrink: 0;
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
    margin-bottom: 12px;
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Favicon sabit logo — contain ile tam görünsün */
.card-favicon {
    object-fit: contain;
    padding: 8px;
    background: #fff;
}

/* Görsel lightbox alanı */
.card-image-viewer {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0;
}

.card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.card-preview-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-image-link:hover .card-preview-img {
    transform: scale(1.04);
}

/* Hover'da büyüteç ikonu */
.image-zoom-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image-link:hover .image-zoom-overlay {
    opacity: 1;
}

.image-zoom-overlay i {
    color: #fff;
    font-size: 32px;
}

/* Header Content */
.header-content {
    flex: 1;
    min-width: 0;
}

.header-content h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    word-break: break-word;
}

.card-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

/* PDF Viewer */
.card-pdf-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    background: #f0f0f0;
    position: relative;
}

.pdf-frame-wrapper {
    width: 100%;
    flex: 1;
    overflow: hidden;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Footer with Action Buttons */
.card-footer {
    padding: 12px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 10px 12px;
    background-color: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.action-btn:hover {
    background-color: #a01830;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(196, 30, 58, 0.3);
}

.action-btn i {
    font-size: 13px;
}

.action-btn span {
    letter-spacing: 0.3px;
}

/* Empty State */
.card-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: #f0f0f0;
    border-top: 1px solid #eee;
    flex: 1;
}

.card-empty-state p {
    margin: 0;
    color: #999;
    font-size: 13px;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .menu-items-grid .col-lg-6,
    .menu-items-grid .col-xl-6 {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .menu-items-grid .row {
        gap: 16px;
    }

    .menu-items-grid .col-lg-6,
    .menu-items-grid .col-xl-6 {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .card-header {
        padding: 12px;
    }

    .thumbnail-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .card-preview-img {
        height: 220px;
    }

    .header-content h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .card-description {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .card-pdf-viewer {
        min-height: 220px;
    }

    .action-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .action-btn i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .menu-items-grid .row {
        gap: 12px;
    }

    .menu-items-grid .col-lg-6,
    .menu-items-grid .col-xl-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .card-header {
        padding: 12px;
    }

    .thumbnail-wrapper {
        width: 60px;
        height: 60px;
    }

    .card-preview-img {
        height: 180px;
    }

    .header-content h3 {
        font-size: 13px;
    }

    .card-description {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .card-pdf-viewer {
        min-height: 200px;
    }

    .card-footer {
        padding: 10px;
        gap: 6px;
    }

    .action-btn {
        padding: 8px 10px;
        font-size: 10px;
    }

    .action-btn i {
        font-size: 11px;
    }
}

/* ================================================
   Sub Menü Kartları — yatay kompakt kart tasarımı
   ================================================ */
.sub-menu-list {
    margin: 20px;
    padding-top: 18px;
    border-top: 2px dashed #e8e8e8;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Yatay kart: sol thumbnail + sağ içerik */
.sub-menu-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-left: 3px solid var(--theme);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    min-height: 80px;
}

.sub-menu-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Sol: thumbnail görsel veya placeholder */
.sub-card-thumb {
    flex-shrink: 0;
    width: 90px;
    position: relative;
    overflow: hidden;
    display: block;
    background: #fff;
    margin-left: 20px;
    border-radius: 8px;
}

.sub-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.sub-card-thumb:hover img {
    transform: scale(1.05);
}

/* Lightbox büyüteç ikonunu thumbnail üzerine konumlandır */
.sub-card-thumb .image-zoom-overlay {
    opacity: 0;
}

.sub-card-thumb:hover .image-zoom-overlay {
    opacity: 1;
}

/* PDF ikon placeholder */
.sub-card-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.sub-card-thumb--placeholder i {
    font-size: 24px;
    color: #bbb;
}

/* Sağ: başlık + açıklama + buton */
.sub-card-body {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    min-width: 0;
    gap: 10px;
}

.sub-card-info {
    flex: 1;
    min-width: 0;
}

.sub-card-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--title);
    line-height: 1.35;
    margin-bottom: 3px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sub-card-desc {
    font-size: 11px;
    color: #888;
    margin: 0;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Görüntüle butonu */
.sub-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--theme);
    color: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-end;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.2s ease;
    position: relative;
    top: -10px;
}

.sub-action-btn:hover {
    background: var(--theme2, #333);
    color: #fff;
    transform: translateY(-1px);
}

.sub-action-btn i {
    font-size: 11px;
}


/* ================================================
   Best Food Items — static grid (no slider) */
.best-food-grid-wrapper {
    overflow: visible;
}

.best-food-grid-wrapper .row {
    overflow: visible;
}

/* .best-food-grid-wrapper .single-food-items {
    height: 100%;
} */