/**
 * GRINTAHUB Style Marketplace Styles
 */

/* Events Search Container */
.events-search-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    position: relative;
}

.events-search-form {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border-radius: 50px;
    padding: 6px 4px 6px 6px;
    border: 1px solid #e0e0e0;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #002966;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
}

.events-search-input {
    flex-grow: 1;
}

.events-search-input input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: none !important;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    background: transparent;
}

.events-search-input input::placeholder {
    color: #666;
    opacity: 0.7;
}



.events-search-results {
    margin-top: 10px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    display: none;
}

.events-results-list {
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.event-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.event-result-item:hover {
    background-color: #f8f9fa;
}

.event-result-item:last-child {
    border-bottom: none;
}

.event-result-item a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: #333;
    width: 100%;
}

.event-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: color 0.2s ease;
}

.event-result-item:hover .event-arrow {
    color: #3b82f6;
}

.event-thumb {
    margin-right: 15px;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-ticket-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: #ffffff;
    border-radius: 8px;
    opacity: 0.9;
    border: 1px solid #e2e8f0;
}

.event-info h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #002966;
}

.event-meta-container {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    font-family: 'Poppins', sans-serif;
}

.event-meta i {
    color: #3b82f6;
    width: 12px;
    font-size: 12px;
}

.event-excerpt {
    margin: 0;
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Poppins', sans-serif;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-family: 'Poppins', sans-serif;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .event-thumb {
        margin-right: 15px;
        width: 125px;
        height: 60px;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .events-search-form {
        border-radius: 15px;
    }
    
    .search-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
        border-radius: 16px;
        align-items: flex-start;
    }
    
    .search-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .events-search-input {
        width: 84%;
        padding-left: 12px;
    }
    
    .events-search-input input {
        padding: 0;
    }
    

    
    .events-search-results {
        margin-top: 15px;
        border-radius: 16px;
    }
    
    .event-result-item {
        padding: 15px;
    }
}
