/* ===== GLOBAL SEARCH BAR STYLES ===== */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFFFFF !important;
    border: 2px solid #946D46 !important;
    border-radius: 3rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(148, 109, 70, 0.4) !important;
}

.search-form:hover {
    border-color: #946D46;
    box-shadow: 0 4px 12px rgba(148, 109, 70, 0.2);
}

.search-form.active {
    border-color: #946D46;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(148, 109, 70, 0.25);
}

.search-icon {
    color: #946D46;
    font-size: 0.9rem;
    margin-right: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.search-form.active .search-icon {
    opacity: 1;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #2C2C2C;
    line-height: 1.4;
    margin: 0 1rem;
}

.search-input::placeholder {
    color: #999999;
    transition: opacity 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0.5;
}

.search-submit-button {
    background: #946D46;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-submit-button:hover {
    background: #8B6441;
    transform: scale(1.05);
}

.search-submit-button i {
    font-size: 0.9rem;
}

.search-loading {
    display: none;
    margin-left: 0.5rem;
    width: 16px;
    height: 16px;
    border: 2px solid #D9C7A2;
    border-radius: 50%;
    border-top-color: #946D46;
    animation: spin 1s linear infinite;
}

.search-loading.active {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== SEARCH RESULTS DROPDOWN ===== */
.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #D9C7A2;
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    max-height: 500px;
    overflow-y: auto;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(217, 199, 162, 0.3);
}

.search-results-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0;
}

.search-results-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #946D46;
    background: rgba(148, 109, 70, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* ===== SEARCH FILTERS ===== */
.search-filters {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(217, 199, 162, 0.2);
    overflow-x: auto;
}

.search-filter {
    background: transparent;
    border: 1px solid #D9C7A2;
    border-radius: 1.5rem;
    padding: 0.4rem 0.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-filter:hover {
    border-color: #946D46;
    color: #946D46;
}

.search-filter.active {
    background: #946D46;
    border-color: #946D46;
    color: #FFFFFF;
}

/* ===== SEARCH RESULTS CONTENT ===== */
.search-results-content {
    padding: 0.5rem 0;
}

.search-group {
    margin-bottom: 1rem;
}

.search-group:last-child {
    margin-bottom: 0;
}

.search-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #946D46;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-group-icon {
    font-size: 0.85rem;
}

.search-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-item {
    margin-bottom: 0.25rem;
}

.search-item:last-child {
    margin-bottom: 0;
}

.search-item-link {
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.search-item-link:hover {
    background: rgba(148, 109, 70, 0.05);
    border-left-color: #946D46;
}

.search-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.search-item-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

.search-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.search-item-category {
    font-size: 0.65rem;
    font-weight: 500;
    color: #946D46;
    background: rgba(148, 109, 70, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.search-more {
    text-align: center;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(217, 199, 162, 0.2);
}

.search-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #946D46;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid #946D46;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.search-more-link:hover {
    background: #946D46;
    color: #FFFFFF;
}

/* ===== EMPTY STATES ===== */
.search-empty {
    text-align: center;
    padding: 2rem 1.25rem;
}

.search-empty-icon {
    font-size: 2rem;
    color: #D9C7A2;
    margin-bottom: 0.75rem;
}

.search-empty-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0 0 0.5rem 0;
}

.search-empty-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .search-form {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .search-container {
        margin-left: 0.5rem;
    }
    
    .search-form {
        width: 200px;
    }
    
    .search-input {
        font-size: 0.8rem;
    }
    
    .search-results {
        left: -1rem;
        right: -1rem;
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .search-container {
        margin-left: 0;
        margin-top: 0.5rem;
        order: 3;
        flex-basis: 100%;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-results {
        left: 0;
        right: 0;
    }
    
    .search-filters {
        padding: 0.5rem 1rem;
    }
    
    .search-filter {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ===== HIGHLIGHT SEARCH TERMS ===== */
.search-highlight {
    background: rgba(148, 109, 70, 0.2);
    color: #946D46;
    font-weight: 600;
    padding: 0.1rem 0.2rem;
    border-radius: 0.25rem;
}

/* ===== ANIMATION DELAYS ===== */
.search-item:nth-child(1) { animation-delay: 0.1s; }
.search-item:nth-child(2) { animation-delay: 0.15s; }
.search-item:nth-child(3) { animation-delay: 0.2s; }
.search-item:nth-child(4) { animation-delay: 0.25s; }
.search-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-item {
    animation: fadeInUp 0.3s ease forwards;
} 

/* ===== SEARCH RESULTS PAGE STYLES ===== */
.search-page {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
    background: #FAFAFA;
}

.search-page-header {
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-page-title-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.search-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.search-page-title i {
    color: #946D46;
    font-size: 2rem;
}

.search-page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.search-page-subtitle strong {
    color: #946D46;
}

/* Search Filters Section */
.search-filters-section {
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-filters-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 1rem;
}

.search-filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.search-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #F5F5F3;
    border: 1px solid #D9C7A2;
    border-radius: 2rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666666;
    transition: all 0.3s ease;
}

.search-filter-btn:hover {
    background: rgba(148, 109, 70, 0.1);
    border-color: #946D46;
    color: #946D46;
    transform: translateY(-1px);
}

.search-filter-btn.active {
    background: #946D46;
    border-color: #946D46;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(148, 109, 70, 0.3);
}

.filter-count {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Search Results Section */
.search-results-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-category {
    background: #FFFFFF;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #F5F5F3 0%, #ECECEC 100%);
    border-bottom: 1px solid rgba(217, 199, 162, 0.3);
}

.search-category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0;
}

.search-category-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #946D46;
    background: rgba(148, 109, 70, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
}

.search-results-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.search-result-item {
    background: #FAFAFA;
    border: 1px solid rgba(217, 199, 162, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #FFFFFF;
    border-color: #946D46;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148, 109, 70, 0.15);
}

/* Error and Empty States */
.search-error,
.search-empty {
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-error-content,
.search-empty-content {
    max-width: 400px;
    margin: 0 auto;
}

.search-error-icon,
.search-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.search-error-icon {
    color: #dc3545;
}

.search-empty-icon {
    color: #D9C7A2;
}

.search-error-title,
.search-empty-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0 0 0.75rem 0;
}

.search-error-message,
.search-empty-message {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

/* Pagination */
.search-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-info {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666666;
}

.pagination-links {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #F5F5F3;
    border: 1px solid #D9C7A2;
    border-radius: 0.5rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666666;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #946D46;
    border-color: #946D46;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.pagination-btn.current {
    background: #946D46;
    border-color: #946D46;
    color: #FFFFFF;
}

/* Responsive Design for Search Page */
@media (max-width: 768px) {
    .search-page {
        padding: 1rem 0;
    }
    
    .search-page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .search-page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-page-title i {
        font-size: 1.5rem;
    }
    
    .search-filters-wrapper {
        gap: 0.5rem;
    }
    
    .search-filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .search-category-header {
        padding: 1rem 1.5rem;
    }
    
    .search-category-title {
        font-size: 1.25rem;
    }
    
    .search-pagination {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pagination-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .search-page-header {
        padding: 1rem;
    }
    
    .search-page-title {
        font-size: 1.75rem;
    }
    
    .search-filters-section {
        padding: 1rem;
    }
    
    .search-results-grid {
        padding: 1rem;
    }
    
    .search-result-item {
        padding: 1rem;
    }
}