/* ==========================================
   ALT YAPI VE ORTAK PORTAL STİLLERİ
========================================== */
.portal-container { max-width: 1200px; margin: 25px auto; padding: 0 15px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 25px; align-items: start; }
.main-content-column { min-width: 0; }
@media (max-width: 992px) { 
    .portal-container { display: flex !important; flex-direction: column !important; gap: 20px !important; }
    .main-content-column { width: 100% !important; order: 1 !important; }
    .sidebar-portal { width: 100% !important; order: 2 !important; position: static !important; bottom: auto !important; align-self: auto !important; }
}
.breadcrumb-nav { font-size: 13px; color: #64748b; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; padding: 12px 18px; border-radius: 10px; border: 1px solid #e2e8f0; box-sizing: border-box; }
.breadcrumb-nav a { color: #2563eb; text-decoration: none; font-weight: 500; }

/* ==========================================
   ECZANE KARTLARI VE LİSTE STİLLERİ
========================================== */
.pharmacy-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; gap: 15px; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.02); box-sizing: border-box; }
.pharmacy-card:hover { border-color: #93c5fd; box-shadow: 0 4px 12px rgba(37,99,235,0.08); }
.pharmacy-info h3 { margin: 0 0 6px 0; font-size: 16px; font-weight: 700; color: #1e293b; word-break: break-word; }
.pharmacy-info p { margin: 0 0 8px 0; font-size: 13px; color: #64748b; line-height: 1.4; word-break: break-word; }
.pharmacy-phone { font-size: 13px; font-weight: 600; color: #059669; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pharmacy-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.btn-call { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; text-align: center; }
.btn-map { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; text-align: center; }

/* ==========================================
   İL VE İLÇE SEÇİM GRİDLERİ
========================================== */
.city-grid, .district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 25px; }
@media (max-width: 768px) { .city-grid, .district-grid { grid-template-columns: repeat(2, 1fr); } }
.city-card, .district-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; text-align: center; text-decoration: none; color: #1e293b; font-weight: 600; font-size: 13px; transition: all 0.2s; box-sizing: border-box; display: block; }
.city-card:hover, .district-card:hover, .district-card.active { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; transform: translateY(-2px); }

/* ==========================================
   SIDEBAR (SAĞ BLOK) STİLLERİ
========================================== */
.sidebar-portal { display: flex; flex-direction: column; gap: 25px; position: sticky; bottom: 20px; align-self: flex-end; width: 100%; box-sizing: border-box; }
.sidebar-widget { background: #fff; padding: 20px; border-radius: 10px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.02); box-sizing: border-box; overflow: hidden; }
.sidebar-widget h3 { margin-top: 0; font-size: 14px; color: #1e293b; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; word-break: break-word; }
.ad-slot { background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 8px; padding: 30px 10px; text-align: center; color: #64748b; font-size: 13px; font-weight: 500; box-sizing: border-box; }
.sidebar-news-item { display: flex; gap: 12px; text-decoration: none; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; align-items: center; transition: opacity 0.2s; box-sizing: border-box; }
.sidebar-news-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-news-item:hover { opacity: 0.85; }
.sidebar-news-img { width: 70px; height: 55px; border-radius: 8px; object-fit: cover; background: #f1f5f9; flex-shrink: 0; }
.sidebar-news-title { font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.4; margin: 0 0 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.sidebar-news-date { font-size: 11px; color: #94a3b8; }
.sidebar-branch-list { list-style: none; padding: 0; margin: 0; }
.sidebar-branch-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; box-sizing: border-box; }
.sidebar-branch-list li:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; border-bottom: none !important; }
.sidebar-branch-list a { text-decoration: none !important; display: block; }
.sidebar-branch-title { font-size: 13px; font-weight: 600; color: #0f172a; margin-bottom: 2px; text-decoration: none !important; word-break: break-word; }
.sidebar-branch-loc { font-size: 11px; color: #64748b; }
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li { margin-bottom: 8px; }
.sidebar-cat-list li:last-child { margin-bottom: 0; }
.sidebar-cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f8fafc; border-radius: 8px; color: #334155; text-decoration: none; font-weight: 500; font-size: 14px; border: 1px solid transparent; box-sizing: border-box; }
.sidebar-cat-list a:hover { background: #eff6ff; color: #2563eb; border-color: #dbeafe; }

/* ==========================================
   HATA SAYFALARI (403, 404 VB.) STİLLERİ
========================================== */
.error-card { background: #fff; padding: 40px 30px; border-radius: 12px; border: 1px solid #e2e8f0; text-align: center; margin-bottom: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); box-sizing: border-box; }
.error-code { font-size: 72px; font-weight: 800; color: #ef4444; margin: 0 0 10px 0; line-height: 1; }
.error-title { font-size: 20px; font-weight: 700; color: #0f172a; margin: 0 0 10px 0; }
.error-desc { font-size: 14px; color: #64748b; margin: 0 0 25px 0; line-height: 1.5; }
.error-ip { color: #f59e0b; font-weight: 700; font-family: monospace; }
.btn-home { display: inline-block; background: #2563eb; color: #fff; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; transition: background 0.2s; box-shadow: 0 2px 4px rgba(37,99,235,0.2); }
.btn-home:hover { background: #1d4ed8; }

/* 404 Sayfasına Özel Hata Kodu Rengi */
.error-card .error-code { color: #2563eb; }

/* ==========================================
   SAYFA BAŞLIK KUTUSU (PAGE HEADER BOX) STİLLERİ
========================================== */
.page-header-box { background: #fff; padding: 25px; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); box-sizing: border-box; }
.page-header-box h1 { margin: 0 0 8px 0; font-size: 22px; font-weight: 700; color: #0f172a; word-break: break-word; }
.page-header-box p { margin: 0; font-size: 14px; color: #64748b; line-height: 1.5; word-break: break-word; }

/* ==========================================
   BLOG KARTLARI VE LİSTELEME STİLLERİ
========================================== */
.blog-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .blog-list-grid { grid-template-columns: 1fr; } }
.blog-card { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.02); box-sizing: border-box; }
.blog-card:hover { transform: translateY(-3px); border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.08); }
.blog-card-img { width: 100%; height: 180px; object-fit: cover; background: #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; box-sizing: border-box; }
.blog-card-title { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0 0 8px 0; line-height: 1.4; word-break: break-word; }
.blog-card-meta { font-size: 12px; color: #94a3b8; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.blog-card-desc { font-size: 13px; color: #475569; line-height: 1.6; margin: 0 0 15px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.badge-sponsored { background: #2563eb; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; display: inline-block; }

/* ==========================================
   ŞUBE DETAY SAYFASI ÖZEL STİLLERİ
========================================== */
.hero-box { background: #fff; padding: 25px; border-radius: 10px; border: 1px solid #e2e8f0; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); display: flex; align-items: center; gap: 20px; box-sizing: border-box; }
.hero-logo { width: 140px; height: 60px; object-fit: contain; border-radius: 8px; border: 1px solid #e2e8f0; background: #f8fafc; padding: 3px; flex-shrink: 0; display: block; margin: 0 auto; }
.hero-content { flex: 1; min-width: 0; position: relative; }
.hero-content h1 { margin: 0 0 4px 0; color: #0f172a; font-size: 22px; font-weight: 700; word-break: break-word; line-height: 1.3; }

@media (min-width: 577px) {
    .hero-content h1 { padding-right: 160px; }
    .desktop-fav-btn { position: absolute; top: 0; right: 0; display: inline-flex !important; }
    .mobile-fav-btn { display: none !important; }
}

@media (max-width: 576px) {
    .hero-box { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 20px; }
    .hero-logo { width: 170px; height: 75px; padding: 4px; }
    .hero-content h1 { font-size: 18px; padding-right: 0; }
    .desktop-fav-btn { display: none !important; }
    .mobile-fav-btn { display: inline-flex !important; margin-top: 10px; }
}

.seo-intro-box { background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; padding: 16px 20px; border-radius: 8px; font-size: 13px; color: #475569; line-height: 1.6; margin-bottom: 20px; box-sizing: border-box; }
.disclaimer-box { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; padding: 14px 18px; border-radius: 8px; font-size: 13px; color: #92400e; line-height: 1.5; margin-bottom: 20px; box-sizing: border-box; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: stretch; }
@media (max-width: 768px) { .content-grid { grid-template-columns: 1fr; } }

.info-card { background: #fff; padding: 20px; border-radius: 10px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box; }
.info-card h3 { margin-top: 0; font-size: 14px; color: #1e293b; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; word-break: break-word; }

.detail-row { display: grid; grid-template-columns: 105px 15px 1fr; gap: 4px 0; padding: 8px 0; border-bottom: 1px solid #f8fafc; font-size: 13px; align-items: start; box-sizing: border-box; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 600; color: #64748b; word-break: break-word; }
.detail-colon { font-weight: 600; color: #64748b; text-align: center; }
.detail-value { color: #1e293b; word-break: break-word; font-weight: 500; }

@media (max-width: 576px) {
    .detail-row { grid-template-columns: 95px 12px 1fr; font-size: 12px; padding: 7px 0; }
    .detail-label { font-size: 12px; }
    .detail-value { font-size: 12px; }
}

.card-box { background: #fff; padding: 25px; border-radius: 10px; border: 1px solid #e2e8f0; box-sizing: border-box; box-shadow: 0 1px 3px rgba(0,0,0,0.02); margin-bottom: 20px; }
.card-box h3 { margin-top: 0; font-size: 14px; color: #1e293b; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; word-break: break-word; }

#branchMap { width: 100%; height: 380px; border-radius: 8px; z-index: 1; background: #f8fafc; margin-bottom: 15px; }
.mapicon { background: #fff; border: 2px solid #2563eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 6px rgba(0,0,0,0.15); }
.mapicon img { width: 75%; height: 75%; object-fit: contain; }
.gmapwindow { text-align: center; padding: 5px; font-family: inherit; min-width: 160px; }
.bankinfoimage img { max-height: 32px; max-width: 110px; margin-bottom: 6px; object-fit: contain; display: block; margin-left: auto; margin-right: auto; }
.gmaptitle a { color: #0f172a; font-weight: 700; font-size: 13px; text-decoration: none; display: block; margin-bottom: 4px; }

.btn-report { background: #fef2f2; color: #b91c1c; padding: 10px; border: 1px solid #fecaca; border-radius: 8px; cursor: pointer; font-weight: 600; width: 100%; margin-top: 15px; transition: 0.2s; box-sizing: border-box; text-align: center; font-size: 13px; }
.btn-report:hover { background: #fee2e2; }

/* ==========================================
   MARKA DETAY & İL LİSTELEME SAYFASI STİLLERİ
========================================== */
.brand-hero { background: #fff; padding: 30px; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); display: flex; align-items: center; gap: 25px; box-sizing: border-box; }
@media (max-width: 576px) { .brand-hero { flex-direction: column; text-align: center; } }

.brand-hero-logo { width: 140px; height: 60px; object-fit: contain; border-radius: 8px; border: 1px solid #e2e8f0; background: #f8fafc; padding: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.brand-hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.brand-hero-info h1 { margin: 0 0 6px 0; font-size: 24px; font-weight: 700; color: #0f172a; word-break: break-word; }
.brand-hero-info p { margin: 0 0 10px 0; font-size: 13px; color: #64748b; line-height: 1.5; word-break: break-word; }

.brand-meta-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 576px) { .brand-meta-tags { justify-content: center; } }
.brand-tag { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; background: #f1f5f9; color: #334155; }
.brand-tag.primary { background: #eff6ff; color: #2563eb; }

.section-header-box { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.section-title { font-size: 15px; font-weight: 700; color: #1e293b; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }

.city-search-input { padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; width: 220px; outline: none; background: #f8fafc; transition: all 0.2s; }
.city-search-input:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
@media (max-width: 576px) { .city-search-input { width: 100%; } }

.cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
@media (max-width: 768px) { .cities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cities-grid { grid-template-columns: 1fr; } }

.city-card { background: #fff; border-radius: 10px; border: 1px solid #e2e8f0; padding: 16px 20px; text-decoration: none; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.02); box-sizing: border-box; }
.city-card:hover { transform: translateY(-2px); border-color: #2563eb; background: #f8fafc; box-shadow: 0 3px 6px rgba(37, 99, 235, 0.05); }
.city-name { font-size: 14px; font-weight: 600; color: #1e293b; display: flex; align-items: center; gap: 8px; word-break: break-word; }
.city-count { font-size: 12px; font-weight: 600; color: #2563eb; background: #eff6ff; padding: 3px 10px; border-radius: 12px; flex-shrink: 0; }

#noCityFound { display: none; background: #fff; padding: 30px; text-align: center; border-radius: 10px; border: 1px solid #e2e8f0; color: #64748b; font-size: 14px; box-sizing: border-box; }

/* ==========================================
   TÜM KATEGORİLER VE KART IZGARASI STİLLERİ
========================================== */
.category-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

@media (max-width: 768px) {
    .category-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
    }
}

.category-card { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 14px; 
    padding: 20px; 
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}
.category-card:hover { 
    transform: translateY(-5px); 
    border-color: #93c5fd; 
    box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}
.category-card:hover .category-title { color: #2563eb; }
.category-card:hover .category-arrow { transform: translateX(5px); color: #2563eb; background: #eff6ff; }

.category-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

.category-img-box { 
    width: 50px; height: 50px; border-radius: 12px; object-fit: cover; background: #f8fafc; border: 1px solid #e2e8f0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.category-img-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.category-title { margin: 0; font-size: 16px; color: #1e293b; font-weight: 700; line-height: 1.35; transition: color 0.2s; word-break: break-word; }

.category-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #f1f5f9; font-size: 13px; }
.category-badge { background: #f8fafc; border: 1px solid #e2e8f0; padding: 4px 10px; border-radius: 20px; font-weight: 600; color: #64748b; font-size: 12px; }
.category-arrow { color: #64748b; font-weight: 600; font-size: 12px; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #f8fafc; }

@media (max-width: 768px) {
    .category-card { padding: 14px; }
    .category-header { gap: 10px; margin-bottom: 12px; }
    .category-img-box { width: 40px; height: 40px; font-size: 18px; }
    .category-title { font-size: 13px; }
    .category-badge { font-size: 11px; padding: 2px 8px; }
    .category-arrow { width: 22px; height: 22px; font-size: 10px; }
}

/* Sidebar Son Yorumlar Stilleri */
.sidebar-comment-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-comment-row { padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.sidebar-comment-row:last-child { padding-bottom: 0; border-bottom: none; margin-bottom: 0; }
.sidebar-comment-header { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-bottom: 4px; font-size: 12px; gap: 8px; }
.sidebar-comment-user { font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-comment-date { color: #94a3b8; font-size: 11px; white-space: nowrap; }
.sidebar-comment-text { font-size: 12px; color: #475569; margin: 0 0 6px 0; line-height: 1.4; font-style: italic; word-break: break-word; }
.sidebar-comment-target { font-size: 11px; }
.sidebar-comment-target a { color: #2563eb; text-decoration: none; font-weight: 500; display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-comment-target a:hover { text-decoration: underline; }