/* Filter Section */
.filter-section {
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 22px;
}

.filter-form {
    background: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* Website search takes full width */
.filter-group:first-child {
    grid-column: 1 / -1;
}

.filter-group:first-child .filter-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-separator {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-system);
    color: var(--text-primary);
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--background);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.filter-select {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%236e6e73"><path d="M8 11L3 6h10l-5 5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

.search-input {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%236e6e73"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding: 14px 50px 14px 16px;
    font-size: 16px;
    min-height: 50px;
}

.filter-range .filter-input {
    flex: 1;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-reset,
.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-system);
}

.btn-reset {
    background: #f5f5f7;
    color: var(--text-primary);
}

.btn-reset:hover {
    background: #e8e8ed;
}

.btn-search {
    background: var(--primary-color);
    color: white;
}

.btn-search:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

/* Sortable Headers */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: var(--transition);
}

.sortable:hover {
    background: rgba(0, 0, 0, 0.03);
}

.sort-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    opacity: 0.3;
    transition: var(--transition);
}

.sort-icon::before {
    content: '⇅';
    font-size: 14px;
}

.sortable.sort-asc .sort-icon::before {
    content: '↑';
    opacity: 1;
    color: var(--primary-color);
}

.sortable.sort-desc .sort-icon::before {
    content: '↓';
    opacity: 1;
    color: var(--primary-color);
}

/* Information Section - Apple.com Style */
.info-section {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 22px;
}

.info-content-wrapper {
    background: #fbfbfd;
    border-radius: 24px;
    overflow: hidden;
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.info-header {
    padding: 48px 48px 24px;
    text-align: center;
}

.info-title {
    font-size: 40px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.1;
}

.info-text-area {
    max-height: 320px;
    overflow-y: auto;
    padding: 0 48px 48px;
    line-height: 1.6;
    color: #1d1d1f;
    font-size: 17px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    
    /* Apple Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.info-text-area::-webkit-scrollbar {
    width: 6px;
}

.info-text-area::-webkit-scrollbar-track {
    background: transparent;
}

.info-text-area::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.info-text-area::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.info-text-area p {
    margin: 0 0 24px 0;
    font-size: 17px;
    line-height: 1.58824;
    color: #6e6e73;
    font-weight: 400;
}

.info-text-area p:last-child {
    margin-bottom: 0;
}

/* About Section - Modern with Diagonal Images */
.about-section {
    max-width: 1280px;
    margin: 80px auto 0;
    padding: 0 22px 80px;
}

.about-hero {
    text-align: center;
    margin-bottom: 80px;
}

.about-hero h2 {
    font-size: 56px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px;
    letter-spacing: -1.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.07143;
}

.about-hero p {
    font-size: 21px;
    line-height: 1.381;
    color: #6e6e73;
    margin: 0;
    font-weight: 400;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
    position: relative;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    z-index: 2;
}

.feature-content h3 {
    font-size: 40px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 20px;
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.feature-content p {
    font-size: 19px;
    line-height: 1.4211;
    color: #6e6e73;
    margin: 0 0 16px;
}

.feature-content p:last-child {
    margin-bottom: 0;
}

.feature-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.feature-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-row.reverse .feature-image-wrapper {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.feature-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.feature-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.feature-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary-color);
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

/* Responsive Filters */
@media (max-width: 968px) {
    /* Hide filters on mobile for cleaner UX */
    .filter-section {
        display: none;
    }
    
    .info-section {
        padding: 0 20px;
        margin-top: 48px;
    }
    
    .info-header {
        padding: 36px 28px 20px;
    }
    
    .info-title {
        font-size: 32px;
        letter-spacing: -0.6px;
    }
    
    .info-text-area {
        max-height: 280px;
        padding: 0 28px 36px;
        font-size: 15px;
    }
    
    .info-text-area p {
        margin-bottom: 20px;
        font-size: 15px;
    }
    
    .about-section {
        margin-top: 60px;
        padding: 0 20px 60px;
    }
    
    .about-hero {
        margin-bottom: 60px;
    }
    
    .about-hero h2 {
        font-size: 40px;
        letter-spacing: -0.8px;
    }
    
    .about-hero p {
        font-size: 19px;
    }
    
    .feature-row {
        flex-direction: column !important;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .feature-content h3 {
        font-size: 32px;
        letter-spacing: -0.6px;
    }
    
    .feature-content p {
        font-size: 17px;
    }
    
    .feature-image-wrapper {
        transform: none !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-group:first-child {
        grid-column: 1;
    }
    
    .filter-form {
        padding: 20px;
    }
    
    .search-input {
        padding: 12px 45px 12px 14px;
        font-size: 15px;
        min-height: 45px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-reset,
    .btn-search {
        width: 100%;
        justify-content: center;
    }
}

