/* Fuar Listesi (turlar.php) Özel CSS */

/* Custom Select Dropdown Styles (from sektor) */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper.open {
    z-index: 9999 !important;
}

.custom-select-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 10px 40px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
    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.75rem;
    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;
}

/* Fuar Arama ve Tarih Input Placeholder Rengi */
.fuar-input::placeholder {
    color: #6c757d !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.fuar-input {
    color: #6c757d !important;
    font-size: 0.8rem !important;
    /* Select ile aynı boyutta olsun */
}

@media (max-width: 991px) {
    .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;
    }

    .fuar-hero-desc {
        font-size: 14px !important;
    }

    .mobile-filter-offcanvas {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        z-index: 1050;
        border-radius: 16px 16px 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;
    }

    /* Nested Bottom Sheet Dropdown inside offcanvas */
    .mobile-filter-offcanvas .custom-select-dropdown {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        background: #ffffff;
        z-index: 1060;
        border-radius: 16px 16px 0 0;
        padding: 24px 24px 60px 24px;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        opacity: 1;
        visibility: visible;
        display: none;
        /* normally hidden */
        border: none;
    }

    .mobile-filter-offcanvas .custom-select-wrapper.open .custom-select-dropdown {
        transform: translateY(0);
        display: block;
    }

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

/* Mobile Offcanvas Backdrop (Outside media query because it's full screen) */
.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;
}

/* Top Filters Modernization (Tabs & Sort) */
.fuar-category-tabs {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.fuar-category-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.fuar-pill-btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fuar-pill-btn.active {
    background-color: #319795;
    /* Teal color from mockup */
    border-color: #319795;
    color: #ffffff;
}

.fuar-pill-btn i {
    font-size: 1.1rem;
}

.fuar-pill-btn.active i {
    color: #ffffff !important;
}

.fuar-pill-btn:not(.active) .star-icon {
    color: #f59e0b;
}

.fuar-pill-btn:not(.active) .calendar-icon {
    color: #3b82f6;
}

@media (max-width: 991px) {
    .fuar-category-tabs {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }
    
    .fuar-category-tabs .fuar-pill-btn {
        padding: 8px 16px;
        justify-content: center;
        flex-shrink: 0;
    }

    .fuar-sort-minimal {
        min-width: 185px !important;
        width: 185px !important;
    }

    .custom-select-button {
        font-size: 0.9rem;
    }

    .fuar-sort-minimal .custom-select-item {
        font-size: 0.85rem;
    }
}

.fuar-count-text {
    font-size: 0.95rem;
    color: #1e293b;
}

