
#autocomplete-suggestions {
    display: none; /* Initially hide suggestions */
    position: absolute; /* Makes the suggestions box overlay other content */
    top: calc(100% + 4px);
    left: 0;
    width: 100%; /* Allows dropdown to be wider than its parent when needed */
    max-height: calc(6 * 38px); /* Show up to 6 suggestions, then scroll */
    overflow-y: auto; /* Allows scrolling when suggestions exceed the max height */
    background-color: #fff; /* Background color for the dropdown */
    border: 1px solid #ccc; /* Light border around the suggestions box */
    z-index: 1000; /* Ensures the suggestions box appears above other content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: adds a subtle shadow */
}

#autocomplete-suggestions.show {
    display: block; /* Show suggestions when there are results */
    border: 1px solid #ccc; /* Add a border only when suggestions are shown */
}

#autocomplete-suggestions.empty {
    display: none; /* Hide suggestions if empty */
    border: none; /* Remove border when empty */
}

#autocomplete-suggestions div {
    padding: 8px 10px; /* Space between text and edges */
    cursor: pointer; /* Shows a pointer when hovering over items */
    line-height: 22px;
}

#autocomplete-suggestions div a {
    display: block;
    text-decoration: none;
    color: #333; /* Text color */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#autocomplete-suggestions div:hover {
    background-color: #f0f0f0; /* Highlights item on hover */
}

#autocomplete-suggestions {
}

#title-search-form {
    position: relative;
}

.baygebdia-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 20px;
    margin-bottom: 20px;
}

.baygebdia-result-item {
    margin: 0;
}

.baygebdia-back-link {
    margin: 0 0 18px;
}

@media (max-width: 900px) {
    .baygebdia-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .baygebdia-result-grid {
        grid-template-columns: 1fr;
    }
}
