/* ============================================
   ContentBox µ¿Àû ÆÐµù
============================================ */
.ContentBox {
    padding-top: 40px;
    transition: padding-top 0.3s ease;
}

    /* Tab 28 Àü¿ë ½ºÅ¸ÀÏ */
    .ContentBox[data-tab-id="28"] {
        padding-top: 100px;
    }

        .ContentBox[data-tab-id="28"][data-has-filters="true"] {
            padding-top: 150px;
        }

        /* Ä¨ÀÌ Ç¥½ÃµÉ ¶§ Ãß°¡ ¿©¹é */
        .ContentBox[data-tab-id="28"].has-filter-chips {
            padding-top: 160px;
        }

/* ============================================
   ÀÎ¶óÀÎ ÇÊÅÍ ¼½¼Ç
============================================ */
.inline-filter-section {
    position: fixed;
    top: 95px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

/* ÇÊÅÍ Ä«Å×°í¸® ÅÇ ÄÁÅ×ÀÌ³Ê */
.filter-category-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden; /* ¼¼·Î ½ºÅ©·Ñ ¹æÁö */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #f0f0f0;
    scroll-behavior: smooth; /* ÀÚ¿¬½º·¯¿î ½ºÅ©·Ñ */
    scroll-padding: 10px; /* ½ºÅ©·Ñ ½Ã ¿©¹é */
}

    .filter-category-tabs::-webkit-scrollbar {
        display: none;
    }

    /* ½ºÅ©·Ñ ½º³À (¼±ÅÃ »çÇ× - ÅÇÀÌ Á¤È®ÇÑ À§Ä¡¿¡ ¸ØÃã) */
    .filter-category-tabs {
        scroll-snap-type: x proximity; /* ºÎµå·¯¿î ½º³À */
    }

    /* Ä«Å×°í¸® ÅÇ ¹öÆ° */
    .filter-category-tab {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 5px 5px;
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 24px;
        color: #495057;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        outline: none;
        scroll-snap-align: center; /* ÅÇÀÌ Áß¾Ó¿¡ ½º³À */
        flex-shrink: 0; /* ÅÇÀÌ Ãà¼ÒµÇÁö ¾Êµµ·Ï */
    }

    .filter-category-tab:hover {
        border-color: #86BC25;
        color: #43B02A;
        background: #f0f8e6;
    }

    .filter-category-tab.has-selection {
        border-color: #86BC25;
        background: #f0f8e6;
        color: #43B02A; /* ÃÊ·Ï»ö ±ÛÀÚ·Î ¸íÈ®ÇÏ°Ô */
    }

    /* µå·Ó´Ù¿îÀÌ ¿­¸° »óÅÂ (active) */
    .filter-category-tab.active {
        background: linear-gradient(135deg, #86BC25 0%, #43B02A 100%);
        border-color: #43B02A;
        color: white;
    }

        /* activeÀÌ¸é¼­ has-selectionÀÎ °æ¿ì (¿ì¼±¼øÀ§ ³ôÀÓ) */
        .filter-category-tab.active.has-selection {
            background: linear-gradient(135deg, #86BC25 0%, #43B02A 100%);
            border-color: #43B02A;
            color: white;
        }


.category-arrow {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.filter-category-tab.active .category-arrow {
    transform: rotate(180deg);
}

.category-count-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* has-selectionÀÏ ¶§ ¹èÁö ½ºÅ¸ÀÏ (active ¾Æ´Ò ¶§) */
.filter-category-tab.has-selection .category-count-badge {
    background: linear-gradient(135deg, #86BC25 0%, #43B02A 100%);
    color: white;
}

/* activeÀÏ ¶§ ¹èÁö ½ºÅ¸ÀÏ */
.filter-category-tab.active .category-count-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============================================
   ÀÎ¶óÀÎ µå·Ó´Ù¿î ÄÁÅ×ÀÌ³Ê
============================================ */
.inline-dropdown-container {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

.inline-dropdown-content {
    padding: 16px 20px;
}

/* °Ë»ö ¹Ú½º */
.inline-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 16px;
}

    .inline-search-box i {
        font-size: 14px;
        color: #6c757d;
    }

    .inline-search-box input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 14px;
        background: transparent;
    }

        .inline-search-box input::placeholder {
            color: #adb5bd;
        }

/* ¿É¼Ç ¸®½ºÆ® */
.inline-options-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    background: white;
    border-radius: 10px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .inline-options-list {
        grid-template-columns: 1fr;
    }
}

/* ¿É¼Ç ¾ÆÀÌÅÛ */
.inline-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 8px;
    user-select: none;
}

    .inline-option-item:hover {
        background: #f0f8e6;
    }

    .inline-option-item input[type="checkbox"] {
        display: none;
    }

/* Ä¿½ºÅÒ Ã¼Å©¹Ú½º */
.inline-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
    position: relative;
    transition: all 0.2s ease;
}

.inline-option-item:hover .inline-checkbox {
    border-color: #86BC25;
}

.inline-option-item input:checked ~ .inline-checkbox {
    background: linear-gradient(135deg, #86BC25 0%, #43B02A 100%);
    border-color: #43B02A;
}

    .inline-option-item input:checked ~ .inline-checkbox::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 2px;
        width: 4px;
        height: 9px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.inline-option-text {
    flex: 1;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.4;
}

.inline-option-item input:checked ~ .inline-option-text {
    font-weight: 600;
    color: #43B02A;
}

/* ¾×¼Ç ¹öÆ° */
.inline-dropdown-actions {
    display: flex;
    gap: 12px;
    padding: 0 8px;
}

.inline-reset-btn {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    color: #6c757d;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .inline-reset-btn:hover {
        border-color: #dc3545;
        color: #dc3545;
        background: #fff5f5;
    }

.inline-apply-btn {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, #86BC25 0%, #43B02A 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(134, 188, 37, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .inline-apply-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(134, 188, 37, 0.4);
    }

    .inline-apply-btn:active {
        transform: translateY(0);
    }

/* ============================================
   ¼±ÅÃµÈ ÇÊÅÍ Ä¨
============================================ */
.selected-filters-chips {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    border-top: 1px solid #e9ecef;
}

.chips-wrapper {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .chips-wrapper::-webkit-scrollbar {
        display: none;
    }

.filter-chip-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1.5px solid #86BC25;
    border-radius: 18px;
    font-size: 13px;
    color: #2c3e50;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(134, 188, 37, 0.15);
    animation: chipFadeIn 0.3s ease;
}

@keyframes chipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chip-category-label {
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
}

.chip-remove-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .chip-remove-icon:hover {
        background: rgba(220, 53, 69, 0.25);
        transform: scale(1.1);
    }

    .chip-remove-icon i {
        font-size: 9px;
        color: #dc3545;
    }

.clear-all-filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    background: white;
    border: 2px solid #dc3545;
    border-radius: 18px;
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

    .clear-all-filters-btn:hover {
        background: #dc3545;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    }

    .clear-all-filters-btn i {
        font-size: 12px;
    }

/* °Ë»ö °á°ú ¾øÀ½ */
.no-inline-results {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

    .no-inline-results i {
        font-size: 36px;
        margin-bottom: 12px;
        opacity: 0.3;
    }

    .no-inline-results p {
        font-size: 14px;
        margin: 0;
    }
