/* Sektör Detay Özel Stilleri */

.fuar-card-custom {
    border: 1px solid transparent !important;
    transition: all 0.3s ease;
}

.fuar-card-custom:hover {
    border-color: var(--primary-color) !important;
}

.fuar-card-custom .fuar-card-img-zoom {
    transition: transform 0.4s ease;
}

.fuar-card-custom:hover .fuar-card-img-zoom {
    transform: scale(1.05);
}

/* Sektör Hero Alanı */
.sektor-hero {
    position: relative;
    padding: 60px 0;
    background-color: #0d1b2a;
    color: #fff;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
}

.sektor-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    z-index: 0;
}

.sektor-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.8) 50%, rgba(13, 27, 42, 0.4) 100%);
    z-index: 1;
}

.sektor-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.sektor-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

/* Breadcrumb override için */
.sektor-hero .breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.3s;
}

.sektor-hero .breadcrumb-item a:hover {
    opacity: 1;
}

.sektor-hero .breadcrumb-item.active {
    color: #fff;
    opacity: 1;
}

/* Breadcrumb ayraç (separator) rengi */
.sektor-hero .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.75);
}

/* Premium Filtreleme Kutusu */
.sektor-filter-box {
    transform: translateY(-50%);
    margin-bottom: -40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px;
    padding: 25px 30px !important;
}

@media (max-width: 768px) {
    .sektor-filter-box {
        transform: translateY(-20px);
        margin-bottom: 0px;
        padding: 20px !important;
    }
}

.sektor-filter-input,
.sektor-filter-select {
    height: 48px;
    border: 1px solid #e0e5eb;
    border-radius: 10px;
    background-color: #f8f9fa;
    color: #495057;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sektor-filter-input:focus,
.sektor-filter-select:focus {
    background-color: #fff;
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.btn-filter {
    border-radius: 10px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.sektor-filter-group {
    border-radius: 10px;
    overflow: hidden;
}

.sektor-hero {
    margin-bottom: 50px;
    /* Space for the floating filter box */
}

/* Sektor Label in Fair Cards */
.fuar-sektor-label {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fuar-card-custom:hover .bg-light.rounded-circle {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Custom Select Dropdowns */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    flex: 1;
}

.custom-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 15px 0 38px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.custom-select-button:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.custom-select-wrapper.open .custom-select-button {
    border: 1px solid #8c8c8c;
}

.custom-select-button .icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
    pointer-events: none;
}

.custom-select-button .icon-right {
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.custom-select-wrapper.open .custom-select-button .icon-right {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.custom-select-wrapper.open .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-search {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.custom-select-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-select-search input:focus {
    border-color: #3b82f6;
}

.custom-select-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
}

.custom-select-list::-webkit-scrollbar {
    width: 6px;
}

.custom-select-list::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

.custom-select-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #475569;
    transition: background 0.1s ease;
    margin-bottom: 2px;
}

.custom-select-item:last-child {
    margin-bottom: 0;
}

.custom-select-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.custom-select-item.selected {
    background: #eff6ff;
    color: #102142;
    font-weight: 500;
}

.custom-select-item.selected .check-icon {
    display: block;
}

.custom-select-item .check-icon {
    display: none;
    color: #2563eb;
    font-size: 1.1rem;
}

/* For main search input matching style */
.filter-main-search {
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.filter-main-search:focus {
    border-color: #8c8c8c !important;
    box-shadow: none !important;
}
/* Mobile Offcanvas Filter Styling */
.mobile-filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-filter-backdrop.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    .mobile-filter-offcanvas {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        z-index: 1050;
        border-radius: 24px 24px 0 0;
        padding: 24px;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 90vh;
        overflow-y: auto;
        display: flex !important;
        flex-direction: column;
        gap: 16px;
    }
    
    .mobile-filter-offcanvas.show {
        transform: translateY(0);
    }

    .mobile-filter-offcanvas-header {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        margin-bottom: 8px;
    }

    .mobile-filter-offcanvas-header::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: #cbd5e1;
        border-radius: 4px;
    }

    .mobile-filter-offcanvas-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e293b;
        margin: 0;
    }

    .mobile-filter-offcanvas-close {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #64748b;
        cursor: pointer;
        padding: 0;
    }

    .mobile-filter-offcanvas-footer {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #f1f5f9;
    }

    .mobile-filter-clear-btn {
        color: #3b82f6;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-filter-apply-btn {
        background-color: #0f172a;
        color: white;
        border: none;
        border-radius: 12px;
        padding: 12px 32px;
        font-weight: 500;
        font-size: 1rem;
    }

    /* Make dropdowns full width inside offcanvas */
    .mobile-filter-offcanvas .custom-select-wrapper {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    /* Dropdown inside offcanvas */
    .mobile-filter-offcanvas .custom-select-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        margin-top: 4px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .mobile-filter-offcanvas .custom-select-wrapper.open .custom-select-dropdown {
        display: block;
    }

    .search-input-wrapper {
        width: 100% !important;
    }

    .mobile-filter-trigger {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100% !important;
        height: 42px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        color: #6c757d;
        border-radius: 12px;
        padding: 0 16px;
        font-weight: 400;
        font-size: 0.85rem;
        margin-top: 8px;
    }
}

/* Desktop and General */
.fuar-count-wrapper {
    margin-left: 1rem;
}

/* Tablet (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .search-input-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    .mobile-filter-offcanvas {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .custom-select-wrapper {
        flex: 0 0 calc(33.333% - 6px) !important;
        width: calc(33.333% - 6px) !important;
        max-width: calc(33.333% - 6px) !important;
        min-width: 0 !important;
    }
    .fuar-count-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
        margin-top: 8px;
    }
}

/* Empty State Styles */
.empty-state-wrapper {
    background-color: transparent;
    padding: 4rem 1rem;
}
.empty-state-icon {
    font-size: 80px;
    line-height: 1;
    color: #3bc0c3;
    margin-bottom: 1.5rem;
}
.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.empty-state-text {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.5;
}
.btn-empty-state {
    background-color: #3bc0c3;
    color: #fff;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}
.btn-empty-state:hover {
    background-color: #2ea1a4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 192, 195, 0.3);
}

