/* Frontend styles */
.base-search-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.base-search-container form {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
}

.search-bases {
    width: 320px!important;
    height: 51px!important;
    padding-left: 15px!important;
    vertical-align: bottom!important;
}

.trigger-base-search {
    padding: 10px 20px;
    background-color: var(--boingo-red);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.base-error,
.no-location-error {
    color: #d63638;
    margin-top: 10px;
    text-align: center;
    display: none;
    position: absolute;
    bottom: -40px;
    width: 100%;
}

.base-error.show,
.no-location-error.show {
    display: block;
}

.red-outline {
    border-color: #d63638 !important;
}

.autocomplete-suggestions {
    position: absolute;
    display: none;
    max-width: 500px;
    max-height: 300px;
    z-index: 9999;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
    top: 60px;
}

.autocomplete-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover {
    background-color: #f8f8f8;
}

/* Style for the matching part of the text */
.autocomplete-suggestion strong {
    color: var(--boingo-blue);
    font-weight: normal;
}

/* Style for "Fort" prefix */
.autocomplete-suggestion .base-prefix {
    color: var(--boingo-blue);
}

/* Text alignment utilities */
.has-text-align-center {
    text-align: center;
}

/* Container utilities */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .base-search-container form {
        flex-direction: column;
    }

    .search-bases {
        width: 100%!important;
        margin-bottom: 10px;
    }

    .trigger-base-search {
        width: 100%;
    }

    .base-error,
    .no-location-error {
        position: static;
        margin-top: 20px;
    }
}
