.af-search-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.af-search-form {
    position: relative;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.af-search-input-wrapper {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.af-search-input {
    flex: 1;
    padding: 12px 16px !important;
    font-size: 16px !important;
    border: 2px solid #FFA20A !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    font-weight: 400 !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
}

.af-search-input:focus {
    outline: none !important;
    border-color: #FFA20A !important;
    box-shadow: none !important;
}

.af-search-input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.af-search-button {
    background: #FFA20A !important;
    color: #ffffff !important;
    padding: 12px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.af-search-button:hover {
    background: #FFA20A !important;
    transform: none !important;
    box-shadow: none !important;
}

.af-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 180px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.af-dropdown-loading {
    padding: 15px 20px;
    text-align: left;
    color: #666;
    font-size: 14px;
}

.af-dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: background 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.af-dropdown-item:hover,
.af-dropdown-item-selected {
    background: #f5f5f5;
}

.af-dropdown-item strong {
    color: #FFA20A;
    font-weight: 600;
}

.af-dropdown-item:last-child {
    border-bottom: none;
}

.af-item-address {
    flex: 0 0 auto;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.af-item-location {
    flex: 1;
    text-align: right;
    color: #666;
    font-size: 14px;
}

.af-search-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.af-message-error {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
}

.af-message-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #FFA20A;
}

.af-has-community {
    flex-wrap: wrap;
    align-items: flex-start;
}

.af-community-wrapper {
    flex: 0 0 140px;
    width: 140px;
    position: relative;
}

.af-community-input {
    width: 100%;
    padding: 12px 16px !important;
    font-size: 16px !important;
    border: 2px solid #FFA20A !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    font-weight: 400 !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
    display: block;
}

.af-community-input:focus {
    outline: none !important;
    border-color: #FFA20A !important;
    box-shadow: none !important;
}

.af-community-input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.af-community-input.af-community-error {
    border-color: #c62828 !important;
    background: #fff5f5 !important;
}

.af-community-required {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    font-size: 12px;
    color: #c62828;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.af-search-input-wrapper.hint-visible {
    padding-bottom: 22px;
}

@media (max-width: 768px) {
    .af-search-wrapper {
        padding: 0 15px;
    }

    .af-search-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .af-search-button {
        width: 100% !important;
    }

    .af-autocomplete-dropdown {
        right: 0;
    }

    .af-community-wrapper {
        width: 100%;
        flex: unset;
    }
}