/* Organization Search Styles */
.club-search-area {
	padding-top: 27px;
	padding-bottom: 84px;
}

.club-search-area .section-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 20px;
}

.club-search-area .container {
	max-width: 1200px;
}

.organization-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-form-container {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
	position: relative;
}

.org-search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.org-search-input:focus {
    outline: none;
    border-color: #BB14C2;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.org-clear-btn {
    padding: 12px 24px;
    font-size: 14px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.org-clear-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Filter Styles */
.filter-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 40px;
}

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

.filter-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	line-height: normal;
}

.filter-select {
    padding: 10px 16px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
	outline: none;
	border-color: #BB14C2;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.filter-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-actions {
	justify-content: flex-end;
}

.reset-filters-btn {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}

.reset-filters-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.initial-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #BB14C2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-results {
    min-height: 200px;
}

.results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.org-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.org-card:hover {
    border-color: #BB14C2;
    box-shadow: 0 4px 16px rgba(0, 115, 170, 0.12);
    transform: translateY(-2px);
}

.org-card:hover .org-card-arrow {
    transform: translateX(4px);
    color: #BB14C2;
}

.org-logo {
	flex-shrink: 0;
	width: 64px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.org-logo img {
	width: 100%;
	max-height: 100%;
	object-fit: cover;
}

.org-card-detail {
    flex: 1;
    min-width: 0;
}

.org-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-card-member {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.org-card-location {
    font-size: 13px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-card-arrow {
    flex-shrink: 0;
    color: #ccc;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-card-arrow svg {
    display: block;
}

.results-info {
    text-align: center;
    padding: 16px;
    background: #f0f8ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    color: #004085;
    font-size: 14px;
    margin-top: 20px;
}

.no-results,
.error-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
    border-radius: 8px;
}

.error-message {
    color: #d63638;
    background: #fef7f7;
    border: 1px solid #f0c0c0;
}

.search-form-icon {
	width: 20px;
	display: flex;
	position: absolute;
	top: 9px;
	left: 13px;
}

.org-search-input {
	padding-left: 37px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .filter-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-actions {
        grid-column: span 2;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .organization-search-wrapper {
        padding: 15px;
    }
    
    .search-form-container {
        flex-direction: column;
    }
    
    .org-clear-btn {
        width: 100%;
    }

    .filter-container {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        grid-column: 1;
    }
    
    .results-list {
        display: flex;
        flex-direction: column;
    }
    
    .org-card {
        padding: 12px;
    }
    
    .org-logo {
        width: 56px;
        height: 56px;
    }
    
    .org-card-title {
        font-size: 15px;
    }
    
    .org-card-member {
        font-size: 13px;
    }
    
    .org-card-location {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .org-card {
        gap: 12px;
    }
    
    .org-logo {
        width: 48px;
        height: 48px;
    }
    
    .org-card-title {
        font-size: 14px;
    }
    
    .org-card-arrow {
        width: 20px;
    }
    
    .org-card-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-list .org-card {
    animation: fadeInUp 0.4s ease-out;
}

.results-list .org-card:nth-child(1) { animation-delay: 0.05s; }
.results-list .org-card:nth-child(2) { animation-delay: 0.1s; }
.results-list .org-card:nth-child(3) { animation-delay: 0.15s; }
.results-list .org-card:nth-child(4) { animation-delay: 0.2s; }
.results-list .org-card:nth-child(5) { animation-delay: 0.25s; }





