/**
 * Şıp Harita - Modern Minimalist Tasarım Sistemi (tasarim.css)
 * Yeni Referans Tasarım: Buz Mavisi / Lavanta Arka Plan + Ekstra Yuvarlak Beyaz Kutular (26px)
 * PHP dosyalarında inline <style> kullanılmaz.
 */

:root {
    --primary: #2962FF; /* Mobil App'in Gerçek Ana Rengi (#2962FF) */
    --primary-light: #eef2ff;
    --primary-hover: #1e4fd8;
    --primary-shadow: rgba(41, 98, 255, 0.35);
    --dark-pill: #0f172a;
    --bg-page: #dde5f4; /* Örnek görseldeki yumuşak buz mavisi / lavanta arka plan */
    --card-bg: #ffffff;
    --border-card: rgba(255, 255, 255, 0.9);
    --border-subtle: rgba(226, 232, 240, 0.8);
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --shadow-card: 0 10px 30px -6px rgba(15, 23, 42, 0.05), 0 4px 10px -2px rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 20px 40px -10px rgba(41, 98, 255, 0.12);
    --radius-card: 26px; /* Görseldeki ekstra yumuşak yuvarlak köşeler */
    --radius-hero: 32px;
    --radius-pill: 9999px;
}

/* ========================================================================= */
/* TEMEL AYARLAR & ARKA PLAN                                                 */
/* ========================================================================= */
html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 10% 15%, rgba(30, 58, 138, 0.1) 0%, transparent 40%), 
                radial-gradient(circle at 90% 85%, rgba(99, 102, 241, 0.08) 0%, transparent 40%), 
                var(--bg-page);
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ========================================================================= */
/* ÜST HEADER (FERAH VE GENİŞ VERTICAL PADDING)                               */
/* ========================================================================= */
.site-main-header {
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
@media (min-width: 640px) {
    .site-main-header {
        padding-top: 1.35rem !important;
        padding-bottom: 1.35rem !important;
    }
}

/* Ana Sayfada Scroll En Üstteyken (Şeffaf / Beyaz Olmayan Durum) */
.site-main-header.header-at-top {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

/* Ana Sayfada Scroll Aşağı Kayınca (Beyazlaşan Durum) */
.site-main-header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
}

/* Webkit Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #dbe3ef;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Metin Kırpma (Line Clamp) */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================================================= */
/* HERO BÖLÜMÜ (ÖRNEK GÖRSELDEKİ BÜYÜK YÜZEN BEYAZ KUTU)                      */
/* ========================================================================= */
.hero-section-wrap {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-floating-card {
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 2.5rem 1rem 1rem;
    position: relative;
}
@media (min-width: 640px) {
    .hero-floating-card {
        padding: 3.5rem 2rem 1.5rem;
    }
}

.hero-main-title {
    font-size: 2.25rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--primary); /* Şıp Harita Tema Mavisi (#2962FF) */
    letter-spacing: -0.03em;
}
@media (min-width: 640px) {
    .hero-main-title {
        font-size: 3.25rem;
    }
}
@media (min-width: 1024px) {
    .hero-main-title {
        font-size: 3.75rem;
    }
}

.hero-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* ========================================================================= */
/* KAPSÜL ARAMA ÇUBUĞU (PILL SEARCH BOX)                                      */
/* ========================================================================= */
.search-pill-container {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    padding: 6px 8px 6px 18px;
    transition: all 0.25s ease;
}
.search-pill-container:focus-within {
    background: #ffffff;
    border-color: #93c5fd;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.12), 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-field {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.925rem;
    color: var(--text-heading);
    width: 100%;
    font-weight: 500;
}
.search-input-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-category-select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text-body);
    font-weight: 600;
    cursor: pointer;
    padding-right: 1.25rem;
}

/* Görseldeki yuvarlak arama aksiyon butonu */
.btn-search-round {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-search-round:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}
.btn-search-round:active {
    transform: scale(0.96);
}

/* Hızlı Filtre Hapları */
.quick-pill-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}
.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--text-muted);
    font-size: 0.775rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.02);
    text-decoration: none;
}
.quick-pill:hover {
    color: var(--primary);
    border-color: #bfdbfe;
    background: #eff6ff;
    transform: translateY(-1px);
}
.quick-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* ========================================================================= */
/* KATEGORİ KARTLARI (ÖRNEK GÖRSELDEKİ "OUR SERVICES" KUTU STİLİ)              */
/* ========================================================================= */
.category-services-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}
@media (min-width: 480px) {
    .category-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    .category-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .category-services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.service-box-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.35rem;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.service-box-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

/* Üst Sıra: Sol yuvarlak ikon rozeti + Sağ kalp/favori ikonu */
.service-box-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.service-icon-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.service-heart-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.service-box-card:hover .service-heart-btn {
    color: var(--primary);
}

.service-box-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.service-box-desc {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.service-box-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========================================================================= */
/* KATEGORİ AĞACI KARTLARI (REFERANS GÖRSEL İSKELET VE YERLEŞİM DÜZENİ)       */
/* ========================================================================= */
.category-tree-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}
@media (min-width: 520px) {
    .category-tree-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}
@media (min-width: 768px) {
    .category-tree-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    .category-tree-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}
@media (min-width: 1280px) {
    .category-tree-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px;
    }
}

.category-tree-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.78) 0%, rgba(235, 242, 255, 0.65) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    padding: 1.25rem 1.15rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 290px;
}
.category-tree-card:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -6px rgba(41, 98, 255, 0.16), 0 4px 12px rgba(41, 98, 255, 0.08);
    border-color: rgba(41, 98, 255, 0.4);
}

.category-tree-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
}

.category-tree-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #eff6ff;
    color: var(--primary);
    border: 1px solid rgba(41, 98, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(41, 98, 255, 0.06);
}
.category-tree-card:hover .category-tree-icon {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 16px -2px rgba(41, 98, 255, 0.4);
    border-color: var(--primary);
}

.category-tree-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.25;
    margin: 0;
    transition: color 0.2s ease;
    word-break: break-word;
}
.category-tree-card:hover .category-tree-title {
    color: var(--primary);
}

.category-tree-list {
    display: flex;
    flex-direction: column;
    padding-top: 0.4rem;
    flex: 1;
}

.category-tree-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.25rem;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.category-tree-item:hover {
    color: var(--primary);
    padding-left: 0.4rem;
    background-color: rgba(239, 246, 255, 0.5);
}
.category-tree-item .sub-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.category-tree-item .sub-arrow {
    font-size: 0.65rem;
    color: #cbd5e1;
    transition: all 0.15s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.category-tree-item:hover .sub-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.category-tree-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f8fafc;
}

.category-tree-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.15s ease;
}
.category-tree-more:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
.category-tree-more .more-arrow {
    font-size: 0.65rem;
    transition: transform 0.15s ease;
}
.category-tree-more:hover .more-arrow {
    transform: translateX(3px);
}

/* ========================================================================= */
/* FİRMA KARTLARI (BEYAZ YUMUŞAK KUTULAR & 26PX KÖŞELER)                     */
/* ========================================================================= */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}
@media (min-width: 480px) {
    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 1280px) {
    .featured-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.business-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
}
.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

/* Görsel Alanı */
.business-card-media {
    position: relative;
    width: 100%;
    padding-top: 65%;
    background: #f1f5f9;
    overflow: hidden;
}
.business-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.business-card:hover .business-card-img {
    transform: scale(1.05);
}

/* Görsel Yoksa Temiz Zarif Arka Plan */
.business-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    font-size: 1.75rem;
}

/* Rozetler */
.badge-featured-blue {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    z-index: 2;
}
.badge-open-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #059669;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.badge-closed-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* Kart İçeriği */
.business-card-body {
    padding: 1.15rem 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.business-category-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.business-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}
.business-card:hover .business-title {
    color: var(--primary);
}

.business-address-snippet {
    font-size: 0.775rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

/* Yıldızlar & Puan */
.business-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.stars-container {
    color: #f59e0b;
    font-size: 0.7rem;
    display: flex;
    gap: 1px;
}
.rating-num {
    font-weight: 700;
    color: var(--text-heading);
}
.review-count {
    color: var(--text-muted);
}

/* Kart Alt Çubuğu (Aksiyonlar & Sağ Alt İkon) */
.business-card-footer {
    padding: 0.75rem 1rem;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-card-action:hover {
    color: var(--primary-hover);
}

.btn-bookmark-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-bookmark-icon:hover {
    color: var(--primary);
    border-color: #bfdbfe;
    background: #eff6ff;
}

/* ========================================================================= */
/* BÖLÜM BAŞLIKLARI (SECTION HEADERS)                                        */
/* ========================================================================= */
.section-header-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .section-header-wrap {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.section-main-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}
@media (min-width: 640px) {
    .section-main-title {
        font-size: 1.7rem;
    }
}

.section-sub-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}
.section-view-all:hover {
    gap: 9px;
    color: var(--primary-hover);
}

/* ========================================================================= */
/* FOOTER DÜZENİ                                                             */
/* ========================================================================= */
.site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
}
.footer-col-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-heading);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.footer-link {
    color: var(--text-muted);
    font-size: 0.825rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 0.5rem;
}
.footer-link:hover {
    color: var(--primary);
}

/* ========================================================================= */
/* 3 SÜTUNLU KATEGORİ & FİRMA LİSTELEME DÜZENİ (REFERANS TASARIM)           */
/* Sol: Filtreler | Orta: Yakından Uzağa Firmalar | Sağ: Canlı Sticky Harita */
/* ========================================================================= */

.category-page-container {
    max-width: 1650px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 3.5rem;
}
@media (min-width: 640px) {
    .category-page-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .category-page-container {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 1.25rem;
    }
}

/* 3 Sütunlu Grid Izgarası */
.category-three-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .category-three-col-grid {
        grid-template-columns: 280px minmax(420px, 1fr) minmax(380px, 480px);
    }
}
@media (min-width: 1380px) {
    .category-three-col-grid {
        grid-template-columns: 290px minmax(500px, 1fr) 520px;
    }
}

/* ------------------------------------------------------------------------- */
/* 1. SÜTUN: SOL FİLTRE PANELİ (FILTER SIDEBAR)                             */
/* ------------------------------------------------------------------------- */
.filter-sidebar-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
    z-index: 20;
}

.filter-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.25rem;
}

.filter-sidebar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.filter-reset-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.filter-reset-link:hover {
    color: var(--primary);
}

.filter-group {
    margin-bottom: 1.35rem;
}
.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin-bottom: 0.65rem;
}

/* Kategori Listesi */
.filter-cat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.filter-cat-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}
.filter-cat-item.is-active {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.25);
}
.filter-cat-item.is-active .filter-cat-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.filter-cat-item.is-parent-active {
    background: #eef2ff;
    color: var(--primary);
    border-color: #c7d2fe;
    font-weight: 700;
}
.filter-cat-item.is-parent-active .filter-cat-badge {
    background: #e0e7ff;
    color: var(--primary);
}

.filter-cat-subitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}
.filter-cat-subitem:hover {
    background: #f1f5f9;
    color: var(--primary);
}
.filter-cat-subitem.is-active {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.2);
}
.filter-cat-subitem.is-active .filter-cat-subbadge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.filter-cat-subbadge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #64748b;
}

.filter-cat-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

/* GPS Hızlı Bul Butonu */
.btn-gps-trigger {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(41, 98, 255, 0.25);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.btn-gps-trigger:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(41, 98, 255, 0.28);
}
.btn-gps-trigger.is-active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Filtre Checkbox / Toggle */
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    padding: 6px 0;
    user-select: none;
}
.filter-checkbox-input {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Filtre Arama Inputu */
.filter-search-box {
    position: relative;
    width: 100%;
}
.filter-search-input {
    width: 100%;
    height: 38px;
    padding-left: 32px;
    padding-right: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.775rem;
    font-weight: 500;
    color: var(--text-heading);
    outline: none;
    transition: all 0.2s ease;
}
.filter-search-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.12);
}
.filter-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #94a3b8;
    pointer-events: none;
}

/* ------------------------------------------------------------------------- */
/* 2. SÜTUN: ORTA FİRMA LİSTESİ (YATAY KARTLAR - YAKINDAN UZAĞA)              */
/* ------------------------------------------------------------------------- */
.category-results-header {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.03);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 640px) {
    .category-results-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.category-results-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}
.category-results-count strong {
    color: var(--text-heading);
    font-weight: 800;
}

.category-sort-select {
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--text-heading);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.category-sort-select:focus {
    border-color: var(--primary);
    background: #ffffff;
}

/* Yatay Firma Kartı (.business-row-card) */
.business-row-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 1rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}
@media (min-width: 640px) {
    .business-row-card {
        flex-direction: row;
        align-items: stretch;
    }
}

.business-row-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(41, 98, 255, 0.3);
}

.business-row-card.is-focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.25), var(--shadow-hover);
}

/* Medya (Görsel Sol Taraf) */
.business-row-media {
    width: 100%;
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .business-row-media {
        width: 190px;
        height: auto;
        min-height: 140px;
    }
}

.business-row-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.business-row-card:hover .business-row-img {
    transform: scale(1.05);
}

.business-row-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #cbd5e1;
    font-size: 2rem;
}

/* Kart İçerik Alanı */
.business-row-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.business-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.business-row-cat-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #eff6ff;
    color: var(--primary);
}

.business-row-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.015em;
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}
.business-row-card:hover .business-row-title {
    color: var(--primary);
}

.business-row-address {
    font-size: 0.775rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.business-row-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* Dinamik Mesafe Rozeti */
.business-distance-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.725rem;
    font-weight: 800;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    transition: all 0.2s ease;
}
.business-distance-pill.is-calculating {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}
.business-distance-pill.is-near {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
}

/* Kart Alt Barı & Aksiyon Butonları */
.business-row-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.btn-row-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 9999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.775rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-row-action:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.3);
}

.btn-row-map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.btn-row-map-link:hover {
    color: var(--primary);
    background: #eff6ff;
}

/* ------------------------------------------------------------------------- */
/* 3. SÜTUN: SAĞ İNTERAKTİF CANLI HARİTA (STICKY MAP)                        */
/* ------------------------------------------------------------------------- */
.sticky-map-wrapper {
    background: #ffffff;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    min-height: 520px;
    max-height: 850px;
    display: flex;
    flex-direction: column;
}

.sticky-map-header {
    padding: 12px 18px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.sticky-map-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-map-element {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 480px;
    z-index: 1;
}

/* Harita Özel Leaflet Pin İkonları */
.custom-category-pin {
    background: transparent;
    border: none;
}

.pin-bubble-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.pin-bubble-wrapper:hover,
.pin-bubble-wrapper.is-active {
    transform: scale(1.25);
    z-index: 999 !important;
}

.pin-bubble {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 14px rgba(41, 98, 255, 0.45);
    transition: all 0.2s ease;
}
.pin-bubble-wrapper.is-active .pin-bubble {
    background: #0f172a;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.5);
}

.pin-bubble-inner {
    transform: rotate(45deg);
    color: #ffffff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kullanıcı GPS Radarı */
.user-gps-pin {
    position: relative;
    width: 24px;
    height: 24px;
}
.user-gps-pulse {
    position: absolute;
    width: 32px;
    height: 32px;
    left: -4px;
    top: -4px;
    border-radius: 50%;
    background: rgba(41, 98, 255, 0.3);
    animation: gpsPulse 2s infinite ease-out;
}
.user-gps-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    left: 5px;
    top: 5px;
    border-radius: 50%;
    background: var(--primary);
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@keyframes gpsPulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Leaflet Popup Kartı (Referans Tasarıma Birebir) */
.leaflet-popup-content-wrapper {
    border-radius: 18px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.2) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
}
.leaflet-popup-content {
    margin: 0 !important;
    line-height: normal !important;
    font-family: inherit !important;
}
.leaflet-popup-tip {
    background: #ffffff !important;
}

.map-popup-card {
    width: 250px;
    background: #ffffff;
    padding: 12px;
}
.map-popup-thumb {
    width: 100%;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 8px;
    background: #f1f5f9;
}
.map-popup-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 3px 0;
    line-height: 1.3;
}
.map-popup-address {
    font-size: 0.725rem;
    color: var(--text-muted);
    margin: 0 0 6px 0;
}
.map-popup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}
.map-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 0.725rem;
    font-weight: 700;
    text-decoration: none !important;
}
.map-popup-btn:hover {
    background: var(--primary-hover);
}

/* Mobil Görünümde Harita / Liste Geçiş Butonları */
.mobile-view-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}
@media (min-width: 1024px) {
    .mobile-view-tabs {
        display: none;
    }
}
.btn-mobile-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-body);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.btn-mobile-tab.is-active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ========================================================================= */
/* SAYFALAMA & SCROLL LOAD (INFINITE SCROLL) STILLERI                        */
/* ========================================================================= */

.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.pagination-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.04);
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-heading);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}
.pagination-btn.is-active {
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.3);
}
.pagination-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

.pagination-dots {
    padding: 0 6px;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.85rem;
}

/* Scroll Load / Daha Fazla Yükle Butonu & Yükleniyor */
.scroll-load-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    gap: 8px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(41, 98, 255, 0.1);
}
.btn-load-more:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(41, 98, 255, 0.25);
    transform: translateY(-1px);
}
.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.scroll-load-spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(41, 98, 255, 0.25);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
.btn-load-more:hover .scroll-load-spinner {
    border-top-color: #ffffff;
}

.scroll-load-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
