/* ========== HUB SAYFALARI CSS - İZOLE EDİLMİŞ VERSİYON ========== */
/* SADECE .hub-page class'ı içinde çalışır - Theme CSS'e dokunmaz */

.hub-page {
    /* CSS Variables - Sadece hub sayfası için */
    --hub-primary: #0066ff;
    --hub-primary-hover: #0052cc;
    --hub-secondary: #6c757d;
    --hub-success: #28a745;
    --hub-info: #17a2b8;
    --hub-light: #f8f9fa;
    --hub-dark: #343a40;
    --hub-white: #ffffff;
    --hub-gray-100: #f8f9fa;
    --hub-gray-200: #e9ecef;
    --hub-gray-300: #dee2e6;
    --hub-gray-400: #ced4da;
    --hub-gray-500: #adb5bd;
    --hub-gray-600: #6c757d;
    --hub-gray-700: #495057;
    --hub-gray-800: #343a40;
    --hub-gray-900: #212529;
}

/* Container - Sadece hub içinde */
.hub-page .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Breadcrumb - Sadece hub içinde */
.hub-page .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.hub-page .breadcrumb-item a {
    color: var(--hub-primary);
    text-decoration: none;
}

.hub-page .breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hub-page .hero-section {
    background: var(--hub-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hub-page .hero-section h1 {
    color: var(--hub-gray-900);
    font-weight: 600;
}

/* Kategori Filtreleri */
.hub-page .category-filters {
    background: var(--hub-white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Giriş Metni Alanı */
.hub-page .intro-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.hub-page .intro-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.hub-page .intro-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hub-page .intro-icon i {
    font-size: 1.75rem;
    color: var(--hub-white);
}

.hub-page .intro-text {
    flex: 1;
    color: var(--hub-white);
}

.hub-page .intro-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hub-white);
}

.hub-page .intro-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.hub-page .intro-highlight {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.hub-page .category-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.hub-page .category-scroll::-webkit-scrollbar {
    height: 6px;
}

.hub-page .category-scroll::-webkit-scrollbar-track {
    background: var(--hub-gray-200);
    border-radius: 10px;
}

.hub-page .category-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--hub-primary) 0%, var(--hub-primary-hover) 100%);
    border-radius: 10px;
}

.hub-page .category-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--hub-primary-hover) 0%, #003d99 100%);
}

.hub-page .category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--hub-gray-100);
    border: 1px solid var(--hub-gray-300);
    border-radius: 2rem;
    color: var(--hub-gray-700);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.hub-page .category-chip:hover {
    background: var(--hub-primary);
    border-color: var(--hub-primary);
    color: var(--hub-white);
    transform: translateY(-1px);
}

.hub-page .category-chip .count {
    background: var(--hub-white);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
    color: var(--hub-primary);
}

.hub-page .category-chip:hover .count {
    background: var(--hub-white);
    color: var(--hub-primary);
}

/* Ana İçerik Grid */
.hub-page .main-content {
    min-height: 500px;
    position: relative;
}

/* Route Info Bölümü */
.hub-page #route-info {
    margin-top: 1rem;
    width: 100%;
}

.hub-page #route-info .card {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    overflow: hidden;
}

.hub-page #route-info .card-body {
    padding: 1.25rem;
}

.hub-page #route-info .card-title {
    color: #155724;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hub-page #route-info a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.hub-page #route-info a:hover {
    color: #e1e1e1;
    text-decoration: underline;
}

.hub-page #route-info .btn-primary {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(0, 102, 255, 0.3);
}

.hub-page #route-info .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

.hub-page #route-info .route-stats {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hub-page #route-info .route-stats strong {
    color: #28a745;
    font-size: 1.1rem;
}

/* Mobil Sticky Action Bar */
.hub-page .mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--hub-white);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.hub-page .mobile-action-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hub-page .mobile-action-info {
    flex: 0 0 auto;
}

.hub-page .mobile-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--hub-info);
    color: var(--hub-white);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.hub-page .mobile-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.hub-page .btn-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hub-page .btn-clear {
    background: var(--hub-gray-200);
    color: var(--hub-gray-700);
}

.hub-page .btn-clear:hover {
    background: var(--hub-gray-300);
}

.hub-page .btn-route {
    background: var(--hub-success);
    color: var(--hub-white);
}

.hub-page .btn-route:hover {
    background: #218838;
    transform: translateY(-1px);
}

.hub-page .btn-mobile i {
    font-size: 0.875rem;
}

.hub-page .main-content .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    min-height: 650px;
    align-items: stretch;
}

/* Sol taraf - Harita (55%) */
.hub-page .main-content .row > .col-lg-7 {
    flex: 0 0 55%;
    max-width: 55%;
    height: 100%;
}

/* Sağ taraf - Kartlar (45%) */
.hub-page .main-content .row > .col-lg-5 {
    flex: 0 0 45%;
    max-width: 45%;
    height: 100%;
}

/* Harita Bölümü */
.hub-page .map-section {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.hub-page .map-container {
    background: var(--hub-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
}

.hub-page #map {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* Rota Kontrolleri */
.hub-page .route-controls {
    flex-shrink: 0;
    padding: 1rem;
    background: var(--hub-white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Destinasyon Wrapper */
.hub-page .destinations-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--hub-white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.hub-page .destinations-header {
    flex-shrink: 0;
    padding: 1rem;
    background: var(--hub-white);
    border-radius: 0.5rem 0.5rem 0 0;
    border-bottom: 2px solid var(--hub-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hub-page .destinations-list {
    height: 600px;
    overflow-y: auto;
    background: var(--hub-white);
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.5rem;
    scroll-behavior: smooth;
}

/* Scrollbar Özelleştirme */
.hub-page .destinations-list::-webkit-scrollbar {
    width: 8px;
}

.hub-page .destinations-list::-webkit-scrollbar-track {
    background: var(--hub-gray-100);
    border-radius: 10px;
}

.hub-page .destinations-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--hub-primary) 0%, var(--hub-primary-hover) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hub-page .destinations-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--hub-primary-hover) 0%, #003d99 100%);
    width: 10px;
}

/* Firefox için scrollbar */
.hub-page .destinations-list {
    scrollbar-width: thin;
    scrollbar-color: var(--hub-primary) var(--hub-gray-100);
}

/* Destinasyon Kartı */
.hub-page .hub-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--hub-white);
    border: 1px solid var(--hub-gray-200);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.hub-page .hub-card:hover {
    background: var(--hub-gray-100);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hub-page .hub-card.selected {
    background: #e7f3ff;
    border-color: var(--hub-primary);
}

/* Checkbox */
.hub-page .card-checkbox {
    flex-shrink: 0;
}

.hub-page .hub-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--hub-primary);
}

/* Kart İçeriği */
.hub-page .card-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    min-width: 0;
}

.hub-page .card-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 0.375rem;
    overflow: hidden;
}

.hub-page .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-page .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--hub-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hub-gray-500);
}

.hub-page .card-info {
    flex: 1;
    min-width: 0;
}

.hub-page .card-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hub-gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.hub-page .card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--hub-gray-600);
}

.hub-page .card-meta i {
    color: var(--hub-primary);
    width: 14px;
}

.hub-page .card-meta .badge {
    padding: 0.125rem 0.5rem;
    background: var(--hub-gray-200);
    color: var(--hub-gray-700);
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Kart Aksiyonları */
.hub-page .card-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.hub-page .btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--hub-gray-300);
    background: var(--hub-white);
    border-radius: 0.375rem;
    color: var(--hub-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.hub-page .btn-action:hover {
    background: var(--hub-primary);
    border-color: var(--hub-primary);
    color: var(--hub-white);
    transform: scale(1.1);
}

.hub-page .btn-action i {
    font-size: 0.875rem;
}

/* Badge */
.hub-page .badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.hub-page .bg-info {
    background: var(--hub-info) !important;
}

/* Responsive */
@media (min-width: 769px) {
    .hub-page .mobile-action-bar {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .hub-page .main-content {
        height: auto;
    }
    
    .hub-page .intro-content {
        gap: 1.25rem;
    }
    
    .hub-page .intro-title {
        font-size: 1.15rem;
    }
    
    .hub-page .intro-description {
        font-size: 0.9rem;
    }
    
    .hub-page .main-content .row {
        flex-wrap: wrap;
        min-height: auto;
    }
    
    .hub-page .main-content .row > .col-lg-7,
    .hub-page .main-content .row > .col-lg-5 {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
    }
    
    .hub-page .map-section {
        position: relative !important;
        height: auto;
    }
    
    .hub-page .map-container {
        flex: none;
    }
    
    .hub-page #map {
        height: 400px;
        min-height: 400px;
    }
    
    .hub-page .destinations-wrapper {
        height: auto;
        min-height: 400px;
    }
    
    .hub-page .destinations-list {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hub-page .container-fluid {
        padding: 0.5rem;
        padding-bottom: 5rem;
    }
    
    .hub-page .mobile-action-bar.active {
        display: block !important;
    }
    
    .hub-page .mobile-action-content {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .hub-page .mobile-action-info {
        width: 100%;
        text-align: center;
    }
    
    .hub-page .mobile-action-buttons {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
    
    .hub-page .btn-mobile {
        flex: 1;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
    
    .hub-page #route-info {
        margin-top: 1rem;
        width: 100%;
    }
    
    .hub-page #route-info .card-body {
        padding: 1rem;
    }
    
    .hub-page #route-info .card-title {
        font-size: 1rem;
    }
    
    .hub-page #route-info .route-stats {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .hub-page .intro-content {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .hub-page .intro-icon {
        width: 50px;
        height: 50px;
    }
    
    .hub-page .intro-icon i {
        font-size: 1.5rem;
    }
    
    .hub-page .intro-title {
        font-size: 1.1rem;
    }
    
    .hub-page .intro-description {
        font-size: 0.875rem;
    }
    
    .hub-page .intro-highlight {
        display: block;
        margin-top: 0.75rem;
    }
    
    .hub-page #map {
        height: 350px;
        min-height: 350px;
    }
    
    .hub-page .destinations-wrapper {
        min-height: 350px;
    }
    
    .hub-page .destinations-list {
        height: 350px;
    }
    
    .hub-page .route-controls {
        padding: 0.75rem;
    }
    
    .hub-page .route-controls .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .hub-page .form-select-sm {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        padding: 0.75rem 2.5rem 0.75rem 1rem;
    }
    
    .hub-page .hub-card {
        padding: 0.5rem;
    }
    
    .hub-page .card-image {
        width: 50px;
        height: 50px;
    }
    
    .hub-page .card-title {
        font-size: 0.85rem;
    }
    
    .hub-page .card-meta {
        font-size: 0.7rem;
    }
    
    .hub-page .btn-action {
        width: 28px;
        height: 28px;
    }
}

/* Utilities - Sadece hub içinde */
.hub-page .me-1 { margin-right: 0.25rem !important; }
.hub-page .me-3 { margin-right: 1rem !important; }
.hub-page .mb-0 { margin-bottom: 0 !important; }
.hub-page .mb-2 { margin-bottom: 0.5rem !important; }
.hub-page .mb-3 { margin-bottom: 1rem !important; }
.hub-page .mt-3 { margin-top: 1rem !important; }
.hub-page .g-3 { gap: 1rem !important; }
.hub-page .gap-2 { gap: 0.5rem !important; }
.hub-page .text-muted { color: var(--hub-gray-600) !important; }
.hub-page .small { font-size: 0.875rem !important; }
.hub-page .sticky-top { position: sticky !important; top: 0; }
.hub-page .text-white { color: var(--hub-white) !important; }