/*
 * SEARCH AND OVERLAY STYLES
 */

/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(200, 200, 200, 0.5);
    z-index: 999;
    display: none;
}

/* Search results grid */
.search-results-grid {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 10px 0 10px;
    width: 100%;
    margin-top: 5px;
    display: none;
}

.search-results-grid .card {
    transition: transform 0.2s;
}

.search-results-grid .card:hover {
    transform: translateY(-2px);
}

.search-results-grid .card-img-top {
    background-color: #f8f9fa;
}

.search-results-grid .row {
    min-height: 150px;
}

.search-results-grid .col-4 {
    min-width: 33.333%;
}

/* Autocomplete wrapper */
.autocomplete-wrapper {
    position: relative;
    z-index: 1000;
}

/* Projects container overlay */
#projects-container.search-active-hide-content .content {
    display: none !important;
}

#projects-container.search-active-hide-content .overlay-image-container {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%; /* Ensure it takes full height of the viewport */
    position: absolute; /* Position it within the projects-container */
    top: 0;
    left: 0;
}

#projects-container.search-active-hide-content .overlay-image {
    max-width: 50%; /* Adjust as needed */
    max-height: 50%; /* Adjust as needed */
    object-fit: contain;
    opacity: 0.15;
}

/* Additional layout and styling classes */
.main-container {
    margin-top: 0;
}

.nav-menu {
    min-width: 600px;
}

.referenzen-link {
    text-decoration: none;
    color: #333;
}

.referenzen-text {
    padding: 20px 20px 13px 20px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    background: #fff;
}

.form-select-container {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

/* Search result card styles */
.search-result-card {
    background-position: center;
    background-size: cover;
}
.btn,
.form-control,
.category-dropdown .btn {
    border-radius: 0!important;
}